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 jscloud1 opened this issue 9 months ago • 10 comments

安装好HeyGem后,定制报错Error: Error invoking remote method 'model/addModel': TypeError: SQLite3 can only bind numbers, strings, bigints, buffers, and null 客户端日志如下:

Image

服务端日志如下:

Image

f2f容器:

Image

asr容器:

Image tts容器:

Image

jscloud1 avatar Mar 12 '25 06:03 jscloud1

Have you modified the path mapping here? Image

whl88 avatar Mar 12 '25 07:03 whl88

目前的问题是,定制视频的时候,tts容器日志记录的无法连接asr,但是我这个asr容器看的端口也都正常映射的

tts日志:

2025-03-12 15:48:20 2025-03-12 07:48:20.267 | INFO | tools.server.views_guiji:api_do_preprocess:96 - 收到训练请求:reference_audio='origin_audio/20250312154819650.wav' format='wav' lang='zh'

2025-03-12 15:48:20 2025-03-12 07:48:20.269 | INFO | tools.server.views_guiji:build_tts_item:46 - 创建会话目录:/code/sessions/20250312/142eef56d6014e9f9d0a8c6ee3bc3f3e

2025-03-12 15:48:20 2025-03-12 07:48:20.271 | INFO | tools.server.views_guiji:build_tts_item:51 - reference_audio不是url地址,本地路径为:/code/data/origin_audio/20250312154819650.wav

2025-03-12 15:48:20 2025-03-12 07:48:20.278 | INFO | tools.server.views_guiji:api_do_preprocess:104 - 构建tts_item成功:{"session_id":"142eef56d6014e9f9d0a8c6ee3bc3f3e","session_dir":"/code/sessions/20250312/142eef56d6014e9f9d0a8c6ee3bc3f3e","raw_request":{"reference_audio":"/code/data/origin_audio/20250312154819650.wav","format":"wav","lang":"zh"},"raw_audio_path":"/code/data/origin_audio/20250312154819650.wav","reference_audios":[]}

2025-03-12 15:48:20 2025-03-12 07:48:20.280 | INFO | util.wav_util:clean_wav:139 - 开始清理音频:/code/data/origin_audio/20250312154819650.wav

2025-03-12 15:48:20 2025-03-12 07:48:20.282 | INFO | util.wav_util:format_wav:121 - 开始统一音频格式:/code/data/origin_audio/20250312154819650.wav

2025-03-12 15:48:20 2025-03-12 07:48:20.283 | INFO | util.wav_util:format_wav:125 - 音频统一转为16000 pcm s16,便于后面处理, 命令为:ffmpeg -i /code/data/origin_audio/20250312154819650.wav -ar 16000 -c:a pcm_s16le -y /code/data/origin_audio/format_20250312154819650.wav

2025-03-12 15:48:20 ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers

2025-03-12 15:48:20 built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)

2025-03-12 15:48:20 configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared

2025-03-12 15:48:20 libavutil 56. 70.100 / 56. 70.100

2025-03-12 15:48:20 libavcodec 58.134.100 / 58.134.100

2025-03-12 15:48:20 libavformat 58. 76.100 / 58. 76.100

2025-03-12 15:48:20 libavdevice 58. 13.100 / 58. 13.100

2025-03-12 15:48:20 libavfilter 7.110.100 / 7.110.100

2025-03-12 15:48:20 libswscale 5. 9.100 / 5. 9.100

2025-03-12 15:48:20 libswresample 3. 9.100 / 3. 9.100

2025-03-12 15:48:20 libpostproc 55. 9.100 / 55. 9.100

2025-03-12 15:48:20 Guessed Channel Layout for Input Stream #0.0 : mono

2025-03-12 15:48:20 Input #0, wav, from '/code/data/origin_audio/20250312154819650.wav':

2025-03-12 15:48:20 Metadata:

2025-03-12 15:48:20 encoder : Lavf58.76.100

2025-03-12 15:48:20 Duration: 00:00:11.78, bitrate: 768 kb/s

2025-03-12 15:48:20 Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, mono, s16, 768 kb/s

2025-03-12 15:48:20 Stream mapping:

2025-03-12 15:48:20 Stream #0:0 -> #0:0 (pcm_s16le (native) -> pcm_s16le (native))

2025-03-12 15:48:20 Press [q] to stop, [?] for help

2025-03-12 15:48:20 Output #0, wav, to '/code/data/origin_audio/format_20250312154819650.wav':

