Sha256: 18749d7fd2d139a5796325aaae5e01668b540a8b533641d3d9a7ccec72d7ff3a

Contents?: true

Size: 806 Bytes

Versions: 2

Compression:

Stored size: 806 Bytes

Contents

module Moceansdk
  module Modules
    module Voice
      module McObject

        class Say < AbstractMc
          def initialize(params = nil)
            super(params)

            if @params[:language].nil?
              @params[:language] = 'en-US'
            end
          end

          def language=(param)
            @params[:language] = param
          end

          def text=(param)
            @params[:text] = param
          end

          def barge_in=(param)
            @params[:'barge-in'] = param
          end

          def clear_digit_cache=(param)
            @params[:'clear-digit-cache'] = param
          end

          def required_key
            ['text', 'language']
          end

          def action
            'say'
          end
        end

      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
moceansdk-1.1.1 lib/moceansdk/modules/voice/mc_object/say.rb
moceansdk-1.1.0 lib/moceansdk/modules/voice/mc_object/say.rb