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 déclarationsSELECT 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
Votre vue

Make room for your context.

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

Votre contexte

The different parts of you

Choose a starting point

Un mélange utile de contexte, de visuels et de guidage discret.

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

Confort de lecture

Choisir votre langue

La langue de l’interface change uniquement le texte. Les marchés, les prix et les parcours conservent leurs propres paramètres.

Couverture des traductions

Une partie du contenu est affichée en anglais.

Navigation151
Graphe616
Catégories378
Portfolio833
Exemples2 035
Aperçu de la source1 542

D’autres traductions seront ajoutées à mesure que le contenu sera relu.

Cette préférence est enregistrée dans ce navigateur.

Rechercher sur le site

Des points de départ utiles

Aucun résultat. Essayez une expression plus courte, un nom d’opération ou un autre périmètre de recherche.

UN PEU DE PLACE POUR EXPLORER

Trouvez quelque chose à explorer.

Ouvrez un aperçu détaillé sur cette page, essayez une autre perspective ou suivez le détail vers sa propre page.

Fonctionnement des aperçus et des commandes
01

Regarder avant de partir

Survolez un lien ou sélectionnez-le avec Tab pour voir un aperçu. Cliquer sur le lien d’origine ou appuyer sur Entrée ouvre toujours sa destination.

02

Rester dans le contexte

Entrez dans l’aperçu pour explorer ses sections. Depuis un lien sélectionné, utilisez Alt + ↓ pour y entrer au clavier. Échap le ferme.

03

Ouvrir les possibilités

Les lignes dépliables, les choix de perspective et les commandes mises en évidence révèlent davantage. Votre vue adapte le confort de lecture et le contexte exploré.

Un bouton séparé pour voir de plus près

Affichez de petits boutons d’aperçu à côté des liens quand l’espace le permet. Touchez l’œil pour examiner ou le lien pour y aller directement. Ce choix reste dans cet onglet.

Aucun historique de navigation n’est collecté. La réduction des animations suit votre appareil et Votre vue.