Convert Audio File to Text in Python - Speech Recognition in Python KGP Talkie

preview_player
ะŸะพะบะฐะทะฐั‚ัŒ ะพะฟะธัะฐะฝะธะต
๐Ÿ”Š Watch till last for a detailed description

๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡
โœ๏ธ๐Ÿ†๐Ÿ…๐ŸŽ๐ŸŽŠ๐ŸŽ‰โœŒ๏ธ๐Ÿ‘Œโญโญโญโญโญ
ENROLL in My Highest Rated Udemy Courses
to ๐Ÿ”‘ Unlock Data Science Interviews ๐Ÿ”Ž and Tests

๐Ÿ“š ๐Ÿ“— NLP: Natural Language Processing ML Model Deployment at AWS
Build & Deploy ML NLP Models with Real-world use Cases.
Multi-Label & Multi-Class Text Classification using BERT.

๐Ÿ“Š ๐Ÿ“ˆ Data Visualization in Python Masterclass: Beginners to Pro
Visualization in matplotlib, Seaborn, Plotly & Cufflinks,
EDA on Boston Housing, Titanic, IPL, FIFA, Covid-19 Data.

๐Ÿ“˜ ๐Ÿ“™ Natural Language Processing (NLP) in Python for Beginners
NLP: Complete Text Processing with Spacy, NLTK, Scikit-Learn,
Deep Learning, word2vec, GloVe, BERT, RoBERTa, DistilBERT

๐Ÿ“ˆ ๐Ÿ“˜ 2021 Python for Linear Regression in Machine Learning
Linear & Non-Linear Regression, Lasso & Ridge Regression, SHAP, LIME, Yellowbrick, Feature Selection & Outliers Removal. You will learn how to build a Linear Regression model from scratch.

๐Ÿ“™๐Ÿ“Š 2021 R 4.0 Programming for Data Science || Beginners to Pro
Learn Latest R 4.x Programming. You Will Learn List, DataFrame, Vectors, Matrix, DateTime, DataFrames in R, GGPlot2, Tidyverse, Machine Learning, Deep Learning, NLP, and much more.

---------------------------------------------------------------

๐Ÿ’ฏ Read Full Blog with Code

๐Ÿ’ฌ Leave your comments and doubts in the comment section
๐Ÿ“Œ Save this channel and video for watch later
๐Ÿ‘ Like this video to show your support and love โค๏ธ

~~~~~~~~
๐Ÿ†“ Watch My Top Free Data Science Videos
๐Ÿ‘‰๐Ÿป Python for Data Scientist
๐Ÿ‘‰๐Ÿป Machine Learning for Beginners
๐Ÿ‘‰๐Ÿป Feature Selection in Machine Learning
๐Ÿ‘‰๐Ÿป Text Preprocessing and Mining for NLP
๐Ÿ‘‰๐Ÿป Natural Language Processing (NLP)
๐Ÿ‘‰๐Ÿป Deep Learning with TensorFlow 2.0
๐Ÿ‘‰๐Ÿป COVID 19 Data Analysis and Visualization
๐Ÿ‘‰๐Ÿป Machine Learning Model Deployment Using
๐Ÿ‘‰๐Ÿป Make Your Own Automated Email Marketing

***********
๐Ÿค BE MY FRIEND

๐Ÿ†“๐Ÿ†“๐Ÿ†“๐Ÿ†“๐Ÿ†“๐Ÿ†“๐Ÿ†“๐Ÿ†“๐Ÿ†“๐Ÿ†“๐Ÿ†“๐Ÿ†“๐Ÿ†“๐Ÿ†“
Hello Everyone,
I would like to offer my Udemy courses for FREE.
This offer is for a limited time. The only thing you need to do is thumbs up ๐Ÿ‘ the video and Subscribe โœ” to the KGP Talkie YouTube channel.

