Python Prompts Free Prompt

Python Script to Convert Speech to Text (Speech Recognition)

Create a Python script that converts audio files to text using speech recognition
☆ Save
Prompt
You are a Python developer. Write a script that uses the speech_recognition library to transcribe audio files to text. The script must: 1) Accept audio file path (WAV, MP3), 2) Use Google Speech Recognition or other engines, 3) Handle large files by splitting, 4) Output text to file, 5) Provide option for different languages, 6) Handle errors (no speech, unrecognized), 7) Log progress. Add comments and a requirements.txt.

How to use this prompt

1
Click Copy Prompt above to copy to your clipboard.
2
Open ChatGPT, Claude, Gemini, or any AI assistant and paste the prompt.
3
Replace any [PLACEHOLDER] values with your specific details.
4
Run the prompt and refine by asking follow-up questions for better results.