【发布时间】:2020-11-28 07:49:13
【问题描述】:
我开始使用 Unity 中的 Azure 服务并收到错误消息:
Assets\Scripts\HelloWorld.cs(8,17):错误 CS0234:命名空间“Microsoft”中不存在类型或命名空间名称“CognitiveServices”(您是否缺少程序集引用?)
这可能很简单,但我将键和区域放在 SpeechConfig 中,我的命名空间如下: ...
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
...
命名空间有变化吗?
【问题讨论】:
标签: c# unity3d namespaces speech-to-text azure-cognitive-services