No project description provided
Project description
DeepGrain.AI - TTS Service Client
Install
pip install deep-tts
Usage
import os
from dotenv import load_dotenv
from deep_tts import DeepTTS
load_dotenv(".env")
if __name__ == "__main__":
tts = DeepTTS(
access_token=os.getenv("ACCESS_TOKEN") or "",
provider="EU",
)
# 1. Prepare text or stream
# 2. Call create method: stream = True/False
# TODO stream text or file
demo_text = "用户端SDK的调用"
payload = {
"stream": True,
"voice_type": "aiyuan",
}
result = tts.create(text=demo_text, params=payload)
print(result)
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
deep_tts-0.1.12.tar.gz
(2.4 kB
view details)
Built Distribution
File details
Details for the file deep_tts-0.1.12.tar.gz
.
File metadata
- Download URL: deep_tts-0.1.12.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.10.13 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15ee1d79776c34c8ea666b7302563590fb96a4f235b93819d1e77aae56eeb88e |
|
MD5 | cde2fcb5c6e6e583bf9c436c1729a1e3 |
|
BLAKE2b-256 | 73b4ee2cd79d3e7098b8866b71100581699465c822c50e207017fa374799a3e1 |
File details
Details for the file deep_tts-0.1.12-py3-none-any.whl
.
File metadata
- Download URL: deep_tts-0.1.12-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.10.13 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 127258bf05f38b1e195e551bb38494065a348774d8df0fdd8a3d2b50c0cfb93e |
|
MD5 | d01b245790b0f572ba461d6b7f761797 |
|
BLAKE2b-256 | 4e36739b348821ad83decf344049f88dd664289ecacb20961be18d5f57c867a9 |