Coders Packet

Speech-To-Text using Python

By Yerra Vijay Sai

It is the ability of a machine to identify the words in a spoken language and covert into them to a text format using Python. In this module we are doing with the help of Speech_Recognition

Installation Required:

SpeechRecognition:

pip install speechrecognition

Pyaudio:

    Pyaudio is used for to accept the input as audio format from the default microphone

pip install pyaudio

 

 

Steps to convert Speech-To-Text:

Step 1:

  import speechrecognition in module

import speech_recognition

Step 2:

Assign the speech_recognition.recognizer to a variable

var=speech_recognition.Recognizer()

step 3:

 Set the pre-recorded file as source

with SRg.Microphone() as source

step 4:

  define the time limit and convert the speech

record(source,duration=3)

 

 

 

 

Download Complete Code

Comments

No comments yet

Download Packet

Reviews Report

Submitted by Yerra Vijay Sai (vijaysai)

Download packets of source code on Coders Packet