Play sounds in the terminal with Python

Kevin Tewouda
3 min readMay 27, 2024
Photo by Luwadlin Bosman on Unsplash

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")

--

--

Kevin Tewouda

Déserteur camerounais résidant désormais en France. Passionné de programmation, sport, de cinéma et mangas. J’écris en français et en anglais dû à mes origines.