question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pad CutSet with silence?

See original GitHub issue

I’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:closed
  • Created a year ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
desh2608commented, Sep 14, 2022

I guess we could add a boolean argument pad_silence to the extend_by() function which specifies whether to pad the cut with silence if not enough context is present.

0reactions
desh2608commented, Nov 23, 2022
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found