TravelBuddy is a voice translation tool that uses Google's SpeechToText, TextToSpeech, and Translate APIs to translate voice from one language to another. It is written in Python and can be used to translate voice in real time.
To get started with the project, you will need to follow these steps:
- Clone the repository:
git clone https://github.com/admirerr/TravelBuddy.git
- Install the necessary packages:
pip install google-cloud-speech google-cloud-texttospeech google-cloud-translate
- Go to Google Console and create a new project. Enable
Cloud Speech-to-Text API
,Cloud Text-to-Speech API
andCloud Translation API
in the Enabled APIs & services section. - Download the
credentials.json
file from Google Cloud Platform and place it in the root directory of the project. Remember to provide the location of this downloaded file in place ofPath-to-the-Credentials-file
. - Open terminal and run the model by using command
python translate.py <source language> <target language>
.
If you would like to contribute to TravelBuddy, you can follow these steps:
- Fork the repository
- Create a new branch:
git checkout -b new-feature
- Make your changes and commit them:
git commit -m "Add new feature"
- Push to the branch:
git push origin new-feature
- Create a pull request