PromptBuilder.StartStyle Method
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
Starts a style in a PromptBuilder.
Namespace: Microsoft.SpeechServer.Synthesis
Assembly: Microsoft.SpeechServer (in microsoft.speechserver.dll)
Syntax
'Declaration
Public Sub StartStyle ( _
style As PromptStyle _
)
public void StartStyle (
PromptStyle style
)
Parameters
- style
The name of the PromptStyle to be used.
Example
using Microsoft.SpeechServer.Synthesis;
. . .
private void statementActivity1_TurnStarting(object sender, TurnStartingEventArgs e)
{
PromptStyle pokey = new PromptStyle();
pokey.Rate = PromptRate.ExtraSlow;
pokey.Volume = PromptVolume.ExtraSoft;
statementActivity1.MainPrompt.StartStyle(pokey);
statementActivity1.MainPrompt.AppendText("This very long prompt should be really really slow. ");
statementActivity1.MainPrompt.EndStyle();
}
Thread Safety
All public static (Shared in Visual Basic) members of this type are thread-safe. Instance members are not guaranteed to be thread-safe.
Platforms
Development Platforms
Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Vista Ultimate Edition, Windows Vista Business Edition, Windows Vista Enterprise Edition
Target Platforms
Windows Server 2003
See Also
Reference
PromptBuilder Class
PromptBuilder Members
Microsoft.SpeechServer.Synthesis Namespace