Skip to main content

An API wrapper for Soundpad written in Python.

Project description

soundpad_control

PyPI - Version GitHub License PyPI - Python Version

A simple Python wrapper for controlling Soundpad remotely.

Overview

This Python package, soundpad_control, offers a remote control interface for Soundpad through Python, enabling programmatic management of audio playback and manipulation features. Modeled after SoundpadRemoteControl.java, it supports functionalities such as playing, pausing, and stopping sounds, managing categories, and controlling audio settings. With easy-to-use methods, users can add, search, and organize audio files, making it ideal for automated setups or complex audio workflows.

Features

  • Play and Stop Sounds: Start, stop, and navigate sounds, with options to output to speakers or a microphone.
  • Sound Navigation: Play previous, next, and random sounds or sounds from specific categories.
  • Sound Management: Add or remove sounds and categories, select rows and categories, and manage playback order.
  • Volume and Playback Control: Control volume, mute, pause, seek, and scroll playback.
  • Recording Support: Start, stop, and monitor recording sessions.
  • Soundpad Version Check: Confirm compatibility and connection status with Soundpad.

Installing

Python 3.6 or higher is required

A Virtual Environment is recommended to install the library, especially on Linux where the system Python is externally managed and restricts which packages you can install on it.

You can install the library via pip:

$ pip install soundpad_control

Quick Example

Here’s a quick example of how to use soundpad_control.

from soundpad_control import SoundpadRemoteControl

# Initialize the Soundpad remote control
soundpad = SoundpadRemoteControl()

# Play a specific sound by index, here at index 1
soundpad.play_sound(1)

# Play the next sound in the playlist or queue
soundpad.play_next_sound()

# Add a new sound to Soundpad using the specified file path
soundpad.add_sound('/path/to/sound.mp3')

# Search for a sound file by its filename or keyword
soundpad.search('filename')

# Remove selected sound entries; here, `False` keeps the files on disk
soundpad.remove_selected_entries(False)

Requirements

  • Python 3.6+
  • Soundpad

Links

MIT License

Copyright (c) 2024 ilyadev

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

soundpad_control-0.1.2.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

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

soundpad_control-0.1.2-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file soundpad_control-0.1.2.tar.gz.

File metadata

  • Download URL: soundpad_control-0.1.2.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.10.8 Linux/6.1.0-26-amd64

File hashes

Hashes for soundpad_control-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1171fd333de6468c3d864f7554211f3b5a48078ee65bfad8b87c82c97ad99ace
MD5 550a9f2e48630b74fbe717ea2a6c2073
BLAKE2b-256 dee277dde8941a5099f314dec62f09f57a7ec6eb520d1037865ef02f4fb42b4b

See more details on using hashes here.

File details

Details for the file soundpad_control-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: soundpad_control-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.10.8 Linux/6.1.0-26-amd64

File hashes

Hashes for soundpad_control-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 33f84c94cbdd023e47a792a8e6d91d7909c4d6cf5761e07584f905cf6c19fce1
MD5 d7dce7f4b9e44f40ae77541fc4937e9c
BLAKE2b-256 258e955a87493f8af98e023a9c2a5609e2d18eaa3f1482ea781825f463664392

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