Khaya SDK¶
Python SDK for the GhanaNLP Khaya API — providing translation, automatic speech recognition (ASR), and text-to-speech (TTS) for African languages.
Install¶
Quick start¶
import os
from khaya import KhayaClient
with KhayaClient(os.environ["KHAYA_API_KEY"]) as khaya:
result = khaya.translate("Hello, how are you?", "en-tw")
print(result.text) # "Ɛte sɛn?"
Ready to go further? Head to the Getting Started guide.