Table of Contents

Class SpeechRecognizedEventArgs

Namespace
VisioForge.Core.Types.Events
Assembly
VisioForge.Core.dll

Provides data for the speech-recognized event raised by the speech-to-text block.

public class SpeechRecognizedEventArgs : EventArgs

Inheritance

Inherited Members

Remarks

Raised on a background worker thread (transcription does not run on the streaming thread), so handlers must be thread-safe and marshal to the UI thread when updating UI. A single event may carry more than one segment when Whisper splits an utterance.

Constructors

SpeechRecognizedEventArgs(SpeechSegment[], TimeSpan)

Initializes a new instance of the VisioForge.Core.Types.Events.SpeechRecognizedEventArgs class.

public SpeechRecognizedEventArgs(SpeechSegment[] segments, TimeSpan timestamp)

Parameters

segments SpeechSegment[]

The recognized speech segments.

timestamp TimeSpan

The media timestamp the segments belong to (typically the start of the first segment).

Properties

Segments

Gets the recognized speech segments for this event.

public SpeechSegment[] Segments { get; }

Property Value

SpeechSegment[]

Timestamp

Gets the media timestamp the segments belong to.

public TimeSpan Timestamp { get; }

Property Value

TimeSpan