yandex-cloud / python-sdk

Yandex.Cloud Python SDK
MIT License
74 stars 23 forks source link

Question about STT v3 async stream recognize #107

Open skinnynpale opened 1 month ago

skinnynpale commented 1 month ago

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?

opportunity356 commented 2 weeks ago

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

Noxoomo commented 2 weeks ago

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

skinnynpale commented 1 week ago

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

i need an async

opportunity356 commented 1 week ago

i need an async

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