Add audio transcription script using Faster Whisper
- There’s no script in this repo to quickly transcribe MP3 or WAV files to text using a fast, modern model.
- A Python script using Faster Whisper that transcribes audio files directly to text and outputs to console or file.
-
- Original OpenAI Whisper (slower, may require audio conversion)
- Other Python libraries like SpeechRecognition (less accurate or more setup)
-
- Dependencies: Python 3.8+, pip install faster_whisper, ffmpeg installed
- Usage: python audio_transcribe.py --file sample.mp3
Thank you for raising this issue! Our team will review it soon.
For more queries or discussions or approval of requests, please join the Discord server for further discussion: Discord Link
I have fixed this issue and submitted a PR for it you can review it
I left a comment in your pr
What is meant by this? I don't see any message in my PR. Are you implying that you have marked my PR as read?
What is meant by this? I don't see any message in my PR. Are you implying that you have marked my PR as read?
I left a comment directly on the code lines in your PR. You can find it under the 'Files changed' tab or by scrolling down in the Conversation tab. Here is the direct link to the suggestion: https://github.com/wasmerio/Python-Scripts/pull/533/files
first, I am really sorry i dont know why i am unable to see the comment i tried really hard i know its on me you provided me with the link, but still i cant see. You can tell that suggestion here
No problem brother, in the line 37 of your script It would be good if you write some input validation, because if the user choose a invalid model the program will close and I think is not good for the user experience.
You can try to put a while loop and validate the input.
You can put a simple input validation like this (or as you wish)
like that if the users chooses a invalid model it will fall again in the loop
I have fixed input validation along with minor positive changes. In PR message i also provided ss of how its done and also i have provided a sample audio and a transcription generated from it
I saw it, I aproved the PR, you need another aprover in order to draft the PR