Yandex TTS
The yandextts
text-to-speech platform uses Yandex SpeechKit Text-to-Speech engine to read a text with natural sounding voices.
To enable text-to-speech with Yandex SpeechKit, add the following lines to your configuration.yaml
:
# Example configuration.yaml entry
tts:
- platform: yandextts
api_key: 'XXXXXXXX'
Configuration variables:
- api_key (Required): API Key for use this service.
- language (Optional): The language to use. Defaults to
en-US
. Supporteden-US
,ru-RU
,uk-UK
,tr-TR
. - codec (Optional): Audio codec. Default is
mp3
. Supported usmp3
,wav
,opus
. - voice (Optional): Speaker voice. Default is
zahar
. Supported female voices arejane
,oksana
,alyss
,omazh
and male voices arezahar
andermil
. - emotion (Optional): Speaker emotional intonation. Default is
neutral
. Also supported aregood
(friendly) andevil
(angry) - speed (Optional): Speech speed. Default value is
1
. Highest speed is3
and lowest0,1
Please check the API documentation for details. It seems that the English version of documentation is outdated. You could request an API key by email or online.
A full configuration sample:
# Example configuration.yaml entry
tts:
- platform: yandextts
api_key: 'XXXXX'
language: 'ru-RU'
codec: mp3
voice: oksana
emotion: evil
speed: 2