Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
633 views
in Technique[技术] by (71.8m points)

java - FreeTTS mbrola not able to find path

When I try to use the FreeTTS library I get the error:

Could not validate any MBROLA voices at

Some/Location/That/IThought/Held/mbrola

Make sure you FULLY specify the path to
the MBROLA directory using the mbrola.base
system property.

I'm using System.setProperty("mbrola.base", "Path/here"); to set mbrola.base but I have no idea how to point to the path or set up mbrola. Here's my project setup, I'm using processing.

+SketchBook
++AI
+++Src.pde
+++data
++libraries
+++freetts-1.2
++++lib
+++++mbrola
++++mbrola
+++++mbrola

I'm running windows 8 so idk if that has any effect..

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I had the same error, after installing MBROLA FreeTTS ran on my Windows 8 box.

Download MBROLA Files

If you haven't already you will need to download 2 binary and 3 voice zips from MBROLA:

  • PC/Windows
  • PC/DOS
  • us1: American English Female
  • us2: American English Male
  • us3: American English Male

Then follow the Setting up MBROLA for FreeTTS guide.

Setup MBROLA Voices

Unzip the mbr301d files and copy the folders us1, us2 & us3 into the unzipped mbr301d folder:

Directory of C:UsersPhilDownloadsmbr301d

[mbr302a]    
mbrola.exe   
readme.txt
[us1]        
[us2]        
[us3]

Test MBROLA Voices

Test the MBROLA voices from the command prompt:

cd C:UsersPhilDownloadsfreetts-1.2.2-binfreetts-1.2
java -Dmbrola.base="C:UsersPhilDownloadsmbr301d" -jar lib/mbrola.jar

You should see a description of each voice, e.g:

Name: mbrola_us1
Description: MBROLA Voice us1
Organization: mbrola
Domain: general
Locale: en_US
Style: standard
Gender: FEMALE
Age: YOUNGER_ADULT
Pitch: 180.0
Pitch Range: 22.0
Pitch Shift: 1.0
Rate: 150.0
Volume: 1.0

Test FreeTTS Synthesis

At the command prompt run:

java -Dmbrola.base="C:UsersPhilDownloadsmbr301d" -jar lib/freetts.jar -voice kevin16 -dumpAudio 42.wav -text forty two
42.wav    

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...