【问题标题】:Unity 3D Watson speech to text Error: '>' not supported between instances of 'float' and 'NoneType' UnityEngine.Debug:LogError(Object)Unity 3D Watson 语音转文本错误:“float”和“NoneType”实例之间不支持“>”UnityEngine.Debug:LogError(Object)
【发布时间】:2020-10-17 16:20:37
【问题描述】:

我正在尝试在 Unity 3D 上使用 watson SpeechToText,但出现此错误。

[06/27/2020 02:30:22][SpeechToText.OnListenMessage()][ERROR] Error: '>' not supported between instances of 'float' and 'NoneType'
UnityEngine.Debug:LogError(Object)
IBM.Cloud.SDK.Debug.DebugReactor:ProcessLog(LogRecord) (at Assets/unity-sdk-core-1.2.0/Debug/DebugReactor.cs:60)
IBM.Cloud.SDK.LogSystem:ProcessLog(LogRecord) (at Assets/unity-sdk-core-1.2.0/Logging/Logger.cs:207)
IBM.Cloud.SDK.Log:Error(String, String, Object[]) (at Assets/unity-sdk-core-1.2.0/Logging/Logger.cs:280)
IBM.Watson.SpeechToText.V1.SpeechToTextService:OnListenMessage(Message) (at Assets/unity-sdk-4.5.0/Scripts/Services/SpeechToText/V1/SpeechToTextServiceExtension.cs:651)
IBM.Cloud.SDK.Connection.<ProcessReceiveQueue>d__49:MoveNext() (at Assets/unity-sdk-core-1.2.0/Connection/WSConnector.cs:430)
IBM.Cloud.SDK.Utilities.Routine:MoveNext() (at Assets/unity-sdk-core-1.2.0/Utilities/Runnable.cs:131)
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

有人可以帮帮我吗?

【问题讨论】:

  • 我也在寻找答案。几个月前它运行良好,但现在不行了。

标签: c# unity3d ibm-watson


【解决方案1】:

在对后端进行新更改后,旧版本中的某些内容发生了故障。 更新到最新的 SDK。

在撰写此评论时,这些是: unity-sdk-4.7.1 unity-sdk-core-1.2.1

你可以在这里找到最新的: https://github.com/watson-developer-cloud/unity-sdk/releases/latest

【讨论】:

    猜你喜欢
    • 2020-02-12
    • 2020-05-05
    • 2021-03-18
    • 1970-01-01
    • 2021-05-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-07-28
    相关资源
    最近更新 更多