Exception: YandexSpeechApi::Emotion::EmotionNotAllowed

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

Overview

Raised when unknown emotion has been selected.

Instance Method Summary collapse

Constructor Details

#initialize(emotion) ⇒ EmotionNotAllowed

Returns a new instance of EmotionNotAllowed.



37
# File 'lib/yandex_speech/emotion.rb', line 37

def initialize(emotion); super "Emotion '#{emotion}' not allowed for usage. To see list of allowed emotions use Emotion#list" end