Closed blurymind closed 4 years ago
The problem is here: https://github.com/stephenlb/spoken/blob/master/src/spoken.js#L18
we should be able to specify any language, not just the default or en-US
Still, this does not work at all: :(
spoken.recognition.language = "bg-BG";
spoken.listen.on.partial(ts => ($(".tooltip").title = ts));
spoken
.listen()
.then(transcript => {
self.insertTextAtCursor(transcript);
$(".tooltip").title = "";
})
.catch(error => console.warn(error.message));
ah, my bad. It was spoken.recognition.lang = "bg-BG";
closing now
See https://codepen.io/velvasi/pen/qIEsr