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.14.tar.gz
(2.8 kB
view details)
Built Distribution
File details
Details for the file deep_tts-0.1.14.tar.gz
.
File metadata
- Download URL: deep_tts-0.1.14.tar.gz
- Upload date:
- Size: 2.8 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 | ff6361c078296ae9fb40d548ffce1c4bc8c37c6ea4837dd6e29cd3ee14413fa1 |
|
MD5 | a04a6744b8ebec742e5d653687b0da81 |
|
BLAKE2b-256 | dbd1db2958273fbf392b59bc9befe3c7fb4b73a5190fb7242fa3548345a7ada4 |
File details
Details for the file deep_tts-0.1.14-py3-none-any.whl
.
File metadata
- Download URL: deep_tts-0.1.14-py3-none-any.whl
- Upload date:
- Size: 3.5 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 | 1a22ccb5c1db3a7cc21e161e3c487482b31d5d95574c2ce163e7a21274900324 |
|
MD5 | e468e1ad8a9d35eb89dac642c7dcd189 |
|
BLAKE2b-256 | b422d75f7784df64531680ac5548d68411b9bdaaea2b0fae8d77f9ad62b18ada |