Skip to content

ISpeechTranscriber

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

A provider that transcribes speech to text.

public interface ISpeechTranscriber

The contract is single-shot. The incremental resolution the live conversation layer will need should be a separate interface; adding a member here breaks consumer implementations.

The provider name.

string ProviderName { get; }

string

TranscribeAsync(Stream, string, SpeechTranscriptionOptions?, CancellationToken)

Section titled “ TranscribeAsync(Stream, string, SpeechTranscriptionOptions?, CancellationToken)”

Transcribes an audio stream to text.

ValueTask<SpeechTranscript> TranscribeAsync(Stream audio, string mediaType, SpeechTranscriptionOptions? options = null, CancellationToken cancellationToken = default)

audio Stream

The audio stream.

mediaType string

The audio’s MIME type.

options SpeechTranscriptionOptions?

The settings.

cancellationToken CancellationToken

The cancellation token.

ValueTask<SpeechTranscript>

The transcribed text.