Skip to main content

South African Text-to-Speech — speak in all 11 SA languages

Project description

CMT-SA-Accent 🇿🇦🔊

South African Text-to-Speech — speak in all 11 SA languages

Developed by Mzwandile Zulu | Creative Minds Technologies AI

Install

pip install CMT-SA-Accent

Setup (one time)

Get a FREE Microsoft Azure key at https://azure.microsoft.com/free/ (Free tier: 500,000 characters per month)

Then set your key:

# Windows
setx CMT_AZURE_KEY "your-azure-key-here"

# Mac / Linux
export CMT_AZURE_KEY="your-azure-key-here"

Use it

from CMT_SA_Accent import isizulu as voice
voice.bua("Sawubona Mzansi!")

from CMT_SA_Accent import afrikaans as voice
voice.praat("Hallo Suid-Afrika!")

from CMT_SA_Accent import english as voice
voice.speak("Howzit South Africa!")

All languages

from CMT_SA_Accent import isizulu     as voice   # voice.bua(...)
from CMT_SA_Accent import isixhosa    as voice   # voice.thetha(...)
from CMT_SA_Accent import afrikaans   as voice   # voice.praat(...)
from CMT_SA_Accent import sesotho     as voice   # voice.bua(...)
from CMT_SA_Accent import setswana    as voice   # voice.bua(...)
from CMT_SA_Accent import sepedi      as voice   # voice.bolela(...)
from CMT_SA_Accent import siswati     as voice   # voice.khuluma(...)
from CMT_SA_Accent import isindebele  as voice   # voice.khuluma(...)
from CMT_SA_Accent import tshivenda   as voice   # voice.amba(...)
from CMT_SA_Accent import xitsonga    as voice   # voice.vulavula(...)
from CMT_SA_Accent import english     as voice   # voice.speak(...)

# Universal alias works on ALL languages:
voice.speak("Your text here")
voice.bua("Your text here")

Extra options

# Pass key directly
voice.bua("Sawubona!", azure_key="your-key")

# Save to MP3 file
voice.bua("Sawubona!", save_to="hello.mp3")

# Adjust speed and pitch
voice.bua("Sawubona!", rate="+20%", pitch="+5%")

# Use Google Cloud instead
voice.bua("Sawubona!", google_key="your-google-key")

List all voices

import CMT_SA_Accent as sa
sa.list_voices()

Set key for whole session

import CMT_SA_Accent as sa
sa.set_azure_key("your-key")

# Now all languages use it without passing key each time
from CMT_SA_Accent import isizulu as voice
voice.bua("Sawubona!")

Voice status

Language Azure Voice Status
isiZulu zu-ZA-ThandoNeural ✅ Native
Afrikaans af-ZA-AdriNeural ✅ Native
SA English en-ZA-LeahNeural ✅ Native
isiXhosa zu-ZA-ThandoNeural ⚠️ Closest
siSwati zu-ZA-ThandoNeural ⚠️ Closest
isiNdebele zu-ZA-ThandoNeural ⚠️ Closest
Sesotho af-ZA-AdriNeural ⚠️ Closest
Setswana af-ZA-AdriNeural ⚠️ Closest
Sepedi af-ZA-AdriNeural ⚠️ Closest
Tshivenda af-ZA-AdriNeural ⚠️ Closest
Xitsonga af-ZA-AdriNeural ⚠️ Closest

✅ Native = Real SA voice for this language ⚠️ Closest = Best available until Microsoft releases a native voice


Sikhona. We exist. 🇿🇦

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cmt_sa_accent-1.0.0.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cmt_sa_accent-1.0.0-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file cmt_sa_accent-1.0.0.tar.gz.

File metadata

  • Download URL: cmt_sa_accent-1.0.0.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for cmt_sa_accent-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8bd502a678a55f82bb78effcd17b7e7bb5c993c690b0bb52b2b01cd94dd440fd
MD5 4a8c5705da3f1bf951ec55abfba58d8a
BLAKE2b-256 486887906e04851b8013b9f6a4f4f4f8561bbcbb1c039eb1eaf2e36b042ecc85

See more details on using hashes here.

File details

Details for the file cmt_sa_accent-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: cmt_sa_accent-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for cmt_sa_accent-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a75cff113e34d595edb4473f0fde99b755178a7f8a94e05297480a23df758000
MD5 7fe84b301b3d52f82cbd620ef6a6c113
BLAKE2b-256 84328dd51a52dc8d283768c07530f89012ac1fa2015035c4eedb14d05949a9b5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page