Class: Voicemaker::Commands::TTSCommand

Inherits:
Base
  • Object
show all
Defined in:
lib/voicemaker/commands/tts_command.rb

Instance Method Summary collapse

Methods inherited from Base

api_environment

Instance Method Details

#runObject



26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/voicemaker/commands/tts_command.rb', line 26

def run
  verify_args
  tts = Voicemaker::TTS.new **tts_params
  say "url: !txtblu!#{tts.url}"

  if output_file
    tts.save output_file
    say "out: !txtblu!#{output_file}"
  end
  
  show_details tts if args['--debug']
end