speech_recognition
speech_recognition copied to clipboard
Speech Recognition from links
This isn't so much an issue, but more so a question that I was unable to find answers for on the regular forums. I was wondering if there was any way to use speech_recognition on a link? What I mean is, if I was to give the API this link: https://www.google.com/recaptcha/api2/payload/audio.mp3?p=06AD1IbLD6eKKII77YoDkinG3lWV0q-eU3T4-3GBEb2xj9V0ZFBbNNCew_GRjMw5sOEd5RDEVbrub-V3v7i6YD6xiK1DGnXWORPTb76o3vrSlc9OcIhd0ENIhnubSq-9HMm69JnsJ_RKZlesGxJWbm3WLe67vojeFlcmiFOFBk_jP4xKmLvx1gK_3lCyN7ByN-1rdoVNkHEC&k=6LeTnxkTAAAAAN9QEuDZRpn90WwKk_R1TRW_g-JC How could I run the speech_recognition software on it. If it is not possible with this api, could someone guide me to the api necessary to do this. I'd prefer it if I didn't have to download the .wav itself, as it comes in a .mp3 format and it would require me to transform it to .wav.
System information
(Delete all the statements that don't apply.)
My system is <Ubuntu 22.04 LTs x64>.
My Python version is <3.10.6>
My Pip version is <22.0.2>
My SpeechRecognition library version is <3.9.0>
My PyAudio library version is <0.2.13> My microphones are: (partial output) 'HDA Intel PCH: ALC257 Analog (hw:0,0)', 'HDA Intel PCH: HDMI 0 (hw:0,3)', 'HDA Intel PCH: HDMI 1 (hw:0,7)', 'HDA Intel PCH: HDMI 2 (hw:0,8)', 'HDA Intel PCH: HDMI 3 (hw:0,9)', 'HDA Intel PCH: HDMI 4 (hw:0,10)', 'HDA Intel PCH: HDMI 5 (hw:0,11)', 'HDA Intel PCH: HDMI 6 (hw:0,12)', 'HDA Intel PCH: HDMI 7 (hw:0,13)', 'HDA Intel PCH: HDMI 8 (hw:0,14)', 'HDA Intel PCH: HDMI 9 (hw:0,15)', 'HDA Intel PCH: HDMI 10 (hw:0,16)', 'HDA Intel PCH: HDMI 11 (hw:0,17)', 'sysdefault', 'front', 'surround40', 'surround51', 'surround71', 'hdmi', 'samplerate', 'speexrate', 'pulse', 'upmix', 'vdownmix', 'dmix', 'default']
My working microphones are: {0: 'HDA Intel PCH: ALC257 Analog (hw:0,0)', 13: 'sysdefault', 19: 'samplerate', 20: 'speexrate', 21: 'pulse', 25: 'default'}
I installed PocketSphinx from <Debian Repositories>