python-sdk icon indicating copy to clipboard operation
python-sdk copied to clipboard

Question about STT v3 async stream recognize

Open skinnynpale opened this issue 1 year ago • 4 comments

Hello, I have a question about STT v3, I don’t understand how to implement asynchronous recognition in real time, I see there is an AsyncRecognizerStub, but I don’t see the RecognizeStreaming method, how is this done on v3? or should I switch to v2?

skinnynpale avatar Jun 02 '24 16:06 skinnynpale

Hi! According to proto specification, there is no such method https://github.com/yandex-cloud/cloudapi/blob/master/yandex/cloud/ai/stt/v3/stt_service.proto#L29

opportunity356 avatar Jun 18 '24 17:06 opportunity356

For real-time recognition you should use Recognizer with RecognizeStreaming method rpc RecognizeStreaming (stream StreamingRequest) returns (stream StreamingResponse) {

Noxoomo avatar Jun 18 '24 17:06 Noxoomo

For real-time recognition you should use Recognizer with RecognizeStreaming method rpc RecognizeStreaming (stream StreamingRequest) returns (stream StreamingResponse) {

i need an async

skinnynpale avatar Jun 23 '24 15:06 skinnynpale

i need an async

Unfortunately, current version of python-sdk does not support python's async. In future we will add this opportunity

opportunity356 avatar Jun 24 '24 11:06 opportunity356