Exception: YandexSpeechApi::Emotion::EmotionNotAllowed

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

Overview

This is supposed to been raised when unknown emotion has been selected.

Instance Method Summary collapse

Constructor Details

#initialize(emotion) ⇒ 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