Sha256: 56c130caddb6dab585e14ff6182796bef64972c9ca3ea721b1195c13870b468f
Contents?: true
Size: 437 Bytes
Versions: 20
Compression:
Stored size: 437 Bytes
Contents
#encoding: UTF-8 module Termit class Main def initialize options @options = options end def translate text_translator = Termit::TextTranslator.new(@options) text_translator.call speech_synthesis text_translator.text if @options[:talk] end private def speech_synthesis text options = @options.merge(text: text) Termit::SpeechSynthesizer.new(options).call end end end
Version data entries
20 entries across 20 versions & 1 rubygems