Permalink
Browse files

Merge branch 'release/0.2.2' into develop

  • Loading branch information...
benlangfeld committed Sep 12, 2011
2 parents 7b09e8d + 34ffc7c commit 9da5e733fe5458c816fee04f7c5f30a045fcf1a2
Showing with 32 additions and 1 deletion.
  1. +31 −0 CHANGELOG.md
  2. +1 −1 lib/ruby_speech/version.rb
View
@@ -1,3 +1,34 @@
+# 0.2.2
+ * Feature: The SSML DSL now supports embedding SSML documents, elements or strings via the `embed` method. This behaves as you might expect:
+
+ ```ruby
+ doc1 = RubySpeech::SSML.draw do
+ string "Hi, I'm Fred. The time is currently "
+ say_as :interpret_as => 'date', :format => 'dmy' do
+ "01/02/1960"
+ end
+ end
+
+ doc2 = RubySpeech::SSML.draw do
+ voice :gender => :male, :name => 'fred' do
+ embed doc1
+ end
+ end
+
+ doc2.to_s
+ ```
+
+ ```xml
+ <speak xmlns="http://www.w3.org/2001/10/synthesis" version="1.0" xml:lang="en-US">
+ <voice gender="male" name="fred">
+ Hi, I'm Fred. The time is currently
+ <say-as interpret-as="date" format="dmy">
+ 01/02/1960
+ </say-as>
+ </voice>
+ </speak>
+ ```
+
# 0.2.1
* Bugfix: SSML element's children now include any text content, and text content is copied when importing/concatenating documents
@@ -1,3 +1,3 @@
module RubySpeech
- VERSION = "0.2.1"
+ VERSION = "0.2.2"
end

0 comments on commit 9da5e73

Please sign in to comment.