Comments (7)
This issue had been reported in pyannote (pyannote/pyannote-audio#1515) by someone else, but I did not find it here.
from speechbrain.
There was also an "off by one" logic issue that I fixed. An audio clip of exactly sample_rate * large_chunk_size
(i.e.. 30s) would also cause the exception to be raised.
from speechbrain.
Hello @gaspardpetit,
Thanks for opening this issue.
I did run your colab (thanks for the code!) and indeed, we have an error RuntimeError: Failed to decode audio.
. However, when I do reproduce your issue on my compute cluster, I'm not getting an error and I get as output tensor([])
.
I will investigate more but I do suspect that the issue is related to google colab... I'll keep you updated.
from speechbrain.
Considering the error comes from torchaudio
itself I suspect different torchaudio versions/backends might exhibit different behavior in edge cases, and not that the issue stems from a misconfiguration or an upstream bug per se.
In particular, I suspect that unusual frame_offset
/num_frames
values in the torchaudio.load
could cause something like that.
from speechbrain.
Considering the error comes from
torchaudio
itself I suspect different torchaudio versions/backends might exhibit different behavior in edge cases, and not that the issue stems from a misconfiguration or an upstream bug per se. In particular, I suspect that unusualframe_offset
/num_frames
values in thetorchaudio.load
could cause something like that.
Interesting.
Could you please @gaspardpetit share with us your pip configuration and your ffmpeg version ?
from speechbrain.
Note: It would be great to have in SpeechBrain a script (e.g. get_config.sh), that automatically fetches all the relevant information for us SB devs. What do you think @asumagic ?
from speechbrain.
Thanks for looking into this. I doubt this is related to ffmpeg, if you look at the sample on https://colab.research.google.com/drive/1eHvZPpIdMJNzlDQIkFgrkQZSjVyhkHPU#scrollTo=fDQ0rwDUGYXK it uses raw audio and doesn't seem to depend on ffmpeg.
Additionally, the fix https://github.com/speechbrain/speechbrain/pull/2335/files consists in checking if this is the last chunk before processing the chunk rather than after. When done the way it is currently done, the loop will always run twice even if the first chunk would have been the last. There was also an off by one by using >
rather than >=
. I am more puzzled about why it would work on some versions of torchaudio, since to me the error is clearly in speechbrain/inference/VAD.py
from speechbrain.
Related Issues (20)
- [Feature Request]: Improve DAC interface
- unused parameters when using WavLM. cased crash when using DDP HOT 9
- [Feature Request]: Load a speechbrain-fine-tuned huggingface model checkpoint with the huggingface interface HOT 1
- Incorrect transformer mask size HOT 8
- loading fully trained brain (a brain who finished training) and then evaluating it with brain.evaluate. will cause a crash when using hpopt context but not reporting in test stage
- Hi! LibriSpeech char training!! HOT 1
- Wav2Vec2Pretrain (HFTransformersInterface implementation) samples padded values for mask_time_indices and negative_sample_indices HOT 2
- spkrec-ecapa-voxceleb-mel-spec model modifies mel spectrum in place when used with CPU HOT 2
- A few unoptimised piece of code (augmentation and masking) HOT 2
- Language codes not following ISO standards in lang-id-voxlingua107-ecapa HOT 2
- Train loop may crash during checkpointing HOT 5
- Possible NCCL-level deadlock during checkpointing HOT 7
- Error during encoding
- AMP at inference time HOT 3
- Unable to use model trained from enhancement template HOT 1
- 🐞 | Import error in speechbrain.pretrained HOT 3
- Not Able to use 'speechbrain/spkrec-ecapa-voxceleb' embeddings in Google Colab. HOT 3
- 'S2STransformerBeamSearcher' object has no attribute 'ctc_forward_step' HOT 2
- Inference interface uncompatible with Python < 3.9 HOT 1
- Issues regarding discrete WavLM and discrete HuBERT HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from speechbrain.