.NET API
ISpeechTranscriber
Namespace Tracon · Assembly
Tracon.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.
DI lifetime — singleton. Registered as a singleton with
TryAdd; a consumer’s own registration wins.
Tenant behavior — TENANT-INDEPENDENT. Same reasoning as ISpeechSynthesizer: the provider is configured process-wide, not per tenant.
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.