2025-03-12 15:48:20 Metadata:

2025-03-12 15:48:20 ISFT : Lavf58.76.100

2025-03-12 15:48:20 Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 16000 Hz, mono, s16, 256 kb/s

2025-03-12 15:48:20 Metadata:

2025-03-12 15:48:20 encoder : Lavc58.134.100 pcm_s16le

2025-03-12 15:48:20 size= 1kB time=00:00:00.00 bitrate=N/A speed= 0x

size= 368kB time=00:00:11.77 bitrate= 256.1kbits/s speed= 153x

2025-03-12 15:48:20 video:0kB audio:368kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.020699%

2025-03-12 15:48:20 2025-03-12 07:48:20.646 | INFO | util.wav_util:format_wav:128 - wav标准格式化成功,/code/data/origin_audio/20250312154819650.wav -> /code/data/origin_audio/format_20250312154819650.wav

2025-03-12 15:48:20 2025-03-12 07:48:20.654 | INFO | util.wav_util:remove_noise:18 - 开始给wav去噪, raw_path:/code/data/origin_audio/format_20250312154819650.wav, output:/code/data/origin_audio/denoise_20250312154819650.wav

2025-03-12 15:48:21 Audio Noise Reduction

2025-03-12 15:48:21 time interval: 812.644723 ms

2025-03-12 15:48:21 2025-03-12 07:48:21.578 | INFO | util.wav_util:format_wav:121 - 开始统一音频格式:/code/data/origin_audio/denoise_20250312154819650.wav

2025-03-12 15:48:21 2025-03-12 07:48:21.581 | INFO | util.wav_util:format_wav:125 - 音频统一转为16000 pcm s16,便于后面处理, 命令为:ffmpeg -i /code/data/origin_audio/denoise_20250312154819650.wav -ar 16000 -c:a pcm_s16le -y /code/data/origin_audio/format_denoise_20250312154819650.wav

2025-03-12 15:48:21 ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers

2025-03-12 15:48:21 built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)

2025-03-12 15:48:21 configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared

2025-03-12 15:48:21 libavutil 56. 70.100 / 56. 70.100

2025-03-12 15:48:21 libavcodec 58.134.100 / 58.134.100

2025-03-12 15:48:21 libavformat 58. 76.100 / 58. 76.100

2025-03-12 15:48:21 libavdevice 58. 13.100 / 58. 13.100

2025-03-12 15:48:21 libavfilter 7.110.100 / 7.110.100

2025-03-12 15:48:21 libswscale 5. 9.100 / 5. 9.100

2025-03-12 15:48:21 libswresample 3. 9.100 / 3. 9.100

2025-03-12 15:48:21 libpostproc 55. 9.100 / 55. 9.100

2025-03-12 15:48:21 Guessed Channel Layout for Input Stream #0.0 : mono

2025-03-12 15:48:21 Input #0, wav, from '/code/data/origin_audio/denoise_20250312154819650.wav':

2025-03-12 15:48:21 Duration: 00:00:11.78, bitrate: 512 kb/s

2025-03-12 15:48:21 Stream #0:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 16000 Hz, mono, flt, 512 kb/s

2025-03-12 15:48:21 Stream mapping:

2025-03-12 15:48:21 Stream #0:0 -> #0:0 (pcm_f32le (native) -> pcm_s16le (native))

2025-03-12 15:48:21 Press [q] to stop, [?] for help

2025-03-12 15:48:21 Output #0, wav, to '/code/data/origin_audio/format_denoise_20250312154819650.wav':

2025-03-12 15:48:21 Metadata:

2025-03-12 15:48:21 ISFT : Lavf58.76.100

2025-03-12 15:48:21 Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 16000 Hz, mono, s16, 256 kb/s

2025-03-12 15:48:21 Metadata:

2025-03-12 15:48:21 encoder : Lavc58.134.100 pcm_s16le

2025-03-12 15:48:21 size= 2kB time=00:00:00.00 bitrate=N/A speed= 0x

size= 368kB time=00:00:11.71 bitrate= 257.5kbits/s speed= 257x

2025-03-12 15:48:21 video:0kB audio:368kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.020699%

2025-03-12 15:48:21 2025-03-12 07:48:21.891 | INFO | util.wav_util:format_wav:128 - wav标准格式化成功,/code/data/origin_audio/denoise_20250312154819650.wav -> /code/data/origin_audio/format_denoise_20250312154819650.wav

