Failed to open listening state
ExampleStreaming throws this
[04/08/2019 22:10:00][SpeechToText.OnListen()][ERROR] Failed to enter listening state.
UnityEngine.Debug:LogError(Object)
IBM.Cloud.SDK.Debug.DebugReactor:ProcessLog(LogRecord) (at C:/Users/Correy Kowall/Desktop/unity/Beacon/IBM/Assets/unity-sdk-core-0.1.0/unity-sdk-core-0.1.0/Debug/DebugReactor.cs:60)
IBM.Cloud.SDK.LogSystem:ProcessLog(LogRecord) (at C:/Users/Correy Kowall/Desktop/unity/Beacon/IBM/Assets/unity-sdk-core-0.1.0/unity-sdk-core-0.1.0/Logging/Logger.cs:207)
IBM.Cloud.SDK.Log:Error(String, String, Object[]) (at C:/Users/Correy Kowall/Desktop/unity/Beacon/IBM/Assets/unity-sdk-core-0.1.0/unity-sdk-core-0.1.0/Logging/Logger.cs:280)
IBM.Watson.SpeechToText.V1.SpeechToTextService:OnListen(AudioData) (at C:/Users/Correy Kowall/Desktop/unity/Beacon/IBM/Assets/unity-sdk-3.1.0/unity-sdk-3.1.0/Scripts/Services/SpeechToText/V1/SpeechToTextServiceExtension.cs:361)
IBM.Watsson.Examples.
I am running Unity 2018,3,8f1 for PC Standalone
The bug is intermittent, seemingly unpredictable. The example scene does however transcribe some speech to text. It always ends the process with that error.
I encounter the same issue with Unity 2018.3.12f1 and Unity 2018.3.14f1. Is there any way to try catch this error and avoid the process to be stopped ?
@sebastienspas Thanks for the update, can you provide more info about your scenario, I was not able to re-create the issue.
@mamoonraja I can corroborate these reports of "Failed to enter listening state" on Unity 2018.3.5f1 by simply running the (unchanged, current release) of ExampleStreaming scene and speaking in short bursts for 30-60s.
However! It seems like the DetectSilence flag is connected to this issue as setting it to false will prevent this error. While I don't much about the Watson API, I suspect the issue might be upstream where the service times out when given audio signal that has been filtered for silence.
This issue has been automatically marked as stale because it has had no recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I solved Error
I encounter the same issue with Unity 2018.3.14f1. I just change player settings and then works fine file -> build settings - > player settings -> Other Settings Configuration Scripting runtime version : .Net 4x equivalent API Compatibility level: .Net 4x
