Closed SimunKaracic closed 2 months ago
Seems like an issue with hound, as that doesn't touch whisper_rs code yet. It seems that you may have written a floating point audio file? It would be attempting to read 32 bits for a f32 sample vs the 16 required for i16 samples, resulting in a TooWide error.
Gonna go ahead and close this, feel free to reopen if you still have issues.
I'm trying to run the audio transcription example:
cargo run --example audio_transcription
using a file I recorded using sox
sox -d audio.wav
and then converted with this command:sox audio.wav -r 16000 -c 1 audio16k1.wav
.I get the same error, with either of the audio files:
Any ides on what I'm doing wrong?
Full output: