Speech-To-Text using Python
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)
Project Files
/
Loading...
| .. | ||
| This directory is empty. | ||