Commit
·
d73a358
1
Parent(s):
45a3b16
calls to /model/config upon web app load
Browse files- magentaRT_rt_tester.html +9 -4
magentaRT_rt_tester.html
CHANGED
|
@@ -258,9 +258,9 @@ function beginPlaybackFromPending() {
|
|
| 258 |
scheduleAudioBuffer(abuf);
|
| 259 |
}
|
| 260 |
// Flip server pacing to realtime after we’ve started, if bootstrapping was enabled
|
| 261 |
-
if ($("chkBootstrap").checked) {
|
| 262 |
-
|
| 263 |
-
}
|
| 264 |
}
|
| 265 |
|
| 266 |
// Audio chain
|
|
@@ -315,7 +315,7 @@ async function scheduleWavBytes(arrayBuffer) {
|
|
| 315 |
const abuf = await ctx.decodeAudioData(arrayBuffer);
|
| 316 |
if (!abuf) return;
|
| 317 |
|
| 318 |
-
const need =
|
| 319 |
if (!playing) {
|
| 320 |
pending.push(abuf);
|
| 321 |
queueEl.textContent = `${pending.length} pending, 0.00s scheduled`;
|
|
@@ -625,6 +625,11 @@ async function scheduleWavBytes(arrayBuffer) {
|
|
| 625 |
checkHealthAndGate();
|
| 626 |
refreshFinetuneControls();
|
| 627 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 628 |
})();
|
| 629 |
</script>
|
| 630 |
</body>
|
|
|
|
| 258 |
scheduleAudioBuffer(abuf);
|
| 259 |
}
|
| 260 |
// Flip server pacing to realtime after we’ve started, if bootstrapping was enabled
|
| 261 |
+
// if ($("chkBootstrap").checked) {
|
| 262 |
+
// try { ws?.send(JSON.stringify({ type: "update", pace: "realtime" })); } catch {}
|
| 263 |
+
// }
|
| 264 |
}
|
| 265 |
|
| 266 |
// Audio chain
|
|
|
|
| 315 |
const abuf = await ctx.decodeAudioData(arrayBuffer);
|
| 316 |
if (!abuf) return;
|
| 317 |
|
| 318 |
+
const need = 0; // this used to be for pre-roll. it didn't help with realtime on the L4.
|
| 319 |
if (!playing) {
|
| 320 |
pending.push(abuf);
|
| 321 |
queueEl.textContent = `${pending.length} pending, 0.00s scheduled`;
|
|
|
|
| 625 |
checkHealthAndGate();
|
| 626 |
refreshFinetuneControls();
|
| 627 |
|
| 628 |
+
document.addEventListener("DOMContentLoaded", () => {
|
| 629 |
+
checkHealthAndGate?.(); // if you added /health gating
|
| 630 |
+
refreshFinetuneControls?.(); // pulls /model/config and toggles the finetune card
|
| 631 |
+
});
|
| 632 |
+
|
| 633 |
})();
|
| 634 |
</script>
|
| 635 |
</body>
|