项目作者: Ani0202

项目描述 :
Translate your speech to many languages using Google Translate API
高级语言: Jupyter Notebook
项目地址: git://github.com/Ani0202/Speech-Translation-with-Python.git
创建时间: 2020-10-08T05:03:48Z
项目社区:https://github.com/Ani0202/Speech-Translation-with-Python

开源协议:

下载


Speech-Translation-with-Python

Translate your speech to many languages using Google Translate API
Building a Speech Translator in Python using Google Translate API.
This Project translates an audio input from an input sourse into a different language using Python.
We will use a speech recognizer to teach our program to understand our speech, then convert it to text.
Then we will define a translator to convert text to our preferred language.
At last we will use a text to speech model to output the voice.

Required Libraries:

  1. speechrecognition
  2. pyttsx3
  3. googletrans

All these modules are free to install and use
Code to pip install:
pip install speechrecognition pytts3 googletrans

In the project you can get an error of missing module Pyaudio especially when using the Recognizer() or Micrcophone()
If the error occurs then follow the following steps:

  1. Find your Python version by python —version
  2. The easiest way to check either you have 64 or 32 Python just open it in the terminal
  3. Find the appropriate .whl file from https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio and download it.
  4. Go to the folder where it is downloaded in the Command Prompt
  5. Install the .whl file with pip for example in my case:
    pip install PyAudio-0.2.11-cp38-cp38-win_amd64whl