voice
This commit is contained in:
parent
19baa05f55
commit
bdc7d80216
1 changed files with 2 additions and 2 deletions
|
|
@ -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}`);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue