python - python module speech_recognition recognized only first 5 seconds
问题描述
guys, i have a problem with speech recognition on python3.x I using module speech_recognition. My .wav file have length 5 minutes, however python recognized only first 5 seconds of this file. I have never worked with this module. Please, help me
My code
import speech_recognition as sr
r = sr.Recognizer()
with sr.AudioFile(r"C:\Users\User\Downloads\Unlocking.wav") as source:
audio = r.record(source)
text = r.recognize_google(audio)
print(text)
解决方案
推荐阅读
- python - Python Beautifulsoup 两次返回值
- django - 为什么 django PermissionRequiredMixin 没有按预期工作
- angular - 如何解决mapbox gl js上的addSource错误
- node.js - NodeJs 流、管道和 https 帖子
- r - 使用 sample_n 随机选择 R 中的行
- node.js - 如何从我的网站将 webhook 发送到 jotForm?
- python - AttributeError:模块“dask”没有属性“set_options”
- svn - 备份特定的 SVN 修订版
- snowflake-cloud-data-platform - DBT snowflake utf-8' 编解码器无法解码位置 1031 中的字节 0xa0:无效的起始字节
- oracle - 从 Azure 数据工厂连接到本地 Oracle 数据库