Duix.Heygem icon indicating copy to clipboard operation
Duix.Heygem copied to clipboard

生成数字人上传视频时报错

Open TonysGit2015 opened this issue 8 months ago • 3 comments

在上传视频生成数字人时,选择了视频后,视频能成功打开,但在点击[提交定制]时,报错:

[info] audio split done [debug] ~ preprocessAndTran ~ param: {"format":"wav","reference_audio":"origin_audio/20250420141953118.wav","lang":"zh"} [debug] ~ train ~ res: { code: -1, msg: 'file not exists' } [debug] [SQL Run]: INSERT INTO f2f_model (name, video_path, audio_path, voice_id, created_at) VALUES (?, ?, ?, ?, ?) [ 'ml', '20250420141953118.mp4', 'origin_audio/20250420141953118.wav', false, 1745129993536 ] Error occurred in handler for 'model/addModel': TypeError: SQLite3 can only bind numbers, strings, bigints, buffers, and null at stmt.run (/tmp/.mount_HeyGemfaVd5B/resources/app.asar/out/main/index.js:145:16) at insert$1 (/tmp/.mount_HeyGemfaVd5B/resources/app.asar/out/main/index.js:5743:21) at /tmp/.mount_HeyGemfaVd5B/resources/app.asar/out/main/index.js:6204:16 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async WebContents. (node:electron/js2c/browser_init:2:87023) [info] audio split done [debug] ~ preprocessAndTran ~ param: {"format":"wav","reference_audio":"origin_audio/20250420142018566.wav","lang":"zh"} [debug] ~ train ~ res: { code: -1, msg: 'file not exists' } [debug] [SQL Run]: INSERT INTO f2f_model (name, video_path, audio_path, voice_id, created_at) VALUES (?, ?, ?, ?, ?) [ 'ml', '20250420142018566.mp4', 'origin_audio/20250420142018566.wav', false, 1745130018613 ] Error occurred in handler for 'model/addModel': TypeError: SQLite3 can only bind numbers, strings, bigints, buffers, and null at stmt.run (/tmp/.mount_HeyGemfaVd5B/resources/app.asar/out/main/index.js:145:16) at insert$1 (/tmp/.mount_HeyGemfaVd5B/resources/app.asar/out/main/index.js:5743:21) at /tmp/.mount_HeyGemfaVd5B/resources/app.asar/out/main/index.js:6204:16 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async WebContents. (node:electron/js2c/browser_init:2:87023) [debug] [SQL Get]: SELECT COUNT() as total FROM f2f_model WHERE name like '%%' [] [debug] [SQL All]: SELECT * FROM f2f_model WHERE name like '%%' ORDER BY created_at DESC LIMIT 10 OFFSET 0 [] [debug] [SQL Get]: SELECT COUNT() as total FROM f2f_model WHERE name like '%%' [] [332470:0420/142137.160782:ERROR:atom_cache.cc(229)] Add WM_CHANGE_STATE to kAtomsToCache

请问这是什么原因?

TonysGit2015 avatar Apr 20 '25 06:04 TonysGit2015

看起来是voice_id传的值不对,应该是个bug。 传false不像是正确的voice_id的类型。

TonysGit2015 avatar Apr 20 '25 06:04 TonysGit2015

是不是客户端和算力不在一台机器上?

yelijun avatar Apr 23 '25 03:04 yelijun

我也是一样的问题,报的这个错误,我用的docker镜像版本是:guiji2025/fish-speech-ziming:1.0.39。 后台报错是: heygem-tts | 2025-05-05 04:59:35.658 | INFO | tools.server.views_guiji:build_tts_item:49 - reference_audio不是url地址,本地路径为:/code/data/origin_audio/20250505125936146.wav heygem-tts | 2025-05-05 04:59:35.662 | ERROR | tools.server.views_guiji:api_do_preprocess:111 - An error occurred: file not exists heygem-tts | Stack trace: heygem-tts | Traceback (most recent call last): heygem-tts | File "/code/tools/server/views_guiji.py", line 96, in api_do_preprocess heygem-tts | tts_item: TtsItem = build_tts_item(req) heygem-tts | File "/code/tools/server/views_guiji.py", line 51, in build_tts_item heygem-tts | raise Exception('file not exists') heygem-tts | Exception: file not exists

但前台报错就是那个SQLite的 voice_id 为false的问题

我的客户端和算力是在一台机器上的。后台用 docker启动的服务

gary-jiao avatar May 05 '25 05:05 gary-jiao