Skip to content

alisyd/language-translator-with-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Language translator using Python and Google translate API

This is a simple speech translator implemented in python using google translate api compatible with Python 3.9.7 and pip 21.3.1 To run on a windows machine, delete the virtual environment i.e venv folder and create virtual environment on windows with virutalenv do

pip install virtualenv

To install the virtualenv, after this navigate inside the cloned repo and do

virtualenv venv

Now to navigate into virtual environment, run the bat file in this format inside powershell or cmd prompt

C:\Users\'Username'\venv\Scripts\activate.bat

To install all dependicies do

pip install -r requirements.txt

On linux, if Virtual environment is installed on your pc Navigate into virtual environment with

source venv/bin/activate

run the app with

python app.py

Set appropitate device_index in app.py to select system default microphone if not selected automatically. To find the device_index, print available microphone indices with

print(spr.Microphone.list_microphone_names())

Note the device_index of sysdefault and assign the value in device_index of spr.Microphone object

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages