Skip to main content

CLI tool to generate a mash-up of audio clips

Project description

random_audio

A Python CLI tool to generate a mash-up of audio clips. An excellent use case is when you have potentially embarassing audio clips of your friends and you'd like to embarass them further.

Installation

Run pip install random_audio.

Usage

usage: random_audio [-h] [-s A B] [-n N] [-o O] [-v] directory

Make a randomized mash-up of audio clips.

positional arguments:
  directory   Directory to read audio files from, must contain only the audio
              files.

optional arguments:
  -h, --help  show this help message and exit
  -s A B      Each clip is speeded up X times, where X is A random number
              between A and B. A and B must be greater than 1, and A less than
              B. Omit this option to have all clips play at normal speed.
              (default: None)
  -n N        Number of times a random clip is picked and added to the mash-
              up. (default: 15)
  -o O        Name of output file. (default: output.mp3)
  -v          Enable verbose mode. (default: False)

Example Usage

All audio clips are in a folder audio/ in the current directory, we want to output to masterpiece.mp3 and want our clips to be speeded up by a factor in the range 2-3:

random_audio -s 2 3 -o masterpiece.mp3 audio/

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

random_audio-1.0.1.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

random_audio-1.0.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file random_audio-1.0.1.tar.gz.

File metadata

  • Download URL: random_audio-1.0.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for random_audio-1.0.1.tar.gz
Algorithm Hash digest
SHA256 6d80c0c165bbb4c1d6f8fc461d3f04ed7e8614ef679b8471808c2a2567dfea51
MD5 45398afb6327cc9c65032a1bf1959543
BLAKE2b-256 ddffc68daab9b16acaed63d1bc4340e92a4577a6e203365d2969989ecca3ca3e

See more details on using hashes here.

File details

Details for the file random_audio-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for random_audio-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0d8c3c4c4d6876f1519abb73510777cbac35b5e8273f9d640015d2ca5a8aa6cc
MD5 4cb68b2435573d9b6921cd016248bf31
BLAKE2b-256 d0487886e238c43ff5f1d60a77b861c071fd9715c441b101ea2708c900bc62e5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page