Integrations
Python SDK
The Vulavula Python SDK wraps the Vulavula API in a Python library, so you can transcribe and translate without writing HTTP calls by hand.
Getting started
Prerequisites
- Python 3.7 or newer — download it from python.org if needed
- A Vulavula API key — see Authentication
1. Set up a virtual environment (optional)
You can install the vulavula library into a virtual environment to keep it isolated from other projects. Skip this step if you don't want one.
Code
2. Install the SDK
You can use either pip or pdm:
Code
3. Initialize the client
Pass your API key when constructing the client:
Code
Load the key from an environment variable rather than hard-coding it — see Keep your key safe.
4. Make your first request
Translate a sentence from isiZulu to English:
Code
Error handling
The SDK raises VulavulaError, a custom exception with detailed information about API failures. Standard HTTP response codes indicate the outcome of a request:
- 2xx — success
- 4xx — a problem with the input (e.g. a missing required parameter)
- 5xx — an error on Vulavula's servers
Handle errors with a try/except block:
Code
Next steps
- Transcribe audio with the SDK's webhook-based flow — see the Speech-to-Text SDK guide
- Compare with the raw HTTP endpoints in the API Reference
- See the Vulavula project page on PyPI for the full package description and configuration options
Last modified on

