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.0.tar.gz (3.3 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.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: schwiizerduetsch-0.1.0.tar.gz
  • Upload date:
  • Size: 3.3 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.0.tar.gz
Algorithm Hash digest
SHA256 65b5656bd19964e42743b820e99e6a68fad25095edd2c33e0ec43957bbe55161
MD5 aa063a15ea859181cf59bd5778defa6b
BLAKE2b-256 5ab8cd1601ba75e2470ea15ddc194f5b716c0b401732581089312dfef3442e09

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for schwiizerduetsch-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3e7d4ca6783aac9673fd486317c631ca249a619766839e60b06d074532069913
MD5 9ef1d7bc454f5c9edae7623ead8e468b
BLAKE2b-256 c4f2539bb3ba57d9f6a2fdf2d6ce0eb887b661d9a2d876ae9e5fd10c42d08c96

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