Nvidia speech nim

From calesthio/generative-media-skills · View interactive version

Nvidia speech nim is an AI agent skill from the GitHub repository calesthio/generative-media-skills. Use NVIDIA Speech NIM microservices for speech production and voice workflows, including self-hosted ASR/STT, TTS, text translation, speech-to-speech pipeline design, Riva Python client integration, deployment planning, GPU/runtime sizing, licensing/privacy review, and production QA for transcriptio

How to use this skill

Skill file

NVIDIA Speech NIM

Use this skill when an agent must plan or implement a speech workflow with NVIDIA Speech NIM microservices rather than a generic speech API. Treat NVIDIA Speech NIM as a deployable containerized speech stack: the application talks to independent ASR, TTS, and NMT NIM containers over HTTP, gRPC, or WebSocket APIs, and the agent remains responsible for model/profile choice, orchestration, rights checks, audio custody, and QA.

Facts in this skill were verified from official NVIDIA sources on 2026-07-10 unless noted otherwise.

First classify the job

Separate the user's request into one or more speech capabilities:

If the user asks only for "speech NIM," keep ASR, TTS, and NMT together as a speech-and-voice provider decision. If the user asks for a narrow transcription or narration integration, scope to the needed container but keep the route boundaries visible.

Documented capability map

Use these as documented facts, not preferences.

Model and profile selection

Select at deployment time, not after the service is already running. NVIDIA documents CONTAINER_ID and NIM_TAGS_SELECTOR as the route for choosing a container and deployment profile. Use the support matrix for the current profile names, memory requirements, inference mode, language support, WSL2 status, and model-specific notes.

ASR selection

Prefer:

Documented ASR hardware/software boundary verified 2026-07-10: ASR NIM requires NVIDIA GPU compute capability 8.0 or higher and at least 16 GB VRAM; Linux Ubuntu 22.04 or later is recommended; NVIDIA Driver >= 535 and NVIDIA Docker >= 23.0.1 are listed. WSL2 support is model-dependent and the ASR matrix lists Windows 11 Build 23H2+, driver >= 570, Ubuntu 24.04, and Podman as recommended for WSL2. Source: ASR support matrix.

TTS selection

Prefer:

Documented TTS hardware/software boundary verified 2026-07-10: TTS NIM requires NVIDIA GPU compute capability 8.0 or higher and at least 16 GB VRAM; Linux Ubuntu 22.04 or later is recommended; NVIDIA Driver >= 535 and NVIDIA Docker >= 23.0.1 are listed. TTS support matrix lists all TTS models as FP16. Source: TTS support matrix.

NMT selection

Use NMT when the task needs text translation, speech-to-speech translation, localization review, or terminology control after ASR. Riva Translate 1.6b is documented as the NMT model; the container name is riva-translate-1_6b, while the served model may appear as megatronnmt_any_any_1b. It supports any-to-any translation across 36 languages as documented by NVIDIA. Source: About NVIDIA NMT NIM.

Use <dnt>...</dnt> tags or custom dictionaries for brand, product, and technical terms that must not be translated or must translate in a specific way. Increase --max-len-variation for morphologically complex target languages if output truncation appears. Source: About NVIDIA NMT NIM.

Documented NMT hardware/software boundary verified 2026-07-10: NMT NIM requires GPU compute capability 8.0 or higher and at least 16 GB VRAM; Linux Ubuntu 22.04 or later is recommended; NVIDIA Driver >= 535 and NVIDIA Docker >= 23.0.1 are listed. Source: NMT support matrix.

API route selection

Choose the client route by interaction pattern:

For Python clients, NVIDIA documents pip install -U nvidia-riva-client and the nvidia-riva/python-clients repository for ready-to-use scripts that call Speech NIM services. Source: Install the NVIDIA Riva Python Client.

Production heuristics

These are heuristics to improve production quality; validate them on representative audio before treating them as guarantees.

