Use x-webkit-speech in an HTML/JavaScript extension

后端 未结 3 1290
不知归路
不知归路 2021-02-14 01:39

I am trying to use the new x-webkit-speech function in a simple HTML/JavaScript extension in Google Chrome. I, however, have tried and tried looking at a bunch of e

3条回答
  •  既然无缘
    2021-02-14 02:20

    if (document.createElement("input").webkitSpeech === undefined) {
        alert("Speech input is not supported in your browser.");
    }
    

    you can use this code

提交回复
热议问题