【发布时间】:2018-06-13 18:28:33
【问题描述】:
我目前在 Debian 8 Jessie 上运行 Python 2.7 和当前的 google-cloud-speech 和存储(今天升级了)。当我尝试配置时失败:
ValueError:协议消息 RecognitionConfig 没有“enable_automatic_punctuation”字段。
来自这个电话:
config = speech.types.RecognitionConfig(
encoding=speech.enums.RecognitionConfig.AudioEncoding.LINEAR16,
sample_rate_hertz=8000,
language_code='en-US',
# Enable automatic punctuation
enable_automatic_punctuation=True)
调用是直接从“https://cloud.google.com/speech-to-text/docs/automatic-punctuation#speech-enhanced-model-python”复制/粘贴的。
嗯?
【问题讨论】:
-
你
from google.cloud import speech_v1p1beta1 as speech了吗
标签: config google-cloud-speech