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 declaracionesSELECT 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 importaciones

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
Tu vista

Make room for your context.

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

Tu contexto

The different parts of you

Choose a starting point

Una mezcla útil de contexto, imágenes y orientación discreta.

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

Comodidad de lectura

Elige tu idioma

El idioma de la interfaz solo cambia el texto. Los mercados, precios y flujos de trabajo conservan sus propios ajustes.

Cobertura de traducción

Parte del contenido se muestra en inglés.

Navegación151
Grafo616
Categorías188
Portafolio332
Ejemplos2035
Vista previa de la fuente41

Se añadirán más traducciones a medida que se revise el contenido.

Esta preferencia se guarda en este navegador.

Buscar en el sitio web

Puntos de partida útiles

Sin resultados. Prueba una frase más corta, un nombre de operación u otro ámbito de búsqueda.

UN POCO DE ESPACIO PARA EXPLORAR

Encuentra algo que explorar.

Abre una vista detallada en esta página, prueba otra perspectiva o sigue el detalle a su propia página.

Cómo funcionan las vistas previas y los controles
01

Mirar antes de salir

Pasa el cursor por un enlace o enfócalo con Tab para ver una vista previa. Hacer clic en el enlace original o pulsar Intro siempre abre su destino.

02

Mantener el contexto

Entra en la vista previa para explorar sus secciones. Usa Alt + ↓ desde un enlace enfocado para entrar con el teclado. Escape la cierra.

03

Abrir las posibilidades

Las filas desplegables, las perspectivas y los controles destacados revelan más. Tu vista cambia la comodidad de lectura y el contexto que exploras.

Un botón separado para mirar más de cerca

Muestra pequeños botones de vista previa junto a los enlaces donde haya espacio. Toca el ojo para inspeccionar o el enlace para ir directamente. Esta elección permanece en esta pestaña.

No se recoge historial de navegación. El movimiento reducido sigue tu dispositivo y Tu vista.