New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting error while using speech_recognition module in python.Error: TypeError: function takes exactly 2 arguments (3 given) #148
Comments
Hi @aquibjaved,
|
Hi, thank you for the reply. |
could you please help me to resolve the below error /usr/bin/python3.5 /home/swapnil/PycharmProjects/speech/google_api.py |
There is discussion here |
Hi @swapnilkumar25, You need PyAudio 0.2.11 or later. You have PyAudio 0.2.8. To fix this issue, upgrade your PyAudio installation to version 0.2.11 or later. If you installed PyAudio using Pip, this should be doable with one command: |
help to resolve this issue. |
please i have upgrade pyaudio on 0.2.11 but still facing error SyntaxError: unexpected EOF while parsing |
please any one help me???? |
@786adnan can you please check this https://stackoverflow.com/questions/47419836/unexpected-end-of-file-wavfile-read-python |
@aquibjaved sir i have check it i have also scipy; version 0.19.0 but i didn't understand what can i do next?? |
plz guide me what should i do?? |
How to solve the problem Please Help: CODEimport speech_recognition as sr r = sr.Recognizer() try: ErrorTypeError Traceback (most recent call last) /Users/atanudey/anaconda2/lib/python2.7/site-packages/speech_recognition/init.pyc in listen(self, source, timeout, phrase_time_limit, snowboy_configuration) /Users/atanudey/anaconda2/lib/python2.7/site-packages/speech_recognition/init.pyc in read(self, size) /Users/atanudey/anaconda2/lib/python2.7/site-packages/PyAudio-0.2.11-py2.7-macosx-10.6-x86_64.egg/pyaudio.pyc in read(self, num_frames, exception_on_overflow) TypeError: function takes exactly 2 arguments (3 given) |
Hi @atanudeyiitkgp , |
Hi @aquibjaved Thanks for your reply, but when I tried to install the package using "libportaudio-dev" then also I am getting error. Its not yet installed. While I am using "pip install libportaudio-dev" then error is While I am using "sudo apt-get install libportaudio-dev" then error is "sudo: apt-get: command not found" Before that, I have also installed "portaudio" using "brew install portaudio". It is installed properly. Please give me a solution. |
Command "c:\python37\python.exe -u -c "import setuptools, tokenize;file='C:\Users\Robotics\AppData\Local\Temp\pip-install-l_aug1fz\pyaudio\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\Robotics\AppData\Local\Temp\pip-record-0bc3_y_3\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Robotics\AppData\Local\Temp\pip-install-l_aug1fz\pyaudio\ I am getting this error while installing pyaudio |
Traceback (most recent call last): Process finished with exit code 1 plz help me to solve this error |
- find your Python version by python --version mine is 3.7.3 for example
- the easiest way to check either you have 64 or 32 Python just open it
in the terminal:
- find the appropriate .whl file from here
<https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio>, for example mine
is PyAudio‑0.2.11‑cp37‑cp37m‑win_amd64.whl, for 64 bit and for 32 bit
use 32 bit .whl file and download it.
- go to the folder where it is downloaded for example cd
C:\Users\foobar\Downloads
- install the .whl file with pip for example in my case:
pip install PyAudio-0.2.11-cp37-cp37m-win_amd64.whl
…On Sat, Aug 10, 2019, 11:21 AM Abdulfurkan ***@***.***> wrote:
[image: Fullscreen capture 10-08-2019 111936]
<https://user-images.githubusercontent.com/44740421/62818158-dff2da00-bb60-11e9-8e53-f3bb524afa91.jpg>
Getting This Error Can Anyone Help me
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#148?email_source=notifications&email_token=AH32BCRNZR2X2JMXSQRTIJLQDZJOHA5CNFSM4CLVTO32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4AGUJI#issuecomment-520120869>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AH32BCVTKHWHBUUFJ5W2Q2TQDZJOHANCNFSM4CLVTO3Q>
.
|
Hey! I am facing the same error and i could not find the solution. Can you pls help me if you sorted this error. I am working on a project and struct in between due to this....PLS REPLY |
install the .whl file with pip for example in my case: pip install PyAudio-0.2.11-cp37-cp37m-win_amd64.whl |
Hi Akshar, Please follow the below steps. Step 1: pip install SpeechRecognition Step 2: Code: Later I only did the above things and it works for me. You can try it, I hope it will work for you too. Thanks, |
|
@Abdulfurkan pip install pipwin this helped me, hope so it will help you. |
PS D:\python_exes> python .\speech.py I'm facing that kind of error... don't know what to do... can anyone help me pls |
I have the same issue..Can someone help me please?? |
for me, r.recode(source, duration = 5) i have installed portaudio but still not working |
I want to convert speech to text in real time using the module SpeechRecognition 3.4.6 I've installed everything and now I am trying a simple code from example, here's the code:
I am getting error on line
audio=r.listen(source)
How to fix this problem.
The text was updated successfully, but these errors were encountered: