Tool for creating silence marks for audio files
Project description
Create silence marks for your audio files
Creates lists of silent spots in audio files using FFmpeg with filter silencedetect.
Currently only Audipo player marks format is supported.
Prerequisites
- Python 3.8+
- FFmpeg
- Linux (haven't tested on Windows/Mac yet)
Installation
$ pip install audio_silence_marks
Usage
Run the tool against one file or a directory tree:
$ audio_silence_marks . file.mp3 > marks.audipomark
$ audio_silence_marks . '**/*.mp3' > marks.audipomark
Then upload this file to your phone's directory Interal Storage/Audipo/Mark
, e.g.:
$ adb push marks.audipomark /storage/emulated/0/Audipo/Mark/
Open your Audipo player, go to Menu > Preferences
and click on Import all marks
item.
Restart the player.
Result
Example:
Unit 23 | Unit 24 |
---|---|
Docs
$ audio_silence_marks --help
Usage: audio_silence_marks [OPTIONS] PATH GLOB
Processes audio files using FFmpeg filter silencedetect and outputs Audipo
markers JSON with the list of spots placed in the middle of silence
intervals.
More info on using GLOBS: https://docs.python.org/3.8/library/glob.html
Arguments:
PATH is a path to files. E.g: "." [required]
GLOB argument is a pattern for selecting files. E.g.: '**/*.mp3'
[required]
Options:
-t, --target [audipo] Target format for marks. [default: audipo]
-n, --noise INTEGER Maximum volume of the noise treated as
silence in -dB [default: 50]
-d, --noise INTEGER Minimum length of the silent interval in
seconds [default: 1]
-l, --list Simply lists matched files. Useful for GLOB
debugging. [default: False]
--install-completion [bash|zsh|fish|powershell|pwsh]
Install completion for the specified shell.
--show-completion [bash|zsh|fish|powershell|pwsh]
Show completion for the specified shell, to
copy it or customize the installation.
--help Show this message and exit.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for audio_silence_marks-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | da5c4f5a23e6eb942c78f9b50c2b24bd0dee7f9244427a9b3bde2544e79f1923 |
|
MD5 | d0cef38b46bf25e211454572a00ee2a4 |
|
BLAKE2b-256 | 3e6cf2fe0cf1aa6416ff6cb165cfda3d237b0b146a913cd22829431de7b904cc |
Close
Hashes for audio_silence_marks-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77be2520b5abc5869109919519c0c437fca9cff51e3d16c4d37afd3d87ecfdd5 |
|
MD5 | de4cb84930675702a53e82653b9b47a2 |
|
BLAKE2b-256 | 09dadd228b8b4953f33dd71fe15b9be3240a5b880b1421af9a754ace3e552e41 |