alphacep / vosk-server

WebSocket, gRPC and WebRTC speech recognition server based on Vosk and Kaldi libraries
Apache License 2.0
882 stars 243 forks source link

Fix invalid resampler API #180

Closed niris closed 1 year ago

niris commented 2 years ago

According to https://pyav.org/docs/develop/api/audio.html#module-av.audio.resampler the returned value is a list. The code is updated to follow the API

nshmyrev commented 1 year ago

There are other issues with to_bytes as well, see https://github.com/PyAV-Org/PyAV/issues/1022. I pushed a proper fix, it should be working now

nshmyrev commented 1 year ago

thanks a lot for your submission!