gem install ivona
Ivona::Config.api_key = "YOUR_API_KEY"
Ivona::Config.email = "EMAIL_ADDRESS"
Ivona::Config.codec_id = "mp3/22050"
First include Ivona module in the model where you want to use the methods
include Ivona
Then create the speech file
response = Speech.create_speech_file("Text to convert to speech", voice_id) #voice_id defaults to en_us_salli
Response is a hash that contains fileId and soundUrl that you can use to download and save.
Speech.list_speech_files # Shows all speech files of the authentivated user
Speech.delete_speech_file(file_id) # Deletes the speech file with the given file_id
[Ivona SaaS] (http://developer.ivona.com/ivona-tts-saas/saas-net-introduction)