# Re: text to speech?

**URL:** <https://www.ruby-forum.com/t/re-text-to-speech/97395>\
**Category:** Ruby\
**Created:** [July 6, 2006, 8:29pm UTC](https://www.ruby-forum.com/t/re-text-to-speech/97395 "2006-07-06T20:29:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [July 6, 2006, 8:29pm UTC](https://www.ruby-forum.com/t/re-text-to-speech/97395/1 "2006-07-06T20:29:37Z")

</div>

Dear Arun,

for reading out texts in many languages (including Hindi), there is  
MBROLA

\_[http://tcts.fpms.ac.be/synthesis/mbrola.html\_](http://tcts.fpms.ac.be/synthesis/mbrola.html_)  
([http://tcts.fpms.ac.be/synthesis/mbrola.html](http://tcts.fpms.ac.be/synthesis/mbrola.html)) .

The authors provide it for many platforms.

Searching on the web, I have found a Ruby interface for the Japanese  
version of MBROLA.

\_[http://raa.ruby-lang.org/project/mudatts/\_](http://raa.ruby-lang.org/project/mudatts/_)  
([http://raa.ruby-lang.org/project/mudatts/](http://raa.ruby-lang.org/project/mudatts/))

Essentially, it involves constructing a file of phonemes (or sounds)  
from  
diphones  
(that’s a combination of two sounds). This is what you have to do for  
any  
language.  
This file does some adaptation of a text that you want to read out, such  
as  
converting  
numbers to words.

I haven’t tested the Ruby program (as I don’t speak Japanese, I can’t  
judge  
anyway), but maybe it can be adapted to your needs.

I think you’d also find the authors of MBROLA helpful - they’ll  
certainly be  
grateful  
for some additional Indian languages profiles.

Best regards,

Axel
