adhearsion / ruby_speech

A ruby library for TTS & ASR document preparation
MIT License
101 stars 41 forks source link

Concatenating SSML documents resets the set language #37

Open bklang opened 8 years ago

bklang commented 8 years ago
AHN> doc1 = RubySpeech::SSML.draw(language: 'it') { string "hi" }
=> <speak xmlns="http://www.w3.org/2001/10/synthesis" version="1.0" xml:lang="it">hi</speak>
AHN> doc1 + RubySpeech::SSML.draw { string "there" }
=> <speak xmlns="http://www.w3.org/2001/10/synthesis" version="1.0" xml:lang="en-US">hi there</speak>
benlangfeld commented 8 years ago

This could be a good one for @smurphmeister :)