I'm trying to use the Azure cognitive services speech api in a C project and followed the instructions to install the NuGet package (Microsoft.CognitiveServices.Speech) via
No references seem to be added to the project and no files were added in the external dependencies directory. What am I doing wrong?
Thanks in advance :)
CodePudding user response:
I see you only #include <iostream>
. Indeed, the iostream
header does not contain any Microsoft
namespaces. As is described in Get started with speech translation, you need to #include <speechapi_cxx.h>
.
There seems to be an omission in the 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, etc.). You may want to submit a bug report to Microsoft.