Skip to content

hashin/Translate_O_Pi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Translate_O_Pi

A plug and play universal language translator using Raspberry Pi.

An adapted version of Translator made by Dave Conroy at http://www.daveconroy.com/

This version uses Nexiwave speech API instead of Google API for transcription.

===============

clone:

git clone https://github.com/hashin/translate_o_pi

Edit trc.py by adding your directory in line number 37.

make trans.sh executable:

sudo chmod +x trans.sh

Run trans.sh:

./trans.sh

===============

You can also use the trn.py file to translate a piece of text by running:

python trn.py -o "Origin language code" -d "destination language code" -t "your text"

Note: Don`t forget to add your client ID and client secret of the application you have registered at Microsoft Azure Marketplace. https://datamarket.azure.com/

Also, you should subscribe to the Microsoft Translator. You can choose the plan you wish. A free option is available, which is used in translate_o_pi. You can choose the one you prefer.

=================

Making Translate O Pi Plug and PLay. If you want to run translate_o_pi on startup, you may proceed as follows:

Make sure that you are in the /pi/ directory.

open .bashrc by running,

sudo nano .bashrc

Add the following line:

./trans.sh

Now inorder to make the terminal run at the startup:

Right click on the LXTerminal shortcut on the desktop and click copy.

Navigate to /home/pi/.config/autostart You may be required to create this directories if they don`t exist.

Copy the shortcut to this directory.

Reboot your Raspberry Pi and your translate_o_pi is ready to go!

In case you need any assistance setting up, just drop a mail and I would be happy to help.

About

A universal language translator using Raspberry Pi.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published