Exception: YandexSpeechApi::Voice::VoiceNotAllowed

Inherits:
StandardError
  • Object
show all
Defined in:
lib/yandex_speech/voice.rb

Overview

This is supposed to been raised when unknown voice was selected.

Instance Method Summary collapse

Constructor Details

#initialize(voice) ⇒ VoiceNotAllowed


44
45
46
# File 'lib/yandex_speech/voice.rb', line 44

def initialize(voice)
  super "Voice '#{voice}' not allowed for usage. To see list of allowed voices use Voice#list"
end