【问题标题】:Steps to create a pocketsphinx wrapper in C# [closed]在 C# 中创建 pocketsphinx 包装器的步骤 [关闭]
【发布时间】:2017-06-19 14:18:17
【问题描述】:

pocketsphinx 有一个 SWIG 接口“pocketsphinx.i”来生成多种语言的包装器,其中之一是 C#。

目前尚不清楚如何在 Windows 中运行 swig 命令以及如何在 NetCore C# 项目中使用生成的库。

生成包装库并在 C# NetCore 应用程序中使用它需要哪些步骤?

【问题讨论】:

标签: c# wrapper pocketsphinx


【解决方案1】:

在 github 中有一个基于 swig 的官方包装器,您可以使用 Make 为 Linux 编译它或使用 CMake 为 Microsoft 编译它:

https://github.com/cmusphinx/pocketsphinx/tree/master/swig/csharp

你也可以检查

https://github.com/cmusphinx/pocketsphinx-unity-demo

【讨论】:

  • 你能说得再详细一点吗?您能否提供一个示例,说明如何运行 swig 命令,然后在 c# 中使用生成的库?
【解决方案2】:

您可以使用 SWIG 为 PocketSphinx 库生成 C# 包装器,就像这里所做的那样:https://github.com/cmusphinx/pocketsphinx-unity-demo/tree/master/Assets/Pocketsphinx

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-03-05
    • 2014-01-06
    • 2011-02-07
    • 1970-01-01
    • 1970-01-01
    • 2022-01-07
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多