Skip to content

Tinonnast/Translation-Audio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Translation-Audio

Simple .WAV Speech Recognizer with Translation.

Add .WAV File to /audio as INPUT.wav or which name you gave it in the script.
Saves a File to /audio/OUTPUT.mp3 with the translated TTS of your message.

Automatically plays the mp3 using pygame.


Needed pip installs


pip install pygame gTTS speech-recognition-fork translate
OPTIONAL (for AI Translate): pip install google-genai

AI Translate


Uses Google's Gemini API. Please add your API Key in line 4 of translation_ai.py to use it.
Get a (limited) free API Key at https://aistudio.google.com/api-keys

About

.wav file -> translate -> play TTS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages