This commit is contained in:
Dmitry 2026-01-05 05:15:36 +03:00
parent 19baa05f55
commit bdc7d80216

View file

@ -24,7 +24,7 @@ export class VoiceService {
} }
async generateTTS(text: string, voice?: string): Promise<Buffer> { async generateTTS(text: string, voice?: string): Promise<Buffer> {
this.logger.log(`Generating TTS for text: "${text.substring(0, 50)}..." with voice: ${voice}`); this.logger.log(`Generating TTS for text: "${text.substring(0, 50)}..." (voice parameter ignored)`);
try { try {
const url = `${this.voiceServiceUrl}/api/voice/tts`; const url = `${this.voiceServiceUrl}/api/voice/tts`;
this.logger.debug(`Making request to: ${url}`); this.logger.debug(`Making request to: ${url}`);
@ -33,7 +33,7 @@ export class VoiceService {
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
}, },
body: JSON.stringify({ text, voice }), body: JSON.stringify({ text }),
}); });
this.logger.debug(`Response status: ${response.status} ${response.statusText}`); this.logger.debug(`Response status: ${response.status} ${response.statusText}`);