Microsoft 语音 NuGet 包在 C++ 项目中不起作用

Microsoft speech NuGet package doesn't work in C++ project

我正在尝试在 C++ 项目中使用 Azure 认知服务演讲 api,并按照说明通过 this page. After that, I followed one of the basic tutorials 安装 NuGet 包 (Microsoft.CognitiveServices.Speech),但是我的C++ 项目无法识别 Microsoft 名称空间,例如

似乎没有向项目添加任何引用,也没有向外部依赖项目录添加任何文件。我做错了什么?

提前致谢:)

我只看到你#include <iostream>。实际上,iostream header 不包含任何 Microsoft 名称空间。如 Get started with speech translation 中所述,您需要 #include <speechapi_cxx.h>.

Get started with speech-to-text documentation: it doesn't contain the Import dependencies section similar to the one in the Get started with text-to-speech and other related documentation pages there (like Speech Translation, Speaker Recognition中好像有遗漏)。您可能需要向 Microsoft 提交错误报告。