Class: Cogibara::Speaker
- Inherits:
-
Object
- Object
- Cogibara::Speaker
- Defined in:
- lib/cogibara/speaker.rb
Instance Method Summary collapse
- #speak_to_file(message) ⇒ Object
- #speak_to_local(message, voice = "rab_diphone", engine = :festival) ⇒ Object
Instance Method Details
#speak_to_file(message) ⇒ Object
13 14 15 |
# File 'lib/cogibara/speaker.rb', line 13 def speak_to_file() end |
#speak_to_local(message, voice = "rab_diphone", engine = :festival) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/cogibara/speaker.rb', line 3 def speak_to_local(, voice="rab_diphone", engine=:festival) if engine == :pico `pico2wave -w out.wav "#{self}"` `aplay out.wav` `rm ./out.wav` else `echo "#{self}" | text2wave -eval "(voice_#{voice})" | aplay` end end |