当我尝试使用Web套接字对实时电话的文字记录进行语音发言时。
已包含
const Speech = require('@google-cloud/speech').v1p1beta1;
const speech = new Speech.SpeechClient();
使用以下配置。
encoding: 'LINEAR16',
sampleRateHertz: 8000,
languageCode: 'en-US',
useEnhanced: true,
enableSpeakerDiarization: true,
diarizationSpeakerCount: 2,
enableWordConfidence: true,
model: `phone_call`,
我得到以下回应
{
"results": [
{
"alternatives": [
{
"words": [],
"transcript": " what I'm trying to do is",
"confidence": 0.778500497341156
}
],
"isFinal": true,
"stability": 0
}
],
"error": null,
"speechEventType": "SPEECH_EVENT_UNSPECIFIED"
}
你们知道为什么我在上述配置的google cloud响应中没有得到演讲者的歧义吗?