Skip to main content

Python-SDK für die schwiizerdütsch.com Züritüütsch-Text-to-Speech-API

Project description

schwiizerdütsch.com — Python SDK

Züritüütsch (Zürcher Schweizerdeutsch) Text-to-Speech mit eigener Stimme.

Installation

pip install schwiizerduetsch

Schnellstart

from schwiizerduetsch import Client

client = Client("sk_live_...")          # API-Key aus dem Dashboard (Pro-Plan)
audio = client.speak("Grüezi mitenand, schön sind Sie da.")
audio.save("hallo.mp3")

Optionen

client.speak(
    text,                 # Hochdeutsch oder Schweizerdeutsch
    voice="marco",        # Stimme (aktuell nur 'marco')
    format="mp3",         # mp3 (Free) · wav / ogg / flac (Pro)
    speed=1.0,            # Tempo 0.5–2.0
    normalize=True,       # Hochdeutsch/CH-Input → kanonische Züritüütsch-Schreibweise
)

Der Text wird serverseitig automatisch in die richtige Schweizerdeutsch-Schreibweise normalisiert (normalize=True) — du kannst also direkt Hochdeutsch schicken.

Fehlerbehandlung

from schwiizerduetsch import Client, TTSError

client = Client("sk_live_...")
try:
    client.speak("Test").save("out.mp3")
except TTSError as e:
    print(e.status, e.message)   # z. B. 401 Ungültiger API-Key, 429 Limit erreicht

Limits & Pläne

Free Pro
Zeichen 1'000 / Tag 500'000 / Monat
Formate MP3 MP3, WAV, OGG, FLAC
API-Keys

API-Keys werden im Dashboard unter API & Keys erstellt (Pro-Plan).

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

schwiizerduetsch-0.1.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

schwiizerduetsch-0.1.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file schwiizerduetsch-0.1.1.tar.gz.

File metadata

  • Download URL: schwiizerduetsch-0.1.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for schwiizerduetsch-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9d5d95dd982ab782352da96a1e7a92e20a4decd2d104bc7943ce5b1fab302083
MD5 b64d99401f1c199f7115ad78a96afc0f
BLAKE2b-256 15b04d32150fe69cd57d9a68403f5ca41d388b351b0c63ee7ab26a07b322f7ee

See more details on using hashes here.

File details

Details for the file schwiizerduetsch-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for schwiizerduetsch-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7a443d1419ae1fdf3d1df22ffd0b073f58c4073c388cc07f9bb46fb52647fec8
MD5 cb920ac644da6cb171c1369fe1863b93
BLAKE2b-256 a19fa67d774c7be4a5b105062471388c0db9e0cbb1db324550b4ee18786ed501

See more details on using hashes here.

Supported by

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