audio-trim-cli 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -0
- package/package.json +11 -4
- package/bin/win32-x64/audio-trim.exe +0 -0
package/README.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
📦 Installation
|
|
2
|
+
|
|
3
|
+
Use without installing
|
|
4
|
+
npx audio-trim input.wav output.wav
|
|
5
|
+
|
|
6
|
+
Install locally in a project
|
|
7
|
+
npm install audio-trim-cli
|
|
8
|
+
|
|
9
|
+
Then:
|
|
10
|
+
|
|
11
|
+
To trim a single file, run
|
|
12
|
+
|
|
13
|
+
npx audio-trim input.wav output.wav
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
To trim a single file with a given threshold, run
|
|
17
|
+
|
|
18
|
+
npx audio-trim input.wav output.wav --threshold-db=-40
|
|
19
|
+
|
|
20
|
+
Note !!
|
|
21
|
+
Silence threshold in dBFS (0 dBFS = max). More negative = less aggressive.
|
|
22
|
+
Examples: -30 (more trim), -40 (default-ish), -50 (gentle).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "audio-trim-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Trim leading and trailing silence from WAV files",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
@@ -10,6 +10,13 @@
|
|
|
10
10
|
"index.js",
|
|
11
11
|
"bin/**"
|
|
12
12
|
],
|
|
13
|
-
"os": [
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
"os": [
|
|
14
|
+
"darwin",
|
|
15
|
+
"linux",
|
|
16
|
+
"win32"
|
|
17
|
+
],
|
|
18
|
+
"cpu": [
|
|
19
|
+
"x64",
|
|
20
|
+
"arm64"
|
|
21
|
+
]
|
|
22
|
+
}
|
|
Binary file
|