本文介绍了FreeTTS mbrola无法找到路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试使用FreeTTS库时,我收到错误:

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.

我正在使用 System.setProperty(mbrola.base,路径/这里); 设置 mbrola.base 但我不知道如何指向路径或设置mbrola。这是我的项目设置,我正在使用处理。

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

我正在运行Windows 8如果有任何影响,那么idk ..

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

推荐答案

安装MBROLA后,我遇到了同样的错误在我的Windows 8机器上运行。

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

下载MBROLA文件

如果您还没有,则需要从:

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


  • PC / Windows

  • PC / DOS

  • us1:美国英语女性

  • us2:美国英语男性

  • us3:美国英语男性

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

然后按照指南。

设置MBROLA音色

解压缩mbr301d文件并复制文件夹us1,us2& us3进入解压缩的mbr301d文件夹:

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

Directory of C:\Users\Phil\Downloads\mbr301d

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

测试MBROLA音色

测试MBROLA来自命令提示符的声音:

Test the MBROLA voices from the command prompt:

cd C:\Users\Phil\Downloads\freetts-1.2.2-bin\freetts-1.2
java -Dmbrola.base="C:\Users\Phil\Downloads\mbr301d" -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

测试FreeTTS综合

在命令提示符下运行:

java -Dmbrola.base="C:\Users\Phil\Downloads\mbr301d" -jar lib/freetts.jar -voice kevin16 -dumpAudio 42.wav -text forty two
42.wav    

这篇关于FreeTTS mbrola无法找到路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-14 18:42