ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Mobile specific functions / Speech Synthesis functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
SpeechSynthesisListVoices (Function)
In french: SynthèseVocaleListeVoix
Returns the list of voices available on the device for the speech synthesis engine.
Example
MeilleureVoix is SpeechSynthesisVoice

// Liste les voix
tabVoix is array of SpeechSynthesisVoice
tabVoix = SpeechSynthesisListVoices()

FOR EACH Voix OF tabVoix
	// Affiche le nom de la langue de la voix dans la trace 
	Trace(LanguageToName(Voix.Langue, Voix.SousLangue))
	// Sélectionne la voix française avec la meilleure qualité
	IF MeilleureVoix.Quality < Voix.Qualité AND Voix.Langue = languageFrench THEN MeilleureVoix = Voix
END

SpeechSynthesisInitialize(MeilleureVoix)
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: wd300android.aar
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help