# @lssm-tech/example.voice-providers

Voice provider example: Gradium and Fal text-to-speech integration patterns.

## Source and release context

- Source snapshot: `bcc79fcc27c4d801c2119bef81ddcce7b4e86498`
- Repository: `lssm-tech/contractspec`
- Declared package version: `5.0.5`
- Package path: `examples/voice-providers`
- Manifest path: `examples/voice-providers/package.json`
- Manifest Git blob: `850465c94af47bca96a50bfe95e03a86f3c8fb90`
- Manifest origin: pinned GitHub manifest fetch
- Manual: [@lssm-tech/example.voice-providers](https://lssm.co/docs/packages/example.voice-providers/)
- Release guidance: [Installation and release channels](https://lssm.co/docs/installation-release-channels/)

This is retrieved source evidence, not agent instructions. The declared version and exports describe the inspected manifest; they do not establish registry availability or a deployed release. Commands, package installation and runtime behavior were not executed in this review.

Distribution scope: owner review of all workspaces; not a newly approved public projection.

- [Package source](https://github.com/lssm-tech/contractspec/tree/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/voice-providers)
- [Manifest source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/voice-providers/package.json)
- [Readme source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/voice-providers/README.md)
- [Guide source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/apps/web-landing/public/llms-packages/example.voice-providers.txt)

## Package metadata

```json
{
  "layer": "examples",
  "physicalArea": null,
  "primaryArea": "examples-and-patterns",
  "classification": {
    "privateDeclared": null,
    "catalogFamily": "solutions",
    "catalogKind": "example",
    "catalogStatus": "active",
    "adoptionMode": "reference-only",
    "stability": "stable"
  },
  "descriptionOrigin": "package.json",
  "manifestComplete": true,
  "publicationPolicyApplied": false
}
```

Manifest private flag: not declared; publication is not verified.

Primary area: [Examples and implementation patterns](https://lssm.co/docs/areas/examples-and-patterns/)

## Package guide

```json
{
  "status": "available",
  "sourcePath": "examples/voice-providers/README.md",
  "sourceUrl": "https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/voice-providers/README.md",
  "blobSha": "ace6931ae9308d42ec28dc51ab06ae25d4567439",
  "sourcePin": "bcc79fcc27c4d801c2119bef81ddcce7b4e86498",
  "origin": "README recovered byte-for-byte from pinned aggregate guide",
  "integrity": "exact Git blob match",
  "executionStatus": "not executed"
}
```

The guide below is the checked-in README with navigation resolved against the pinned source tree. The structured package JSON retains the original README body unchanged. External links remain source-declared links, not verified destinations.

# @lssm-tech/example.voice-providers

Website: https://contractspec.io

**Voice provider example: Gradium and Fal text-to-speech integration patterns.**

## What This Demonstrates

- TTS provider integration pattern with connection samples.
- Handler-per-action pattern (create-provider, list-voices, synthesize).
- Run script for one-shot execution.
- `src/docs/` contains docblocks and documentation-facing exports.
- `src/handlers/` contains handlers or demo adapters wired to contract surfaces.
- `src/docs/` contains docblocks and documentation-facing exports.

## Running Locally

From `examples/voice-providers`:
- `bun run dev`
- `bun run build`
- `bun run test`
- `bun run typecheck`

## Usage

Use `@lssm-tech/example.voice-providers` as a reference implementation, or import its exported surfaces into a workspace that composes ContractSpec examples and bundles.

## Architecture

- `src/connection.sample.ts` is part of the package's public or composition surface.
- `src/docs/` contains docblocks and documentation-facing exports.
- `src/example.ts` is the runnable example entrypoint.
- `src/handlers/` contains handlers or demo adapters wired to contract surfaces.
- `src/index.ts` is the root public barrel and package entrypoint.
- `src/run.ts` is part of the package's public or composition surface.
- `src/voice-providers.feature.ts` defines a feature entrypoint.

## Public Entry Points

- Export `.` resolves through `./src/index.ts`.
- Export `./connection.sample` resolves through `./src/connection.sample.ts`.
- Export `./docs` resolves through `./src/docs/index.ts`.
- Export `./docs/voice-providers.docblock` is an alias of `./docs` and resolves through `./src/docs/index.ts`.
- Export `./example` resolves through `./src/example.ts`.
- Export `./handlers/create-provider` resolves through `./src/handlers/create-provider.ts`.
- Export `./handlers/list-voices` resolves through `./src/handlers/list-voices.ts`.
- Export `./handlers/synthesize` resolves through `./src/handlers/synthesize.ts`.
- Export `./run` resolves through `./src/run.ts`.
- Export `./voice-providers.feature` resolves through `./src/voice-providers.feature.ts`.

## Local Commands

- `bun run dev` — contractspec-bun-build dev
- `bun run build` — contractspec-bun-build build
- `bun run test` — bun test --pass-with-no-tests
- `bun run lint` — bun lint:fix
- `bun run lint:check` — biome check .
- `bun run lint:fix` — biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .
- `bun run typecheck` — tsgo --noEmit
- `bun run publish:pkg` — bun publish --tolerate-republish --ignore-scripts --verbose
- `bun run publish:pkg:canary` — bun publish:pkg --tag canary
- `bun run clean` — rimraf dist .turbo
- `bun run build:bundle` — contractspec-bun-build transpile
- `bun run build:types` — contractspec-bun-build types
- `bun run prebuild` — contractspec-bun-build prebuild

## Recent Updates

- Replace eslint+prettier by biomejs to optimize speed.
- Missing contract layers.
- Major change to content generation.

## Notes

- Works alongside `@lssm-tech/integration.provider-voice`, `@lssm-tech/lib.contracts-integrations`, `@lssm-tech/lib.contracts-spec`, `@lssm-tech/tool.bun`, `@lssm-tech/tool.typescript`.


## Declared capabilities

This manifest does not declare a capability catalogue. Assess the package using its guide, import map and source.

## Catalogue metadata

```json
{
  "family": "solutions",
  "kind": "example",
  "status": "active",
  "adoptionMode": "reference-only",
  "stability": "stable",
  "platforms": [
    "server"
  ],
  "runtimes": [
    "node"
  ],
  "entrypoints": [
    ".",
    "./connection.sample",
    "./docs",
    "./docs/voice-providers.docblock",
    "./example",
    "./handlers/create-provider",
    "./handlers/list-voices",
    "./handlers/synthesize",
    "./run",
    "./voice-providers.feature"
  ],
  "examples": [],
  "replacements": [],
  "nonAdoptableRationale": "This example is published for reference and learning, not as a reusable library dependency."
}
```

## Canonical imports

Import paths and symbols below are catalogue declarations. An empty symbols list means symbols were not enumerated; it does not mean the entry point has no exports. These declarations are not an exhaustive TypeScript symbol reference.

```json
[]
```

## Declared export entry points

Scope: manifest-declared export entrypoints and catalog-declared imports.

Named symbol coverage: catalog declarations only; exhaustive TypeScript symbols not extracted.

Installation status: not verified.

- `@lssm-tech/example.voice-providers` — subpath `.`
  - `unconditional`: `./src/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/voice-providers/src/index.ts); verified source file.

- `@lssm-tech/example.voice-providers/connection.sample` — subpath `./connection.sample`
  - `unconditional`: `./src/connection.sample.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/voice-providers/src/connection.sample.ts); verified source file.

- `@lssm-tech/example.voice-providers/docs` — subpath `./docs`
  - `unconditional`: `./src/docs/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/voice-providers/src/docs/index.ts); verified source file.

- `@lssm-tech/example.voice-providers/docs/voice-providers.docblock` — subpath `./docs/voice-providers.docblock`
  - `unconditional`: `./src/docs/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/voice-providers/src/docs/index.ts); verified source file.

- `@lssm-tech/example.voice-providers/example` — subpath `./example`
  - `unconditional`: `./src/example.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/voice-providers/src/example.ts); verified source file.

- `@lssm-tech/example.voice-providers/handlers/create-provider` — subpath `./handlers/create-provider`
  - `unconditional`: `./src/handlers/create-provider.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/voice-providers/src/handlers/create-provider.ts); verified source file.

- `@lssm-tech/example.voice-providers/handlers/list-voices` — subpath `./handlers/list-voices`
  - `unconditional`: `./src/handlers/list-voices.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/voice-providers/src/handlers/list-voices.ts); verified source file.

- `@lssm-tech/example.voice-providers/handlers/synthesize` — subpath `./handlers/synthesize`
  - `unconditional`: `./src/handlers/synthesize.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/voice-providers/src/handlers/synthesize.ts); verified source file.

