Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

paraformer-en与vad联合使用时报错result中没有'timestamp'字段 #1747

Closed
Wu-Jiayang opened this issue May 22, 2024 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@Wu-Jiayang
Copy link

Notice: In order to resolve issues more efficiently, please raise issue following the template.
(注意:为了更加高效率解决您遇到的问题,请按照模板提问,补充细节)

🐛 Bug

paraformer-en与vad联合使用时报错result中没有'timestamp'字段

To Reproduce

Steps to reproduce the behavior (always include the command you ran):

  1. Run cmd '....'
  2. See error

image

KeyError (note: full exception trace is shown but execution is paused at: _run_module_as_main)
'timestamp'
File "/opt/conda/lib/python3.10/site-packages/funasr/auto/auto_model.py", line 458, in inference_with_vad
result['timestamp'],
File "/opt/conda/lib/python3.10/site-packages/funasr/auto/auto_model.py", line 232, in generate
return self.inference_with_vad(input, input_len=input_len, **cfg)
File "/workspace/insurance-text-data/test.py", line 11, in
res = model.generate(input='asr_example_en.wav') # 文档说只支持wav
File "/opt/conda/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/opt/conda/lib/python3.10/runpy.py", line 196, in _run_module_as_main (Current frame)
return _run_code(code, main_globals, None,
KeyError: 'timestamp'

Code sample

from funasr import AutoModel


model = AutoModel(
    model="paraformer-en", 
    vad_model="fsmn-vad",
    punc_model="ct-punc", 
    spk_model="cam++"
)

res = model.generate(input='asr_example_en.wav')  # 文档说只支持wav
print(res)

Expected behavior

Environment

  • OS (e.g., Linux): linux
  • FunASR Version (e.g., 1.0.0):1.0.25(1.0.27同样)
  • ModelScope Version (e.g., 1.11.0):
  • PyTorch Version (e.g., 2.0.0): 2.2.1
  • How you installed funasr (pip, source): pip
  • Python version: 3.10.13
  • GPU (e.g., V100M32) 3090
  • CUDA/cuDNN version (e.g., cuda11.7):
  • Docker version (e.g., funasr-runtime-sdk-cpu-0.4.1)
  • Any other relevant information:

Additional context

@Wu-Jiayang Wu-Jiayang added the bug Something isn't working label May 22, 2024
@R1ckShi
Copy link
Collaborator

R1ckShi commented May 28, 2024

paraformer-en模型不支持返回时间戳

@R1ckShi R1ckShi closed this as completed May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants