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

SpeechToText.OnListenMessage() not working #644

Closed longnh176040 closed 4 years ago

longnh176040 commented 4 years ago

Hi guys,

Normally, the speech to text works fine for me. But today, I got a strange problem. Whenever the StartRecording() function is called, it gave me an ERROR like this "[SpeechToText.OnListenMessage()][ERROR] Error: '>' not supported between instances of 'float' and 'NoneType'. " I'm using unity 2019.2.12f1, and I haven't fixed any scripts. So what is the main problem and how can I fix it ? Please help me !!!

Screenshot (1)

mamoonraja commented 4 years ago

Hi @longnh176040 , thanks for opening the issue, which version of SDK are you using? and are you using the example code as is, or you have made customizations?

longnh176040 commented 4 years ago

Hi @longnh176040 , thanks for opening the issue, which version of SDK are you using? and are you using the example code as is, or you have made customizations?

I'm using unity 2019.2.12f1 and using the example code, haven't changed anything :( . I've been searching that error on google for a while, some answers said that error came from web socket or callback or something. But I still can't find out the issue and how to fix it...

mamoonraja commented 4 years ago

I meant the SDK version, not the Unity version. Also, which plan of STT service are you using? lite or standard?

longnh176040 commented 4 years ago

I meant the SDK version, not the Unity version. Also, which plan of STT service are you using? lite or standard?

can u elaborate on that ? what do you mean by "SDK version", of what ? Im using the lite service. I also thought that my STT is expired, but I tried another one from a different account and still got the same error....

longnh176040 commented 4 years ago

if you are asking about the unity sdk version, I dunno what it is. I downloaded both unity-sdk and unity-sdk-core from March. Did you just release a new sdk ? Does it affect to the one that I am using ?

DOUCOUREALY commented 4 years ago

@longnh176040 @mamoonraja please can someone help me . I have the same error. Capture

mamoonraja commented 4 years ago

@longnh176040 there's not breaking change since March so it should not affect it. My guess was around you running out of lite plan initially. But @DOUCOUREALY is also running into the issue, so let me see debug it once and I'll get back to you.

dombarnard1 commented 4 years ago

I've getting the same issue too. I'm not on the Lite plan. Issue started only a few days ago.

DOUCOUREALY commented 4 years ago

Update the version of sdk To the last. It work for me.

Le lun. 29 juin 2020 à 15:23, dombarnard1 notifications@github.com a écrit :

I've getting the same issue too. I'm not on the Lite plan.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/watson-developer-cloud/unity-sdk/issues/644#issuecomment-651155027, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQDEFQ7KTZ4GYWZS542L3NDRZCPUVANCNFSM4OGMWXJQ .

dombarnard1 commented 4 years ago

Thanks DOUCOUREALY. I updated the SDK to the latest (unity-sdk-4.7.1) and there are no more issues.

DOUCOUREALY commented 4 years ago

What is exatly your error ?

Le lun. 29 juin 2020 à 15:37, dombarnard1 notifications@github.com a écrit :

Thanks DOUCOUREALY. I updated the SDK to the latest (unity-sdk-4.7.1) and there are no more issues.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/watson-developer-cloud/unity-sdk/issues/644#issuecomment-651163455, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQDEFQ6ZNUEIUK32PZRJ4GLRZCRLTANCNFSM4OGMWXJQ .

dombarnard1 commented 4 years ago

I have no errors now, the update fixed the error I was having (which was the same as you had)

DOUCOUREALY commented 4 years ago

Si it's ok now ?

Le lun. 29 juin 2020 à 16:06, dombarnard1 notifications@github.com a écrit :

I have no errors now, the update fixed the error I was having (which was the same as you had)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/watson-developer-cloud/unity-sdk/issues/644#issuecomment-651180714, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQDEFQ2EIKCKTG3ZKC2ABSDRZCUVTANCNFSM4OGMWXJQ .

mamoonraja commented 4 years ago

@dombarnard1 @DOUCOUREALY thanks for confirming! @longnh176040 please re-open if you see the issue again.

dombarnard1 commented 4 years ago

@DOUCOUREALY yes, all is okay now thank you.

DOUCOUREALY commented 4 years ago

You are welcome .

Le lun. 29 juin 2020 à 16:15, dombarnard1 notifications@github.com a écrit :

@DOUCOUREALY https://github.com/DOUCOUREALY yes, all is okay now thank you.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/watson-developer-cloud/unity-sdk/issues/644#issuecomment-651186369, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQDEFQYIEXEKAATOA2FRMTTRZCVZVANCNFSM4OGMWXJQ .