我正在设计一个互动画布的网页屏幕。我想从在输入框中发言的用户的声音中捕获文本。它类似于conv.input.raw
中的函数/ index.js,但我不知道在public / index.html中该做什么
发布于 2020-02-20 05:33:13
一旦您在函数/ conv.input.raw
中获得了index.js中的文本,就需要使用interactiveCanvas api将其传递到网站。
conv.ask(new HtmlResponse({
data: {
userEnteredData: conv.input.raw
}
}));
从网站上,您可以在交互式画布的回调中获得它。
interactiveCanvas.ready({
onUpdate(data) {
console.log('user entered text = ', data.userEnteredData);
document.getElementById("textBox").value = data.userEnteredData;
}
});
https://stackoverflow.com/questions/60312828
复制相似问题