Add local MeloTTS support

This commit is contained in:
2026-05-03 01:56:09 +09:00
parent 3360015179
commit ad357a6ede
13 changed files with 396 additions and 3 deletions

View File

@@ -55,6 +55,15 @@ export class RealtimeSegmenter {
}
}
reset(): void {
this.pendingSamples.splice(0, this.pendingSamples.length);
this.preRoll.splice(0, this.preRoll.length);
this.speech.splice(0, this.speech.length);
this.speechActive = false;
this.speechCandidateFrames = 0;
this.silenceFrames = 0;
}
private processFrame(frame: Int16Array): void {
let peak = 0;
for (const sample of frame) {