Migration Guide for Version 0.7.0 and Above
There were major breaking changes in version 0.7.0 of the SDK. If upgrading from a previous version, please
View the Migration Guide. That release deprecated several interfaces and moved them to the hume[legacy] package extra. The legacy extra was removed in 0.9.0. The last version to include legacy was 0.8.6.
Documentation
API reference documentation is available here.
Compatibility
The Hume Python SDK is compatible across several Python versions and operating systems.
- For the Empathic Voice Interface, Python versions
3.9through3.13are supported on macOS and Linux. - For Text-to-speech (TTS), Python versions
3.9through3.13are supported on macOS, Linux, and Windows.
Below is a table which shows the version and operating system compatibilities by product:
| Python Version | Operating System | |
|---|---|---|
| Empathic Voice Interface | 3.9, 3.10, 3.11, 3.12, 3.13 |
macOS, Linux |
| Text-to-speech (TTS) | 3.9, 3.10, 3.11, 3.12, 3.13 |
macOS, Linux, Windows |
Installation
pip install hume
# or
poetry add hume
# or
uv add hume
Other Resources
from hume.client import HumeClient
client = HumeClient(api_key="YOUR_API_KEY")
client.empathic_voice.configs.list_configs()
Examples
Starter projects that use this SDK:
- EVI Python quickstart — Empathic Voice Interface
- TTS Python quickstart — Text-to-speech
Async Client
The SDK also exports an async client so that you can make non-blocking calls to our API.
import asyncio
from hume.client import AsyncHumeClient
client = AsyncHumeClient(api_key="YOUR_API_KEY")
async def main() -> None:
await client.empathic_voice.configs.list_configs()
asyncio.run(main())
Namespaces
This SDK contains the APIs for empathic voice and tts. Even if you do not plan on using more than one API to start, the SDK provides easy access in case you would like to use additional APIs in the future.
Each API is namespaced accordingly:
from hume.client import HumeClient
client = HumeClient(api_key="YOUR_API_KEY")
client.empathic_voice. # APIs specific to Empathic Voice
client.tts. # APIs specific to Text-to-speech
Exception Handling
All errors thrown by the SDK will be subclasses of ApiError.
from hume.client import HumeClient
from hume.core import ApiError
client = HumeClient(api_key="YOUR_API_KEY")
try:
client.empathic_voice.configs.list_configs()
except ApiError as e:
print(e.status_code)
print(e.body)
Pagination
Paginated requests will return a SyncPager or AsyncPager, which can be used as generators for the underlying object. For example, list_tools will return a generator over ReturnUserDefinedTool and handle the pagination behind the scenes:
from hume.client import HumeClient
client = HumeClient(api_key="YOUR_API_KEY")
for tool in client.empathic_voice.tools.list_tools():
print(tool)
you could also iterate page-by-page:
for page in client.empathic_voice.tools.list_tools().iter_pages():
print(page.items)
or manually:
pager = client.empathic_voice.tools.list_tools()
# First page
print(pager.items)
# Second page
pager = pager.next_page()
print(pager.items)
WebSockets
We expose a websocket client for interacting with the EVI API.
When interacting with these clients, you can use them very similarly to how you'd use the common websockets library:
import os
from hume import AsyncHumeClient
from hume.empathic_voice.types import UserInput
client = AsyncHumeClient(api_key=os.getenv("HUME_API_KEY"))
async with client.empathic_voice.chat.connect() as hume_socket:
await hume_socket.send_user_input(message=UserInput(text="Hello!"))
The underlying connection, in this case hume_socket, will support intellisense/autocomplete for the different functions that are available on the socket!
Advanced
Retries
The Hume SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long as the request is deemed retriable and the number of retry attempts has not grown larger than the configured retry limit.
A request is deemed retriable when any of the following HTTP status codes is returned:
Use the max_retries request option to configure this behavior.
from hume.client import HumeClient
from hume.core import RequestOptions
client = HumeClient(...)
# Override retries for a specific method
client.empathic_voice.configs.list_configs(
request_options=RequestOptions(max_retries=5)
)
Timeouts
By default, requests time out after 60 seconds. You can configure this with a timeout option at the client or request level.
from hume.client import HumeClient
from hume.core import RequestOptions
client = HumeClient(
# All timeouts are 20 seconds
timeout=20.0,
)
# Override timeout for a specific method
client.empathic_voice.configs.list_configs(
request_options=RequestOptions(timeout_in_seconds=20)
)
Custom HTTP client
You can override the httpx client to customize it for your use-case. Some common use-cases include support for proxies and transports.
import httpx
from hume.client import HumeClient
client = HumeClient(
http_client=httpx.Client(
proxies="http://my.test.proxy.example.com",
transport=httpx.HTTPTransport(local_address="0.0.0.0"),
),
)
Contributing
While we value open-source contributions to this SDK, this library is generated programmatically.
Additions made directly to this library would have to be moved over to our generation code, otherwise they would be overwritten upon the next generated release. Feel free to open a PR as a proof of concept, but know that we will not be able to merge it as-is. We suggest opening an issue first to discuss with us!
On the other hand, contributions to the README are always very welcome!
Metadata
Release files for hume 0.14.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hume-0.14.1.tar.gz | 130.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hume-0.14.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 394.1 kB
Release files / hume-0.14.1.tar.gz
| Download URL | hume-0.14.1.tar.gz |
|---|---|
| Size | 130.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
17a993e99c1c91d1aecadb78ae18fdf3ef8f5d58f298e8f25e2393a270b576ac
|
|
BLAKE2b-256 checksum How to use checksums |
027e559e34ae5aa99e723c20279fe7e2ecfc8253a848e9d58d16a8d7dbc71a36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 17, 2026.
Transparency logRelease files / hume-0.14.1-py3-none-any.whl
| Download URL | hume-0.14.1-py3-none-any.whl |
|---|---|
| Size | 263.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f0c65d9992558645c784321896cceae2142eb2d874df04c8e6f0a866bfb92195
|
|
BLAKE2b-256 checksum How to use checksums |
a21359ec2654a2749ec1ea92d7904666b84d68d274bee82986732cfb752924c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 17, 2026.
Transparency log