SYSTRAN / faster-whisper

Faster Whisper transcription with CTranslate2
MIT License
12.59k stars 1.05k forks source link

Audio #1095

Closed BBC-Esq closed 2 weeks ago

BBC-Esq commented 3 weeks ago

Change the decode_audio function to write the bytes representation of the NumPy array using array.tobytes() when writing to the raw_buffer. This explicitly handles the data conversion to bytes, which enhances code clarity, ensures compatibility across different Python versions and environments, avoids potential issues with the buffer protocol, and improves the robustness and portability of the code without altering its functionality working with the rest of the program.