TTS (tts/soniox.ts)

Patter · libraries/typescript/src/tts/soniox.ts · typescript · MIT
voice, Voice / Speech

* Soniox TTS for Patter pipeline mode. */

// Source: https://github.com/PatterAI/Patter | License: MIT | Copyright 2026 Patter Contributors
// Provided via justclaw.it.com; keep this notice with the code.
/** Soniox TTS for Patter pipeline mode. */
import {
  SonioxTTS as _SonioxTTS,
  SonioxTTSAudioFormat,
  type SonioxTTSModel,
  type SonioxTTSSampleRate,
} from '../providers/soniox-tts';

/** Constructor options for the Soniox `TTS` adapter. */
export interface SonioxTTSOptions {
  /** API key. Falls back to SONIOX_API_KEY env var when omitted (shared with Soniox STT). */
  apiKey?: string;
  model?: SonioxTTSModel | string;
  voice?: string;
  language?: string;
  /** Audio encoding. Default `pcm_s16le`; `pcm_mulaw` @ 8 kHz = carrier-native. */
  audioFormat?: SonioxTTSAudioFormat | string;
  sampleRate?: SonioxTTSSampleRate |

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

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

Get a free API key