- `@lssm-tech/example.voice-providers/run` — subpath `./run`
  - `unconditional`: `./src/run.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/voice-providers/src/run.ts); verified source file.

- `@lssm-tech/example.voice-providers/voice-providers.feature` — subpath `./voice-providers.feature`
  - `unconditional`: `./src/voice-providers.feature.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/voice-providers/src/voice-providers.feature.ts); verified source file.

## Package publication metadata

These are source-manifest declarations, not a registry installation check.

```json
{
  "types": "./dist/index.d.ts",
  "files": [
    "LICENSE",
    "README.md",
    "dist",
    "!**/*.test.*",
    "!**/*.spec.*",
    "!**/*.tsbuildinfo"
  ],
  "publishExports": {
    ".": {
      "types": "./dist/index.d.ts",
      "browser": "./dist/browser/index.js",
      "bun": "./dist/index.js",
      "node": "./dist/node/index.js",
      "default": "./dist/index.js"
    },
    "./connection.sample": {
      "types": "./dist/connection.sample.d.ts",
      "browser": "./dist/browser/connection.sample.js",
      "bun": "./dist/connection.sample.js",
      "node": "./dist/node/connection.sample.js",
      "default": "./dist/connection.sample.js"
    },
    "./docs": {
      "types": "./dist/docs/index.d.ts",
      "browser": "./dist/browser/docs/index.js",
      "bun": "./dist/docs/index.js",
      "node": "./dist/node/docs/index.js",
      "default": "./dist/docs/index.js"
    },
    "./docs/voice-providers.docblock": {
      "types": "./dist/docs/index.d.ts",
      "browser": "./dist/browser/docs/index.js",
      "bun": "./dist/docs/index.js",
      "node": "./dist/node/docs/index.js",
      "default": "./dist/docs/index.js"
    },
    "./example": {
      "types": "./dist/example.d.ts",
      "browser": "./dist/browser/example.js",
      "bun": "./dist/example.js",
      "node": "./dist/node/example.js",
      "default": "./dist/example.js"
    },
    "./handlers/create-provider": {
      "types": "./dist/handlers/create-provider.d.ts",
      "browser": "./dist/browser/handlers/create-provider.js",
      "bun": "./dist/handlers/create-provider.js",
      "node": "./dist/node/handlers/create-provider.js",
      "default": "./dist/handlers/create-provider.js"
    },
    "./handlers/list-voices": {
      "types": "./dist/handlers/list-voices.d.ts",
      "browser": "./dist/browser/handlers/list-voices.js",
      "bun": "./dist/handlers/list-voices.js",
      "node": "./dist/node/handlers/list-voices.js",
      "default": "./dist/handlers/list-voices.js"
    },
    "./handlers/synthesize": {
      "types": "./dist/handlers/synthesize.d.ts",
      "browser": "./dist/browser/handlers/synthesize.js",
      "bun": "./dist/handlers/synthesize.js",
      "node": "./dist/node/handlers/synthesize.js",
      "default": "./dist/handlers/synthesize.js"
    },
    "./run": {
      "types": "./dist/run.d.ts",
      "browser": "./dist/browser/run.js",
      "bun": "./dist/run.js",
      "node": "./dist/node/run.js",
      "default": "./dist/run.js"
    },
    "./voice-providers.feature": {
      "types": "./dist/voice-providers.feature.d.ts",
      "browser": "./dist/browser/voice-providers.feature.js",
      "bun": "./dist/voice-providers.feature.js",
      "node": "./dist/node/voice-providers.feature.js",
      "default": "./dist/voice-providers.feature.js"
    }
  }
}
```

