Sha256: 7ce753ddc98998c9368c407f9fbb9d804bdfc4309f829221ea7eb8084083f0e9

Contents?: true

Size: 674 Bytes

Versions: 17

Compression:

Stored size: 674 Bytes

Contents

# encoding: utf-8

module Punchblock
  module Translator
    class Freeswitch
      module Component
        class TTSOutput < AbstractOutput
          private

          def do_output
            register_handler :es, :event_name => 'CHANNEL_EXECUTE_COMPLETE' do |event|
              send_complete_event finish_reason
            end
            voice = @component_node.voice || :kal
            application :speak, [renderer, voice, document].join('|')
          end

          def renderer
            @component_node.renderer || :flite
          end

          def document
            concatenated_render_doc.to_s
          end
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
punchblock-2.7.5 lib/punchblock/translator/freeswitch/component/tts_output.rb
punchblock-2.7.3 lib/punchblock/translator/freeswitch/component/tts_output.rb
punchblock-2.7.2 lib/punchblock/translator/freeswitch/component/tts_output.rb
punchblock-2.7.1 lib/punchblock/translator/freeswitch/component/tts_output.rb
punchblock-2.7.0 lib/punchblock/translator/freeswitch/component/tts_output.rb
punchblock-2.6.0 lib/punchblock/translator/freeswitch/component/tts_output.rb
punchblock-2.5.3 lib/punchblock/translator/freeswitch/component/tts_output.rb
punchblock-2.5.2 lib/punchblock/translator/freeswitch/component/tts_output.rb
punchblock-2.5.1 lib/punchblock/translator/freeswitch/component/tts_output.rb
punchblock-2.5.0 lib/punchblock/translator/freeswitch/component/tts_output.rb
punchblock-2.4.2 lib/punchblock/translator/freeswitch/component/tts_output.rb
punchblock-2.4.0 lib/punchblock/translator/freeswitch/component/tts_output.rb
punchblock-2.3.1 lib/punchblock/translator/freeswitch/component/tts_output.rb
punchblock-2.3.0 lib/punchblock/translator/freeswitch/component/tts_output.rb
punchblock-2.2.2 lib/punchblock/translator/freeswitch/component/tts_output.rb
punchblock-2.2.1 lib/punchblock/translator/freeswitch/component/tts_output.rb
punchblock-2.2.0 lib/punchblock/translator/freeswitch/component/tts_output.rb