Getting Started
GL Speech SDK
Getting Started
from gl_speech_sdk import SpeechClient
stt_client = SpeechClient(api_key="your-stt-api-key", base_url="https://api.prosa.ai/v2/speech/")
tts_client = SpeechClient(api_key="your-tts-api-key", base_url="https://api.prosa.ai/v2/speech/")
# List STT models
models = stt_client.stt.list_models()
for m in models:
print(m["name"], m["label"])
# Synthesize speech
result = tts_client.tts.synthesize(
text="Hello, world!",
model="tts-dimas-formal",
wait=True
)
print(result.result)Last updated
Was this helpful?