0% found this document useful (0 votes)
95 views1 page

Speech To Text - Python. Converting Speech To Text Is Very Easy - by Rahul Vaish - Medium

The document discusses converting speech to text in Python. It provides a 3 step process: 1) Install the SpeechRecognition and PyAudio libraries using pip, 2) Write a short code snippet to initialize speech recognition and print recognized text, 3) The code allows real-time speech to text conversion of English or other languages like Hindi through a minor code change.

Uploaded by

tena
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
95 views1 page

Speech To Text - Python. Converting Speech To Text Is Very Easy - by Rahul Vaish - Medium

The document discusses converting speech to text in Python. It provides a 3 step process: 1) Install the SpeechRecognition and PyAudio libraries using pip, 2) Write a short code snippet to initialize speech recognition and print recognized text, 3) The code allows real-time speech to text conversion of English or other languages like Hindi through a minor code change.

Uploaded by

tena
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Rahul Vaish 194 Followers About Follow Sign in Get started

Speech To Text — Python


Rahul Vaish May 27, 2018 · 2 min read

Converting Speech to Text is very easy in python. Let’s follow this simple
tutorial to implement the same.

Step#1: Get the below python libraries

[1] pip install SpeechRecognition

[2] pip install PyAudio

Step#2: Open your favorite IDE, we are choosing Jupyter Notebook, and
write the below code.

Step#3: Now after you run the above code snippet, whatever you say on
the microphone, gets converted into text :)

POINT TO NOTE:

The above code snippet works with the default language is English. If we
speak in any other language example Hindi, the text is interpreted in the
form of English, like as below-

In the above execution, I spoke “ mei ja raha hun” (in Hindi) which in English means “I am going” .

In case you want to display text in the language spoken, we have to


introduce a very minor change —

Now, if we speak anything in Hindi, the text is displayed in the same


language.

Hope it helps. Thanks :)

1.1K  38

Python Speech Speech Recognition Speech To Text Text

More from Rahul Vaish Follow

github.com/rahulvaish

Mar 10, 2018

Drawing | Writing Text over Image —


OpenCV + Python
Drawing any geometrical shape or writing anything on the image is very
easy in OpenCV. We have couple of functions to do the same. Let’s have a
look:

Step#1: We should have an image-

Step#2: Follow the below code snippet:

Step#3: Output:

Read more · 1 min read

Mar 9, 2018

Image Rotation — OpenCV + Python


Although Image rotation is what one will hardly ever use. But in case you
want to implement Image Rotations, you can follow this below tutorial for
little help :)

Step#1: We should have an image.

Step#2: Follow the below code snippet :

Step#3: Output: Image is rotated by -70 degree+ Image is also shrunk by


scale of 0.5 !

Read more · 1 min read

Mar 9, 2018

Magnify | Shrink |Crop Images — OpenCV


+ Python
Let’s see an example where we can magnift, shrink and crop images using
openCV and Python.

Step#1: We should have an image as below:

Step#2: Use the below code snippet to scale up, scale down and crop the
image.

Output: We will see 4 windows as below:

Read more · 1 min read

23 1

Mar 9, 2018

Read | Write | Display Image — OpenCV +


Python
Lets see a very simple way to load, write and display any image using
OpenCV and Python.

Step#1: We must have an image on our system.

Step#2:Use the below code snippet to perform load an image from the
disk, write the image (Gray scale version) on the disk, and display both of
them on the screen..

Step#3: Output: The two windows are displayed — One showing the
colored image and another showing its gray sale version. This Gray scale
version is also written on the disk(We have written the code for the same).

Read more · 1 min read

50

Mar 3, 2018

Object Finding — OpenCV + Python


If we have a source image and a target image, and we have to detect where
does the target image lies in the source image; to solve this problem we can
use OpenCV and Python. Let’s g through an example:

Step#1: We should have a source image, example as below:

Step#2: We should have a target image, example as below:

Read more · 1 min read

More From Medium

Speech Recognition in Generating Subtitles Easy Speech-to-Text with A statistical auto-correct


Python - The Complete Automatically using Python system from scratch
Beginner’s Guide Mozilla DeepSpeech Dhilip Subramanian in Towards Pashupati Gupta
Behic Guven in Towards Data Abhiroop Talasila in Towards Data Science
Science Data Science

Convert Your Speech to How To Build A Speech Add Voice Recognition to Building a Speech
Text using Python Recognition Bot With React Native Without Translator in Python
Behic Guven in Towards Data
Python Adding the Cloud Behic Guven in Towards Data
Science Admond Lee in Towards Data Ian Lavery in Picovoice Science
Science

About Help Legal

You might also like