Add latencyHint when creating AudioContext (test frontend) (#124)
This commit is contained in:
@@ -86,3 +86,6 @@ profile_output*
|
|||||||
CLAUDE.md
|
CLAUDE.md
|
||||||
QWEN.md
|
QWEN.md
|
||||||
.claude/
|
.claude/
|
||||||
|
voices
|
||||||
|
|
||||||
|
italk.yaml
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user