This content is still in French
The page itself is translated, but its detailed content is not yet. Hardware sheets, guides and catalogues are still shown in French: we would rather give you the original than a rough machine translation. View the French site
Dictée et lecture à voix haute, sans connexion
Étape 3 sur 6
Transcrire
shell
# Enregistrer 5 secondes au format attendu : 16 kHz, mono
arecord -f S16_LE -r 16000 -c 1 -d 5 test.wav
# Transcrire en français
./build/bin/whisper-cli -m models/ggml-small.bin -l fr -f test.wav
# Sortie en sous-titres
./build/bin/whisper-cli -m models/ggml-small.bin -l fr -osrt -f cours.wav
Le format audio compteWhisper attend du 16 kHz mono. Un fichier en 44,1 kHz stéréo donne des résultats erratiques. Convertissez au besoin :
ffmpeg -i source.mp3 -ar 16000 -ac 1 sortie.wav.