fix(core): 过滤文本括号并升级语音模型至 flash 版本

This commit is contained in:
2026-04-09 16:48:47 +08:00
parent 20f8d9c152
commit c8f8311cae
3 changed files with 3 additions and 3 deletions

View File

@@ -538,7 +538,7 @@ public class ChatServiceImpl implements ChatService {
// 1. TTS 转换
long ttsStart = System.currentTimeMillis();
TextToSpeechVO ttsResult = elevenLabsService.textToSpeechWithTimestamps(text, voiceId);
TextToSpeechVO ttsResult = elevenLabsService.textToSpeechWithTimestamps(text.replaceAll("\\(.*?\\)", ""), voiceId);
long ttsDuration = System.currentTimeMillis() - ttsStart;
log.info("TTS 完成, audioId: {}, 耗时: {}ms", audioId, ttsDuration);

View File

@@ -119,7 +119,7 @@ nacos:
elevenlabs:
api-key: sk_25339d32bb14c91f460ed9fce83a1951672f07846a7a10ce
voice-id: JBFqnCBsd6RMkjVDRZzb
model-id: eleven_turbo_v2_5
model-id: eleven_flash_v2_5
output-format: mp3_44100_128
deepgram:

View File

@@ -91,7 +91,7 @@ sa-token:
elevenlabs:
api-key: sk_25339d32bb14c91f460ed9fce83a1951672f07846a7a10ce
voice-id: JBFqnCBsd6RMkjVDRZzb
model-id: eleven_turbo_v2_5
model-id: eleven_flash_v2_5
output-format: mp3_44100_128
deepgram: