modelscope / modelscope/FunClip
多人区分说话报错
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 6.3k
- Forks
- 753
- Avg merge
- 19h 55m
- Merged PRs (30d)
- 8
Description
File "/root/miniconda3/envs/FunClip/lib/python3.10/site-packages/gradio/queueing.py", line 625, in process_events
response = await route_utils.call_process_api(
ile "/root/miniconda3/envs/FunClip/lib/python3.10/site-packages/gradio/route_utils.py", line 322, in call_process_ap output - await app.get_blocks(.process_api(00, 7.33it/s]
File "/root/mini conda3/envs/FunClip/lib/python3.10/site-packages/gradio/blocks.py"
" Line 2103, in process_api
result = await self.call_function(
File "/root/mini conda3/envs/FunClip/lib/python3.10/site-packages/gradio/blocks.py", line 1650, in call_function
prediction = await anyio.to_thread.run_sync( # type: ignore
File "/root/miniconda3/envs/FunClip/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync return await get_async_backend.run_sync_in_worker_thread(
Le "/root/miniconda3/envs/FunClip/Lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2461, in run_sync_in_worker_thread
return await future
File "/root/miniconda3/envs/FunClip/lib/python3.10/site-packages/anyio/_backends/_asyncio.py"
', line 962, in run
result = context. run(func, *args)
File "/root/miniconda3/envs/FunClip/lib/python3.10/site-packages/gradio/utils.py", line 890, in wrapper Fite "ogesrf/Func-ip/funclip/launch.py", ine 88, in mix recogspeaker
res_text, res_srt, audio_state = audio_recog(
ile "/opt/srt/FunClip/funclip/launch.py", line 50,
, line 50, in audio_recog
return audio_clipper.recog(audio_input, sd_switch, None, hotwords, output_dir=output_dir)
博(weichuanbo)
233-训练
File "/opt/srt/FunClip/funclip/videoclipper.py", line 47, in recog
春
rec_result = self. funasr_model.generate(data,
File "/root/miniconda3/envs/FunClip/lib/python3.10/site-packages/funasr/auto/auto_model.py", line 306, in generate return self.inference_with_vad(input, input_len=input_len, **cfg)
File "/root/miniconda3/envs/FunClip/lib/python3.10/site-packages/funasr/auto/auto_model.py", line 626, in inference_with_vad
sentence_list = timestamp_sentence(
File "/root/miniconda3/envs/FunClip/lib/python3.10/site-packages/funasr/utils/timestamp_tools.py"
', line 163, in timestamp_sentence
sentence_text_seg[:-1] if sentence_text_seg[-1] = " " else sentence_text_seg
IndexError: string index out of range
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing multi-speaker recognition through launch.py, following mix_recogspeaker and audio_recog into videoclipper.py:47 and the FunASR call shown in the traceback. Check whether the reported input produces an empty segment before timestamp processing. Done means multi-speaker recognition completes without the string index out of range error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- audio-video-rtc
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 42/100