我联系了 symbl.ai 团队,这是反馈。 我们可以在流 API 中使用临时跟踪器。我们还可以在发送到 symbl.ai 的
start_request
的全局级别添加一个跟踪器数组,这些临时跟踪器将在该调用中使用。
我们还可以发送您想要使用的任何托管跟踪器的 trackerId。我们可以从管理 api GET Trackers api 调用中获取 trackerId。
以下是示例start_request
,您可以将其用于上述两种情况。
{
"type": "start_request",
"insightTypes": [
"action_item",
"question"
],
"trackers": [
{
"name": "Catch Phrases",
"vocabulary": [
"That's the way the news goes",
"You got it dude",
"Did I do that",
"Don't have a cow, man",
"Yadda yadda yadda",
"What are your thoughts"
]
},
{
"name": "Denial",
"vocabulary": [
"No",
"never agreed to",
"not interested"
]
},
{
"name": "Action",
"vocabulary": [
"submit paper",
"please leave a message after a tone"
]
},
{
"id": "123456789" //ID can be taken from management api
}
],
"config": {
"confidenceThreshold": 0.5,
"timezoneOffset": 480,
"languageCode": "en-US",
"speechRecognition": {
"sampleRateHertz": 16000
},
"trackers": {
"interimResults": true
}
}
}
也记下这一点。 确保发布音频流的 Websocket 实例将自定义添加到跟踪器,以防您有另一个正在加入对话的 Websocket 实例处于仅监听模式。