๐Ÿ‘‡ Fill this form for a free coupon
ะ ะตะบะพะผะตะฝะดะฐั†ะธะธ ะฟะพ ั‚ะตะผะต
ะšะพะผะผะตะฝั‚ะฐั€ะธะธ
ะะฒั‚ะพั€

I cant convert more than 10 second audio file to text . it just print 2-3 words stop without any error

deepanshuaggarwal
ะะฒั‚ะพั€

i was getting this error
TypeError: listen() missing 1 required positional argument: 'source'


i search the error in stackoverflow its suggested below line


after correcting the r = sr.Recognizer as r = sr.Recognizer()


it was printing, what we have given text in print statement only...not audio file text

ramanjaneyuluthanniru
ะะฒั‚ะพั€

Is there any other way then using google API become after some time it starts charging asper word basis. So is there any open source way to convert audio to text.

raghavagrawal
ะะฒั‚ะพั€

Thanks for the video! Now, how to make it print as SRT file for subtitle?

fierzayamuiz
ะะฒั‚ะพั€

Error : FLAC conversion utility not available - consider installing the FLAC command line application by running `apt-get install flac` or your operating system's equivalent ...please help

samiksharathore
ะะฒั‚ะพั€

Hello i copy your code verbatim without the try/except blocks so I can get the error message. I get an UnknownValueError


File "C:\Users\valen\AppData\Local\Programs\Python\Python38\lib\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()


seems like either the instance function is True or the len function comes down to 0, but I don't know what either of these things mean

veziop
ะะฒั‚ะพั€

I'm trying to convert a set of audio files which are 5-10 seconds long using the same method you have mentioned. But I'm getting an error "UnknownValueError:". Is this because the audio file is too short?

hianjana
ะะฒั‚ะพั€

can you share the data set and code link ???

krishnamishra
ะะฒั‚ะพั€

Hi thank you very much for the video
the code only gives me the first sentence of the wav file
do you know what is the problem?

benfuxbruner
ะะฒั‚ะพั€

Hello. How can I download this sound file, with the extension needed for the example in the lesson?

ixlbsxk
ะะฒั‚ะพั€

Hi, Unable to convert. Getting the following error. Could you please help.

File "<ipython-input-3-cfae59e5fd4d>", line 1
with as source
^
SyntaxError: invalid syntax

themanavable
ะะฒั‚ะพั€

Hello, Great video tutorial. May I know how to convert a speech to text that is not in English?? I tried your code but it just doesn't work when I try other languages for example Dutch language.

chapidi
ะะฒั‚ะพั€

i am getting only error, could you please share your audio file, I am using some song as an input

ashishsharp
ะะฒั‚ะพั€

Can you show me how to get more variations or how to correct the audio file so the output will be better . Thank you

chrissh
ะะฒั‚ะพั€

Hi Dear, I am getting error.. please give me solution ...

As pe video we did but its not work, please see here....

[1] import speech_recognition as sr
[2] r = sr.Recognizer()
[3] with sr.AudioFile('audio.wav') as source:
audio = r.listen(source)
try:
text = r.recognize_google(audio)
print('working on...')
print(text)
except:
print('Sorry.. run again...')
Receiving Error is => " File "<ipython-input-4-d6dd25ff4fc2>", line 7
except:
^
SyntaxError: invalid syntax
"

Please help to find out the error point

yogeshwarmaitry
ะะฒั‚ะพั€

sir, I got an error i.e. "Audio file could not be read as PCM WAV, AIFF/AIFF-C, or Native FLAC; check if file is corrupted or in another format" .How I solve it?

antaraakhan
ะะฒั‚ะพั€

How can i convert 100 audio files to text???

rupontikarim
ะะฒั‚ะพั€

iam always getting "sorry " as output!!!
can u please help me to rectify this

aravindraja
ะะฒั‚ะพั€

To read audio data from a file, use r.record(source) rather than r.listen()

i-raza-ahmad
ะะฒั‚ะพั€

Bro cant listen Indonesia. Just english

myvanced