Official Python SDK for HyperNeuron AI services
Reason this release was yanked:
error on connection
Project description
hyperneuronai
Official Python SDK for HyperNeuron AI — TTS streaming and AI telephony services.
Install
pip install hyperneuronai
Quick start
import hyperneuronai
client = hyperneuronai.HyperNeuron(
api_key="hn_key_xxxx",
base_url="https://ai.hyperneuron.in",
)
# TTS — save to WAV
audio = client.tts.generate("Hello, world!", voice="sanjana")
with open("hello.wav", "wb") as f:
f.write(audio)
# TTS — stream in real time
for chunk in client.tts.stream("Hello, world!", voice="sanjana"):
your_speaker.write(chunk)
# One-way outbound call
call = client.telephony.outbound(
to="+91<10digitIndianNumber>",
text="Hi! Your order has shipped and arrives tomorrow.",
voice="sanjana",
)
print(call.call_uuid, call.state)
Async
import asyncio
import hyperneuronai
async def main():
async with hyperneuronai.AsyncHyperNeuron(api_key="hn_key_xxxx") as client:
audio = await client.tts.generate("Hello!")
call = await client.telephony.outbound(to="+91<10digitIndianNumber>", text="Hi there!")
asyncio.run(main())
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hyperneuronai-0.1.14.tar.gz
(9.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hyperneuronai-0.1.14.tar.gz.
File metadata
- Download URL: hyperneuronai-0.1.14.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16b9b3348bd055fe95c3f3e4bdf9bd32fe2830e4b962212ee2dade55df34e6df
|
|
| MD5 |
15706267abb50cd53d374e9b9ea04a46
|
|
| BLAKE2b-256 |
1d396a649b662745e6101d7dfe33ff906178a805f841839e2dc2e774eb4b7632
|
File details
Details for the file hyperneuronai-0.1.14-py3-none-any.whl.
File metadata
- Download URL: hyperneuronai-0.1.14-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
494660fed3209ca3161239532f50aba6ff6a08ab0fc3a629635130d6a6e00d06
|
|
| MD5 |
4eb19706176f80d7095037624b1aa2d2
|
|
| BLAKE2b-256 |
b453c7d8aabbb7fe4f4c59f893f20eac32a70847e777a219af9a33b344217253
|