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.