stream_url (transcription/parley.rs)

parley · src-tauri/src/transcription/parley.rs · rust · Apache-2.0
voice, Voice / Speech

Provides utilities for constructing Parley Cloud streaming URLs and parsing protocol frames, enabling real‑time transcription.

// Source: https://github.com/pathorsAI/parley | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
//! Hosted "parley" adapter: Parley Cloud's own streaming protocol (v2).
//!
//! The wire contract lives in `docs/design/stt-protocol.md`. In short: a JSON
//! `start` frame, raw PCM as binary frames, `keepalive` / `end` text frames;
//! the server answers `ready`, then `transcript` frames (final tokens appended
//! once, non-final tokens replace the tentative tail), `endpoint` / `finalized`
//! markers, `done`, or an `error` with a stable code. Authentication is the
//! signed-in cloud session as a Bearer token on the upgrade request; a refused
//! upgrade is plain HTTP (401 / 402 / 429

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key