Sha256: 7287c8a309f910b133c0de695661ffca15046730218ce23281a3b5ef9f2188f8
Contents?: true
Size: 436 Bytes
Versions: 12
Compression:
Stored size: 436 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
12 entries across 12 versions & 1 rubygems