Python SDK for daisys.ai
Project description
Daisys API
This library wraps the Daisys API for text-to-speech and voice generation services.
Have your product talking in seconds!
from daisys import DaisysAPI
from daisys.v1.speak import SimpleProsody
with DaisysAPI('speak', email='user@example.com', password='pw') as speak:
voice = speak.get_voices()[-1]
print(f"{voice.name} speaking!")
take = speak.generate_take(voice_id=voice.voice_id, text="Hello there, I am Daisys!",
prosody=SimpleProsody(pace=-3, pitch=2, expression=10))
audio_wav = speak.get_take_audio(take.take_id, filename='hello_daisys.wav')
This library uses pydantic
and httpx
as the main dependencies, with
httpx-ws
optional if Python-side websocket support is needed. It can be
used with or without asyncio
.
Please visit the online documentation for information on how to use the Daisys API from Python, or from any language using the documented REST endpoints.
A product of Daisys AI.
The software is licensed with the MIT license, as detailed in LICENSE.
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
Built Distribution
File details
Details for the file daisys-1.1.0.tar.gz
.
File metadata
- Download URL: daisys-1.1.0.tar.gz
- Upload date:
- Size: 29.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
c869db6ce3796533d420e8dc0cdb75f66a145d525d55604af4aba20e5d4fc09a
|
|
MD5 |
e39c6912ad25aafe2925f9ff6d49fb0d
|
|
BLAKE2b-256 |
25137fd6a79a439061ad2ec093387281fc71280e31391929e2fb6d932bd9731d
|
File details
Details for the file daisys-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: daisys-1.1.0-py3-none-any.whl
- Upload date:
- Size: 34.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
a1b3245ed19247bdf2a964d1f301bdea2664cf9974a7e8952601f92bff05c441
|
|
MD5 |
56f8f5a90f5423fc9dd65e214408a757
|
|
BLAKE2b-256 |
ac5daed41e7983c3eb86e223ca396796d62767e1623b335de22c8a3da994b44b
|