ISpeechTranscriber
Namespace AgentPrism · Assembly
AgentPrism.Abstractions.dllA provider that transcribes speech to text.
public interface ISpeechTranscriberRemarks
Section titled “Remarks”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.
Properties
Section titled “Properties”ProviderName
Section titled “ ProviderName”The provider name.
string ProviderName { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”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)Parameters
Section titled “Parameters”audio Stream
The audio stream.
mediaType string
The audio’s MIME type.
options SpeechTranscriptionOptions?
The settings.
cancellationToken CancellationToken
The cancellation token.
Returns
Section titled “Returns”The transcribed text.