This repository uses PyAudio, langdetect, and googletrans to generate translated audio.
To get started, you'll need Python 3.7 or newer. To install pyaudio, use the commands below.
on MacOS using Homebrew
brew install portaudio
pip install pyaudio
The following command will prompt the text "Speak something...", in which you can speak into the mic.
python3 translate.py
It will recognize the voice, and interpret what was received in terminal. Thehn, it produces an outputed translated in spanish or english (depending on which language was spoken).
This script is open-source and licensed under the MIT License. For more details, check the LICENSE file.