No project description provided
Project description
DeepGrain.AI - TTS Service Client
Install
pip install deep-tts
Usage
import os
from dotenv import load_dotenv
load_dotenv(".env")
from deep_tts import DeepTTS
if __name__ == "__main__":
access_token = os.getenv("ACCESS_TOKEN") or ""
# text data to stream
text_data = ["Hello, ", "this is ", "streamed ", "text ", "data."]
text_data = ["今天天气不错,", "适合春游。"]
# Send streamed text data to the server
tts_client = DeepTTS(access_token)
response = tts_client.stream_text(text_data)
print(response.text)
chunk_id = response.json().get("chunk_id")
status = tts_client.stream_status(chunk_id)
print(status.text)
tts_client.stream_to_file(chunk_id)
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.17.tar.gz
(3.1 kB
view details)
Built Distribution
File details
Details for the file deep_tts-0.1.17.tar.gz
.
File metadata
- Download URL: deep_tts-0.1.17.tar.gz
- Upload date:
- Size: 3.1 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 | 5ec2133f887da4d5a6e14240a3c8195cc212906d600c9a6ec5fb2522c5f10def |
|
MD5 | 8fe22d5eb254bd38ae49070de2a24a01 |
|
BLAKE2b-256 | 371f92eac9ef1abb5cfa083af987fb6a1c75bc026a068a158b7524475f0c6867 |
File details
Details for the file deep_tts-0.1.17-py3-none-any.whl
.
File metadata
- Download URL: deep_tts-0.1.17-py3-none-any.whl
- Upload date:
- Size: 3.7 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 | 88a3e80eee2488a9dd821997ed27503a766fbac73419342567605baf20ffda31 |
|
MD5 | 8707dad22f874869607941ec9e474250 |
|
BLAKE2b-256 | 2af993117eb55e149ef687852cc62533cef414cbc19d8492503afb80e519e3f7 |