Recursive AI

Transcribe audio with NVIDIA Parakeet TDT in C#

OneSpeech is a free, open-source speech recognition library for .NET from Recursive AI. MIT or Apache-2.0, no native dependencies.

Run Speech.Transcribe on the zip’s sample.flac. First use downloads about 2.51 GB for Parakeet and saves another 2.51 GB as a converted copy on disk. Recognition runs on your CPU.

Terminal
dotnet add package RecursiveAI.OneSpeech

Requires .NET 10 (net10.0); .NET 9 and earlier aren’t supported.

C#
using OneSpeech;
 
var transcript = Speech.Transcribe(
    "sample.flac",
    model: "nvidia/parakeet-tdt-0.6b-v3");
Console.WriteLine(transcript.Text);

Paste the code above into Program.cs of a new dotnet new console project and dotnet run, or unzip the example and dotnet run.

Text
Stuff it into you, his belly counseled him.

The recording is LibriSpeech test-clean utterance 1089-134686-0001, by Vassil Panayotov, Guoguo Chen, Daniel Povey, and Sanjeev Khudanpur, distributed unmodified under CC BY 4.0.

Invalid audio throws UnsupportedAudioException before model acquisition; download and integrity failures surface as model errors instead of silently switching checkpoints.

Variations

Print each word’s start time. Add this after Console.WriteLine(transcript.Text):

C#
foreach (var word in transcript.Words)
    Console.WriteLine($"{word.Start}: {word.Text}");

The first two lines after the transcript are:

Text
00:00:00.7060000: Stuff
00:00:00.9460000: it

The short answer

Install RecursiveAI.OneSpeech and pass model: "nvidia/parakeet-tdt-0.6b-v3" to Speech.Transcribe. The model identifier is explicit because OneSpeech never selects this checkpoint by default. Read Transcript.Text for the transcription and Transcript.Words when you want word times.

What does OneSpeech download for NVIDIA Parakeet TDT v3?

OneSpeech fetches the pinned NVIDIA publisher files: model.safetensors (about 2.51 GB), config.json, and tokenizer.json. It verifies SHA-256 digests and converts the weights to local OneModel graphs without changing the weights. The files from NVIDIA are not bundled with the NuGet package, and the download zip contains only the example project and audio. The model is CC BY 4.0, separate from the library’s license.

Make room for both the publisher files and roughly 2.51 GB of converted Parakeet artifacts. The conversion stores the encoder in two files, plus separate predictor, joint, and embedding artifacts. Speech.Transcribe runs speaker labeling by default and downloads a separate speaker model if it isn’t cached. To avoid that download, run a VadTranscriptionPipeline with no diarizer (no speaker labeler), as shown below. After the necessary files are cached, keep that same cache available to the process to run offline; copying the example project alone to a new machine won’t bring the model along. See model loading and cache configuration to plan that setup.

To transcribe the same file without speaker labeling, use this instead of Speech.Transcribe. SileroVad finds speech and is bundled with the package.

C#
using OneSpeech.FastConformer;
using OneSpeech.Pipeline;
using OneSpeech.Vad;
 
using var asr = await ParakeetRecognizer.LoadAsync(
    model: "nvidia/parakeet-tdt-0.6b-v3");
using var vad = new SileroVad();
var pipeline = new VadTranscriptionPipeline(asr, vad);
Console.WriteLine(pipeline.Transcribe("sample.flac").Text);

Which languages does Parakeet TDT v3 support?

OneSpeech lists 25 languages for this checkpoint, including English, Spanish, French, German, Italian, Polish, Russian, and Ukrainian. Parakeet recognizes speech without returning a detected language. Transcript.Language is set only if you pass a supported language value. That value labels the result; it doesn’t change how the model decodes the audio. This adapter doesn’t translate.

The file helper uses voice activity detection to choose bounded chunks. TDT means token-and-duration transducer: it predicts both a text token and how far to advance in the audio. OneSpeech combines the token intervals into word intervals, keeping the times on the recording’s clock. See the pinned model notes for timing and language behavior.

All onespeech recipes