You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry for my poor English, I will make it simple
I successfully ran the example,But when I set inactivityTimeout to 1 second, I want to automatically end the connection or catch error code, but the application crashes
heres the code:
E/AndroidRuntime: FATAL EXCEPTION: AudioToWebSocketThread
Process: com.ibm.watson.developer_cloud.android.myapplication, PID: 3228
java.lang.IllegalMonitorStateException
at java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(ReentrantLock.java:156)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(AbstractQueuedSynchronizer.java:1291)
at java.util.concurrent.locks.ReentrantLock.unlock(ReentrantLock.java:466)
at com.ibm.watson.developer_cloud.android.library.audio.MicrophoneCaptureThread.end(MicrophoneCaptureThread.java:138)
at com.ibm.watson.developer_cloud.android.library.audio.MicrophoneInputStream.close(MicrophoneInputStream.java:109)
at com.ibm.watson.speech_to_text.v1.websocket.SpeechToTextWebSocketListener.sendInputStream(SpeechToTextWebSocketListener.java:213)
at com.ibm.watson.speech_to_text.v1.websocket.SpeechToTextWebSocketListener.access$100(SpeechToTextWebSocketListener.java:42)
at com.ibm.watson.speech_to_text.v1.websocket.SpeechToTextWebSocketListener$1.run(SpeechToTextWebSocketListener.java:168)
Sorry for my poor English, I will make it simple
I successfully ran the example,But when I set inactivityTimeout to 1 second, I want to automatically end the connection or catch error code, but the application crashes
heres the code:
and crash log:
Crash code:
MicrophoneCaptureThread
MicrophoneInputStream
Please help me,thank you very much
The text was updated successfully, but these errors were encountered: