Skip to main content

A simple library for playing sound files.

Project description

playsoundsimple.py

Description

Library for working with sound files of the format: MP3, WAV, OGG,FLAC, MIDI.

Installation

pip install playsoundsimple.py

About MIDI support

In order to play MIDI files you need to install FluidSynth:

  • Windows: Releases
    1. Download a zip file suitable for your version of Windows.
    2. Unpack the archive anywhere, but it is recommended to put it in a folder C:\Program Files\FluidSynth
    3. Next, open Settings > System > About the system > Additional system parameters > Environment variables > [Double click on Path] > Create > [Enter the full path to the folder with FluidSynth]
    4. That's it, FluidSynth is installed!
  • Linux:
    • Ubuntu/Debian:
      sudo apt-get install fluidsynth
      
    • Arch Linux:
      sudo pacman -S fluidsynth
      
  • MacOS
    • With Fink:
      fink install fluidsynth
      
    • With Homebrew:
      brew install fluidsynth
      
    • With MacPorts:
      sudo port install fluidsynth
      

More

import playsoundsimple as pss

s = pss.Sound("main.wav")
s.play()
s.wait()

Author

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

playsoundsimple_py-0.8.4.tar.gz (6.7 MB view hashes)

Uploaded Source

Built Distribution

playsoundsimple_py-0.8.4-py3-none-any.whl (6.7 MB view hashes)

Uploaded Python 3

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