Speech Recognition With Raspberry Pi

  Рет қаралды 36,526

Audas

Audas

3 жыл бұрын

This is a tutorial on how to make Your own speech recognition on raspberry pi. So enjoy!
You will need:
Raspberry Pi 3 B+ or better
USB sound card
SD card with NOOBS
Any working microphone
Red LED
150 ohm, 0,25 W resistor
Logic 2 relay module
and basic stuff for a computer to work
GitHub: github.com/AudasWasTaken/Voic...
If You wanna help me create more content chack out my Patreon: www.patreon.com/user?u=75474450
If something is not clear You can always reach me on discord: / discord
Catch me on twitter: / audas30821741
Music:
Jaokim Karud - Canals
/ - topic
Patrick Patrikios - Select
Fluffing a Duck by Kevin MacLeod is licensed under a Creative Commons Attribution 4.0 license. creativecommons.org/licenses/...
Source: incompetech.com/music/royalty-...
Artist: incompetech.com/

Пікірлер: 78
@Audas101
@Audas101 3 жыл бұрын
Thank You everyone for watching this video! It took me time to make this project so I am really happy that people take interest in it! So again Thanks! And If You liked the video Leave a like or if You have any questions You can always reach me on discord!
@NobodyKnow10
@NobodyKnow10 2 жыл бұрын
Plz which version of linux used on ur raspberry??
@JamesDTaylorSTL
@JamesDTaylorSTL 2 жыл бұрын
Hello. Thanks for taking the time to detail this! My Dad is 85yrs old, lives mostly alone and he has very bad hearing so he requires hearing aids to hear most things. But at night he does not wear them. So he cannot hear his house alarm system if there is a warning of a fire, intrusion, etc. I have set up voice-activated (VOC) intercom by his alarm station in the hall and a receiver intercom by his bed which will transmit anything the alarm and/or a remote, live alarm person says such as asking him "is everything is ok?". But again he can't really hear unless he puts his hearing aids in which takes time assuming he even knows to do this. So I have purchased a heavy-duty industrial vibrator I plan to mount to his bed frame and I plan to have the alarm speaker voltage act as a signal to a relay to turn on the vibrator if the alarm is going off. (actually, the alarm is so high-pitched he can't even hear it with his hearing aids in even when right next to it. And despite it being SO loud most people can't take more than 10 seconds or so before saying "please turn it off!") So I'd really like to have something that, after vibrating him awake would transcribe what is being said on the bed-side intercom and then project it on his bedroom wall (using a cheap $100 video projector) so he can "hear"/read what is being said by the alarm or someone on another home intercom. But this is something that would have to be on all day or at least at night without fail as I can't really rely on him to remember to turn it on, type commands to start a program, etc. each night. Do you have any thoughts on how this could be done? I should mention I am a mech engineer who has worked on Pi-related projects but I have no real hands-on experience with them. Well, thanks for reading! - Jim
@chiraagarunkumar5691
@chiraagarunkumar5691 2 жыл бұрын
Bro this was the most easiest tutorial…. Like from the scratch! Thank u so much for this!
@Audas101
@Audas101 2 жыл бұрын
I am realy glad it helped! And thanks for watching my video!
@Steven-jf4cs
@Steven-jf4cs 2 жыл бұрын
Thanks for the very well produced video!!
@Audas101
@Audas101 2 жыл бұрын
And thank You for watching it! Comments like this realy motivate me to make more videos! So thank You very much for watching it!
@ashrafelshahawy8561
@ashrafelshahawy8561 2 жыл бұрын
hey thanks for the video its so simple , I have a question can I make voice recognition with different language ?
@kevery.
@kevery. 2 жыл бұрын
great video. got straight to the point of a simple thing many people are trying to do. great instructions chief.
@Audas101
@Audas101 2 жыл бұрын
Thank you very much :> realy glad yo hear that it helped! Makes me wanna create more stuff like that!
@DnKZone
@DnKZone 2 жыл бұрын
I want to ask a question Can I just buy a cheap plastic sound card and can use my regular earphones (usual earphones) mic just by entering the earphone's jack in the sound card mic input? and if I don't need other things just speech recognition and prints what I said then do I need anything else alongside with the soundcard? please answer really need to know
@zainabkaid593
@zainabkaid593 2 жыл бұрын
which raspbeery u had used and it can work with Audio jack converter so we dont need a mic dependens on usb for raspberey
@n1vca
@n1vca Жыл бұрын
Thank you very much, great work!
@Audas101
@Audas101 Жыл бұрын
Thank you! And thanks for watching!
@snehjain5607
@snehjain5607 2 жыл бұрын
Hello, I just wanna ask you that how to configure raspberry Pi with usb microphone
@harshavardhan-cf3vm
@harshavardhan-cf3vm 2 жыл бұрын
connections can you show, please how exactly u did
@techburied
@techburied 2 жыл бұрын
Plzzz help my chromium is not opening it just loades and doesn't open I have raspberry pi zero w with recommend os installed plzz help
@adil.9064
@adil.9064 Жыл бұрын
Only thing that’s worked for me
@krugergaming-yt8121
@krugergaming-yt8121 9 ай бұрын
My raspberry pi is not recording my voice i connected the mic using USB sound card all are recognised by raspberry pi but not working I have tried lots of ways like resetting the alsa mixer but it didn't work iam using raspberry pi 3 B+.... the mic and sound card are working perfectly in the pc
@wojciechjurga2440
@wojciechjurga2440 2 жыл бұрын
This video is fantastic, that's exactly What I was searching for! But to be honest, I would be sooo happy if you would like to do the version without recording the audio to optimize the recognition time! :D Would be great to see the video with this better version too! :D BTW. Can this programm work while "Smart mirror program" is running? :D
@Audas101
@Audas101 2 жыл бұрын
Hey, first of all thanks for watching! So I will try to optimize this in the future! however the part that takes the most time is communicating with server, but I will try to make a version with local voice recognition model which will definitely improve the speed! And I am not sure about the smart mirror thing, but I am pretty sure it is possible to fuse them :D Again thanks for watching!
@despinaferdinandou3147
@despinaferdinandou3147 5 ай бұрын
can this work without the usb sound card?
@khisrowseadeqi8416
@khisrowseadeqi8416 Жыл бұрын
Great video. Just one question, I have connected the output to my Bluetooth headsets. How can I play/ listen to what comes in via mic?
@Audas101
@Audas101 Жыл бұрын
There are special commans in Raspbian for that, You can try google them. Or (as I did for myself) You can download screen capturing program in which You can record Your screen and voice and later on watch it
@GlenCheng
@GlenCheng 2 жыл бұрын
can you do this on C?
@OLebongiler
@OLebongiler 2 жыл бұрын
Hi, this speech recognition seems great! Can we use the same way for offline voice assistant? For example : in a situation when your internet connection is broken down for a while... How to solve it? Thanks!
@Audas101
@Audas101 2 жыл бұрын
Hey, thank You for watching it! So this model is fully internet dependable, since the recognition models are in Google web speech API and this project sends info there. So to make it not internet dependable You would need to train Your own speech recognition models in the same local computer, which is I have to say kinda harder :D, again thanks for watching! And maybe I will try to make offline version in the future!
@KnightRiderGuy
@KnightRiderGuy 2 жыл бұрын
@@Audas101 yes absolutely an off line version would be outstanding Audas
@MrJonath4n47
@MrJonath4n47 2 жыл бұрын
Hi. How i can send the order to mqtt
@thebigone1273
@thebigone1273 2 жыл бұрын
Very thank you
@Audas101
@Audas101 Жыл бұрын
Thank you for watching!
@deepakpks2761
@deepakpks2761 3 жыл бұрын
hi the code is amazing but i have a problem when running the code I get a error like microphone is not defined what I can do (I am using a mems microphone allocated to card 0)
@Audas101
@Audas101 3 жыл бұрын
Hey, thanks. Have You tried checking if You really are detecting any sound from Your mic? And also You can check via python which mic is being used, there is a simple command for that, but i can't recall it now. i Haven't had this problem in particular, so I don't know this helps or not, but try playing more with Alsamixer settings, cause that helped me a lot.
@claudioguendelman
@claudioguendelman Жыл бұрын
Cant find python-pyaudio package
@rafaelmongezavala1380
@rafaelmongezavala1380 2 жыл бұрын
iI get this error, help :c OSError: No Default Input Device Available
@paulfrarier9586
@paulfrarier9586 2 жыл бұрын
Good morning ! Great video;) But how do you prevent an error from stopping the program? Thank you
@Audas101
@Audas101 2 жыл бұрын
Hey! Thanks for watching! To prevent errors or, to be more specific, to define the errors you could you a "try, except" command or you could absolutely stop the audio reading and sending to the web speech API.
@paulfrarier9586
@paulfrarier9586 2 жыл бұрын
@@Audas101 Thank you for your reply ! the try command worked! how to stop audio playback? and do you know how i can access the pygame library? I would like to remove the print of start program
@abhishekathani17
@abhishekathani17 2 жыл бұрын
error: import speech_recognition as sr
@danfalero9300
@danfalero9300 3 жыл бұрын
It works with USB mic? I tried to enter to Discord server but the link expired
@Audas101
@Audas101 3 жыл бұрын
Ah sorry about the link, I updated it now so should be ok in an hour or so. And yes it works with USB mic or to be more precise it works with USB sound card, which let's You connect microphone and headphones.
@lwt0913
@lwt0913 2 жыл бұрын
HI, can this work with respeaker 2mic pi hat ?
@Audas101
@Audas101 2 жыл бұрын
So I don't realy know about the hat, but my method is using the USB so it instantly understands the mic. With hat mic would probably go through GPIO and i am not quite sure how raspberry reacts there. But you can check Alsa if it sees the mic. And if it does detect it then most likely everything stays the same for the code part
@ardianp.atmaja872
@ardianp.atmaja872 2 жыл бұрын
was it must be connected to the internet to made speech recognition work?
@Audas101
@Audas101 2 жыл бұрын
Hey, yes it must be connected to the internet since it is not a local recognition model.
@elrichitl2458
@elrichitl2458 Жыл бұрын
After a while of no speaking it shows an error, how can I keep the program working Even if I am not talking for a long period of time ?
@Audas101
@Audas101 Жыл бұрын
Hey, thanks for watching! So in that case I had same problems and I haven't tried fixing them, but I thought that "try" "except" case should work, tho I am not sure.
@jackraven8711
@jackraven8711 2 жыл бұрын
Hey, i have an issue where for sudo apt-get install python-pyaudio python3-pyaudio, it says it cant find a package called python-audio, any ideas?
@okunugaoluwaloseyi-wgmusic264
@okunugaoluwaloseyi-wgmusic264 Жыл бұрын
same
@jackraven8711
@jackraven8711 Жыл бұрын
@okunugaoluwaloseyi-wgmusic264 i cant remember how i sorted it. I think i just reset the pi or did pip install pyaudio
@jackraven8711
@jackraven8711 Жыл бұрын
@okunugaoluwaloseyi-wgmusic264 i found that when you download a library from a KZbin video doesn't work, i use a website called pypi as it will tell you the raspberry pi terminal command needed to download a required library. Hope this helps
@hayafatima9844
@hayafatima9844 Жыл бұрын
Sir how to connect mic speaker with raspberry pi 3 model b
@Audas101
@Audas101 Жыл бұрын
Hey! You connect it through a USB audio card.
@GamingPro-bs6di
@GamingPro-bs6di 2 жыл бұрын
I keep getting an error it says "Traceback (most recent call last): File "/home/pi/speech test 1.py", line 18, in Words = r.recognize_google(audio)" this isn't the full error but like can you helpM
@Audas101
@Audas101 2 жыл бұрын
Hey, does this happen after some time using the recognition or before even recognizing something?
@squidfx9644
@squidfx9644 Жыл бұрын
@@Audas101 After ssome time using it
@ahmedkimo4118
@ahmedkimo4118 2 жыл бұрын
iam rpi 4 i cannot install python-pyaudio but i could isntall python3 the erorr i got "E: Unable to locate package python-pyaudio"
@harshavardhanaradhyahu2870
@harshavardhanaradhyahu2870 3 күн бұрын
Bro use python3-pyaudio
@vitorsinventions
@vitorsinventions 3 жыл бұрын
My recognizer is taking too long to respond...what should i do to fix it?
@Audas101
@Audas101 3 жыл бұрын
Hey, Yes first response takes time, but after the first response it is connected to the server and then the response speed depends on Your internet speed. As I said mine was about 2 seconds for each response. I hope this helped!
@vitorsinventions
@vitorsinventions 3 жыл бұрын
@@Audas101 thanks man! I think my internet was not helping too...but now its working very well! Your tutorial is incredible and help me a lot ! Good job ! 👏
@Audas101
@Audas101 3 жыл бұрын
@@vitorsinventions Thank You for watching it and giving a try!
@sapito169
@sapito169 2 жыл бұрын
i think the coumputer will write i can hear you let me talk with your leader
@venkateshperumala388
@venkateshperumala388 2 ай бұрын
Let me know which os you was used in this video
@dhruvnayak1079
@dhruvnayak1079 3 жыл бұрын
great work man ......sometime I get error like this ..... raceback (most recent call last): File "/home/pi/voice recg.py", line 18, in words = r.recognize_google(audio) File "/usr/local/lib/python3.7/dist-packages/speech_recognition/__init__.py", line 858, in recognize_google if not isinstance(actual_result, dict) or len(actual_result.get("alternative", [])) == 0: raise UnknownValueError() speech_recognition.UnknownValueError any idea?
@Audas101
@Audas101 3 жыл бұрын
Thanks! I am pretty sure this error comes when recognizer does not get any audio from the user and then it just sends static noise to Google wed speech API which does not understand that and doesn't give anything back. If this is the case then yeas after longer uses this program might bring this error. A simple solution for that would be to use Try Except conditions for reading the voice. You can simply read the certain level of voice from which it activates the comunication with recognizer. I hope this helped! And thanks for watching my video!
@dhruvnayak1079
@dhruvnayak1079 3 жыл бұрын
Thank you.
@benhardy8351
@benhardy8351 3 жыл бұрын
@@dhruvnayak1079 I'm having the same problem, were you able to fix it? and if so, what did you do?
@dhruvnayak1079
@dhruvnayak1079 3 жыл бұрын
@@benhardy8351 i havent yet ..i will update if i find a solution
@benhardy8351
@benhardy8351 3 жыл бұрын
@@dhruvnayak1079 I'm new to Python but I think I solved it for me. I added Try Except so mine looks like this now while True: with mic as source: audio = r.listen(source) try: words = r.recognize_google(audio) print(words) if words == "stop" break except Exception: print("is anyone talking?") so now instead of the program cancelling from the error, it will print "is anyone talking?"
@lezbriddon
@lezbriddon 2 жыл бұрын
shouldnt title be 'Speech Recognition With google'. at least the v2 speech decoder module is hw and can operate without an internet connection. v3 hw module is way better than v2
@abhiramsp9972
@abhiramsp9972 5 ай бұрын
Brother can we train siren and recognize using this code if not how to achieve it pls do reply its really urgent :) hope you see this comment and reply :)
@bobafett8732
@bobafett8732 2 жыл бұрын
Congratulations you just made a google spy device
@Audas101
@Audas101 Жыл бұрын
Google please give me job :D
@stinger220
@stinger220 2 жыл бұрын
No module named "speech_recognition"
@stinger220
@stinger220 2 жыл бұрын
I installed speech recognition but it won't run due to it "not being recognized"
@kalosha_lx1548
@kalosha_lx1548 2 жыл бұрын
@@stinger220try: sudo pip install SpeechRecognition or sudo pip3 install SpeechRecognition
@claudioguendelman
@claudioguendelman Жыл бұрын
Traceback (most recent call last): File "/var/www/html/vr/sp.py", line 18, in words = r.recognize_google(audio) File "/home/eva/.local/lib/python3.9/site-packages/speech_recognition/__init__.py", line 858, in recognize_google if not isinstance(actual_result, dict) or len(actual_result.get("alternative", [])) == 0: raise UnknownValueError() speech_recognition.UnknownValueError
Voice Recognition Raspberry PI and Arduino UART communication
15:17
I Built a Personal Speech Recognition System for my AI Assistant
16:32
Was ist im Eis versteckt? 🧊 Coole Winter-Gadgets von Amazon
00:37
SMOL German
Рет қаралды 32 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:25
CRAZY GREAPA
Рет қаралды 14 МЛН
FOOLED THE GUARD🤢
00:54
INO
Рет қаралды 64 МЛН
Hey Jarvis | Mycroft | PiCroft Setup on Raspberry Pi
11:01
Caroline Dunn
Рет қаралды 72 М.
You won't believe how fast it is | Raspberry Pi Speech-to-Text
6:54
The Petabyte Pi Project
22:27
Jeff Geerling
Рет қаралды 2,2 МЛН
Raspberry Pi AI: Picroft Voice Assistant
21:34
ExplainingComputers
Рет қаралды 161 М.
ChatGPT + Raspberry Pi -  A ChatGPT powered Raspberry Pi chatbot
6:35
Thomas the Maker
Рет қаралды 68 М.
Raspberry Pi Blinking LED
12:13
BurgZerg Arcade
Рет қаралды 140 М.
PiCroft - Build your own Voice Assistant
10:24
DrZzs & GrZzs
Рет қаралды 155 М.
Неразрушаемый смартфон
1:00
Status
Рет қаралды 2,4 МЛН
ИГРОВОВЫЙ НОУТ ASUS ЗА 57 тысяч
25:33
Ремонтяш
Рет қаралды 332 М.
YOTAPHONE 2 - СПУСТЯ 10 ЛЕТ
15:13
ЗЕ МАККЕРС
Рет қаралды 172 М.