2025-03-12 15:48:21 2025-03-12 07:48:21.898 | INFO | util.wav_util:clean_wav:156 - 音频清理完成,新文件路径:/code/data/origin_audio/denoise_20250312154819650.wav

2025-03-12 15:48:21 2025-03-12 07:48:21.915 | INFO | util.wav_util:split_audio:95 - 原始音频小于20s,不在分割,直接返回, 时长为:11.776, 文件:/code/data/origin_audio/format_denoise_20250312154819650.wav

2025-03-12 15:48:21 2025-03-12 07:48:21.917 | INFO | asr_fun:asr:102 - fun asr start, wav_path:/code/data/origin_audio/format_denoise_20250312154819650.wav

2025-03-12 15:48:21 2025-03-12 07:48:21.936 | INFO | asr_fun:init_conn:40 - connect to url

2025-03-12 15:48:21 2025-03-12 07:48:21.940 | WARNING | asr_fun:init_conn:53 - 建立funasr连接异常:[Errno 111] Connection refused

2025-03-12 15:48:21 Traceback (most recent call last):

2025-03-12 15:48:21 File "/code/asr_fun.py", line 41, in init_conn

2025-03-12 15:48:21 self.websocket = create_connection(uri, ssl=ssl_context, sslopt=ssl_opt)

2025-03-12 15:48:21 File "/opt/conda/envs/python310/lib/python3.10/site-packages/websocket/_core.py", line 646, in create_connection

2025-03-12 15:48:21 websock.connect(url, **options)

2025-03-12 15:48:21 File "/opt/conda/envs/python310/lib/python3.10/site-packages/websocket/_core.py", line 256, in connect

