Using Speech SDK of Cognitive Services on Unity with .NET Standard 2.0

Justin Liong Ching Hui 1 Reputation point
2022-05-06T13:27:11.55+00:00

Hello, I am trying to implement the Speech SDK (specifically using the Pronunciation Assessment service so I can't use REST - there doesn't seem to be any for it) on Unity 2020.3;

I referred to the instructions under the ReadME file from the link:
https://github.com/Azure-Samples/cognitive-services-speech-sdk/tree/master/quickstart/csharp/unity/from-microphone
(inclusive of the Plugin downloads and import into unity's "Assets/Plugin" path)

However, the instructions included that I need to change my Scripting backend to IL2CPP and Api Compatibility Level to .NET 4.x;
Which I don't wish to change as it affects other packages I have used in the project. I'm using Mono & .NET standard 2.0 for the settings as of now.

I have tried importing only the DLL file from NUGET package inside the netstandard2.0 folder into the project, the file name of which is Microsoft.CognitiveServices.Speech.csharp.dll, but it gives me an error:
"DllNotFoundException: Microsoft.CognitiveServices.Speech.core.dll"

Is there any way to work around this?

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.