Skip to main content

A simple package for Raspberry Pi to play music and trigger music by buttons over the gpio.

Project description

Raspi-Music-Button

PyPI - License Current version on PyPI Teststatus

Raspi-Music-Button is a small python based package that interacts with linux packages on the Raspberry Pi to play music. Moreover it can be used to trigger music by a button connect to one of the Raspberry Pi gpio.

Requirements

The following linux packages need to be installed on the opreation system:

  • aplay
  • amixer
  • mpg321

Installation

$ pip install -U raspi-music-button

Quick Start

The package is available under the command raspi-music. The command line help can be called with

raspi-music --help

To play just a simple song run

raspi-music play song my-song.mp3

To play a whole folder filled with mp3 run

raspi-music play folder /my/folder

Use the following commands to do the same but start playing only when the button is triggered.

raspi-music button song my-song.mp3

raspi-music button folder /my/folder

License

This project is licensed under the MIT License (see the LICENSE file for details).

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

raspi_music_button-0.1.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

raspi_music_button-0.1.0-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file raspi_music_button-0.1.0.tar.gz.

File metadata

  • Download URL: raspi_music_button-0.1.0.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for raspi_music_button-0.1.0.tar.gz
Algorithm Hash digest
SHA256 72f6ba440d40241f8099129af153a5903ac977e199027c82c2a514effd0fc197
MD5 5919fc55e108ca98df0b7552bed566c6
BLAKE2b-256 b5d74543774669bf92506d97fdddb65beff36a35a117461ac77e44e2a59925ab

See more details on using hashes here.

File details

Details for the file raspi_music_button-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for raspi_music_button-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7a5ebc6a7c8c8af5a3a2f2827f8d7fc7524fac4e0bde2b30848ccb4ad2a7fa26
MD5 0d207c01880e4dbd41fd48cb23011beb
BLAKE2b-256 50dc022e7d69762e6ca497b5e45aaccd04fc893e16e9e7d5358a8ce7b9318f99

See more details on using hashes here.

Supported by

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