openscilab/nava has 163 GitHub stars and 6 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-09 07:14 UTC. Last push 2026-11-04.
🎵 Playing Sounds in Python
Measured star growth
- in 24h
- 0
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalOverview
Nava is a Python library that allows users to play sound in Python without any dependencies or platform restrictions. It is a cross-platform solution that runs on any operating system, including Windows, macOS, and Linux. Its lightweight and easy-to-use design makes Nava an ideal choice for developers looking to add sound functionality to their Python programs.
| PyPI Counter |
|
| Github Stars |
|
| Branch | main | dev |
| Linux CI | ||
| Windows CI | ||
| macOS CI |
| Code Quality |
Installation
PyPI
- Check Python Packaging User Guide
- Run
pip install nava==0.9
Source code
- Download Version 0.9 or Latest Source
- Run
pip install .
Conda
- Check Conda Managing Package
- Update Conda using
conda update conda - Run
conda install -c openscilab nava
Usage
Basic
from nava import play
play("alarm.wav")
Async mode
⚠️ The async_mode parameter has a default value of False
import time
from nava import play, stop
sound_id = play("alarm.wav", async_mode=True)
time.sleep(4)
stop(sound_id)
Loop mode
⚠️ The loop parameter has a default value of False
⚠️ You should always set async_mode flag when you are using loop
from nava import play, stop
sound_id = play("alarm.wav", async_mode=True, loop=True)
time.sleep(100)
stop(sound_id)
Error
from nava import play, NavaBaseError
try:
play("alarm.wav")
except NavaBaseError as e:
print(str(e))
Engine
⚠️ The engine parameter has a default value of AUTO
from nava import play, Engine
sound_id = play("alarm.wav", engine=Engine.AFPLAY)
CLI
$ nava [--file FILE_PATH] [--loop] [--engine ENGINE] FILE_PATH
Engines list
List of different platforms and the corresponding engines that are used for sound playing.
| Engine | Platform | References | Supported Formats |
|---|---|---|---|
ALSA |
Linux | Advanced Linux Sound Architecture | .wav |
WINSOUND |
Windows | Winsound | .wav |
WINMM |
Windows | Windows MCI (Media Control Interface) | .wav, .mp3, .avi |
AFPLAY |
macOS | Audio File Play | .wav, .mp3 |
Issues & bug reports
Just fill an issue and describe it. We'll check it ASAP! or send an email to [email protected].
- Please complete the issue template
You can also join our discord server
Acknowledgments
Python Software Foundation (PSF) grants Nava library from version 0.8 to 0.9. PSF is the organization behind Python. Their mission is to promote, protect, and advance the Python programming language and to support and facilitate the growth of a diverse and international community of Python programmers.
Show your support
Star this repo
Give a ⭐️ if this project helped you!
Donate to our project
If you do like our project and we hope that you do, can you please support us? Our project is not and is never going to be working for profit. We need the money just so we can continue doing what we do ;-) .
Explore related projects
ytdl-org/youtube-dl
Command-line program to download videos from YouTube.com and other video sites
141,500 starsexcalidraw/excalidraw
Virtual whiteboard for sketching hand-drawn like diagrams
135,396 starsgodotengine/godot
Godot Engine – Multi-platform 2D and 3D game engine
119,840 starsmrdoob/three.js
JavaScript 3D Library.
117,905 stars

