thecollabagepatch commited on
Commit
45a3b16
·
1 Parent(s): 03a6a46

no more bootstrap logic in tester

Browse files
Files changed (1) hide show
  1. magentaRT_rt_tester.html +8 -5
magentaRT_rt_tester.html CHANGED
@@ -417,17 +417,20 @@ async function scheduleWavBytes(arrayBuffer) {
417
  btnStop.disabled = false;
418
  setStatus("connected");
419
 
 
 
 
420
  const msg = {
421
  type: "start",
422
  mode: "rt",
423
- binary_audio: !!chkBinary.checked,
424
  params: {
425
  ...currentParams(),
426
- pace: $("chkBootstrap").checked
427
- ? "asap" // build pre-roll as fast as possible, then we’ll flip
428
- : ($("chkRealtime").checked ? "realtime" : "asap")
429
- }
430
  };
 
431
  ws.send(JSON.stringify(msg));
432
  log("→ start " + JSON.stringify(msg), "ok");
433
  nextTime = ctx.currentTime + 0.12;
 
417
  btnStop.disabled = false;
418
  setStatus("connected");
419
 
420
+ const realtime = $("chkRealtime")?.checked === true;
421
+ const binary = $("chkBinary")?.checked === true;
422
+
423
  const msg = {
424
  type: "start",
425
  mode: "rt",
426
+ binary_audio: !!binary,
427
  params: {
428
  ...currentParams(),
429
+ // no bootstrap or pre-roll anymore
430
+ pace: realtime ? "realtime" : "asap",
431
+ },
 
432
  };
433
+
434
  ws.send(JSON.stringify(msg));
435
  log("→ start " + JSON.stringify(msg), "ok");
436
  nextTime = ctx.currentTime + 0.12;