Python Prompts Free Prompt

Python Flask App for Text-to-Speech

Build a Flask app that converts text to speech using gTTS
☆ Save
Prompt
You are a Python web developer. Build a Flask application where users can enter text, and the app generates an audio file (MP3) of the speech using gTTS. The app should: 1) Have a form for text, 2) Generate speech, 3) Provide download link, 4) Support language selection, 5) Limit text length, 6) Add tests, 7) Use Bootstrap. Provide code.

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.