I searched for about 3 days for a library or something for speech recognition via python 3 .. i found all libraries Outdated , Is their any way to do it ? , i'm Working on Windows 8
我找了大约3天的时间去图书馆或者通过python 3的语音识别。我发现所有的图书馆都过时了,他们有办法吗?我正在做Windows 8。
1 个解决方案
#1
2
In case you still need it or someone else would come across this question, I recently found this: https://pypi.python.org/pypi/SpeechRecognition/
如果您仍然需要它或其他人会遇到这个问题,我最近发现了这个:https://pypi.python.org/pypi/tion/。
It uses Google Speech Recognition API.
它使用谷歌语音识别API。
Tested it on my MacBook OS X 10.8.5 / Python 3.4 - works fine when processing input from the microphone, supports different languages.
在我的MacBook OS X 10.8.5 / Python 3.4中进行测试,当处理来自麦克风的输入时,可以支持不同的语言。
Keep in mind for some tasks it may require you to install additional modules, here's a quote from its requirements:
记住一些任务,它可能需要你安装额外的模块,以下是它的要求:
The first software requirement is Python 3.3 or better. This is required to use the library.
第一个软件需求是Python 3.3或更好。这需要使用库。
Additionally, it must be 32-bit Python if you are using the included PyAudio binaries. It is also technically possible though inconvenient to compile PyAudio for 64-bit Python.
另外,如果使用包含的PyAudio二进制文件,那么它必须是32位的Python。从技术上讲,对64位Python编译PyAudio也不方便。
If you want to use the Microphone class (necessary for recording from microphone input), PyAudio is also necessary. If not installed, the library will still work, but Microphone will be undefined.
如果你想使用麦克风类(需要从麦克风输入录音),PyAudio也是必须的。如果没有安装,这个库仍然可以工作,但是麦克风将没有定义。
The official PyAudio builds seem to be broken on Windows. As a result, in the installers folder you will find unofficial builds for Windows that actually work. Run installers/PyAudio-0.2.7.win32-py3.3.exe for Python 3.3 and PyAudio-0.2.7.win32-py3.4.exe for Python 3.4.
官方的PyAudio版本似乎在Windows上被打破了。因此,在安装程序文件夹中,您将会发现用于实际工作的Windows的非官方构建。运行安装程序/ PyAudio-0.2.7.win32-py3.3。用于Python 3.3和PyAudio-0.2.7.win32-py3.4的exe。exe Python 3.4。
A FLAC encoder is required to encode the audio data to send to the API. If using Windows or Linux, the encoder is already bundled with this library. Otherwise, ensure that you have the flac command line tool, which is often available through one's system package manager.
需要一个FLAC编码器编码音频数据发送到API。如果使用Windows或Linux,编码器已经与该库绑定。否则,确保您拥有flac命令行工具,该工具通常可以通过一个系统包管理器获得。
#1
2
In case you still need it or someone else would come across this question, I recently found this: https://pypi.python.org/pypi/SpeechRecognition/
如果您仍然需要它或其他人会遇到这个问题,我最近发现了这个:https://pypi.python.org/pypi/tion/。
It uses Google Speech Recognition API.
它使用谷歌语音识别API。
Tested it on my MacBook OS X 10.8.5 / Python 3.4 - works fine when processing input from the microphone, supports different languages.
在我的MacBook OS X 10.8.5 / Python 3.4中进行测试,当处理来自麦克风的输入时,可以支持不同的语言。
Keep in mind for some tasks it may require you to install additional modules, here's a quote from its requirements:
记住一些任务,它可能需要你安装额外的模块,以下是它的要求:
The first software requirement is Python 3.3 or better. This is required to use the library.
第一个软件需求是Python 3.3或更好。这需要使用库。
Additionally, it must be 32-bit Python if you are using the included PyAudio binaries. It is also technically possible though inconvenient to compile PyAudio for 64-bit Python.
另外,如果使用包含的PyAudio二进制文件,那么它必须是32位的Python。从技术上讲,对64位Python编译PyAudio也不方便。
If you want to use the Microphone class (necessary for recording from microphone input), PyAudio is also necessary. If not installed, the library will still work, but Microphone will be undefined.
如果你想使用麦克风类(需要从麦克风输入录音),PyAudio也是必须的。如果没有安装,这个库仍然可以工作,但是麦克风将没有定义。
The official PyAudio builds seem to be broken on Windows. As a result, in the installers folder you will find unofficial builds for Windows that actually work. Run installers/PyAudio-0.2.7.win32-py3.3.exe for Python 3.3 and PyAudio-0.2.7.win32-py3.4.exe for Python 3.4.
官方的PyAudio版本似乎在Windows上被打破了。因此,在安装程序文件夹中,您将会发现用于实际工作的Windows的非官方构建。运行安装程序/ PyAudio-0.2.7.win32-py3.3。用于Python 3.3和PyAudio-0.2.7.win32-py3.4的exe。exe Python 3.4。
A FLAC encoder is required to encode the audio data to send to the API. If using Windows or Linux, the encoder is already bundled with this library. Otherwise, ensure that you have the flac command line tool, which is often available through one's system package manager.
需要一个FLAC编码器编码音频数据发送到API。如果使用Windows或Linux,编码器已经与该库绑定。否则,确保您拥有flac命令行工具,该工具通常可以通过一个系统包管理器获得。