2025-03-12 15:48:21 self.sock, addrs = connect(

2025-03-12 15:48:21 File "/opt/conda/envs/python310/lib/python3.10/site-packages/websocket/_http.py", line 145, in connect

2025-03-12 15:48:21 sock = _open_socket(addrinfo_list, options.sockopt, options.timeout)

2025-03-12 15:48:21 File "/opt/conda/envs/python310/lib/python3.10/site-packages/websocket/_http.py", line 232, in _open_socket

2025-03-12 15:48:21 raise err

2025-03-12 15:48:21 File "/opt/conda/envs/python310/lib/python3.10/site-packages/websocket/_http.py", line 209, in _open_socket

2025-03-12 15:48:21 sock.connect(address)

2025-03-12 15:48:21 ConnectionRefusedError: [Errno 111] Connection refused

2025-03-12 15:48:31 2025-03-12 07:48:31.851 | ERROR | tools.server.views_guiji:api_do_preprocess:118 - An error occurred: 'NoneType' object has no attribute 'send'

2025-03-12 15:48:31 Stack trace:

2025-03-12 15:48:31 Traceback (most recent call last):

2025-03-12 15:48:31 File "/code/tools/server/views_guiji.py", line 105, in api_do_preprocess

2025-03-12 15:48:31 rt = generate_reference_info(tts_item)

2025-03-12 15:48:31 File "/code/tools/server/views_guiji.py", line 76, in generate_reference_info

2025-03-12 15:48:31 text = asr_fun.asr(a_file)

2025-03-12 15:48:31 File "/code/asr_fun.py", line 120, in asr

2025-03-12 15:48:31 result: dict = rcg.close(timeout=3)

2025-03-12 15:48:31 File "/code/asr_fun.py", line 86, in close

2025-03-12 15:48:31 self.websocket.send(message)

2025-03-12 15:48:31 AttributeError: 'NoneType' object has no attribute 'send'

2025-03-12 15:48:31

2025-03-12 15:48:31 2025-03-12 07:48:31.852 | INFO | tools.server.views_guiji:api_do_preprocess:121 - 训练返回结果:{'code': -1, 'msg': "'NoneType' object has no attribute 'send'"}

2025-03-12 15:48:31 INFO: 172.18.0.1:48540 - "POST /v1/preprocess_and_tran HTTP/1.1" 200 OK

At 2025-03-12 15:10:18, "王宏亮" @.***> wrote:

Have you modified the path mapping here? image.png (view on web)

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

whl88 left a comment (GuijiAI/HeyGem.ai#153)

Have you modified the path mapping here? image.png (view on web)

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

jscloud1 avatar Mar 12 '25 07:03 jscloud1

目前的问题是,定制视频的时候,tts容器日志记录的无法连接asr,但是我这个asr容器看的端口也都正常映射的

tts日志:

2025-03-12 15:48:20 2025-03-12 07:48:20.267 | INFO | tools.server.views_guiji:api_do_preprocess:96 - 收到训练请求:reference_audio='origin_audio/20250312154819650.wav' format='wav' lang='zh'

2025-03-12 15:48:20 2025-03-12 07:48:20.269 | INFO | tools.server.views_guiji:build_tts_item:46 - 创建会话目录:/code/sessions/20250312/142eef56d6014e9f9d0a8c6ee3bc3f3e

2025-03-12 15:48:20 2025-03-12 07:48:20.271 | INFO | tools.server.views_guiji:build_tts_item:51 - reference_audio不是url地址,本地路径为:/code/data/origin_audio/20250312154819650.wav

2025-03-12 15:48:20 2025-03-12 07:48:20.278 | INFO | tools.server.views_guiji:api_do_preprocess:104 - 构建tts_item成功:{"session_id":"142eef56d6014e9f9d0a8c6ee3bc3f3e","session_dir":"/code/sessions/20250312/142eef56d6014e9f9d0a8c6ee3bc3f3e","raw_request":{"reference_audio":"/code/data/origin_audio/20250312154819650.wav","format":"wav","lang":"zh"},"raw_audio_path":"/code/data/origin_audio/20250312154819650.wav","reference_audios":[]}

2025-03-12 15:48:20 2025-03-12 07:48:20.280 | INFO | util.wav_util:clean_wav:139 - 开始清理音频:/code/data/origin_audio/20250312154819650.wav

2025-03-12 15:48:20 2025-03-12 07:48:20.282 | INFO | util.wav_util:format_wav:121 - 开始统一音频格式:/code/data/origin_audio/20250312154819650.wav

2025-03-12 15:48:20 2025-03-12 07:48:20.283 | INFO | util.wav_util:format_wav:125 - 音频统一转为16000 pcm s16,便于后面处理, 命令为:ffmpeg -i /code/data/origin_audio/20250312154819650.wav -ar 16000 -c:a pcm_s16le -y /code/data/origin_audio/format_20250312154819650.wav

2025-03-12 15:48:20 ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers

2025-03-12 15:48:20 built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)

2025-03-12 15:48:20 configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared

2025-03-12 15:48:20 libavutil 56. 70.100 / 56. 70.100

2025-03-12 15:48:20 libavcodec 58.134.100 / 58.134.100

2025-03-12 15:48:20 libavformat 58. 76.100 / 58. 76.100

2025-03-12 15:48:20 libavdevice 58. 13.100 / 58. 13.100

2025-03-12 15:48:20 libavfilter 7.110.100 / 7.110.100

2025-03-12 15:48:20 libswscale 5. 9.100 / 5. 9.100

2025-03-12 15:48:20 libswresample 3. 9.100 / 3. 9.100

2025-03-12 15:48:20 libpostproc 55. 9.100 / 55. 9.100

2025-03-12 15:48:20 Guessed Channel Layout for Input Stream #0.0 : mono

2025-03-12 15:48:20 Input #0, wav, from '/code/data/origin_audio/20250312154819650.wav':

2025-03-12 15:48:20 Metadata:

2025-03-12 15:48:20 encoder : Lavf58.76.100

2025-03-12 15:48:20 Duration: 00:00:11.78, bitrate: 768 kb/s

2025-03-12 15:48:20 Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, mono, s16, 768 kb/s

2025-03-12 15:48:20 Stream mapping:

2025-03-12 15:48:20 Stream #0:0 -> #0:0 (pcm_s16le (native) -> pcm_s16le (native))

2025-03-12 15:48:20 Press [q] to stop, [?] for help

2025-03-12 15:48:20 Output #0, wav, to '/code/data/origin_audio/format_20250312154819650.wav':

2025-03-12 15:48:20 Metadata:

2025-03-12 15:48:20 ISFT : Lavf58.76.100

2025-03-12 15:48:20 Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 16000 Hz, mono, s16, 256 kb/s

2025-03-12 15:48:20 Metadata:

2025-03-12 15:48:20 encoder : Lavc58.134.100 pcm_s16le

2025-03-12 15:48:20 size= 1kB time=00:00:00.00 bitrate=N/A speed= 0x

size= 368kB time=00:00:11.77 bitrate= 256.1kbits/s speed= 153x

2025-03-12 15:48:20 video:0kB audio:368kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.020699%

2025-03-12 15:48:20 2025-03-12 07:48:20.646 | INFO | util.wav_util:format_wav:128 - wav标准格式化成功,/code/data/origin_audio/20250312154819650.wav -> /code/data/origin_audio/format_20250312154819650.wav

2025-03-12 15:48:20 2025-03-12 07:48:20.654 | INFO | util.wav_util:remove_noise:18 - 开始给wav去噪, raw_path:/code/data/origin_audio/format_20250312154819650.wav, output:/code/data/origin_audio/denoise_20250312154819650.wav

2025-03-12 15:48:21 Audio Noise Reduction

2025-03-12 15:48:21 time interval: 812.644723 ms

2025-03-12 15:48:21 2025-03-12 07:48:21.578 | INFO | util.wav_util:format_wav:121 - 开始统一音频格式:/code/data/origin_audio/denoise_20250312154819650.wav

2025-03-12 15:48:21 2025-03-12 07:48:21.581 | INFO | util.wav_util:format_wav:125 - 音频统一转为16000 pcm s16,便于后面处理, 命令为:ffmpeg -i /code/data/origin_audio/denoise_20250312154819650.wav -ar 16000 -c:a pcm_s16le -y /code/data/origin_audio/format_denoise_20250312154819650.wav

2025-03-12 15:48:21 ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers

2025-03-12 15:48:21 built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)

