Class: OmniAI::CLI::SpeakHandler

Inherits:
BaseHandler show all
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

handle!, #initialize

Constructor Details

This class inherits a constructor from OmniAI::CLI::BaseHandler

Instance Method Details

#handle!(argv:) ⇒ Object

Parameters:

  • argv (Array<String>)


10
11
12
13
14
# File 'lib/omniai/cli/speak_handler.rb', line 10

def handle!(argv:)
  parser.parse!(argv)

  speak(argv.join(" "))
end