Home | Sign in | English EN
New WINDEV and WINDEV Mobile 26 feature!
  • Properties specific to the description of SpeechSynthesisVoice variables
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Stored procedures
SpeechSynthesisVoice (Type of variable)
In french: VoixDeSynthèse
The SpeechSynthesisVoice type is used to get all the advanced characteristics of a speech synthesis voice. The characteristics of the speech synthesis voice can be identified via different WLanguage properties.
Remark: See Declaring a variable for more details on the declaration of this type of variable and the use of WLanguage properties.
BestVoice is SpeechSynthesisVoice
// List the voices
arrVoices is array of SpeechSynthesisVoice
arrVoices = SpeechSynthesisListVoices()
// Select the English voice with the best quality
FOR EACH Voice OF arrVoices
IF BestVoice.Quality < Voice.Quality AND Voice.Language = languageEnglish THEN BestVoice = Voice

Properties specific to the description of SpeechSynthesisVoice variables

The following properties can be used to get the characteristics of a speech synthesis voice:
Property nameType usedEffect
GenderIntegerGender of the voice:
  • ssVoiceUndefined: Neutral voice.
  • ssVoiceFemale: Female voice.
  • ssMaleVoice: Male voice.
This property is available in read-only mode.
IdentifierCharacter stringVoice identifier.
This property is available in read-only mode.
LanguageInteger constantLanguage of the voice:
  • languageAfrikaans: Afrikaans.
  • languageAlbanian: Albanian.
  • languageGerman: German.
  • languageEnglish: English.
  • languageArabic: Arabic.
  • languageBengali: Bengali
  • languageArmenian: Armenian.
  • languageBelarusian: Belorussian.
  • languageBulgarian: Bulgarian.
  • languageCatalan: Catalan.
  • languageChinese: Chinese.
  • languageKorean: Korean.
  • languageCroatian: Croatian.
  • languageDanish: Danish.
  • languageSpanish: Spanish.
  • languageEstonian: Estonian.
  • languageFinnish: Finnish.
  • languageFrench: French.
  • languageGeorgian: Georgian.
  • languageGreek: Greek.
  • languageHebrew: Hebrew.
  • languageHindi: Hindi.
  • languageHungarian: Hungarian.
  • languageIndonesian: Indonesian.
  • languageIcelandic: Icelandic.
  • languageItalian: Italian.
  • languageJapanese: Japanese.
  • languageLatvian: Latvian.
  • languageLithuanian: Lithuanian.
  • languageMacedonian: Macedonian.
  • languageDutch: Dutch.
  • languageNorwegian: Norwegian.
  • languageUzbek: Uzbek.
  • languagePunjabi: Punjabi.
  • languagePolish: Polish.
  • languagePortuguese: Portuguese.
  • languageRomanian: Romanian.
  • languageRussian: Russian.
  • languageSerbian: Serbian.
  • languageSindhi: Sindhi.
  • languageSlovak: Slovakian.
  • languageSlovenian: Slovenian.
  • languageSwedish: Swedish.
  • languageCzech: Czech.
  • languageThai: Thai.
  • languageTurkish: Turkish.
  • languageUkrainian: Ukrainian.
  • languageVietnamese: Vietnamese.
This property is available in read-only mode.
NameCharacter stringName of the voice. The name is unique and identifies the voice.
This property is available in read-only mode.
QualityInteger constantVoice quality. Higher quality means higher value. This property can take the following values:
  • ssQualityVeryHigh: Very high quality.
  • ssQualityHigh: High quality.
  • ssQualityStandard: Standard quality.
  • ssQualityLow: Low quality.
  • ssQualityVeryLow: Very low quality.
This property is available in read-only mode.
SubLanguageIntegerSublanguage of the language. For more details, see Correspondence between languages, sublanguages, character sets and nations.
This property is available in read-only mode.
You can use VariableReset to reinitialize the content of a SpeechSynthesisVoice variable
Minimum version required
  • Version 26
This page is also available for…
Click [Add] to post a comment