Exception: YandexSpeechApi::Voice::VoiceNotAllowed

Inherits:
YandexSpeechError show all
Defined in:
lib/yandex_speech/voice.rb

Overview

Raised when unknown voice was selected.

Instance Method Summary collapse

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