# 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