Google Speech To Text API:未找到启用单词置信度
Google Speech To Text API: Enable Word Confidence Not Found
我无法将 Word 级别的置信度添加到我的替代结果中,有人可以帮忙吗?
我尝试阅读以下页面:
https://cloud.google.com/speech-to-text/docs/word-confidence#speech-word-level-confidence-python
但我无法更改我的代码以恢复对 Word Level
的置信度
Encoding = AudioEncoding.Linear16,
SampleRateHertz = 44100,
LanguageCode = LanguageCodes.English.SouthAfrica,
EnableWordTimeOffsets = true,
EnableAutomaticPunctuation = true,
UseEnhanced = true,
EnableWordConfidence = true;
foreach (var result in response.Results){
foreach (var alternative in result.Alternatives){
returnedText += alternative.Transcript + " ";
foreach (var item in alternative.Words){
var startTime = item.StartTime;
var endTime = item.EndTime;
var confidence = item.Confidence;
}
}
}
单词置信度是 documentation page 的一项 pre-release 功能,因此它仅适用于 select 组 API 用户。尚未对所有人开放。
我无法将 Word 级别的置信度添加到我的替代结果中,有人可以帮忙吗?
我尝试阅读以下页面: https://cloud.google.com/speech-to-text/docs/word-confidence#speech-word-level-confidence-python 但我无法更改我的代码以恢复对 Word Level
的置信度Encoding = AudioEncoding.Linear16,
SampleRateHertz = 44100,
LanguageCode = LanguageCodes.English.SouthAfrica,
EnableWordTimeOffsets = true,
EnableAutomaticPunctuation = true,
UseEnhanced = true,
EnableWordConfidence = true;
foreach (var result in response.Results){
foreach (var alternative in result.Alternatives){
returnedText += alternative.Transcript + " ";
foreach (var item in alternative.Words){
var startTime = item.StartTime;
var endTime = item.EndTime;
var confidence = item.Confidence;
}
}
}
单词置信度是 documentation page 的一项 pre-release 功能,因此它仅适用于 select 组 API 用户。尚未对所有人开放。