Skip to the content.

n16n-gensound-mstxt2speech

Batch file to generate ncsound-german.jar (8.5 MB) for the NumericalChameleon (http://NumericalChameleon.net) in order to enable the feature to speak numbers in German via the audio card. It uses the Microsoft Text to Speech Engine to generate the required syllables.

Due to legal issues it is not allowed to redistribute the voice files produced by the Microsoft Text to Speech Engine. However, for personal use you can generate all the required syllables by your own by calling the batch script.

Software Requirements

Setup

Run

Result

How to use the result in the NumericalChameleon

Copy the .jar file to the lib folder of your NumericalChameleon installation and restart the NumericalChameleon. Select the category “Spoken Numbers” and select German for the target, click on the Play Button in order to hear numbers in German via the audio card.

Implementation details

The n16-gensound-mstxt2peech.bat takes the german.txt file and for each line in that file it generates syllables in .wav format by calling PTTS that uses the Microsoft Text to Speech Engine. Before that we need to patch the .vbs code from PTTS slightly so that the generated filenames depend on input. This is done by calling the patch-ptts.bat. Next it trims the silence from the generated .wav files by calling SOX and it packs the .wav files into a .jar by calling the jar command from the JDK.