Add latencyHint when creating AudioContext (test frontend) (#124)

This commit is contained in:
thataboy
2026-02-16 15:42:00 +01:00
committed by GitHub
parent 8443de8e06
commit 9878cd0fd2
2 changed files with 7 additions and 2 deletions
+3
View File
@@ -86,3 +86,6 @@ profile_output*
CLAUDE.md CLAUDE.md
QWEN.md QWEN.md
.claude/ .claude/
voices
italk.yaml
+3 -1
View File
@@ -111,7 +111,9 @@
<script> <script>
class StreamingWavPlayer { class StreamingWavPlayer {
constructor() { constructor() {
this.audioContext = new (window.AudioContext || window.webkitAudioContext)(); this.audioContext = new (window.AudioContext || window.webkitAudioContext)(
{ latencyHint: "playback" }
);
this.sampleRate = 0; this.sampleRate = 0;
this.numChannels = 0; this.numChannels = 0;
this.headerParsed = false; this.headerParsed = false;