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/
  • Наука та технологія

КОМЕНТАРІ • 206

  • @micmacha
    @micmacha 2 роки тому +123

    For "pyttsx3", I'm guessing that "py" is for "Python", "tts" is "Text To Speech", and "x3" is some kind of funky version thing.

  • @weebiesoftware6296
    @weebiesoftware6296 2 місяці тому

    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!!!

  • @Nico-eq3rf
    @Nico-eq3rf Рік тому +3

    Short and dynamic video, just the way i like em. Thanks

  • @lStephen99
    @lStephen99 3 роки тому +3

    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

  • @medionstudios
    @medionstudios 3 роки тому +8

    Thanks NeuralNine. I always learn a lot with your videos. I am a beginner with Python. Super grateful.

  • @waleedawan5454
    @waleedawan5454 2 роки тому +6

    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!

    • @soupy5890
      @soupy5890 2 роки тому +3

      Yep the wonders of python

  • @nayansetty2926
    @nayansetty2926 3 роки тому +2

    Man u teach stuff 😂 way more 💪 efficient thn any of the youtuber out ther pls hoping for an playlist of neural networks from scratch

  • @JPlays36_
    @JPlays36_ 2 роки тому

    Hello how can i apply the different speech algorithms in a voice regonition?

  • @__3093
    @__3093 3 роки тому +19

    pyttsx3 stands for "python text to speech version 3", not entirely sure

  • @Garrett_C
    @Garrett_C 3 роки тому +7

    Any plans to add context to your chatbot? That would awesome! Thanks for the videos man.

  • @all-in-one-890
    @all-in-one-890 7 місяців тому

    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?

  • @yorubaakoye
    @yorubaakoye Рік тому +1

    Thank you for the content. What if I want to do something about speech matching, how does it work?

  • @DraccoStudio
    @DraccoStudio 2 роки тому

    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…

  • @mohitpandya_2228
    @mohitpandya_2228 4 місяці тому +1

    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 ??

  • @gofurovgodev
    @gofurovgodev 5 місяців тому

    Hello, can you advise me. Need build face comparison service, it should be perfect. How can I learn or use resources

  • @doddianil6946
    @doddianil6946 5 місяців тому

    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

  • @bravoslab
    @bravoslab Рік тому

    how do u make the script go word by word instead of sentence per sentence?

  • @kacemichakdi3048
    @kacemichakdi3048 2 роки тому

    Thanks a lot for this video. What can we do if we want just to know how many speeches(voices) in an audio file.

  • @aminesaib
    @aminesaib 5 місяців тому

    What would the best approach to use a similar approach to extract text in realtime without delay ?

  • @GamerWolfLp
    @GamerWolfLp Рік тому

    you actually saved me a lot of time in my Bachelor thesis Projekct xD

  • @Illogical.
    @Illogical. 7 місяців тому

    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.)

  • @toppaine4008
    @toppaine4008 Рік тому

    Pls help why do you use with instead of mic=speech_recognition.Microhpone(), I don't understand the with here

  • @soham0726
    @soham0726 2 місяці тому

    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

  • @Mindblurify
    @Mindblurify 2 роки тому +1

    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.

  • @Surya_Kiran_K
    @Surya_Kiran_K 5 місяців тому

    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

  • @moinansari7300
    @moinansari7300 3 роки тому

    how is it showing option on what to type when thw word is not completed yet

  • @milkmern
    @milkmern 3 роки тому

    It keeps saying invalid syntax jedi [23,22] any suggestions hw to fix this?

  • @enesuqur
    @enesuqur 3 роки тому

    How can I make the assistant detect in another language?

  • @aryanchavan1580
    @aryanchavan1580 Місяць тому

    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?

  • @cjazarcon6836
    @cjazarcon6836 8 місяців тому

    what compiler did u use?

  • @ravigond8383
    @ravigond8383 3 роки тому

    Which idle you are using

  • @Mark-zi6nt
    @Mark-zi6nt 2 роки тому

    WHAT PACKAGE VERSIONS ARE YOU USING?

  • @BarbarooTheKangaroo
    @BarbarooTheKangaroo 2 роки тому +1

    very cool xD I love these python libraries that make such cool applications so easy to make xD

  • @siabonga7911
    @siabonga7911 Рік тому

    what ide are you using?

  • @carlospazuzu
    @carlospazuzu 3 роки тому

    Which code editor is tis one?

  • @garymaya1767
    @garymaya1767 10 місяців тому

    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?

  • @prodbyheavn
    @prodbyheavn 3 роки тому

    What IDE are you using?

  • @benjamintan3069
    @benjamintan3069 2 роки тому

    I am having AttributeError: 'Recognizer' object has no attribute 'adjust_for_ambient_noice' anyone know why?

  • @hermman6605
    @hermman6605 3 місяці тому

    how to make mouse click whenever it hear specific audio

  • @nice_brotherlol9062
    @nice_brotherlol9062 Рік тому

    Hi there can u help me
    im trying to use german but it doesnt work

  • @Idk-nl7fe
    @Idk-nl7fe 2 роки тому

    How can I make it so that when I say something it replies with something

  • @jarodmorris611
    @jarodmorris611 Рік тому

    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.

  • @shadrack3370
    @shadrack3370 4 місяці тому

    love it man.thanks for the help

  • @chriss3154
    @chriss3154 3 роки тому +8

    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...

  • @disney__hari__
    @disney__hari__ Місяць тому

    No matching distribution found for speech recognition error coming after trying to install speech recognition

  • @syikhaakmal6619
    @syikhaakmal6619 Рік тому

    this is what i am looking for my problem thankyou so much

  • @mayureshdharwadkar853
    @mayureshdharwadkar853 2 місяці тому +2

    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:

  • @marconarca2706
    @marconarca2706 2 роки тому

    Hi install speech recognition however import in speech recognition is making an error

  • @captain_ua
    @captain_ua 2 роки тому

    what is the music in the intro?

  • @AshishSingh-sy3gn
    @AshishSingh-sy3gn 2 роки тому

    What is the difference between SpeechRecognition and speech_recognition module

  • @northwestrepair
    @northwestrepair Рік тому

    Does it work offline ?

  • @lonelyboat2291
    @lonelyboat2291 2 місяці тому

    Thanks how do i make it faster though?

  • @phisicist7518
    @phisicist7518 3 роки тому +3

    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

  • @leweed3049
    @leweed3049 2 роки тому

    Yeah cool, but when do we actually need the pyttsx3 libary?

  • @LostPostProductions
    @LostPostProductions 4 місяці тому +2

    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.

  • @soham0726
    @soham0726 2 місяці тому

    How to use this script for tekinter library's

  • @itsme_saqib
    @itsme_saqib 4 місяці тому

    Brotha I'm having trouble after except the whole line is showing error even continue is 😂 what should I do, tell me please

  • @medoaboali1001
    @medoaboali1001 3 роки тому

    is there is any offline recognizer?

  • @twice9548
    @twice9548 3 роки тому

    How to import this Code into an Android Application??

  • @saswat_samal
    @saswat_samal 3 роки тому +4

    Great one! Looking forwards to combine and make an assistant!

  • @divinewisdom1100
    @divinewisdom1100 Рік тому

    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

  • @bradley5008
    @bradley5008 3 роки тому

    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

  • @newweeks7250
    @newweeks7250 2 роки тому

    Wow. Attractive session I would say :)

  • @leonardobasso3622
    @leonardobasso3622 2 роки тому +1

    thx you helped me a lot!!

  • @vishnuprasad5846
    @vishnuprasad5846 Рік тому

    Bro it is giving Flac conversation utility not available please help😢😢😢😢

  • @ahmedel-sinousy4848
    @ahmedel-sinousy4848 2 роки тому +1

    thank you man !❤

  • @hiteshganga6364
    @hiteshganga6364 3 роки тому

    i love ur intro music bro cool

  • @maherkhaznaji
    @maherkhaznaji 2 роки тому

    Great video, thank you

  • @33ndee54
    @33ndee54 3 роки тому

    Awesome Man thanks!

  • @avettonoyan8986
    @avettonoyan8986 2 роки тому +1

    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?

    • @mohitpandya_2228
      @mohitpandya_2228 4 місяці тому

      Im getting the same thing bruhh! How did you solve it?

  • @BrandonJacobson
    @BrandonJacobson 3 роки тому +2

    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.

    • @afonsohipolito6983
      @afonsohipolito6983 2 роки тому

      Exactly! Having the same problem... I tried using offline speech recognition sphinx

  • @securebrowser1479
    @securebrowser1479 2 роки тому

    Pyaudio wont install on my mac.

  • @sin3divcx
    @sin3divcx 8 місяців тому

    No module named 'speech recognition', why?

  • @SA-oj3bo
    @SA-oj3bo 2 роки тому

    This is interesting, it works without a google account? Is it a free service?

  • @motorinmysoup9912
    @motorinmysoup9912 2 роки тому +2

    I’m assuming pyttsx3 means “Python Text to Speech x.3” as in python 3. At least that’s what helps me remember

  • @catchme4060
    @catchme4060 3 роки тому

    Thank you very much for.your content.

  • @visuss1
    @visuss1 3 роки тому +6

    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.

  • @weirddev
    @weirddev 2 роки тому

    you never used pyttsx3 why did you import that

  • @akshayi6991
    @akshayi6991 2 роки тому

    WHICH INTERPTER IS THIS

  • @slimabdelkaderghorbel6893
    @slimabdelkaderghorbel6893 2 роки тому

    can't use uknownvalueError idk why

  • @jpsl5281
    @jpsl5281 Рік тому

    im getting a json and then the text

  • @developerx962
    @developerx962 3 роки тому

    when I talking any thing it is not working

  • @chuanjiang6931
    @chuanjiang6931 3 роки тому +3

    Keep getting this error:
    RequestError: recognition request failed: Bad Request

  • @salmanbricks3171
    @salmanbricks3171 2 роки тому

    what version of python did you used for this project? i use version 3.8 and it could not run

    • @xray82
      @xray82 2 роки тому

      same

    • @pythonbotofitsskt9286
      @pythonbotofitsskt9286 2 роки тому +1

      The SpeechRecognition module is only available from Python 2.7 until 3.6. That's why it doesn't work probably

  • @MatchaMoji
    @MatchaMoji 2 роки тому +3

    was the pyttsx3 used? I tried the code but it says it isn't being used....

    • @Ahmed--Hany
      @Ahmed--Hany 4 місяці тому

      no it didnt pyttsx3 is for convert text to speech but it comes with pyaudio module that whats he used

  • @hoshmandctf1
    @hoshmandctf1 3 роки тому +1

    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...

  • @muhammadyezabaihaqi2215
    @muhammadyezabaihaqi2215 2 роки тому

    when I run the code, I always get an error AttributeError: module 'speech_recognition' has no attribute 'adjust_for_ambient_noise'

  • @DIEGOARMANDOGAMEROPALACIOS
    @DIEGOARMANDOGAMEROPALACIOS 8 місяців тому +1

    it doesn't work, i tried everything, nothing worked for me.

  • @leweed3049
    @leweed3049 2 роки тому

    And how do i choose microphones when i have multible?

    • @tez3998
      @tez3998 2 роки тому

      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.

  • @LamsyTech
    @LamsyTech 3 роки тому +4

    Pls do the video on the how to automate your house with speech recognition script...
    Thanks
    I like all your videos

    • @holycow4889
      @holycow4889 3 роки тому

      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).

  • @scorchinghotdoritos
    @scorchinghotdoritos 11 місяців тому

    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

  • @kadaliakshay6770
    @kadaliakshay6770 2 роки тому

    Can you please give me the source code?

  • @danielcastillejos2463
    @danielcastillejos2463 3 роки тому

    Excelelent!

  • @avidcrafting
    @avidcrafting Рік тому

    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.

    • @user-re5tq7gm5k
      @user-re5tq7gm5k Рік тому

      post the code

    • @avidcrafting
      @avidcrafting Рік тому

      @@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.

  • @A__Bristy
    @A__Bristy Рік тому

    here is a problem in my code , it shows that microphone is working but speech not show in command line...........

    • @a.c.e7407
      @a.c.e7407 Рік тому

      same man. Were you able to fix it?

  • @jorgesoares8119
    @jorgesoares8119 2 роки тому

    (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

    • @recur9759
      @recur9759 Рік тому +1

      Got the same error. Trying to find solution now. did you?

    • @Alex-yo8ph
      @Alex-yo8ph Рік тому

      @@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

    • @recur9759
      @recur9759 Рік тому

      @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?

    • @Alex-yo8ph
      @Alex-yo8ph Рік тому

      @@recur9759 try googling "python speech recognition". I don't like the idea to revert to older versions.

    • @recur9759
      @recur9759 Рік тому

      @@Alex-yo8phthanks

  • @VedaVoyager
    @VedaVoyager 3 роки тому +2

    Great video! Please share such IDE, you are using?

    • @VedaVoyager
      @VedaVoyager 3 роки тому

      @Stefan Teutebergthank you

  • @abrarmasumabir3809
    @abrarmasumabir3809 3 роки тому

    plz make a video on your vim plugin

  • @ehsam8202
    @ehsam8202 2 роки тому

    i think pyttsx stands for python speech to text, idk what the x stands for tho

  • @maturamgoel5330
    @maturamgoel5330 3 роки тому

    Can you make a video on How to recognize people with their voice, Please make a vid if you could do that..!!