Class SpeechToTextController
Inheritance
SpeechToTextController
Inherited Members
Namespace: Glitch9.AIDevKit.Agents
Assembly: Glitch9.AIDevKit.dll
Syntax
public sealed class SpeechToTextController : GenerativeControllerBase<TranscriptDelta, Transcript, ISpeechToText, ISpeechToTextOptions>, IStreamVisitor<TranscriptDelta, Generated<Transcript>>, IDisposable
Properties
| Edit this page View SourceSpokenLanguage
Declaration
public SystemLanguage SpokenLanguage { get; }
Property Value
| Type | Description |
|---|---|
| SystemLanguage |
Methods
| Edit this page View SourceDispose()
Declaration
public void Dispose()
HandleInputAudioBuffer(AudioBufferStateChangeEvent)
Declaration
public void HandleInputAudioBuffer(AudioBufferStateChangeEvent evt)
Parameters
| Type | Name | Description |
|---|---|---|
| AudioBufferStateChangeEvent | evt |
OnComplete(Generated<Transcript>)
Handle completion of generation. Must be implemented by derived classes.
Declaration
public override void OnComplete(Generated<Transcript> result)
Parameters
| Type | Name | Description |
|---|---|---|
| Generated<Transcript> | result |
Overrides
| Edit this page View SourceOnDelta(TranscriptDelta)
Handle streaming delta updates. Must be implemented by derived classes.
Declaration
public override void OnDelta(TranscriptDelta delta)
Parameters
| Type | Name | Description |
|---|---|---|
| TranscriptDelta | delta |
Overrides
| Edit this page View SourceStartTranscription()
Begin audio capture (if supported).
Declaration
public void StartTranscription()
StopTranscriptionAsync()
End audio capture and submit recording (if supported).
Declaration
public UniTask StopTranscriptionAsync()
Returns
| Type | Description |
|---|---|
| UniTask |