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.11.tar.gz
(2.4 kB
view details)
Built Distribution
File details
Details for the file deep_tts-0.1.11.tar.gz
.
File metadata
- Download URL: deep_tts-0.1.11.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 | 2e6b1c09434b44eae2d214ea253c4d2797af7c6b570459ef591cb3ab96d83f29 |
|
MD5 | 2b8bc2df5044562950d0d039cf8b9b51 |
|
BLAKE2b-256 | 8506babdeb65e266b77f79f0411c8dcf96732d07816cd219df531c1c8307c0de |
File details
Details for the file deep_tts-0.1.11-py3-none-any.whl
.
File metadata
- Download URL: deep_tts-0.1.11-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 | 03d0b156eabee3e19da040ae030e11773b5dbd7b502412a6322a40f901a8a610 |
|
MD5 | 14717dd3bfa0b3e987fa7e7d74b1c9cc |
|
BLAKE2b-256 | 84032114241d7a5d271223fbc07958249b929fac12f3245d5d3aa3ffdcdde325 |