我在 Python 中为 Google Speech To Text API 启用了单词级别的置信度。但我无法获得单词级别的信心,因为它总是响应“服务没有响应”
# setting the config
enable_word_time_offsets = True
enable_automatic_punctuation = True
enable_word_confidence = True
config = {
"enable_word_time_offsets": enable_word_time_offsets,
"enable_word_confidence": enable_word_confidence,
"language_code": self.language,
"enable_automatic_punctuation": enable_automatic_punctuation}