我一直在使用[email protected]^0.5为流媒体视频(HLS)生成字幕给体育用户。Watson Nodejs Speech To Text - 训练语言模型
此外,我已经能够训练语言模型。
我想为训练有素的语言模型使用recognitionElement和我的customization_id。不过,我有2个问题:
1)我觉得recognizeElement已弃用
库调用我现在用的就是
videoProps.stream = WatsonSpeechToText.recognizeElement({
element: myMediaElement,
token: videoProps.ctx.token,
muteSource: false,
autoPlay: false,
model:videoProps.ctx.currentModel,
timestamps: true,
profanity_filter: true,
inactivity_timeout: -1,
continuous: true
})
.pipe(new WatsonSpeechToText.FormatStream());
不过,我注意到,沃森语音0.19.3中, API已被删除。现在有没有其他选择?
此外,我想使用我训练的自定义语言模型。此API是否会更新以包含以下通话?
element: myMediaElement,
token: videoProps.ctx.token,
muteSource: false,
autoPlay: false,
customization_id:videoProps.ctx.currentModel.replace('custom:',''),
timestamps: true,
profanity_filter: true,
inactivity_timeout: -1,
continuous: true
2)我不认为API支持customization_id的。
在recognition-stream.js中查看时,我注意到OPENING_MESSAGE_PARAMS_ALLOWED和QUERY_PARAMS_ALLOWED都支持customization_id。
我可以确定拉下来源并做出更改但是再次认出元素消失了。
谢谢, 亚伦。