Add latencyHint when creating AudioContext (test frontend) (#124)
This commit is contained in:
@@ -86,3 +86,6 @@ profile_output*
|
||||
CLAUDE.md
|
||||
QWEN.md
|
||||
.claude/
|
||||
voices
|
||||
|
||||
italk.yaml
|
||||
|
||||
@@ -111,7 +111,9 @@
|
||||
<script>
|
||||
class StreamingWavPlayer {
|
||||
constructor() {
|
||||
this.audioContext = new (window.AudioContext || window.webkitAudioContext)();
|
||||
this.audioContext = new (window.AudioContext || window.webkitAudioContext)(
|
||||
{ latencyHint: "playback" }
|
||||
);
|
||||
this.sampleRate = 0;
|
||||
this.numChannels = 0;
|
||||
this.headerParsed = false;
|
||||
|
||||
Reference in New Issue
Block a user