how to recognize the voice using speech recognition in django

384 views
Skip to first unread message

senthu nithy

unread,
Feb 23, 2019, 11:05:04 PM2/23/19
to django...@googlegroups.com
Hi all, 
Currently, I am doing my research work on speech recognition using Django. I have only one month to submit my research work.  Recognize the word is a part of my research work. I don't know how to write the code part in Django.

import speech_recognition as sr

# get audio from the microphone 
r = sr.Recognizer() 
with sr.Microphone() as source: 
 print(“Speak:”) 
 audio = r.listen(source)

try:
 print(“You said “ + r.recognize_google(audio))
except sr.UnknownValueError:
 print(“Could not understand audio”)
except sr.RequestError as e:
 print(“Could not request results; {0}”.format(e))


Tin Le

unread,
Feb 24, 2019, 8:26:46 AM2/24/19
to django...@googlegroups.com

Hello all members of Django.

I, myself thinking of this question is great, want to know more about IVRS (Voice Interactive Response System) .

I would love to see some sample application to download and to learn from it.

Thank you everyone.

Sincerely,

 

Sent from Mail for Windows 10

 


From: django...@googlegroups.com <django...@googlegroups.com> on behalf of senthu nithy <senth...@gmail.com>
Sent: Saturday, February 23, 2019 10:04:19 PM
To: django...@googlegroups.com
Subject: how to recognize the voice using speech recognition in django
 
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CALEaTU7LkdoiwFa3Pcx253G%2BKm2T2UbamsO1aFB5UN%3Drq3VnGw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Jason

unread,
Feb 24, 2019, 9:11:07 AM2/24/19
to Django users
I'm really unsure django is the right thing for this, because it is a WEB framework.  Meaning its for the construction and development of high quality web applications.  

You could definitely do a speech recognition addin to django, but if you don't need the browser interface or server deployment, I'd suggest you look at writing a python command line program instead  .In order to get this working with django, you would need to have a browser side interface to capture the audio and send it to django via ajax, and then have the server process the audio and return a response in which the browser renders.  That requires you to use two languages at minimum, and from what it sounds like, you are not familiar with django at all.  That's a substantial learning curve to tackle in a month, let aside designing, implementing and packaging a research project.

If I were you, I'd just make a command line program with python and have it execute directly on the machine being used.  No need for Django or web frameworks for this, and the smaller scope means you'll probably make the deadline without a great deal of additional stress.

senthu nithy

unread,
Feb 25, 2019, 3:23:26 AM2/25/19
to django...@googlegroups.com
Thank you Tin Le for your interesting.  Thank you Jason for your valuable advice.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

Veer Manhas

unread,
Feb 25, 2019, 7:17:58 AM2/25/19
to django-users
You could look into AWS 
https://aws.amazon.com/transcribe/

Plug the APIs and AWS does all the work for you.

On 24-Feb-2019 at 09:34, <senthu nithy> wrote:

Hi all, 
Currently, I am doing my research work on speech recognition using Django. I have only one month to submit my research work.  Recognize the word is a part of my research work. I don't know how to write the code part in Django.

import speech_recognition as sr

# get audio from the microphone 
r = sr.Recognizer() 
with sr.Microphone() as source: 
 print(“Speak:”) 
 audio = r.listen(source)

try:
 print(“You said “ + r.recognize_google(audio))
except sr.UnknownValueError:
 print(“Could not understand audio”)
except sr.RequestError as e:
 print(“Could not request results; {0}”.format(e))


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
Reply all
Reply to author
Forward
0 new messages