mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-02-13 16:08:41 +00:00
fix infinite quick microphone restart (performance issue)
This commit is contained in:
parent
e356cb5dd9
commit
f4f66bec76
|
|
@ -59,7 +59,8 @@ export class VoiceManager
|
||||||
}
|
}
|
||||||
|
|
||||||
this.recognition.onstart = function() {};
|
this.recognition.onstart = function() {};
|
||||||
this.recognition.addEventListener('end', this.recognition.start);
|
// @todo find a way to run a re-init after end every x seconds (where x = 3 or 5 seconds)
|
||||||
|
//this.recognition.addEventListener('end', reset(function() {return self.recognition.start}, 3000));
|
||||||
|
|
||||||
this.recognition.onresult = function(event)
|
this.recognition.onresult = function(event)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user