AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones específicas para móviles / Funciones de síntesis de voz
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
Versión mínima requerida
  • Versión 26
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 26/05/2022

Señalar un error o enviar una sugerencia | Ayuda local