Sha256: 60afd6a2c436c49961ef5a9a94667903d758244eca0031a84245b267d32d1376
Contents?: true
Size: 788 Bytes
Versions: 9
Compression:
Stored size: 788 Bytes
Contents
# encoding: utf-8 module Punchblock module MediaContainer ## # @return [String] the TTS voice to use # def voice read_attr :voice end ## # @param [String] voice to use when rendering TTS # def voice=(voice) write_attr :voice, voice end ## # @return [String] the SSML document to render TTS # def ssml node = children.first RubySpeech::SSML.import node if node end ## # @param [String] ssml the SSML document to render TTS # def ssml=(ssml) return unless ssml unless ssml.is_a?(RubySpeech::SSML::Element) ssml = RubySpeech::SSML.import ssml end self << ssml end def inspect_attributes # :nodoc: [:voice, :ssml] + super end end end
Version data entries
9 entries across 9 versions & 1 rubygems