Search code examples
apiazurespeech-to-textunity-game-engineazure-api-apps

Using Oxford Speech API in unity


I want to integrate the oxford speech recognition API in a project in unity. The problem is that the source code in the sample use .NET 4 libraries while unity only support until 3.5 (and only until .NET 2 on phones as far as i know) Did someone found a way to make it work?

Thanks!


Solution

  • The sample code you mention is the SDK sample I believe. The functions that come with the SDK is just wrappers around the actual REST API requests. You don't necessarily need to use them. Instead I suggest you give the REST API itself a try. You can find the info below.

    https://www.projectoxford.ai/speech

    And here is sample usage for your convenience

    API testing console.

    One more thing to remember is the Auth token expires every 10 mins so it's a good idea to renew every 9 mins.

    Hope this helps!