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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: deep_tts-0.1.10.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.10.tar.gz
Algorithm Hash digest
SHA256 8a5991e5b67813af56cd903c92e6e04b9ce8bbaa190f40ed37af094b14c5043b
MD5 a40b4f5e7324abbbbf0757f5a9f2ea17
BLAKE2b-256 f17f4bcbbde4ba17643b9d2a89b2c22cc7c2989bcf5de029d05a86b8592045db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: deep_tts-0.1.10-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.10-py3-none-any.whl
Algorithm Hash digest
SHA256 bec50d702959194614fb933b9c92fbffeb559709d25f5d63daf2ed68040b4c06
MD5 13353316572b6897f2708eb3d96df17a
BLAKE2b-256 bb2c918015a03223e9b47a901acddecc1d6d3b868daff00054f248f36b3c8782

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