UTITILITY.ZIP

This file contains some freeware that might be helpful to 
MBROLA users : 

1.PLAYSND.CC

Playsnd.cc is a Sun utility to listen to speech files at 16 kHz.
To compile it, simply type : 

   gcc playsnd.cc -o playsnd

(NB : other compilers should do, too).

Then, assuming you have properly installed the FR1 database,
try with : 

   mbrola fr1 bonjour.pho - | playsnd -

You should hear the word 'bonjour' as passed by playsnd to the 
audio device. No intermediate file was created.

2. RAW2SUN.C

Raw2Sun.c is a simple C program written for (old ANSI) VMS compilers.
It accepts a raw sample file (16 bits integer) and outputs a .au
file. The sampling frequency can be passed as a parameter.

3.MBR_OLA.COM

Mbr_ola.com is a VMS batch file that accepts .pho command files 
(like mbrola itself) and converts the resulting speech file to
.au format. It Makes use of RAW2SUN.C, which should be compiled
first.

4.MBROLA.PL

A quick perl script written by Jason Burns for the SGI version of 
mbrola.

5. TCTS2SAM.C

A short C program written by V. Pagel to transform old TCTS phonetic 
alphabet (as used in version 1.02 of the software) into SAMPA (as 
used in version 2.00). This program uses pipes only. It should be 
used to transform old .pho file "on the fly" and send the result to
mbrola.

USAGE:  tcts2sam < old.pho > new.pho

6. PROSAMPA

A script by :
Robert Espesser
Laboratoire Parole et Langage, CNRS
Universite de Provence
29 AvR schumann 13621 AIX
FRANCE
e_mail:Robert.Espesser@lpl.univ-aix.fr

This ksh script transcodes a ".pho" format file with phonemes coded 
in SAMPA into a ".pho" format file  with phonems coded in 
"mbrola" code

This script translates the sampa code "J" into the two phonems 
"n" and "y" .

Any special or new code can be added by extending the associative 
array "mbpr" in the nawk script which is embedded in prosampa.
statistics about recoded items may be obtained on the
standard error with the -v option.
 
Empty lines, or lines beginning with "//"  or "/* or ";" are
replaced by a comment line ";"

prosampa -help 
returns the usage in english

prosampa -usage 
donne l'usage en francais

NB : This script works work well on Solaris 2.x , x >= 3

6. F0_ASCII

A script by :
Robert Espesser
Laboratoire Parole et Langage, CNRS
Universite de Provence
29 AvR schumann 13621 AIX
FRANCE
e_mail:Robert.Espesser@lpl.univ-aix.fr

This script maps a f0 file in ascii onto a ".pho" file.
The f0 file is a time serie, in ascii format, with one f0 value (in Hz)
on each line.The default value of the frame interval is 10 ms.
Typically, this f0 file is  the output of an f0 detection tool.

The two variables pas_f0 and  delta_f0 are related each other:
pas_f0 	is the frame interval of the f0 file (default value : 10 ms)
delta_f0 is an undersampling factor used to avoid the specification
         of  too many f0 target points to the synthesizer.
         default value: 2
         
These default values leed to  an interval of 20 ms between two f0 target
points. This value is a minimum.

f0_ascii -help 
returns the usage in english

f0_ascii -usage 
donne l'usage en francais

It is trivial to modify this script in order to deal with a f0 file
with an other format (binary , etc..) : you have only to find the 
right filter...
It is probably easy to modify this script in order to deal with a
f0 file containing a set of time ordered target points.

NB : This script works work well on Solaris 2.x , x >= 3
