watson-developer-cloud / unity-sdk

:video_game: Unity SDK to use the IBM Watson services.
Apache License 2.0
569 stars 206 forks source link

[speech-to-text]OnlistenMessage Error : Expected JSON header message before receiving binary data. #444

Closed JayaSaiSontineni closed 6 years ago

JayaSaiSontineni commented 6 years ago

Remember, an issue is not the place to ask questions. You can use Stack Overflow for that, or you may want to start a discussion on the dW Answers.

Before you open an issue, please check if a similar issue already exists or has been closed before.

When reporting a bug, please be sure to include the following:

When you open an issue for a feature request, please add as much detail as possible:

JayaSaiSontineni commented 6 years ago

watsonsdkerror

tonygod commented 6 years ago

I am seeing this same error today with a project that was previously not having a problem. Is the service down/not responding?

mediumTaj commented 6 years ago

I cannot reproduce this. Please resubmit if you have steps to reproduce.

JayaSaiSontineni commented 6 years ago

Without providing any solution or contacting back the issue posted person, I don't think it is the right way to close the issue @mediumTaj . Can you please provide me a better solution and then try to close the issue

mediumTaj commented 6 years ago

@JayaSaiSontineni If you can provide steps to reproduce I may be able to help. Simply submitting a screenshot of the error doesn't help much. I have been using the service without any issues all last week.

scottdangelo commented 6 years ago

@JayaSaiSontineni I had this problem and it was caused by the microphone on my headset not being active. I recommend that you check the mic, and perhaps the settings in Windows using the Sound Troubleshooter.

nataliasb commented 5 years ago

I have this same issue. I have no way of sharing how to reproduce because it was all of a sudden. Everything was working well and now it outputs this error everytime I start my unity project. I have to play and pause multiple times to make it work. I'm on a macbook pro and my mic is working well.

Chapmania commented 5 years ago

I am having the same issues today on my Vive headset. The microphone is fine!

Any solutions?

mediumTaj commented 5 years ago

Are you sure it’s not this error? https://github.com/watson-developer-cloud/unity-sdk/issues/527

Chapmania commented 5 years ago

Actually... still having the same issue. Below is the error log -

[03/06/2019 23:14:13][SpeechToText.OnListenMessage()][ERROR] Error: <2019-03-06 23:14:13,250 api/src/rapi_common.cc:127> RD_ERROR RAPI: "RReco" -> "settings" -> "nbest_size" -> Integer 0 is lower than 1.

UnityEngine.Debug:LogError(Object) IBM.Watson.DeveloperCloud.Debug.DebugReactor:ProcessLog(LogRecord) (at Assets/Unity Watson/Scripts/Debug/DebugReactor.cs:60) IBM.Watson.DeveloperCloud.Logging.LogSystem:ProcessLog(LogRecord) (at Assets/Unity Watson/Scripts/Logging/Logger.cs:206) IBM.Watson.DeveloperCloud.Logging.Log:Error(String, String, Object[]) (at Assets/Unity Watson/Scripts/Logging/Logger.cs:279) IBM.Watson.DeveloperCloud.Services.SpeechToText.v1.SpeechToText:OnListenMessage(Message) (at Assets/Unity Watson/Scripts/Services/SpeechToText/v1/SpeechToText.cs:866) IBM.Watson.DeveloperCloud.Connection.c__Iterator0:MoveNext() (at Assets/Unity Watson/Scripts/Connection/WSConnector.cs:400) IBM.Watson.DeveloperCloud.Utilities.Routine:MoveNext() (at Assets/Unity Watson/Scripts/Utilities/Runnable.cs:131) UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

mediumTaj commented 5 years ago

https://github.com/watson-developer-cloud/unity-sdk/issues/527#issuecomment-469763327

mediumTaj commented 5 years ago

https://github.com/watson-developer-cloud/unity-sdk/issues/527#issuecomment-470194920