adjust audio player sample rate

This commit is contained in:
Jordan 2026-10-16 12:34:22 -03:00
parent b19b5904e5
commit 2fe87b06d1

View file

@ -7,7 +7,7 @@ import { createStreamingContext } from './stream-context.js?v=0205';
export class AudioPlayer { export class AudioPlayer {
constructor() { constructor() {
// 音频参数 // 音频参数
this.SAMPLE_RATE = 16000; this.SAMPLE_RATE = 24000;
this.CHANNELS = 1; this.CHANNELS = 1;
this.FRAME_SIZE = 960; this.FRAME_SIZE = 960;
this.MIN_AUDIO_DURATION = 0.12; this.MIN_AUDIO_DURATION = 0.12;