marl / marl/pysox

splitting a file with silence

Open
#117 10 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
540
Forks
83
PR merge metrics
No merged PRs in 30d

Description

One typical use case for me is to split a file using the silence effect as outlined in this excellent sox tutorial https://madskjeldgaard.dk/posts/sox-tutorial-split-by-silence/

sox input.wav clip.wav silence 1 0.1 1% 1 0.1 1% : newfile : restart

gives "clip001.wav", "clip002.wav" etc. with only the audio in clip and without the silence in between.

Is it possible to do this in pysox (and apply a fade-in and fade-out to each resulting clip)?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the SoX command and tutorial linked in the issue, then inspect pysox's documented support for silence splitting, new-file output, restarting, and fades. Done means exposing an equivalent way to create separate silence-free clips with fade-in and fade-out applied to each clip.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
audio-video-rtc
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.