Method: Adhearsion::CallController::Output#say

Defined in:
lib/adhearsion/call_controller/output.rb

#say(text, options = {}) ⇒ Object Also known as: speak

Speak output using text-to-speech (TTS)

Raises:



26
27
28
29
# File 'lib/adhearsion/call_controller/output.rb', line 26

def say(text, options = {})
  return unless text
  player.play_ssml(text, options) || player.output(output_formatter.ssml_for_text(text.to_s), options)
end