Member-only story
Play sounds in the terminal with Python
3 min readMay 27, 2024
I recently found a nice Python project called nava to play sounds in the terminal without using an audio player and I want to share it with you. 😁
I have also developed a small project around it since I like to write command-line interfaces. I will also present it to you.
Installation
To install nava, you will need Python 3.6 or higher.
$ pip install nava
# with poetry
$ poetry add nava
# with uv
$ uv pip install nava
If you don’t know poetry or uv, I have introduction articles on both of them.
Usage
The simplest usage is as follows:
import nava
nava.play("alarm.wav")