class AgileNotifier::TTS

Public Class Methods

speak(text, args) click to toggle source
# File lib/agile_notifier/tts.rb, line 9
def speak(text, args)
  os_type = get_os_type
  service = "speak_on_#{os_type}"
  language = args[:language]
  voice = args[:voice]
  Service.send(service.intern, text, language, voice)
end

Private Class Methods

get_os_type() click to toggle source
# File lib/agile_notifier/tts.rb, line 17
def get_os_type
  OperatingSystem.what
end