Skip to content

feat: add trimSilence option to control sox silence trimming - #8

Open
Dror-Kaufman wants to merge 1 commit into
renjfk:mainfrom
Dror-Kaufman:feat/trim-silence
Open

feat: add trimSilence option to control sox silence trimming#8
Dror-Kaufman wants to merge 1 commit into
renjfk:mainfrom
Dror-Kaufman:feat/trim-silence

Conversation

@Dror-Kaufman

Copy link
Copy Markdown

Problem

sox's silence 1 0.1 1% parameter removes leading silence from recordings, but it can sometimes clip the first word or two.

Solution

Add a trimSilence optional parameter (default true) that keeps the original behavior. Allow setting it to false to omit the silence parameter from the sox command, preserving the full recording from the start.

This behavior / issue was observed on WSL.

Removes leading silence trimming when set to false. Fixes truncated recordings on WSL where PulseAudio startup delay causes sox to clip initial speech.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant