Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sond-1.1.1.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

sond-1.1.1-cp312-cp312-win_amd64.whl (6.9 kB view details)

Uploaded CPython 3.12Windows x86-64

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

Hashes for sond-1.1.1.tar.gz
Algorithm Hash digest
SHA256 a95119eabf11ac9866846275babd1567e437268b575a8200560ea6b7adcfc6d4
MD5 6ce4764235a6a63caacdfea225dcd9d7
BLAKE2b-256 04260622183810b89d2dbcb3f38e27a8a968251ceccd3ed56be824f90162c9fb

See more details on using hashes here.

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

Hashes for sond-1.1.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7ecd2a46bab870e2120ccf0d53fd3ee065e2518dc7724fe59043a53817bb69f6
MD5 8a82c1ca34dd5a8a25c1d83c6fd67a1e
BLAKE2b-256 691b28fd9c90f5e6e739de75addb2c5186bd893c69dfe6b40111d32e6a1921bd

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