Python Speech Recognition | Speech To Text Converter | Google Speech

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello friends I'm Perez and this is our first video and Python speech-to-text rogue nation so in this video we are going to have a simple introduction to speech determination library and also we are going to create a practical example of converting our speech to text using speech to clinician library so the speech recognition library is a good speech recognition library for vitam and speech to information is a library that helps in you in performing speech recognition and Python it supports supports for several engines and api's you can use it online and you can use it offline and also Google Cloud speech cheaper IEP it has Google Cloud speech EPI Microsoft Bing voice recognition I being a speech-to-text an atc so now first of all you need to install speech declination library so now I'm going to open my terminal and I want to show you that how you can install speech recognition ok is now first of all you need to install speech recognition so you can install that pep install speech or a cougar nation and after that hit enter so now I'm waiting for the installation and it will be installed okay guys because I have already install this now you can see requirement already satisfied also if you're using microphone then you need to install PI I to argue so pep install PI argue and hit enter okay guys now the priority audio installation has been completed and you can see okay now after installing now we need to import so let me just first import speech recognition as Sr and now let me create a main method in here okay now the first thing I need I'm going to initialize the recognizer so our s our dot recognizer okay now after initializing the organizer you need to mention the source so the source it will be a microphone we are using microphone in this video but also you can use audio files recorded are devoid of find in your directory and you can convert the speech to text but in this video we are using online speech that I will talk and it will convert that so this is now the source for the source let me write weight which is our dot because we are using microphone source and now we need to some time we need to adjust the nicest because there will be some nicest to handle ambient nice you will need to use the adjust for ambient nice you can simply write in here so our chart and chest for ambient nice and you need to add your source now let me print and please say something okay after this we need to listen to the source for that you need to create an audio in here and our dot listen and we want to listen to the source after this we need to use recognizer to convert our audio into text part now you need to give a try in here try and print you have said you have saved so okay you have said our dot because I have said in the first that said you can use different API for example we we are using recognized Google but we have different in here we have Bank so you can see recognized being recognized Google Cloud and IBM they're different we are using Google so recognized Google and you need to add the argument here okay now in the except exception as e so if we receive an exception we need to give an error in here and we need to convert the error to string like this okay so now this is our simple code you can see it is sooo easy Python that you can convert your text your speech to text and I'll let me call my main method in here so now I'm going to run this and hopefully we have an error in here or exception and then we have ended problem here so what you just I think we have in here problem yeah the other problem was yeah in here okay now this is the complete code and let me just run this hello world now you can see hello you have said hello world now let me just turn it again how are you now you can see how are you so now the sauce that we have recorded that we have converted our speech-to-text sexily now some time you need to save you our audio for example if I said how are you I want to save this for this for saving it's so simple and easy are there different format that you can use for saving let me just create another fight and file in here I will add the sort of the source go to the video description you can check that so now this is our example to whom we need some codes that are repeated let me just copy from my previews we need this import and also we need to copy these codes def main and paste it in here like this we also we need to print in here print recognizing recognizing now and now we need to create our recognized speech using Google so as we have created in the previous section so we need to create a try and let me just print you have set you have set our dot recognize Google and you need to add your apollyon here and also let me print out you record that successfully successfully and we need to add except exception as E and we need to print an exception error class is still our e so now that we okay so now we have to now we need to write our at you for this which open you can you need to give so the first the title for example I want to record it how do you top you there are different formats that you can use we are using WAV format and for the this is the mode I want to give you WP as if if dot right audio dot get so you can see we have a Leah a iff we have raw data we have waived it really deep web design here so now let me just call my main method in here so now let me run this again and I want to record the voice of Internet how are you how are you you can see audio recorded sex-filled and if you see where directory we have our recorded audio in here that wave and if I just open this showing Explorer and let me run it you can see that this is their car that sound so this was the first video in the next video I will show you and other things in a speech recognition I want to the twin ute for example when you want to say facebook.com will open you are facebook.com you are a nice facebook.com and it will open so I will add a source go to the video description please subscribe to my channel like the video and also shared
Info
Channel: Parwiz Forogh
Views: 103,095
Rating: undefined out of 5
Keywords: Python Speech Recognition, Speech To Text Converter, Google Speech, Google, Speech, Bing Speech, CMU Sphinx (works offline), Google Cloud Speech API, Microsoft Bing Voice Recognition, IBM Speech to Text, Snowboy Hotword Detection (works offline), Recognition, learn Speech Recognition, Python (Library), Speech Recognition basics, Speech Recognition For beginners
Id: GluSLXFGfJ8
Channel Id: undefined
Length: 13min 9sec (789 seconds)
Published: Wed Oct 09 2019
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.