gpt4 book ai didi

c - 如何在应用程序中使用 Sphinx3

转载 作者:太空宇宙 更新时间:2023-11-04 02:15:15 25 4
gpt4 key购买 nike

我使用了一段时间的 Sphinx4,它确实符合我的需要。我加载一个识别器,将音频数据传递给它并在我的应用程序中使用识别的字符串。

现在我正在开发一个 C 应用程序(不幸的是 C++ 不是一个选项),我需要类似的东西并且认为我可以使用用 C 编写的 Sphinx3。

问题是我真的不知道它是如何在应用程序中使用的,也没有“Hello World”——Sphinx4 提供的示例。

我已经编译并安装了 sphinxbase 和 sphinx3,现在我可以在我的应用程序中包含 sphinx 头文件。

现在回答我的问题:

  • 是否有在 C 环境中使用 sphinx3 的“简单”且文档齐全的示例应用程序?
  • 如何加载 sphinx3 引擎并使用我的二进制音频数据调用识别器?
  • 或者:我是否需要启动类似“sphinx3_decode”的应用程序并从我自己的应用程序中调用它?如果是这样,是否有一个示例应用程序?

提前致谢!

最好的问候,罗伯特

最佳答案

推荐使用 Sphinx3。来自网站:

Sphinx-3 is CMU’s large vocabulary speech recognition system. It’s older C based decoder that we continue to maintain. It’s planned to make it obsolete in the future, it’s still most accurate decoder for large vocabulary tasks. We are using it as a baseline to check the recognizer accuracy. This decoder is only intended for researchers who want to evaluate bleeding edge methods in ASR like tree search method.

如果你需要使用解码器,你应该使用 pocketsphinx。您可以在网站上找到教程和 API 文档

http://cmusphinx.sourceforge.net/wiki/tutorialpocketsphinx

http://cmusphinx.sourceforge.net/api/pocketsphinx/pocketsphinx_8h.html

关于c - 如何在应用程序中使用 Sphinx3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8743564/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com