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.13.tar.gz
(2.4 kB
view details)
Built Distribution
File details
Details for the file deep_tts-0.1.13.tar.gz
.
File metadata
- Download URL: deep_tts-0.1.13.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 | 82b431fb83afe64d7755ce6c25e4df332e1a41279632985aaeed6150c27375fa |
|
MD5 | c97b31a6658ce6ba590c19a10daa8bf3 |
|
BLAKE2b-256 | d6010d6f082711805aec3779396405425112d1e61ff780883cfe517ceecb18c0 |
File details
Details for the file deep_tts-0.1.13-py3-none-any.whl
.
File metadata
- Download URL: deep_tts-0.1.13-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 | 13f713aa610b4057cba9df6e5601ee9310df3055e8f4d5c8b972f0477152d41d |
|
MD5 | c6dd82b83524fe30aff29fff0f8cb08d |
|
BLAKE2b-256 | f4a704e4cba2b2cf261b75357e5c8d04987e1cc10e6ed032595f6128c6bb03d1 |