Rights, consent, privacy, and licensing

Do this before sending or generating user speech.

  1. Confirm rights to input audio. Transcription of calls, meetings, or medical/legal content may require consent, retention controls, and jurisdiction-specific notice.
  2. Confirm rights to output voice. Never clone or imitate a person's voice from reference audio unless the user has explicit authorization for that speaker, script, distribution channel, geography, and time period.
  3. Separate self-hosted custody from hosted/trial endpoints. Self-hosting can keep speech data inside the user's chosen infrastructure, but logs, metrics, model downloads, license checks, and operational telemetry still need review under the deployed NVIDIA terms and the organization's privacy/security controls.
  4. Treat NVIDIA API Catalog hosted endpoints as a trial/prototyping surface unless the user has a production-grade hosted partner route. NVIDIA's FAQ states Developer Program access is for prototyping/research/development/testing, and production use requires NVIDIA AI Enterprise or production-ready partner endpoints. Source: NVIDIA NIM FAQ.
  5. For production self-hosted NIM, confirm NVIDIA AI Enterprise entitlement or another valid production license path. NVIDIA's developer materials state production deployment is tied to NVIDIA AI Enterprise assurance, support, and API stability. Sources: NIM for Developers and NVIDIA NIM FAQ.
  6. For custom TTS applications, NVIDIA's AI Product Terms state that the customer must have sufficient rights and licenses for content used to generate new content, and restrict custom TTS application distribution/service use. Source: Product Specific Terms for AI Products.
  7. For API Trial Service usage, NVIDIA's API Trial Terms state that user and generated content may be used during the session solely to provide the API service, and are not stored or used at the end of each session except as stated for specific services or security/fraud monitoring. Source: NVIDIA API Trial Terms of Service PDF.
  8. Review data collection in enterprise software terms. NVIDIA's Software License Agreement describes collection for configuration/optimization, service delivery, compliance/fraud detection, product improvement, and related telemetry categories. Source: NVIDIA Software License Agreement.

If the user cannot confirm voice rights or regulated-data handling, refuse voice cloning and propose safer alternatives: stock voice, user-recorded voice with signed consent, transcript-only output, or local-only redaction before inference.

Complete example: offline ASR for subtitle generation

Production intent: turn a recorded training video into editable captions with timestamps and quality review.

Decision:

Example HTTP smoke test:

curl -sS http://localhost:9000/v1/health/ready

curl -sS http://localhost:9000/v1/audio/transcriptions \
  -F language=en-US \
  -F response_format=json \
  -F file="@training_clip.wav" \
  --output transcript.json

QA checklist:

Likely failure modes:

Complete example: low-latency voice-agent loop

Production intent: a kiosk or agent hears short user utterances and speaks responses.

Decision:

Operational plan:

  1. Pre-warm ASR and TTS containers and poll readiness.
  2. Send microphone audio in chunks; keep final transcript confidence/endpointing separate from interim text.
  3. Send final or stable partial text to the dialogue system.
  4. Chunk response text at phrase boundaries and start TTS streaming.
  5. Measure total turn latency from end of user speech to first audible output, not just model latency.
  6. Log dropped chunks, reconnects, health failures, and request duration metrics.

QA checklist:

Complete example: approved voice-cloned localization

Production intent: localize internal training modules using an approved employee voice reference.

Decision:

Required custody packet:

Example HTTP synthesis shape:

curl -sS http://localhost:9000/v1/audio/synthesize --fail-with-body \
  -F language=en-US \
  -F text="This internal module explains how to configure <dnt>NVIDIA NIM</dnt> safely." \
  -F audio_prompt=@approved_reference.wav \
  --output localized_voice.wav

QA checklist:

Failure triage

Source notes

Use current NVIDIA docs before deploying because model names, profile selectors, supported languages, WSL2 status, licensing, and hosted endpoint availability are volatile. Core sources verified 2026-07-10:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.