diff --git a/backend/src/modules/tts/tts.controller.ts b/backend/src/modules/tts/tts.controller.ts index cebcd67..2dfaef4 100644 --- a/backend/src/modules/tts/tts.controller.ts +++ b/backend/src/modules/tts/tts.controller.ts @@ -59,7 +59,8 @@ export class TtsController { const parsed = JSON.parse(result) if (parsed.text) return { text: parsed.text.trim() } } - const whisperResult = execSync(`whisper "${dest}" --language zh --output_format txt 2>/dev/null`, { encoding: 'utf8', timeout: 60000 }) + const whisperBin = '/root/.local/bin/whisper' + const whisperResult = execSync(`${whisperBin} "${dest}" --language zh --output_format txt 2>/dev/null`, { encoding: 'utf8', timeout: 60000 }) if (whisperResult && whisperResult.trim()) { return { text: whisperResult.trim() } } diff --git a/zhiyin-app/src/components/digital-human.vue b/zhiyin-app/src/components/digital-human.vue index 20cedd2..29bf81f 100644 --- a/zhiyin-app/src/components/digital-human.vue +++ b/zhiyin-app/src/components/digital-human.vue @@ -2,24 +2,8 @@ - - - - - - - - - - - - - - - - - - + + AI 面试官 @@ -33,7 +17,7 @@