Azure-Samples / Cognitive-Speech-STT-iOS

iOS SDK for the Microsoft Speech-to-Text API, part of Cognitive Services
https://www.microsoft.com/cognitive-services/en-us/speech-api
Other
49 stars 21 forks source link

Trying to connect to cris.ai #46

Open eatskolnikov opened 6 years ago

eatskolnikov commented 6 years ago

Hello! I'm trying to connect to cris.ai using the framework but I can't and I guess must be missing something.

This is what I'm doing:

  1. When creating the instance of the DataClient I pass the last parameter for URL wss://westus.stt.speech.microsoft.com/speech/recognition/conversation/cognitiveservices/v1?
  2. After I have my instance created I change the authenticationProvider to https://westus.api.cognitive.microsoft.com/sts/v1.0/issueToken
  3. My primary key is set correctly

But when the upload of the audio starts I keep getting this issue:

Setting format for audio stream, 00000001 Sent first chunk of audio stream, requestId='d5d9e94a-76fc-275a-e841-31f6a574d5ed' originating error 0x8e200003 originating error 0x8e200003 WebSocket closed unexpectedly, status: 0 Closing web socket channel Web socket channel closed (state = 0) CU Client connection dropped ConnectionStateChanged Web socket handshake failed, hr=8E200003 web socket message delivery failed, hr=8E200003 Web socket channel already closed. Message: 'connection.context' has 4 remaining transmit attempts. Retrying message, name='connection.context'

screen shot 2018-09-07 at 12 55 58 am

I have read the documentation here https://docs.microsoft.com/en-us/azure/cognitive-services/custom-speech-service/customspeech-how-to-topics/cognitive-services-custom-speech-use-endpoint and checked the code to see what could be going on but I still can't figure it out.

rohitgadia commented 6 years ago

Any luck with this?

eatskolnikov commented 6 years ago

@rohitgadia in the end I had to implement the Bing speech protocol using websockets.

lepeanco commented 6 years ago

Hey guys, they've release a new SDK