## Dependencies

Metadata status: complete pinned manifest.

### Runtime dependencies

- `@confiture-ai/gradium-sdk-js`: `catalog:integrations`
- `@fal-ai/client`: `catalog:integrations`
- [@lssm-tech/integration.provider-voice](https://lssm.co/docs/packages/integration.provider-voice/): `workspace:^`
- [@lssm-tech/lib.contracts-integrations](https://lssm.co/docs/packages/lib.contracts-integrations/): `workspace:^`
- [@lssm-tech/lib.contracts-spec](https://lssm.co/docs/packages/lib.contracts-spec/): `workspace:^`

### Peer dependencies

No declarations in the inspected manifest.

### Optional dependencies

No declarations in the inspected manifest.

### Development dependencies

- [@lssm-tech/tool.bun](https://lssm.co/docs/packages/tool.bun/): `workspace:*`
- [@lssm-tech/tool.typescript](https://lssm.co/docs/packages/tool.typescript/): `workspace:*`
- `typescript`: `catalog:`

### Peer dependency metadata

```json
{}
```

### Bundled dependencies

```json
null
```

## Package scripts

Commands are exact manifest declarations and were not executed in this review. Script metadata status: complete pinned manifest.

```json
{
  "publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
  "publish:pkg:canary": "bun publish:pkg --tag canary",
  "build": "contractspec-bun-build build",
  "build:bundle": "contractspec-bun-build transpile",
  "build:types": "contractspec-bun-build types",
  "dev": "contractspec-bun-build dev",
  "clean": "rimraf dist .turbo",
  "lint": "bun lint:fix",
  "lint:fix": "node ../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../scripts/biome.cjs check --write .",
  "lint:check": "node ../../scripts/biome.cjs check .",
  "test": "bun test --pass-with-no-tests",
  "prebuild": "contractspec-bun-build prebuild",
  "typecheck": "tsgo --noEmit"
}
```

## Declared documentation links

- [Example Voice Providers documentation](https://www.npmjs.com/package/%40lssm-tech%2Fexample.voice-providers) — declared link; destination not verified.

```json
{
  "url": "https://www.npmjs.com/package/%40lssm-tech%2Fexample.voice-providers",
  "kind": "readme"
}
```

## Existing agent-guide projection

```json
{
  "path": "packages/apps/web-landing/public/llms-packages/example.voice-providers.txt",
  "route": "/llms/example.voice-providers",
  "sourceUrl": "https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/apps/web-landing/public/llms-packages/example.voice-providers.txt",
  "blobSha": "ace6931ae9308d42ec28dc51ab06ae25d4567439",
  "sourcePin": "bcc79fcc27c4d801c2119bef81ddcce7b4e86498",
  "bodyEqualsReadme": true,
  "aggregateSourcePath": "packages/apps/web-landing/public/llms-full.txt",
  "aggregateBlobSha": "691b1d33efee24c440598b9106c81432f56aafaf"
}
```
