AbsoluteJS

@absolutejs/voice-lmnt

@absolutejs/voice-lmntv0.0.1-beta.6betaVoice & Media

LMNT text-to-speech adapter for @absolutejs/voice

#Installation

BASH
bun add @absolutejs/voice-lmnt

#Capabilities

Overview

LMNT text-to-speech adapter for @absolutejs/voice.

Wraps LMNT's /v1/ai/speech/stream HTTP endpoint behind voice's TTSAdapter seam for fast, low-latency TTS using the aurora / blizzard / mochi models.

Use

For telephony at 8 kHz μ-law:

Options

Option — Required — Default — Notes

apiKey — yes — — — LMNT API key, sent as X-API-Key.

voice — yes — — — LMNT voice id.

Show 7 more

model — no — aurora — LMNT model id.

format — no — raw — Must be raw (PCM s16le) or mulaw (telephony @ 8 kHz). mp3 / wav are rejected because they aren't streamable frame-by-frame.

sampleRate — no — 24_000 — Ignored for mulaw.

language — no — — — BCP-47-ish code, or auto.

speed, temperature, topP, seed, conversational — no — — — Forwarded to LMNT.

baseUrl — no — https://api.lmnt.com — Override for staging hosts.

fetch — no — globalThis.fetch — Inject for tests; opportunistic HTTP/2 multiplexing on outbound HTTPS.

Notes

Whitespace-only send() is a no-op.

session.close(reason) aborts in-flight requests and refuses further sends.

This adapter uses LMNT's HTTP streaming endpoint. If you need their WebSocket transport, open an issue.

Outcomes

What you can build

Build on the supported package contract

Use @absolutejs/voice-lmnt through its supported public entry points.

Hardening checklist

Production guidance

Make every external boundary explicitPin the deployed @absolutejs/voice-lmnt version, replace example or memory-backed dependencies with durable implementations, bound external calls, protect credentials, and emit enough evidence to retry or recover safely.

Follow in order

Troubleshooting path

1
Trace from the first failed boundary
Reproduce the smallest canonical @absolutejs/voice-lmnt example, confirm the supported entry point and version in the API explorer, then inspect the first boundary that did not produce its documented result.

#Use

Partial snippet

Working example for Use.

TS
import { voice } from "@absolutejs/voice";
import { lmnt } from "@absolutejs/voice-lmnt";

const app = voice({
  tts: lmnt({
    apiKey: process.env.LMNT_API_KEY!,
    voice: "lily",
    // optional:
    model: "aurora", // default; or 'blizzard' / 'mochi'
    format: "raw", // default; or 'mulaw' for telephony
    sampleRate: 24_000, // default
    language: "en", // 'auto' to detect
    speed: 1.0,
    temperature: 0.6,
    topP: 0.95,
    conversational: true,
  }),
});

#Use 2

Partial snippet

For telephony at 8 kHz μ-law:

TS
lmnt({ apiKey, voice: "lily", format: "mulaw" });

#Public entry points

Supported entry points declared by this package manifest.

Package entry point declared in package.json.

@absolutejs/voice-lmnt@absolutejs/voice-lmnt/manifest@absolutejs/voice-lmnt/manifest.json

#Package commands

Scripts declared by this package manifest.

bun run buildrm -rf dist && bun build ./src/index.ts ./src/manifest.ts --outdir dist --target bun --external @absolutejs/manifest --external '@absolutejs/manifest/*' --external @absolutejs/voice --external '@absolutejs/voice/*' --external @sinclair/typebox --external '@sinclair/typebox/*' && tsc --emitDeclarationOnly --project tsconfig.json && absolute-manifest emit
bun run check:packagebun run format && bun run typecheck && bun run test && bun run verify-package && bun run build && bun run verify-package --artifacts
bun run formatprettier --write "./**/*.{js,ts,json,md}"
bun run testbun test
bun run typecheckbun run tsc --noEmit

#API reference

Search the declarations exported by the current package type files. Expand a symbol to inspect its source-backed signature.

6 symbols
lmntexportPermalinkSource
TS
lmnt
Exported from @absolutejs/voice-lmnt