alesaccoia / VoiceStreamAI

Near-Realtime audio transcription using self-hosted Whisper and WebSocket in Python/JS
MIT License
736 stars 106 forks source link

Samples Width defnition #33

Open kenho211 opened 4 months ago

kenho211 commented 4 months ago

Wondering if the documentation of samples_width is correct here.

https://github.com/alesaccoia/VoiceStreamAI/blob/465403b7039d1f54ba6b8d69c69c40b55bf300c1/src/server.py#L25

Because when calculating for buffer and scratch_buffer, there is no division by 8.

https://github.com/alesaccoia/VoiceStreamAI/blob/465403b7039d1f54ba6b8d69c69c40b55bf300c1/src/buffering_strategy/buffering_strategies.py#L116-L118 https://github.com/alesaccoia/VoiceStreamAI/blob/465403b7039d1f54ba6b8d69c69c40b55bf300c1/src/buffering_strategy/buffering_strategies.py#L73-L77