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 ...]] [--stop_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, like 'wav' or 'mp3'. (default: wav)
--stop_recurse, -s Stop to recurse into subdirectories. (default: False)
--case_sensitive, -c Case sensitive search. (default: False)
Examples
Check all audio files with the ".wav" in the current directory:
audioinfo --directory ./ --ext wav
# or use the short form of the arguments
audioinfo -d ./ -e wav
# default directory is the current directory and the default extension is ".wav".
# you may precisely omit these options, like this:
audioinfo
Check all audio files with the ".wav" in the directory "~/Music":
audioinfo -d ~/Music -e wav
Check all audio files with ".wav" or ".flac" suffixes in the directory "~/Music":
audioinfo -d ~/Music -e wav flac
Check audio files with the ".wav" suffix in the directory "~/Music" and do not recurse into subdirectories:
audioinfo -d ~/Music -e wav -s
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
audioinfo-0.1.7.tar.gz
(7.7 kB
view hashes)
Built Distribution
Close
Hashes for audioinfo-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 492c66163bf0d2132f0f80c35b8a72260259f5708421981843527af92041e09b |
|
MD5 | ea4cfc2cffc9a0e1ca06ef578c312758 |
|
BLAKE2b-256 | 8b09a9d38e564121bf2ea4ffbe49e77c6c03c57f725928ba713c3c5022522c3e |