Simple sound library
Project description
sond
Simple and lightweight sound library for Python.
sond is a minimal audio library written in C that allows you to play sounds easily from Python without installing large multimedia frameworks.
It uses the Windows multimedia API, so it works fast and has no external dependencies.
Installation
pip install sond
Features
- Play WAV and MP3 files
- Play sound in background
- Pause and resume audio
- Stop playback
- Change volume
- Delay playback
- Fade out sound
Example
import sond
# play sound
sond.play("music.mp3")
# play in background
sond.play_async("music.mp3")
# pause playback
sond.pause()
# resume playback
sond.resume()
# change volume
sond.volume(500)
# delay playback
sond.delay(2, "sound.wav")
# fade out
sond.fadeout(3)
# stop sound
sond.stop()
Supported formats
- WAV
- MP3
Platform
Currently supported platform:
- Windows
Why use sond?
- Very lightweight
- Simple API
- No heavy dependencies
- Fast native C implementation
License
MIT License
Author
Created by AA.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sond-1.1.1.tar.gz.
File metadata
- Download URL: sond-1.1.1.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a95119eabf11ac9866846275babd1567e437268b575a8200560ea6b7adcfc6d4
|
|
| MD5 |
6ce4764235a6a63caacdfea225dcd9d7
|
|
| BLAKE2b-256 |
04260622183810b89d2dbcb3f38e27a8a968251ceccd3ed56be824f90162c9fb
|
File details
Details for the file sond-1.1.1-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: sond-1.1.1-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 6.9 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ecd2a46bab870e2120ccf0d53fd3ee065e2518dc7724fe59043a53817bb69f6
|
|
| MD5 |
8a82c1ca34dd5a8a25c1d83c6fd67a1e
|
|
| BLAKE2b-256 |
691b28fd9c90f5e6e739de75addb2c5186bd893c69dfe6b40111d32e6a1921bd
|