From 983c203aa9cd8b6b25a42fda74b87cc7a9f4dbfe Mon Sep 17 00:00:00 2001 From: guofei Date: Tue, 3 Dec 2024 19:13:51 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=98=E8=BF=9C=E5=88=B0=E6=AD=A3=E5=B8=B8?= =?UTF-8?q?=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/RedisTask/RedisTaskProcessor.service.ts | 2 +- src/services/VolcenAudioSpeakService.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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, };