Table of Contents

Event OnProgress

Namespace
LMKit.Speech
Assembly
LM-Kit.NET.dll

Occurs periodically during speech-to-text processing to report overall progress.

public event EventHandler<SpeechToText.OnProgressEventArgs> OnProgress

Returns

EventHandler<SpeechToText.OnProgressEventArgs>
Occurs periodically during speech-to-text processing to report overall progress.

Examples

var model = LM.LoadFromModelID("whisper-large-turbo3");
var engine = new SpeechToText(model);
engine.OnProgress += (s, e) => Console.WriteLine($"Progress: {e.Progress}%");
engine.Transcribe(new WaveFile("audio.wav"));

Remarks

The Progress value is an integer from 0 to 100, indicating the percent complete of the current transcription operation.