diff --git a/src/common/RedisTask/RedisTaskProcessor.service.ts b/src/common/RedisTask/RedisTaskProcessor.service.ts index 105cac2..5e04021 100644 --- a/src/common/RedisTask/RedisTaskProcessor.service.ts +++ b/src/common/RedisTask/RedisTaskProcessor.service.ts @@ -25,7 +25,7 @@ export class RedisTaskProcessor { console.log(`开始处理任务 [第${job.attemptsMade + 1}次尝试]: ${job.data.roleName}`); const volcenAudioSpeakService = new VolcenAudioSpeakService(); - // voiceId = await volcenAudioSpeakService.getVoiceId(); + voiceId = await volcenAudioSpeakService.getVoiceId(); // voiceId = 'S_VK2Yw0Gb1'; // 请求ossurl获取base64 const base64 = await volcenAudioSpeakService.getAudioBase64(ossUrl); diff --git a/src/services/VolcenAudioSpeakService.ts b/src/services/VolcenAudioSpeakService.ts index 1738286..39407d7 100644 --- a/src/services/VolcenAudioSpeakService.ts +++ b/src/services/VolcenAudioSpeakService.ts @@ -102,6 +102,7 @@ export class VolcenAudioSpeakService { bits: 16, }, ], + // model_type:1, source: 2, };