Closed pengzhendong closed 6 days ago
Downmixing is an eager operation unlike most other ops in Lhotse. You'd need to call .save_audio()
before .to_jsonl()
to materialize the downmixed audio on disk. Otherwise the JSONL metadata has no way to reference the downmixed audio.
I want to do the
cut.to_mono(mono_downmix=True)
on the fly (lazy) without saving the downmixed recording file. However, it could not save the downmixed recording object to the cut jsonl.