integrationPackage manifestv3.0.4

integration.provider-voice

Voice, speech, and conversational provider implementations for ContractSpec.

@lssm-tech/integration.provider-voice
Source, release and verification context

Source snapshot bcc79fcc · Declared package version 3.0.4. This page combines the checked-in package guide and manifest; commands and runtime behavior were not executed in this review.

Package source ↗ Manifest ↗
servernode
EXPLORE THE PACKAGE

See where this package fits.

Follow a declared connection, inspect an import, then open the source guide when you need the detail.

THIS PACKAGEintegration.provider-voiceintegrations

Arrows point from a package to its direct dependency. Each count is derived from the captured manifests.

5 declarationsSELECT TO INSPECT

@lssm-tech/integration.provider-voice

Website: https://contractspec.io

Voice, speech, and conversational provider implementations for ContractSpec.

Usage

Import the root entrypoint for the domain surface, or import a concrete implementation from the ./impls/* subpaths.

Compatibility

This package owns the voice implementation slice split out of @lssm-tech/integration.providers-impls. The legacy package continues to re-export these subpaths for existing consumers.

Implementations

  • GradiumVoiceProvider: Gradium SDK-backed TTS implementation for the configured workspace, with contract metadata covering public REST/WebSocket TTS and STT surfaces.
  • FalVoiceProvider: official @fal-ai/client-backed Chatterbox TTS implementation with contract metadata covering broader fal media SDK/API/MCP surfaces.
  • SlngVoiceProvider: API-key fetch implementation for SLNG TTS and STT routes. Route templates are configurable so tenants can target the SLNG provider/model path available to their account.

Secrets are passed explicitly through provider options or secret providers; implementations do not read environment variables directly or serialize secret values.

Recorded media transcription

MistralSttProvider.transcribeMedia accepts encoded audio Blob/byte inputs without requiring guessed sample rates. It supports timestamp granularities, diarization, vocabulary hints, abort signals and bounded deadlines. Provider models and codecs still require deployment qualification.

Untimed basic transcription returns no invented segments. Requests requiring timestamps or diarization reject missing evidence. Mistral language selection cannot be combined with timestamp requests; speaker-count hints are unsupported. Errors omit provider bodies; redirects and automatic POST retries are disabled. Use a pinned model plus approved processing binding for OPA workflows. Captures beyond the provider duration limit require valid audio segmentation.

Vercel AI Gateway transcription

./impls/vercel-gateway-stt exports VercelGatewaySttProvider, using the existing STTProvider contract and AI SDK transcription transport. Configure an explicit model/provider, lazy getApiKey and a host authorize callback. The callback must verify persisted model-specific EU transcription capability, processing approval and separate approval for global Gateway transit; returned reference strings alone are not evidence. Its stable, unexpired decision is checked before credentials, before egress and before releasing the result.

Requests pin EU inference and one provider, require zero data retention/no training, disable SDK retries and reject redirects. Returned routing metadata must prove the approved provider endpoints remained in the EU. Missing proof remains a failure. There is no direct-provider or Mistral fallback. Default media bound is 32 MiB; the total request deadline is at most 180 seconds and response bodies are bounded at 8 MiB.

audio/webm (Opus, as recorded by browser MediaRecorder) is remuxed losslessly into audio/ogg immediately before the Gateway call, because microsoft/mai-transcribe-2 rejects WebM with HTTP 400 and accepts Ogg/Opus. Packets are copied unchanged; the caller's media, digest and authority request are untouched. Malformed or non-Opus WebM fails before egress with STT_MEDIA_REMUX_FAILED; a remux above the media bound fails with STT_MEDIA_LIMIT_EXCEEDED. Other media types are sent as given.

The current SDK path supports timestamped, non-diarized output only. It rejects diarization, speaker counts, word timings and unsupported language/vocabulary overrides before egress. Speaker identities and missing audio duration are never invented. Meeting consumers requiring diarization must remain unavailable until a supported, qualified transport exists.

Official references: Gateway speech to text and regional inference. The documented REST endpoint is /v4/ai/transcription-model with base64 JSON, not an evidenced diarized multipart compatibility route. Regional provider inference does not establish an exclusively regional network path or Gateway processing boundary.

Validation uses the real AI SDK over synthetic mocked HTTP responses; no real audio or provider activation is included (the WebM remux fixture is a 2.5 kB prefix of synthetic text-to-speech). SDK dependencies are ai 7.0.92 and @ai-sdk/gateway 4.0.75 through the workspace AI catalog.

Declared capabilities.

Integration Provider Voice

Voice, speech, and conversational provider implementations for ContractSpec.

Use it to

  • Adopt voice, speech, and conversational provider implementations for contractspec

Requires

  • TypeScript

Choose another boundary when

  • The @lssm-tech/integration.provider-voice package constraints do not match the target runtime or platform.

@lssm-tech/integration.provider-voice

@lssm-tech/integration.provider-voice/impls

@lssm-tech/integration.provider-voice/impls/async-event-queue

@lssm-tech/integration.provider-voice/impls/elevenlabs-voice

@lssm-tech/integration.provider-voice/impls/fal-voice

@lssm-tech/integration.provider-voice/impls/gradium-voice

@lssm-tech/integration.provider-voice/impls/mistral-conversational

@lssm-tech/integration.provider-voice/impls/mistral-conversational.session

@lssm-tech/integration.provider-voice/impls/mistral-stt

@lssm-tech/integration.provider-voice/impls/slng-voice

@lssm-tech/integration.provider-voice/voice

@lssm-tech/integration.provider-voice/impls/vercel-gateway-sttVercelGatewaySttProvider

Imports and export paths.

17 entries

These are package-manifest entry points. Named symbols listed above come from the capability catalogue; this is not an exhaustive TypeScript symbol reference.

17 imports

Dependencies and related packages.

Runtime dependencies 5
@ai-sdk/gateway
catalog:ai
ai
catalog:ai
Development dependencies 7
@confiture-ai/gradium-sdk-js
catalog:integrations
@elevenlabs/elevenlabs-js
^2.68.0
@fal-ai/client
catalog:integrations
@types/bun
catalog:types
typescript
catalog:

Package scripts.

Commands declared by this package. Review its setup requirements before running them; no command here was executed by this review.

buildcontractspec-bun-build build
build:bundlecontractspec-bun-build transpile
build:typescontractspec-bun-build types
devcontractspec-bun-build dev
cleanrimraf dist .turbo
lint:checknode ../../../scripts/biome.cjs check .
lint:fixnode ../../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../../scripts/biome.cjs check --write .
testbun test
prebuildcontractspec-bun-build prebuild
typechecktsgo --noEmit
Your view

Make room for your context.

Shape the presentation around this moment. You can change it whenever you need.

Your context

The different parts of you

Choose a starting point

A useful mix of context, visuals and gentle guidance.

Tune each dimension
Each dimension can change independently. Product permissions and available actions stay unchanged.

Support the way you begin and return

Tune your support

Reading comfort

Choose your language

Interface language changes text only. Markets, prices and workflows keep their own settings.

Translation coverage

Original source

Navigation151
Graph616
Categories378
Portfolio833
Examples2,035
Source preview1,542

More translations will be added as content is reviewed.

This preference is saved on this browser.

Search the website

Useful starting points

No results. Try a shorter phrase, an operation name or another search area.

A LITTLE ROOM TO EXPLORE

Find something to explore.

Open a closer look on this page, try a different perspective, or follow the detail into its own page.

How previews and controls work
01

Look before you leave

Hover a link or focus it with Tab to see a preview. Clicking the original link or pressing Enter always opens its destination.

02

Stay with the context

Move into the preview to explore its sections. Use Alt + ↓ from a focused link to enter it with the keyboard. Escape closes it.

03

Open the possibilities

Disclosure rows, perspective choices and highlighted controls reveal more. Your view changes reading comfort and the context you explore.

A separate button for a closer look

Show small preview buttons beside links where there is room. Tap the eye to inspect, or tap the link to go straight there. This choice stays in this tab.

No browsing history is collected. Reduced motion follows your device and Your view.