スポーツユーザー向けのストリーミングビデオ(HLS)の字幕を生成するために[email protected]^0.7.5を使用しています。Watson Nodejs Speech To Text - train言語モデル
さらに、私は言語モデルを訓練することができました。
私は訓練された言語モデルにrecognElementと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をサポートしているとは思わない。
recognisation-stream.jsを見ているうちに、OPENING_MESSAGE_PARAMS_ALLOWEDまたはQUERY_PARAMS_ALLOWEDがcustomization_idをサポートしていることに気付きました。
私は特定のソースをプルダウンして変更を加えることができますが、再び要素がなくなったことを認識します。
ありがとう、 Aaron。