Pad CutSet with silence?
See original GitHub issueI’m wondering whether there is an easy way to pad all the cuts in a CutSet with a fixed amount of silence on the sides, as in extend()? This is for things like debugging edge issues with models, or decoding and making sure final symbols are output.
I tried extend_by(), but it appears to be a no-op, e.g.
a.extend_by(0.05, preserve_id=True).fill_supervisions()
seemed to return the original CutSet (possibly because it only extended to the edge of the original recordings?)
I ended up doing this with something like:
load_manifest(self.args.manifest_dir / "cuts_test-clean.json.gz").pad(direction='both').fill_supervisions()
just for testing purposes, which isn’t ideal because it make all utterances as long as the longest one, which is not what I really wanted.
Issue Analytics
- State:
- Created a year ago
- Comments:7
Top Results From Across the Web
Cuts — lhotse 0.1 documentation
PaddingCut is an “artificial” recording used for padding other Cuts ... cut: cut.duration >= 3.0) # Pad short segments with silence to 5...
Read more >Cir-Cut Silence-Ilator Pads - Bowhunters Superstore
Super soft adhesive backed material. Made of sound absorbing, cold insulating neoprene. Material is easily cut and will conform to all shapes.
Read more >Issues · lhotse-speech/lhotse · GitHub
Behavior of CutSet.mix ... Pad CutSet with silence? ... "BucketingSampler does not support working with lazy CutSet" when running icefall recipes.
Read more >Girling Brake pads. - Datsun Roadster Forum-311s.org
Each pad has an anti-squeal shim glued to the back of the pad for silent braking. As for composition each pad is made...
Read more >Craft O' Clock - Trail Of Silence - Extra's to Cut Set - HobbyVision
Also ordered · Studio Light - Essentials - Tacky All-round Glue · Stempelinkt Versafine - Clair Ink Pad - Morning Mist · Ranger...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I guess we could add a boolean argument
pad_silence
to theextend_by()
function which specifies whether to pad the cut with silence if not enough context is present.Closing via https://github.com/lhotse-speech/lhotse/pull/816.