从语音交互中获取文本 Canvas?
Catch up text from voice Interactive Canvas?
我正在使用 Interactive Canvas 设计网页屏幕。我想从用户在输入框中说话的声音中捕获文本。它类似于 functions / index.js 中的 conv.input.raw
但我不知道在 public / [=20 中做什么=]
一旦你在conv.input.raw
函数中有文本/index.js你需要使用interactiveCanvas将它传递到网站api。
conv.ask(new HtmlResponse({
data: {
userEnteredData: conv.input.raw
}
}));
并且从网站上您将在交互式 canvas
的回调中获得它
interactiveCanvas.ready({
onUpdate(data) {
console.log('user entered text = ', data.userEnteredData);
document.getElementById("textBox").value = data.userEnteredData;
}
});
我正在使用 Interactive Canvas 设计网页屏幕。我想从用户在输入框中说话的声音中捕获文本。它类似于 functions / index.js 中的 conv.input.raw
但我不知道在 public / [=20 中做什么=]
一旦你在conv.input.raw
函数中有文本/index.js你需要使用interactiveCanvas将它传递到网站api。
conv.ask(new HtmlResponse({
data: {
userEnteredData: conv.input.raw
}
}));
并且从网站上您将在交互式 canvas
的回调中获得它interactiveCanvas.ready({
onUpdate(data) {
console.log('user entered text = ', data.userEnteredData);
document.getElementById("textBox").value = data.userEnteredData;
}
});