Skip to main content

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


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.8.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

deep_tts-0.1.8-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file deep_tts-0.1.8.tar.gz.

File metadata

  • Download URL: deep_tts-0.1.8.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.10.13 Darwin/23.4.0

File hashes

Hashes for deep_tts-0.1.8.tar.gz
Algorithm Hash digest
SHA256 abeee378e6fdd5c5f87b715a2745cfb2f86c6672a6dffc406cfdf1b4aa0c667f
MD5 c5c2ce78c8ba8069efeef76302f428df
BLAKE2b-256 28a4dd43f8bc8c698a38adf915d2042367d2f612a281e1f5688f6af706e5c084

See more details on using hashes here.

File details

Details for the file deep_tts-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: deep_tts-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 3.4 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

Hashes for deep_tts-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 a7c5e4fbc4fa58b97eb21dad4039a720a950dce6bd271fcdbcfd9492107f5226
MD5 3181b4ce02c0d3c46fcea11c6ee19ce2
BLAKE2b-256 fbe4d41373a3a7f4656b288c7c402efe3d0ba888d9a09bf14ebc26d578b54e6f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page