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

auditok has been updated to 0.3.0, use vad=auditok ERRPR #223

Open
smallpize opened this issue Nov 7, 2024 · 0 comments
Open

auditok has been updated to 0.3.0, use vad=auditok ERRPR #223

smallpize opened this issue Nov 7, 2024 · 0 comments

Comments

@smallpize
Copy link

The default version of auditok installed now is 0.3.0. (pip install auditok)
Use vad=auditok ERROR:

    return whisper_timestamped.transcribe(
  File "/anaconda/envs/test/lib/python3.10/site-packages/whisper_timestamped/transcribe.py", line 296, in transcribe_timestamped
    audio, vad_segments, convert_timestamps = remove_non_speech(audio, method=vad, sample_rate=SAMPLE_RATE, plot=plot_word_alignment, avoid_empty_speech=True)
  File "/anaconda/envs/test/lib/python3.10/site-packages/whisper_timestamped/transcribe.py", line 2110, in remove_non_speech
    segments = get_vad_segments(
  File "/anaconda/envs/test/lib/python3.10/site-packages/whisper_timestamped/transcribe.py", line 2044, in get_vad_segments
    segments = [{"start": s._meta.start * sample_rate, "end": s._meta.end * sample_rate} for s in segments]
  File "/anaconda/envs/test/lib/python3.10/site-packages/whisper_timestamped/transcribe.py", line 2044, in <listcomp>
    segments = [{"start": s._meta.start * sample_rate, "end": s._meta.end * sample_rate} for s in segments]
AttributeError: 'AudioRegion' object has no attribute '_meta'. Did you mean: 'meta'?

Rollback version (pip install auditok==0.2.0), it's OK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant