Exception: YandexSpeechApi::Voice::VoiceNotAllowed
- Inherits:
-
YandexSpeechError
- Object
- StandardError
- YandexSpeechError
- YandexSpeechApi::Voice::VoiceNotAllowed
- Defined in:
- lib/yandex_speech/voice.rb
Overview
Raised when unknown voice was selected.
Instance Method Summary collapse
-
#initialize(voice) ⇒ VoiceNotAllowed
constructor
A new instance of VoiceNotAllowed.
Constructor Details
#initialize(voice) ⇒ VoiceNotAllowed
Returns a new instance of VoiceNotAllowed.
42 43 |
# File 'lib/yandex_speech/voice.rb', line 42 def initialize(voice) super "Voice '#{voice}' not allowed for usage. To see list of allowed voices use Voice#list" end |