简体   繁体   English

尝试使用法国声学模型

[英]Trying to use a french acoustic model

I'm trying to use a french acoustic model with OpenEars. 我正在尝试在OpenEars中使用法国声学模型。 The answer of Ramshad is very interesting. 拉姆沙德答案很有趣。 But I have downloaded French Acoustic Models and I can't figure out how to use it... 但是我已经下载了法国声学模型,我不知道该如何使用...

I have made a bundle with those files and I have added it to my project and I call generateLanguageModelFromArray method. 我已经将这些文件捆绑在一起,并将其添加到项目中,然后调用generateLanguageModelFromArray方法。 But when I open the generated .dic file, the phonetic chars seem to be wrong. 但是,当我打开生成的.dic文件时,语音字符似乎是错误的。 If I try to speak, it doesn't recognize anything. 如果我尝试说话,它什么也听不见。

The log is the following : "Pocketsphinx has detected a period of silence, concluding an utterance." 日志如下:“ Pocketsphinx已检测到一段沉默,包括一段话语。”

Could someone explain me a bit better how should I use it ? 有人可以更好地解释我,我应该如何使用它?

Thanks 谢谢

OpenEars developer here. OpenEars开发人员在这里。 Since OpenEars doesn't support French, you can't use LanguageModelGenerator to generate language models or grammars, since it only supports the phonemes in English and Spanish. 由于OpenEars不支持法语,因此您不能使用LanguageModelGenerator生成语言模型或语法,因为它仅支持英语和西班牙语的音素。

You can create a language model and phonetic dictionary that work with your acoustic model by hand by referencing the phonemes which are visible in the phonetic dictionary that ships with the French acoustic model from the CMU site, but you should test those three elements out in a Linux (or Linux VM) Pocketsphinx install and verify that they work perfectly in Pocketsphinx before putting yourself through the stress of troubleshooting them in a framework which doesn't support the language and assumes that it has a language as input that it knows about. 您可以通过参考CMU网站中法语声学模型附带的语音词典中可见的音素,来手动创建与声学模型一起使用的语言模型和语音词典,但是您应该在一个CMU网站中测试这三个元素Linux(或Linux VM)Pocketsphinx会安装并验证它们是否可以在Pocketsphinx中正常工作,然后再将自己置于不支持该语言的框架中,并假设它们具有一种已知的输入语言,从而对它们进行故障排除。

At the point that it's working well outside of OpenEars, please feel free to come over to the OpenEars support forums and get assistance from me for bringing your known-working acoustic model, language model and phonetic dictionary into OpenEars. 当它在OpenEars之外运行良好时,请随时进入OpenEars支持论坛,并获得我的帮助,以将您已知有效的声学模型,语言模型和语音词典引入OpenEars。 It would also be helpful to take a look at how OpenEars logging works, so you can provide informative logs there. 查看OpenEars日志记录的工作方式也将很有帮助,因此您可以在此处提供信息丰富的日志。 In the case you have right now, an informative and probably pretty specific error about the acoustic model and language model is probably being logged in the verbose logging output for you to see in your troubleshooting. 在您现在拥有的情况下,有关声学模型和语言模型的信息性且可能非常具体的错误可能已记录在详细的日志输出中,以供您在故障排除中查看。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM