mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 04:17:42 +00:00
TTS: add baseUrl support to OpenAI TTS config (#34321)
Merged via squash.
Prepared head SHA: e9a10cf81d
Co-authored-by: RealKai42 <44634134+RealKai42@users.noreply.github.com>
Co-authored-by: shakkernerd <165377636+shakkernerd@users.noreply.github.com>
Reviewed-by: @shakkernerd
This commit is contained in:
@@ -673,7 +673,11 @@ export class DiscordVoiceManager {
|
||||
cfg: this.params.cfg,
|
||||
override: this.params.discordConfig.voice?.tts,
|
||||
});
|
||||
const directive = parseTtsDirectives(replyText, ttsConfig.modelOverrides);
|
||||
const directive = parseTtsDirectives(
|
||||
replyText,
|
||||
ttsConfig.modelOverrides,
|
||||
ttsConfig.openai.baseUrl,
|
||||
);
|
||||
const speakText = directive.overrides.ttsText ?? directive.cleanedText.trim();
|
||||
if (!speakText) {
|
||||
logVoiceVerbose(
|
||||
|
||||
Reference in New Issue
Block a user