---
title: "onespeech cookbook"
url: https://recursiveai.org/onespeech/cookbook/
description: "Short recipes for common OneSpeech tasks, each with complete code you can copy."
version: "1.0.0"
---

# onespeech cookbook

Short recipes for common OneSpeech tasks, each with complete code you can copy.

## Speech recognition

- [Speech to text in C#](https://recursiveai.org/onespeech/cookbook/speech-to-text/index.md): Convert speech to text in C# with OneSpeech. Run a complete .NET 10 example locally, read the transcript, and save timed words as JSON.
- [Transcribe an audio file in C#](https://recursiveai.org/onespeech/cookbook/transcribe-audio-file/index.md): Transcribe audio files to text in C# with OneSpeech. Download a runnable .NET 10 example that saves plain text and transcript JSON.
- [Run Whisper in C# without native libraries](https://recursiveai.org/onespeech/cookbook/whisper-dotnet/index.md): Run Whisper in C# without native inference libraries. Use OneSpeech on .NET 10, choose a model, and run a complete downloadable example.
- [Generate SRT subtitles from audio in C#](https://recursiveai.org/onespeech/cookbook/generate-subtitles-from-audio/index.md): Generate SRT subtitles from audio in C# with OneSpeech. Download a runnable .NET 10 example, export captions, and remove leading caption spaces.
- [Word timestamps in C#](https://recursiveai.org/onespeech/cookbook/word-timestamps/index.md): Get word timestamps from speech in C# with OneSpeech. Run a .NET 10 example with start and end times, timing provenance, and JSON export.
- [Speaker diarization in C#](https://recursiveai.org/onespeech/cookbook/speaker-diarization/index.md): Label speakers and print turn times in C# with OneSpeech voice clustering. Free, open source, with a runnable example and packaged English model.
- [Real-time speech recognition in C#](https://recursiveai.org/onespeech/cookbook/real-time-speech-recognition/index.md): Recognize English speech from PCM blocks in C# with OneSpeech live sessions. Free, open source, with a runnable file-replay example.
- [Transcribe an MP4 video in C#](https://recursiveai.org/onespeech/cookbook/transcribe-video/index.md): Transcribe MP4 audio to text in C# with OneSpeech.Media. Free, open source, with a real sample video, packaged model and runnable project.
- [Offline speech recognition in C#](https://recursiveai.org/onespeech/cookbook/offline-speech-recognition/index.md): Run offline English speech recognition in C# using packaged model weights. Free, open-source OneSpeech example with network model fetches refused.

## Audio and speakers

- [Transcribe a long audio file in C#](https://recursiveai.org/onespeech/cookbook/transcribe-long-audio/index.md): Transcribe long audio files in C# with bounded audio chunks. Print final segments as they finish, with a runnable OneSpeech example and sample audio.
- [Align a transcript to audio in C#](https://recursiveai.org/onespeech/cookbook/forced-alignment/index.md): Align an existing transcript to audio in C# and print word timestamps with OneSpeech. Includes a working example, sample audio and null-timing guidance.
- [Speaker verification in C#: compare two audio files](https://recursiveai.org/onespeech/cookbook/speaker-verification/index.md): Compare two speaker recordings in C# with OneSpeech and get a cosine similarity score, not an authentication decision. Includes runnable synthetic samples.
