Class: OmniAI::CLI::SpeakHandler
- Inherits:
-
BaseHandler
- Object
- BaseHandler
- OmniAI::CLI::SpeakHandler
- Defined in:
- lib/omniai/cli/speak_handler.rb
Overview
Used by CLI to process commands like:
omniai speak "Sally sells seashells by the seashore." > ./audio.aac
Instance Method Summary collapse
Methods inherited from BaseHandler
Constructor Details
This class inherits a constructor from OmniAI::CLI::BaseHandler
Instance Method Details
#handle!(argv:) ⇒ Object
10 11 12 13 14 |
# File 'lib/omniai/cli/speak_handler.rb', line 10 def handle!(argv:) parser.parse!(argv) speak(argv.join(" ")) end |