Speech Recognition in Python
Вставка
- Опубліковано 21 лип 2024
- Today we learn how to use speech recognition in Python.
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚
💻 The Algorithm Bible Book: www.neuralnine.com/books/
🐍 The Python Bible Book: www.neuralnine.com/books/
👕 Programming Merch: www.neuralnine.com/shop
🌐 Social Media & Contact 🌐
📱 Website: www.neuralnine.com/
📷 Instagram: / neuralnine
🐦 Twitter: / neuralnine
🤵 LinkedIn: / neuralnine
📁 GitHub: github.com/NeuralNine
🎵 Outro Music From: www.bensound.com/ - Наука та технологія
For "pyttsx3", I'm guessing that "py" is for "Python", "tts" is "Text To Speech", and "x3" is some kind of funky version thing.
Genius.
so its name is pythontextospeech3
Genius
X3 is version 3
yeah thats right
Great job, quick and concise of just what is needed without involving 10 other packages.... most of the others spend 10 x the time cover irrelevant information. Thank You Sir!!!
Short and dynamic video, just the way i like em. Thanks
Hey, how could i use an app's audio such as chrome's audio as the speech input, so i can recognize what an app is saying
Thanks NeuralNine. I always learn a lot with your videos. I am a beginner with Python. Super grateful.
Before watching this video I thought that we need to declare everything but I was shocked that you have to just install some libraries and use those predefined functions and boom!
you are good to go!
Yep the wonders of python
Man u teach stuff 😂 way more 💪 efficient thn any of the youtuber out ther pls hoping for an playlist of neural networks from scratch
Hello how can i apply the different speech algorithms in a voice regonition?
pyttsx3 stands for "python text to speech version 3", not entirely sure
Any plans to add context to your chatbot? That would awesome! Thanks for the videos man.
Sir ive a questionI want to make a program in python such that first it recognize the text from 20 images one by one and, store the last word from the image text and at the same time it should also recognize the audio (which is currently running at its normal pase) through speech recognition and if it found the last from the image text in the audio at 36 seconds from the start . Then it should press a specific key on the keyboard. This thing continues utill the audio finishes.
Can this be possible?
Thank you for the content. What if I want to do something about speech matching, how does it work?
Can i change the “speech_recognition.Microphone()” for another code? Because i have microphone in arduino and i want to use the arduino microphone module…
This thing is slowing down after the first run. When im doing it for the first time, the generated text output is pretty fast but on the second run it take about 10 mins to give the output. How can i fix that ??
Hello, can you advise me. Need build face comparison service, it should be perfect. How can I learn or use resources
it is possible to create voice lock that frist store user voice again the user speak it compare stored voice with live voice if both voice are match open lock otherwise not open. plz explain it and what are the technologies are required for this
how do u make the script go word by word instead of sentence per sentence?
Thanks a lot for this video. What can we do if we want just to know how many speeches(voices) in an audio file.
What would the best approach to use a similar approach to extract text in realtime without delay ?
you actually saved me a lot of time in my Bachelor thesis Projekct xD
How do I do it for a language that is not on the list? It essentially just needs to print the phonetics and recognize whenever a sound was just noise and not speech. I think there are only around 30 different phonetics I need it to differentiate.
Alternatively, I could figure out the recognition part myself maybe. I Not sure about every step of that. I'd still need to record audio and turn it into variables, which I don't know how to do.
(It is not on the list. I don't need alternative ways to find it on the list or other lists. It will not be on those lists either.)
Pls help why do you use with instead of mic=speech_recognition.Microhpone(), I don't understand the with here
i am not able to run the code on the vs code and its show me error here
recognizer.(mic,duration=0.2)
audio=recognizer(mic)
text=recognizer.recognize_google(audio)
text=text.lower()
and say pysxt3 is assed
Esti cel mai tare omule. De departe, faci cele mai coerente si bine structurate tutoriale Python de pe youtube, ca si cel de fata. Big like.
Can someone explain which compiler of app he is using to run this code
I am facing problem like no modules found for distutils in vs code and IDLE
Pls respond anyone it will be really helpful
how is it showing option on what to type when thw word is not completed yet
It keeps saying invalid syntax jedi [23,22] any suggestions hw to fix this?
How can I make the assistant detect in another language?
Yo guy nice video has the thing I was searching for but the problem is that the speech recognition library is not up to date so it's useless as of now.
Any idea how I can overcome it?
what compiler did u use?
Which idle you are using
WHAT PACKAGE VERSIONS ARE YOU USING?
very cool xD I love these python libraries that make such cool applications so easy to make xD
what ide are you using?
Which code editor is tis one?
Wait so you don't mention anything about there not being a key requirement for this capability. Do you need a google account key to use this service?
What IDE are you using?
I am having AttributeError: 'Recognizer' object has no attribute 'adjust_for_ambient_noice' anyone know why?
how to make mouse click whenever it hear specific audio
Hi there can u help me
im trying to use german but it doesnt work
How can I make it so that when I say something it replies with something
I'm using this to recognize audio / speech in a WAV file and recognize_google() is only giving me the first 3 seconds or so. Sooooo frustrating.
love it man.thanks for the help
Good video but would like to point out that this is online recognition and for those that would like to have offline using this script it has to be changed to sphinx. In my opinion sphinx is not a good engine. Would love to see a video with great offline speech to text in python if it exist...
No matching distribution found for speech recognition error coming after trying to install speech recognition
this is what i am looking for my problem thankyou so much
Anyone facing the error: TypeError: catching classes that do not inherit from BaseException is not allowed
Replace - except speech_recognition.UnknownValueError():
with
except speech_recognition.UnknownValueError:
Hi install speech recognition however import in speech recognition is making an error
what is the music in the intro?
What is the difference between SpeechRecognition and speech_recognition module
Does it work offline ?
Thanks how do i make it faster though?
Hey man, big fan of your work. Can you please make a video on the job prospects of someone who has like mastered Python with your courses and has made similar projects that you post? Will be of great help to many...thanks for reading
Yeah cool, but when do we actually need the pyttsx3 libary?
For anyone running into a "No module named 'distutils'" Error try running the following:
pip install setuptools
This will install distutils which was removed from Python in version 3.12 apparently.
thank you!
How to use this script for tekinter library's
Brotha I'm having trouble after except the whole line is showing error even continue is 😂 what should I do, tell me please
is there is any offline recognizer?
How to import this Code into an Android Application??
Great one! Looking forwards to combine and make an assistant!
i have same goal
Wow....thank you so much this tutorial..
Sir could you please help me I am trying to install speech recognition but it's not work..I am using wisdows 10
I want to learn Go. Can you please make a video on how to start. I have my school examples of Java so I have some easy projects but I don't know how to start those easy examples
Wow. Attractive session I would say :)
thx you helped me a lot!!
Bro it is giving Flac conversation utility not available please help😢😢😢😢
thank you man !❤
i love ur intro music bro cool
Great video, thank you
Awesome Man thanks!
catching classes that do not inherit from BaseException is not allowed
I am getting this all the time. Could you tell me what's wrong with it pls?
Im getting the same thing bruhh! How did you solve it?
I’ve been using the Speech Recognition library with the digital assistant I’m creating on my channel, but it gets super slow. I tried using the IBM Watson API in my last video, but that’s more for transcription of audio files. I need to find a good alternative or learn how to make my own.
Exactly! Having the same problem... I tried using offline speech recognition sphinx
Pyaudio wont install on my mac.
No module named 'speech recognition', why?
This is interesting, it works without a google account? Is it a free service?
I’m assuming pyttsx3 means “Python Text to Speech x.3” as in python 3. At least that’s what helps me remember
Thank you very much for.your content.
Thank you !
I had the issue with pyaudio. This is for Windows machine alone.
pip install pipwin
pipwin install pyaudio
solved it.
Though while mic is in listening mode fails sometimes. Need to explore more.
you never used pyttsx3 why did you import that
WHICH INTERPTER IS THIS
can't use uknownvalueError idk why
im getting a json and then the text
when I talking any thing it is not working
Keep getting this error:
RequestError: recognition request failed: Bad Request
what version of python did you used for this project? i use version 3.8 and it could not run
same
The SpeechRecognition module is only available from Python 2.7 until 3.6. That's why it doesn't work probably
was the pyttsx3 used? I tried the code but it says it isn't being used....
no it didnt pyttsx3 is for convert text to speech but it comes with pyaudio module that whats he used
Suggestion: video about making your own text to speech recognizer like if your language is not support by google text to speech recognizer and other recognizer...
when I run the code, I always get an error AttributeError: module 'speech_recognition' has no attribute 'adjust_for_ambient_noise'
forgot "()" maybe ?
it doesn't work, i tried everything, nothing worked for me.
And how do i choose microphones when i have multible?
According to the source code, first you have to list IDs of mics by using PyAudio and then set one of them to the argument named device_index of the Microphone class.
Pls do the video on the how to automate your house with speech recognition script...
Thanks
I like all your videos
You'll need devices, lights, remotes etc that are working through Wifi, Bluetooth or an API, Philips hue lights will work, since they are smart lights. Example:
www.amazon.com/Philips-Hue-Bluetooth-compatible-Assistant/dp/B07QWB3H1Q/ref=sr_1_2?dchild=1&keywords=Philips+Hue&qid=1617125916&sr=8-2
You can also use raspberry pi to controll things(wireless).
at 1:45 when you were confused about the video title you probably should've put a card to the video there in uploading process
Can you please give me the source code?
Excelelent!
importing pyttsx3 to the code you wrote isn't being used in my code. i got everything word for word so i don't know why its not being used.
post the code
@@user-re5tq7gm5k I fixed this a while back now by rewriting my own code. Forgot what I did but I'll take a look tonight.
here is a problem in my code , it shows that microphone is working but speech not show in command line...........
same man. Were you able to fix it?
(imported libs: speech_recognition and pyttsx3):
Even with the exception I get a second error, wich is:
Can someone help me? Thx...
speech_recognition.UnknownValueError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\Python\Trabalho\speechrecognition\main.py", line 19, in
except speech_recognition.UnknownValueError():
TypeError: catching classes that do not inherit from BaseException is not allowed
Got the same error. Trying to find solution now. did you?
@@recur9759 Someone has already mentioned this in comments 1 year ago, read comments please. SpeechRecognition module is only available from Python 2.7 until 3.6
@Alex What module is better suited with regards to speech recognition with Python 3.11. Or are you stating that I need to be sure that I also have an older version of python downloaded?
@@recur9759 try googling "python speech recognition". I don't like the idea to revert to older versions.
@@Alex-yo8phthanks
Great video! Please share such IDE, you are using?
@Stefan Teutebergthank you
plz make a video on your vim plugin
i think pyttsx stands for python speech to text, idk what the x stands for tho
Can you make a video on How to recognize people with their voice, Please make a vid if you could do that..!!