The following example script asks the user for his username and then switches to the voice profile associated with that username.
Script( Set_Speech_User )
String( sSpeechToTextUserName, True )
Activate( Connection )
Comment: If the persistent variable doesn't have a value, the default is the username the Speech-to-Text engine is using.
If( String_Empty( sSpeechToTextUserName ) )
sSpeechToTextUserName = Speech_To_Text_Get_User_Name
End_If
Comment: Ask the user the username to use. The last username used will be the default.
sSpeechToTextUserName = Ask_String_Lowercase( "What is your Speech Username?", "Speech", 1, 100, sSpeechToTextUserName )
Comment: Tell the Speech-to-Text engine the username.
Speech_To_Text_Change_User_Name( sSpeechToTextUserName )
Return
Was this article useful?
The topic was:
Inaccurate
Incomplete
Not what I expected
Other