A machine learning project that translates voice from one language to another in real-time while preserving the tone and emotion of the speaker, and outputs the result in MP3 format.
Python3, SpeechRecognition, pyaudio, google-trans-new, gTTS, playsound, deep-translator, cx-Freeze
-
Clone this project and create virtualenv (recommended) and activate virtualenv.
# Create virtualenv virtualenv -p python3 env # Linux/MacOS source env/bin/activate # Windows env\Scripts\activate
-
Install require dependencies.
pip install -r requirements.txt
-
Run code and speech (have fun).
python main.py
- Build option:
python setup.py build
- Installer containing all the files:
python setup.py bdist_msi