mocop
Browse · Docs · Guide · Analyze

Speko Router API

API by Speko · rest

The Speko Router is streaming-first: live speech-to-text and text-to-speech sessions, and the three native speech-to-speech routes, all run over WebSocket and are specified in asyncapi.yaml, which this Router serves at /asyncapi.json. This document is the HTTP contract, the request/response surface beside those sockets: model discovery, batch speech transcription, one-shot speech synthesis, LLM responses over JSON or server-sent events, and typed evaluations (Jev over text, audio decision models over a WAV clip). The Go types in package relayapi are the source of truth for every shape in this document, and speccheck_test.go machine-checks the two against each other. The /v1 prefix is the stable major version: compatible fields and capabilities may be added, while breaking changes require a new major path. Before a v1 operation or field is retired, Speko documents a migration, sends the Deprecation header and a Link with rel="deprecation", and provides at least 90 days of notice…

Verification: observed. Source: crawl.

Capabilities (7)

  • Download the canonical Router streaming contract
  • Download the canonical Router HTTP contract
  • Answer typed questions about text state or an audio clip
  • Generate an LLM response as JSON or as a server-sent event stream
  • List currently routable models
  • Transcribe one uploaded audio file
  • Synthesize one utterance to a raw audio stream
About · Contact · Privacy