2025-03-12 15:48:21 configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared

2025-03-12 15:48:21 libavutil 56. 70.100 / 56. 70.100

2025-03-12 15:48:21 libavcodec 58.134.100 / 58.134.100

2025-03-12 15:48:21 libavformat 58. 76.100 / 58. 76.100

2025-03-12 15:48:21 libavdevice 58. 13.100 / 58. 13.100

2025-03-12 15:48:21 libavfilter 7.110.100 / 7.110.100

2025-03-12 15:48:21 libswscale 5. 9.100 / 5. 9.100

2025-03-12 15:48:21 libswresample 3. 9.100 / 3. 9.100

2025-03-12 15:48:21 libpostproc 55. 9.100 / 55. 9.100

2025-03-12 15:48:21 Guessed Channel Layout for Input Stream #0.0 : mono

2025-03-12 15:48:21 Input #0, wav, from '/code/data/origin_audio/denoise_20250312154819650.wav':

2025-03-12 15:48:21 Duration: 00:00:11.78, bitrate: 512 kb/s

2025-03-12 15:48:21 Stream #0:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 16000 Hz, mono, flt, 512 kb/s

2025-03-12 15:48:21 Stream mapping:

2025-03-12 15:48:21 Stream #0:0 -> #0:0 (pcm_f32le (native) -> pcm_s16le (native))

2025-03-12 15:48:21 Press [q] to stop, [?] for help

2025-03-12 15:48:21 Output #0, wav, to '/code/data/origin_audio/format_denoise_20250312154819650.wav':

2025-03-12 15:48:21 Metadata:

2025-03-12 15:48:21 ISFT : Lavf58.76.100

2025-03-12 15:48:21 Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 16000 Hz, mono, s16, 256 kb/s

2025-03-12 15:48:21 Metadata:

2025-03-12 15:48:21 encoder : Lavc58.134.100 pcm_s16le

2025-03-12 15:48:21 size= 2kB time=00:00:00.00 bitrate=N/A speed= 0x

size= 368kB time=00:00:11.71 bitrate= 257.5kbits/s speed= 257x

2025-03-12 15:48:21 video:0kB audio:368kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.020699%

2025-03-12 15:48:21 2025-03-12 07:48:21.891 | INFO | util.wav_util:format_wav:128 - wav标准格式化成功,/code/data/origin_audio/denoise_20250312154819650.wav -> /code/data/origin_audio/format_denoise_20250312154819650.wav

2025-03-12 15:48:21 2025-03-12 07:48:21.898 | INFO | util.wav_util:clean_wav:156 - 音频清理完成,新文件路径:/code/data/origin_audio/denoise_20250312154819650.wav

2025-03-12 15:48:21 2025-03-12 07:48:21.915 | INFO | util.wav_util:split_audio:95 - 原始音频小于20s,不在分割,直接返回, 时长为:11.776, 文件:/code/data/origin_audio/format_denoise_20250312154819650.wav

2025-03-12 15:48:21 2025-03-12 07:48:21.917 | INFO | asr_fun:asr:102 - fun asr start, wav_path:/code/data/origin_audio/format_denoise_20250312154819650.wav

2025-03-12 15:48:21 2025-03-12 07:48:21.936 | INFO | asr_fun:init_conn:40 - connect to url

