LMNTTTS (providers/lmnt-tts.ts)

Patter · libraries/typescript/src/providers/lmnt-tts.ts · typescript · MIT
voice, Voice / Speech

* LMNT TTS provider — HTTP `/v1/ai/speech/bytes` endpoint. Defaults to `format='raw'` (PCM_S16LE) at 16 kHz so the output drops directly into Patter's telephony pipeline without transcoding. /

// Source: https://github.com/PatterAI/Patter | License: MIT | Copyright 2026 Patter Contributors
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * LMNT TTS provider — HTTP `/v1/ai/speech/bytes` endpoint.
 *
 * Defaults to `format='raw'` (PCM_S16LE) at 16 kHz so the output drops
 * directly into Patter's telephony pipeline without transcoding.
 */

const LMNT_BASE_URL = 'https://api.lmnt.com/v1/ai/speech/bytes';

/** Supported LMNT audio output formats. `RAW` is PCM_S16LE. */
export const LMNTAudioFormat = {
  AAC: 'aac',
  MP3: 'mp3',
  MULAW: 'mulaw',
  RAW: 'raw',
  WAV: 'wav',
} as const;
export type LMNTAudioFormat = (typeof LMNTAudioFormat)[keyof typeof LMNTAudioFormat];

/** LMNT TTS model families. */
export const LMNTModel = {
  BLIZZARD: 'blizzard',
  AURORA

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

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

Get a free API key