tts_language_long

Displays the full name of the language currently being used.

For possible language values, see tts_language_short.

An acceptable substitute for tts_language_long is tts_language, but tts_language_long is preferred.

Example

Script(Speech_Languages_Voices_Test)
Number(nVoice)
Number(nLanguage)
Activate(From_Menu)
If_Not(Speech_From_Text_Available)
Message("Speech From Text Not Available", 3)
Return
End_If
nLanguage = Speech_Find_Setting_Value("tts_language_long", "Mexican Spanish", FALSE)
If(Number_Greater_Than_Or_Equal(nLanguage, 0)
Speech_Change_Setting("tts_language_long", nLanguage)
End_If
nVoice = Speech_Find_Setting_Value("tts_voice", "Javier", FALSE)
If(Number_Greater_Than_Or_Equal(nVoice, 0))
Speech_Change_Setting("tts_voice", nVoice)
Speech_From_Text("La voc de Javier esta disponible.", FALSE)
End_If
nVoice = Speech_Find_Setting_Value("tts_voice", "Paulina", FALSE)
If(Number_Greater_Than_Or_Equal(nVoice, 0))
Speech_Change_Setting("tts_voice", nVoice)
Speech_From_Text("La voz de Paulina esta disponible.", FALSE)
End_If
nLanguage = Speech_Find_Setting_Value("tts_language_long", "English USA", FALSE)
If(Number_Greater_Than_Or_Equal(nLanguage, 0))
Speech_Change_Setting("tts_language_long", nLanguage)
End_If
nVoice = Speech_Find_Setting_Value("tts_voice", "tom", FALSE)
If(Number_Greater_Than_Or_Equal(nVoice, 0))
Speech_Change_Setting("tts_voice", nVoice)
Speech_From_Text("Tom’s voice is available.", FALSE)
End_If
nVoice = Speech_Find_Setting_Value("tts_voice", "samantha", FALSE)
If(Number_Greater_Than_Or_Equal(nVoice, 0))
Speech_Change_Setting("tts_voice", nVoice)
Speech_From_Text("Samantha’s voice is available.", FALSE)
End_If
nVoice = Speech_Find_Setting_Value("tts_voice", "jill", FALSE)
If(Number_Greater_Than_Or_Equal(nVoice, 0))
Speech_Change_Setting("tts_voice", nVoice)
Speech_From_Text("Jill’s voice is a available.", FALSE)
End_If
Message("Speech Voice Testing Completed.", 3)
Return

See Also

tts_language_short, Speech_Get_Setting, Speech_Get_Setting_Value_Desc, Speech_Get_Setting_Max, Speech_Find_Setting_Value, Speech_To_Text, Speech_From_Text, Speech_Setting_Available, Speech_Change_Setting

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal