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

Uploaded Source

Built Distribution

deep_tts-0.1.9-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: deep_tts-0.1.9.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.9.tar.gz
Algorithm Hash digest
SHA256 78642a1b5359c9ecd154ecfabe5227276cff9782c61c221cf6ec3ba9c3c3d8f4
MD5 36dbfdd1de9c7af29310cc94f9a5cc99
BLAKE2b-256 4fd8d985574081fe1cc08e5d20d71b03d2528b301fb729ece2cb0558ca028e52

See more details on using hashes here.

File details

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

File metadata

  • Download URL: deep_tts-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 3.2 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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 9b4f1f0e1ffa6de9712f523a70ef3e137a74331ff6cee448d7f99f0d1ec33916
MD5 2987822f8d13b944eb9151e24d8c61de
BLAKE2b-256 61e6a19055d6a8a5dff4b390d74eb3423369b2b85a78ec7b78f37116aa701254

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