Coders Packet

Multiple language translator using Python

By Rohit Ambesh

By using this program you can translate one language to another language in real time based on your selection in Python

Introduction

By using this Python program one can translate English , Hindi , French , Portuguese , Spanish to any of the mentioned language. After selecting language, user have to initiate voice recognition by saying “hello” and then speak the sentence you want to convert. That’s all.

Library used

speech_recognition

googletrans

gTTS

os

pyAudio

About

This project is created on jupyter notebook. After installing necessary libraries just go to kernel and select run all . In this speech_recognition library is use to convert the speech to text, then googletrans is used to convert the text to selected language. After that gTTs is used to convert the text to speech a and os is used to run the converted audio in real time. pyAudio is used to access microphone.

How to use?

In this user have to select language he/she is going to speak and also, user have to select the language of output speech. Now, have to initiate voice recognition by saying “hello” and then speak the sentence you want to convert. The converted audio will pop up my using your default music player.

Download Complete Code

Comments

No comments yet