Count audio files in a directory.
Project description
audioinfo
A tool to check audio file durations in a directory.
Usage
Install the audioinfo package with:
pip install audioinfo
Check the help with:
$ audioinfo --help
usage: audioinfo [-h] [--directory DIRECTORY] [--ext EXT [EXT ...]] [--recurse] [--case-sensitive]
A tool to check the durations of audio files in a directory.
options:
-h, --help show this help message and exit
--directory DIRECTORY, -d DIRECTORY
The directory to search (default: ./)
--ext EXT [EXT ...], -e EXT [EXT ...]
The extension to search for (default: wav)
--recurse, -r Recurse into subdirectories (default: True)
--case-sensitive, -c Case sensitive search (default: False)
Examples
Check all audio files with the ".wav" in the current directory:
audioinfo --directory ./ --ext wav
The default directory is the current directory and the default extension is ".wav". Therefore you may precisely omit these options, like this:
audioinfo
Check all audio files with the ".wav" in the directory "~/Music":
audioinfo --directory ~/Music --ext wav
# or use the short form:
audioinfo -d ~/Music -e wav
Check all audio files with ".wav" and ".flac" suffixes in the directory "~/Music":
audioinfo --directory ~/Music --ext wav flac
Check audio files with the ".wav" suffix in the directory "~/Music" and do not recurse into subdirectories:
audioinfo --directory ~/Music --ext wav --recurse=false
License
This software is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
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
Hashes for audioinfo-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc6e1e5a8ca1091507530cf80847eb87ed8e1ad92e4b16af9512e86ae769a44a |
|
MD5 | 742065b8181aa896f5a8a761107cff39 |
|
BLAKE2b-256 | 2b903f308e96b7b146bf68456f99906fda5663259de8e00d2005cdae56bc1086 |