AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones específicas para móviles / Funciones de síntesis de voz
  • Properties specific to SpeechSynthesisVoice variables
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
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.
Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Ejemplo
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.Qualité < Voix.Qualité AND Voix.Langue = languageFrench THEN MeilleureVoix = Voix
END

SpeechSynthesisInitialize(MeilleureVoix)
Propiedades

Properties specific to SpeechSynthesisVoice variables

The following properties can be used to get the characteristics of a speech synthesis voice:
Property nameType usedEffect
GenderIntegerGender of the voice:
  • svUndefined voice: Neutral voice.
  • svFeminine voice: Female voice.
  • svMasculine voice: Male voice.
This property is read-only.
Note: This property is not always returned by the text-to-speech engine..
IdentifierCharacter stringVoice identifier.
This property is read-only.
LanguageInteger constantLanguage of the voice:
  • languageAfrikaans: Afrikaans.
  • languageAlbanian: Albanian.
  • languageGerman: German.
  • languageEnglish: English.
  • languageArabic: Arabic.
  • languageBengali: Bengali
  • languageArmenian: Armenian.
  • languageBelarusian: Belarusian.
  • 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.
  • languageIslandish: Icelandic.
  • languageItalian: Italian.
  • languageJapanese: Japanese.
  • languageLatvian: Latvian.
  • languageLithuanian: Lithuanian.
  • languageMacedonian: Macedonian.
  • languageDutch: Dutch.
  • languageNorwegian: Norwegian.
  • languageOuzbek: Uzbek.
  • languagePendjabi: Punjabi.
  • languagePolish: Polish.
  • languagePortuguese: Portuguese.
  • languageRomanian: Romanian.
  • languageRussian: Russian.
  • languageSerbian: Serbian.
  • languageSindhi: Sindhi.
  • languageSlovak: Slovak.
  • languageSlovenian: Slovenian.
  • languageSwedish: Swedish.
  • languageCzech: Czech.
  • languageThai: Thai.
  • languageTurkish: Turkish.
  • languageUkrainian: Ukrainian.
  • languageVietnamese: Vietnamese.
This property is read-only.
NameCharacter stringName of the voice. The name is unique and identifies the voice.
This property is read-only.
QualityInteger constantVoice quality. Higher quality means higher value. This property can take the following values:
  • svQualityVeryHigh: Very high quality.
  • svHigh quality: High quality.
  • svNormalQuality: Normal Quality.
  • svLowQuality: Low Quality.
  • svVeryLowQuality: Very Low Quality.
This property is read-only.
SubLanguageIntegerSublanguage of the language. For more details, see Correspondence between languages, sub-languages, character sets and nations.
This property is read-only.
Observaciones
You can use VariableReset to reset the content of a SpeechSynthesisVoice variable
Versión mínima requerida
  • Versión 26
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 24/09/2024

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