Modification of the structure
This commit is contained in:
@@ -244,7 +244,11 @@ async function start() {
|
||||
stream = null;
|
||||
return;
|
||||
}
|
||||
ctx = new Ctor();
|
||||
try {
|
||||
ctx = new Ctor({ sampleRate: 16000 });
|
||||
} catch {
|
||||
ctx = new Ctor();
|
||||
}
|
||||
await ctx.resume();
|
||||
sampleRate = ctx.sampleRate || 16000;
|
||||
source = ctx.createMediaStreamSource(stream);
|
||||
|
||||
Reference in New Issue
Block a user