# RubySpeech
RubySpeech is a library for constructing and parsing Text to Speech (TTS) and Automatic Speech Recognition (ASR) documents such as [SSML](http://www.w3.org/TR/speech-synthesis) and [GRXML](http://www.w3.org/TR/speech-grammar/). The primary use case is for construction of these documents to be processed by TTS and ASR engines.
## Installation
gem install ruby_speech
## Library
RubySpeech provides a DSL for constructing SSML documents like so:
```ruby
require 'ruby_speech'
RubySpeech::SSML.draw do
voice gender: :male, name: 'fred' do
string "Hi, I'm Fred. The time is currently "
say_as 'date', format: 'dmy' do
"01/02/1960"
end
end
end
```
becomes:
```xml
Hi, I'm Fred. The time is currently 01/02/1960
```
Check out the [YARD documentation](http://rdoc.info/github/benlangfeld/ruby_speech/master/frames) for more
## Features:
### SSML
* Document construction
* ``
* ``
* ``
* ``
* ``
## TODO:
### SSML
#### Document Structure
* `
` and ``
* ``
* ``
* ``
* `` and ``
#### Misc
* ``
* ``
* ``
## Links:
* [Source](https://github.com/benlangfeld/ruby_speech)
* [Documentation](http://rdoc.info/github/benlangfeld/ruby_speech/master/frames)
* [Bug Tracker](https://github.com/benlangfeld/ruby_speech/issues)
## Note on Patches/Pull Requests
* Fork the project.
* Make your feature addition or bug fix.
* Add tests for it. This is important so I don't break it in a future version unintentionally.
* Commit, do not mess with rakefile, version, or history.
* If you want to have your own version, that is fine but bump version in a commit by itself so I can ignore when I pull
* Send me a pull request. Bonus points for topic branches.
## Copyright
Copyright (c) 2011 Ben Langfeld. MIT licence (see LICENSE for details).