Inspiration

Language is one of the biggest issues when travelling, and I love travelling. So I decided to maybe work out a translator myself.

What it does

The program is basically a simplified google translate with only voice inputs. First, it takes in the language the user speaks as the display language. It then asks for what language the user wants to translate. Then, what language they want to translate to. Finally, it asks for the content to translate and outputs the translated content.

How I built it

The language I used to build it was python. I used google-speech-recognition to recognize speech to text. I used gTTS for text to speech. I used TextBlob for the translation of texts.

Challenges I ran into

The whole thing was pretty challenging as I am not a very experienced programmer. One big problem was that a file needed to be saved for every speech the computer makes, and it would crash if the file names were the same. I did not realize this error and was stuck for a couple of hours. Eventually, I found the error and resolved it with an f string.

Accomplishments that I'm proud of

I am very proud of the project I made in general. This is my first hackathon and I feel like I learned a lot. This was also my first time using these APIs and libraries and I had decent success with it, which I am also very proud of.

What I learned

I learned the importance of planning. Going into this hackathon, all I had was an idea and nothing was really planned. For the first few hours, I was basically stuck and had no progress. Then, I spent one or two hours doing detailed planning and research, and everything started to come together. I will definitely do more planning before going into my next hackathon.

What's next for Simple Translator

The next step would probably be making a GUI for it or making it a web app. Although I have no experience in any of those areas, I am willing to learn.

Built With

  • google-speech-recognition
  • gtts
  • python
  • textblob
Share this project:

Updates