Sayd

快速入门

安装 SDK 并进行首次 API 调用。

1. Get Your API Key

Sign up at sayd.dev/signup and create an API key from your dashboard. You'll receive $5 in free credits — no credit card required.

2. Install the SDK

$ pip install sayd-ai

3. Make Your First API Call

Python
from sayd_ai import Sayd

client = Sayd(api_key="sk-your-key")

# Real-time voice transcription with AI cleaning
session = client.talk.create(
    language="multi",
    cleaning_level="standard",
)

# Stream from microphone in real-time
for event in session.stream_microphone():
    if event.type == "partial":
        print(f"\r  {event.text}", end="", flush=True)
    elif event.type == "sentence":
        print(f"\n[live] {event.text}")
    elif event.type == "cleaned":
        print(f"\n✨ {event.cleaned_text}")

print(f"Duration: {session.duration_minutes:.1f} min")

4. Next Steps