Skip to main content
You will build: a reminder service for a health centre. Every evening it prepares, for each family with an appointment tomorrow, a short spoken reminder in the family’s language: Hausa here, and Zarma once a native speaker has written its sentences. The fixed sentences are generated once and reused; only what changes (the child’s name) is spoken each time. You will need: Python 3.9+, the Python library (pip install namu-ai), and NAMU_API_KEY set. Joining audio files uses ffmpeg.

The idea

A reminder is three parts: A hundred reminders cost one greeting, one message and a hundred short names, not a hundred full sentences.
1

Speak each part once

reminders.py
The parts are kept as WAV so they join cleanly; the finished reminder is encoded once as Opus.
2

Run it

Run it again tomorrow with new names: the greeting and the message come from the cache.

Before you send anything

  • Have a native speaker listen to every fixed sentence before it reaches families. Fix the text, not the audio.
  • Say who is speaking. Start with the health centre’s name, and tell families the voice is generated.
  • Get consent for reminders, and make stopping them easy.
  • Keep names out of logs. Store what you need to send, nothing more.

Next

Responsible use

What the API is, and is not, for

Usage

Watch the month’s allowance