Interface ITranscriptionProvider

Assembly: redb.Route.Llm.dll

Pure transport over a speech-to-text API — turns recorded audio into text. The
third sibling of and :
implementations do protocol work only (encode the upload, HTTP, decode the
answer). Deciding whether a recording is worth transcribing, what to do with an
empty result and who pays for it belongs to the route, not here.

public interface ITranscriptionProvider

Properties

ModelId

Speech model id this provider was configured with.

string ModelId { get; }

ProviderId

Provider identifier ("openai", "groq", "local", ...).

string ProviderId { get; }

Methods

TranscribeAsync(TranscriptionRequest, CancellationToken)

Transcribes one recording.

Task<TranscriptionResult> TranscribeAsync(TranscriptionRequest request, CancellationToken ct = default)