ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Mobile specific functions / Speech Synthesis functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
SpeechSynthesisListVoices (Function)
In french: SynthèseVocaleListeVoix
Returns the list of voices available on the device for the speech synthesis engine.
Example
BestVoice is SpeechSynthesisVoice
 
// List the voices
arrVoices is array of SpeechSynthesisVoice
arrVoices = SpeechSynthesisListVoices()
 
FOR EACH Voice OF arrVoices
// Displays the language of the voice in the trace
Trace(LanguageToName(Voice.Language, Voice.SubLanguage))
// Select the English voice with the best quality
IF BestVoice.Quality < Voice.Quality AND Voice.Language = languageEnglish THEN BestVoice = Voice
END
 
SpeechSynthesisInitialize(BestVoice)
Syntax
<Result> = SpeechSynthesisListVoices()
<Result>: Array
Array of SpeechSynthesisVoice variables.
If an error occurs, the ErrorOccurred variable is set to True. To get more details on the error, use ErrorInfo.
Component: wd290android.aar
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help