GithubHelp home page GithubHelp logo

faizantb / speech-translation-with-python Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ani0202/speech-translation-with-python

0.0 0.0 0.0 6 KB

Translate your speech to many languages using Google Translate API

Jupyter Notebook 100.00%

speech-translation-with-python's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.