No Cognitive Services in the Microsoft namespace?

Viewed 635

I am getting started with the Azure services inside of Unity and am getting the error:

Assets\Scripts\HelloWorld.cs(8,17): error CS0234: The type or namespace name 'CognitiveServices' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)

This might be something simple but ive put the key and regions inside the SpeechConfig and my namespaces are as follows: ...

using UnityEngine;
using UnityEngine.UI;
using Microsoft.CognitiveServices.Speech;
#if PLATFORM_ANDROID
using UnityEngine.Android;
#endif
#if PLATFORM_IOS
using UnityEngine.iOS;
using System.Collections;
#endif

...

Have the namespaces changed?

1 Answers

You have to reference the namespace. If you are in Visual Studio, in your project files, you should see 'References'. Right click and Add Reference.

Related