TRANSLATOR FROM A TEXT TO A VOICE OF YOUR LANGUAGE CHOICE
- Takes user input and translates it into another language.
- Outputs an .mp3 file named with the current date.
- Includes input validation and async translation.
- Finally, runs the full process with run_program().
Libraries used:
-
googletrans (translation)
-
elevenlabs (text-to-speech)
-
asyncio (asynchronous execution)
-
dotenv (read .env files)
-
Remember to create the .env and must have to include the API_KEY
-
You can use API_KEY = 'your API_KEY'