SmartAudioWhisperAdapter

Wisej.AI.Adapters.SmartAudioWhisperAdapter

Namespace: Wisej.AI.Adapters

Assembly: Wisej.AI (3.5.0.0)

Transcribes the audio file of the of the associated Audio control to its Text property in the original language of the audio. speech-to-text

public class SmartAudioWhisperAdapter : SmartAdapter

Works with:

  • OpenAI Whisper

  • GroqCloud Whisper

Set the SourceURL property of the associated Audio control to the audio file that you want to transcribe to text. When AutoRun is true and the user presses the play button the adapter will automatically start the transcription. If AutoRun is set to false, use RunAsync (where control is the Audio control) to start the transcription. You can use the SystemPrompt to improve the quality of the transcripts generated by the Whisper model. The model will try to match the style of the prompt, so it will be more likely to use capitalization and punctuation if the prompt does too. For more information prompting.

Constructors

SmartAudioWhisperAdapter()

Initializes a new instance of SmartAudioWhisperAdapter.

Methods

OnControlDisposed(control)

Parameter
Type
Description

control

RegisterControl(control)

Parameter
Type
Description

control

RunAsyncCore(control)

Parameter
Type
Description

control

Returns: Task<Message>.

Implements

Name
Description

Represents a provider that supplies tools.

Last updated