I need to use the Audio Segment Library to Convert Audios to Text I install it but it’s showing a Warning at runtime whaen I Run the Project and it doesn’t work:
RuntimeWarning: Couldn’t find ffmpeg or avconv – defaulting to ffmpeg, but may not work warn(“Couldn’t find ffmpeg or avconv – defaulting to ffmpeg, but may not work”, RuntimeWarning)
sound = AudioSegment.from_ogg('user.ogg') sound.export('user.wav', format="wav") r = sr.Recognizer() with sr.AudioFile("user.wav") as source: audio = r.record(source) text = r.recognize_google(audio) print(text)
Note: It was working before I format my computer ,But when I try to reinstall it ,The Message Appears.
I need Your Kindly help and Thank You…
When you open the ffmpeg page, don’t choose the option to download the code. Instead, choose to install the .exe file. Once done, you will see ffmpeg.exe in the bin folder inside the ffmpeg folder. Finally, put the path of the bin folder into the PATH system/user variable.