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

Error: Error invoking remote method 'model/addModel': TypeError: SQLite3 can only bind numbers, strings, bigints, buffers, and null 这个各位都是如何解决的

Open tomcat111250 opened this issue 7 months ago • 7 comments

ISFT : Lavf58.76.100

Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 16000 Hz, stereo, s16, 512 kb/s

Metadata:

encoder : Lavc58.134.100 pcm_s16le

size= 2kB time=00:00:00.00 bitrate=N/A speed=N/A

size= 945kB time=00:00:15.10 bitrate= 512.5kbits/s speed=1.02e+03x

video:0kB audio:945kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.008063%

2025-05-08 11:47:37.333 | INFO | util.wav_util:format_wav:128 - wav标准格式化成功,/code/data/origin_audio/denoise_20250508195340250.wav -> /code/data/origin_audio/format_denoise_20250508195340250.wav

2025-05-08 11:47:37.337 | INFO | util.wav_util:clean_wav:156 - 音频清理完成,新文件路径:/code/data/origin_audio/denoise_20250508195340250.wav

2025-05-08 11:47:37.341 | INFO | util.wav_util:split_audio:95 - 原始音频小于20s,不在分割,直接返回, 时长为:15.116, 文件:/code/data/origin_audio/format_denoise_20250508195340250.wav

2025-05-08 11:47:37.341 | INFO | asr_fun:asr:102 - fun asr start, wav_path:/code/data/origin_audio/format_denoise_20250508195340250.wav

2025-05-08 11:47:37.344 | INFO | asr_fun:init_conn:40 - connect to url

2025-05-08 11:47:37.344 | WARNING | asr_fun:init_conn:53 - 建立funasr连接异常:[Errno 111] Connection refused

Traceback (most recent call last):

File "/code/asr_fun.py", line 41, in init_conn

self.websocket = create_connection(uri, ssl=ssl_context, sslopt=ssl_opt)

File "/opt/conda/envs/python310/lib/python3.10/site-packages/websocket/_core.py", line 646, in create_connection

websock.connect(url, **options)

File "/opt/conda/envs/python310/lib/python3.10/site-packages/websocket/_core.py", line 256, in connect

self.sock, addrs = connect(

File "/opt/conda/envs/python310/lib/python3.10/site-packages/websocket/_http.py", line 145, in connect

sock = _open_socket(addrinfo_list, options.sockopt, options.timeout)

File "/opt/conda/envs/python310/lib/python3.10/site-packages/websocket/_http.py", line 232, in _open_socket

raise err

File "/opt/conda/envs/python310/lib/python3.10/site-packages/websocket/_http.py", line 209, in _open_socket

sock.connect(address)

ConnectionRefusedError: [Errno 111] Connection refused

2025-05-08 11:48:02.670 | ERROR | tools.server.views_guiji:api_do_preprocess:118 - An error occurred: 'NoneType' object has no attribute 'send'

Stack trace:

Traceback (most recent call last):

File "/code/tools/server/views_guiji.py", line 105, in api_do_preprocess

rt = generate_reference_info(tts_item)

File "/code/tools/server/views_guiji.py", line 76, in generate_reference_info

text = asr_fun.asr(a_file)

File "/code/asr_fun.py", line 120, in asr

result: dict = rcg.close(timeout=3)

File "/code/asr_fun.py", line 86, in close

self.websocket.send(message)

AttributeError: 'NoneType' object has no attribute 'send'

tomcat111250 avatar May 08 '25 11:05 tomcat111250

16G的内存 已经根据官方文档修改wsl内存

tomcat111250 avatar May 08 '25 11:05 tomcat111250

这里有个修改的调试记录。 https://rewa-insights.com/t/heygem-ai/433?u=rewa-evija

agilealpha1 avatar May 12 '25 14:05 agilealpha1

我也是这个问题

wangyanxi2019 avatar May 28 '25 09:05 wangyanxi2019

安装一下 nodejs 就行了

yys2024 avatar Jun 01 '25 02:06 yys2024

这个有什么解决办法么?我看有人说是镜像的问题

huang5656151 avatar Jun 03 '25 03:06 huang5656151

这里有个修改的调试记录。 https://rewa-insights.com/t/heygem-ai/433?u=rewa-evija

怎么根据这个改呢?我不知道这个文章中说修改的地方在哪里

thgpddl avatar Jun 26 '25 13:06 thgpddl

说白了16g内存就没法用,至少32g内存

woshigaoda avatar Jul 28 '25 15:07 woshigaoda