2025-03-12 15:48:21 2025-03-12 07:48:21.940 | WARNING | asr_fun:init_conn:53 - 建立funasr连接异常:[Errno 111] Connection refused

2025-03-12 15:48:21 Traceback (most recent call last):

2025-03-12 15:48:21 File "/code/asr_fun.py", line 41, in init_conn

2025-03-12 15:48:21 self.websocket = create_connection(uri, ssl=ssl_context, sslopt=ssl_opt)

2025-03-12 15:48:21 File "/opt/conda/envs/python310/lib/python3.10/site-packages/websocket/_core.py", line 646, in create_connection

2025-03-12 15:48:21 websock.connect(url, **options)

2025-03-12 15:48:21 File "/opt/conda/envs/python310/lib/python3.10/site-packages/websocket/_core.py", line 256, in connect

2025-03-12 15:48:21 self.sock, addrs = connect(

2025-03-12 15:48:21 File "/opt/conda/envs/python310/lib/python3.10/site-packages/websocket/_http.py", line 145, in connect

2025-03-12 15:48:21 sock = _open_socket(addrinfo_list, options.sockopt, options.timeout)

2025-03-12 15:48:21 File "/opt/conda/envs/python310/lib/python3.10/site-packages/websocket/_http.py", line 232, in _open_socket

2025-03-12 15:48:21 raise err

2025-03-12 15:48:21 File "/opt/conda/envs/python310/lib/python3.10/site-packages/websocket/_http.py", line 209, in _open_socket

2025-03-12 15:48:21 sock.connect(address)

2025-03-12 15:48:21 ConnectionRefusedError: [Errno 111] Connection refused

2025-03-12 15:48:31 2025-03-12 07:48:31.851 | ERROR | tools.server.views_guiji:api_do_preprocess:118 - An error occurred: 'NoneType' object has no attribute 'send'

2025-03-12 15:48:31 Stack trace:

2025-03-12 15:48:31 Traceback (most recent call last):

2025-03-12 15:48:31 File "/code/tools/server/views_guiji.py", line 105, in api_do_preprocess

2025-03-12 15:48:31 rt = generate_reference_info(tts_item)

2025-03-12 15:48:31 File "/code/tools/server/views_guiji.py", line 76, in generate_reference_info

2025-03-12 15:48:31 text = asr_fun.asr(a_file)

2025-03-12 15:48:31 File "/code/asr_fun.py", line 120, in asr

2025-03-12 15:48:31 result: dict = rcg.close(timeout=3)

2025-03-12 15:48:31 File "/code/asr_fun.py", line 86, in close

2025-03-12 15:48:31 self.websocket.send(message)

2025-03-12 15:48:31 AttributeError: 'NoneType' object has no attribute 'send'

2025-03-12 15:48:31

2025-03-12 15:48:31 2025-03-12 07:48:31.852 | INFO | tools.server.views_guiji:api_do_preprocess:121 - 训练返回结果:{'code': -1, 'msg': "'NoneType' object has no attribute 'send'"}

2025-03-12 15:48:31 INFO: 172.18.0.1:48540 - "POST /v1/preprocess_and_tran HTTP/1.1" 200 OK

At 2025-03-12 15:10:18, "王宏亮" @.***> wrote:

Have you modified the path mapping here? image.png (view on web)

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

whl88 left a comment (GuijiAI/HeyGem.ai#153)

Have you modified the path mapping here? image.png (view on web)

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

也是这个问题,解决了么?

js027 avatar Mar 13 '25 06:03 js027

插个眼。同样的问题。。。

kellvian avatar Mar 14 '25 02:03 kellvian

我也是这个问题,你们重新装驱动了吗?

hareGuu avatar Mar 14 '25 05:03 hareGuu

都是一样的问题....

xiaohuozhi avatar Mar 14 '25 05:03 xiaohuozhi

看来这个解决很麻烦了。。更新最新安装后都是这问题

mofeier avatar Mar 14 '25 10:03 mofeier

应该是上传的视频不合格,我重新拍摄上传,问题就不存在了,视频必须有上半身,不能只露个大脑袋!

fish0w avatar Mar 14 '25 14:03 fish0w

嗯嗯,之前我是从网上找了个视频人的文件报这个错误,然后我自己录制了一个没问题了。只不过制作过程很慢。

hareGuu avatar Mar 14 '25 14:03 hareGuu

linux version, same problem

lenzhang avatar Apr 08 '25 02:04 lenzhang