flat: 语音对接

This commit is contained in:
Apcallover
2025-12-22 09:28:24 +08:00
parent 1bacbe4936
commit 8cce64b005
3 changed files with 24 additions and 9 deletions

View File

@@ -364,7 +364,7 @@ class PiperTTS {
this.isRecording = true;
this.onStart();
const wsUrl = this.baseUrl.replace(/^http/, 'ws') + '/ws/synthesize';
const wsUrl = this.baseUrl.replace(/^http/, 'ws');
this.worker.postMessage({
type: 'connect',
data: {