createVocalizer

The recognition language in BCP 47 format: http://en.wikipedia.org/wiki/IETF_language_tag. In BCP 47 format, the language is indicated using the language code in ISO 639 format, followed by a dash (-), followed by the country code in ISO 3166-1 format. At this time, only ru-RU is supported.

text

The text to convert to speech.

autoPlay

Flag indicating whether synthesized text will be vocalized immediately by SpeechKit library resources. Possible values: true — "vocalize immediately", false — "do not vocalize". If the value of autoPlay is false, audio can be received as a parameter of the VocalizerListener.onSynthesisDone call for the VocalizerListener class, or played later using internal SpeechKit resources (by calling Vocalizer.play()).

language

The recognition language in BCP 47 format: http://en.wikipedia.org/wiki/IETF_language_tag. In BCP 47 format, the language is indicated using the language code in ISO 639 format, followed by a dash (-), followed by the country code in ISO 3166-1 format. At this time, only ru-RU is supported.

text

The text to convert to speech.

autoPlay

Flag indicating whether synthesized text will be vocalized immediately by SpeechKit library resources. Possible values: true — "vocalize immediately", false — "do not vocalize". If the value of autoPlay is false, audio can be received as a parameter of the VocalizerListener.onSynthesisDone call for the VocalizerListener class, or played later using internal SpeechKit resources (by calling Vocalizer.play()).

Returns:

Instance of the Vocalizer class for vocalizing text with the specified parameters.