problema con reconocimiento de voz
Publicado por Santiago (11 intervenciones) el 07/06/2021 17:41:54
Hola, he estado intentando crear un sistema de reconocimiento de voz, he leído que la mejor librería para esto es Speech Recognition, pero al intentar utilizarla me dice que necesito pyaudio. Al intentar instalarlo con pip me dice:
He buscado en foros y me dice que instale el PyAudio como .whl pero al descargar el archivo
PyAudio-0.2.11-cp310-cp310-win_amd64.whl con el código
y me da el siguiente error:
He cambiado en el CMD la ruta a donde tengo el archivo .whl
¿Qué hago? El módulo Speech Recognition necesita el pyaudio!!
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
ERROR: Command errored out with exit status 1:
command: 'C:\Users\santi\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\santi\\AppData\\Local\\Temp\\pip-install-u1bqw7vp\\pyaudio_91fde1ab0069405f9891c4c1dd9700b5\\setup.py'"'"'; __file__='"'"'C:\\Users\\santi\\AppData\\Local\\Temp\\pip-install-u1bqw7vp\\pyaudio_91fde1ab0069405f9891c4c1dd9700b5\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\santi\AppData\Local\Temp\pip-wheel-owc9i2zo'
cwd: C:\Users\santi\AppData\Local\Temp\pip-install-u1bqw7vp\pyaudio_91fde1ab0069405f9891c4c1dd9700b5\
Complete output (9 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
copying src\pyaudio.py -> build\lib.win-amd64-3.9
running build_ext
building '_portaudio' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Failed building wheel for pyaudio
Running setup.py clean for pyaudio
Failed to build pyaudio
Installing collected packages: pyaudio
Running setup.py install for pyaudio ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\santi\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\santi\\AppData\\Local\\Temp\\pip-install-u1bqw7vp\\pyaudio_91fde1ab0069405f9891c4c1dd9700b5\\setup.py'"'"'; __file__='"'"'C:\\Users\\santi\\AppData\\Local\\Temp\\pip-install-u1bqw7vp\\pyaudio_91fde1ab0069405f9891c4c1dd9700b5\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\santi\AppData\Local\Temp\pip-record-_1_qsh9n\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\santi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Include\pyaudio'
cwd: C:\Users\santi\AppData\Local\Temp\pip-install-u1bqw7vp\pyaudio_91fde1ab0069405f9891c4c1dd9700b5\
Complete output (9 lines):
running install
running build
He buscado en foros y me dice que instale el PyAudio como .whl pero al descargar el archivo
PyAudio-0.2.11-cp310-cp310-win_amd64.whl con el código
1
pip install PyAudio-0.2.11-cp310-cp310-win_amd64
y me da el siguiente error:
1
ERROR: PyAudio-0.2.11-cp310-cp310-win_amd64.whl is not a supported wheel on this platform.
He cambiado en el CMD la ruta a donde tengo el archivo .whl
¿Qué hago? El módulo Speech Recognition necesita el pyaudio!!
Valora esta pregunta


0