mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
adjust audio player sample rate
This commit is contained in:
parent
b19b5904e5
commit
2fe87b06d1
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ import { createStreamingContext } from './stream-context.js?v=0205';
|
|||
export class AudioPlayer {
|
||||
constructor() {
|
||||
// 音频参数
|
||||
this.SAMPLE_RATE = 16000;
|
||||
this.SAMPLE_RATE = 24000;
|
||||
this.CHANNELS = 1;
|
||||
this.FRAME_SIZE = 960;
|
||||
this.MIN_AUDIO_DURATION = 0.12;
|
||||
|
|
|
|||
Loading…
Reference in a new issue