Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/romanin-rf/playsoundsimple.py
Library for working with sound files of the format: ".ogg", ".mp3", ".wav", ".midi"
https://github.com/romanin-rf/playsoundsimple.py
audio lib linux macos midi mp3 music ogg playsound playsound-libraries playsoundsimple py python wav windows
Last synced: 19 days ago
JSON representation
Library for working with sound files of the format: ".ogg", ".mp3", ".wav", ".midi"
- Host: GitHub
- URL: https://github.com/romanin-rf/playsoundsimple.py
- Owner: romanin-rf
- License: mit
- Created: 2022-02-02T21:03:17.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-16T00:34:38.000Z (about 1 year ago)
- Last Synced: 2023-12-16T20:20:59.563Z (about 1 year ago)
- Topics: audio, lib, linux, macos, midi, mp3, music, ogg, playsound, playsound-libraries, playsoundsimple, py, python, wav, windows
- Language: Python
- Homepage: https://pypi.org/project/playsoundsimple.py
- Size: 8.78 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/FluidSynth/fluidsynth/releases)
1. **Download** a zip file suitable for your version of Windows.
1. **Unpack the archive** anywhere, *but it is recommended to put it in a folder `C:\Program Files\FluidSynth`*
1. **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]`
1. **That's it, FluidSynth is installed!**
- **Linux**:
- **Ubuntu/Debian**:
```shell
sudo apt-get install fluidsynth
```
- **Arch Linux**:
```shell
sudo pacman -S fluidsynth
```
- **MacOS**
- With [Fink](http://www.finkproject.org/):
```shell
fink install fluidsynth
```
- With [Homebrew](https://brew.sh/):
```shell
brew install fluidsynth
```
- With [MacPorts](http://www.macports.org/):
```shell
sudo port install fluidsynth
```## More
```example
import playsoundsimple as psss = pss.Sound("main.wav")
s.play()
s.wait()
```## Author
- Roman Slabicky
- [Vkontakte](https://vk.com/romanin2)
- [GitHub](https://github.com/romanin-rf)