Class OpenAiTranscriptionProvider
Transport for any OpenAI-compatible speech endpoint
(POST {baseUrl}/audio/transcriptions, multipart/form-data with a
file and a model, response {"text": ".."}).
One implementation, many providers — the same
(Provider / BaseUrl / ApiKey / ModelId) as and
, so it talks to OpenAI and Groq as readily
as to whisper.cpp's server, Speaches / faster-whisper-server or LM Studio on
127.0.0.1. Local and paid recognition differ by a base URL, which is the
point: a product can develop against its own GPU and move to a paid endpoint
without a line of route code changing. Set
to the speech model
(e.g. whisper-1, large-v3), not the chat model.
public sealed class OpenAiTranscriptionProvider : ITranscriptionProvider
Inheritance
Implements
Properties
Methods
Create(LlmConnectionFactory)
Convenience constructor that builds an internal HttpClient with the factory timeout.
public static OpenAiTranscriptionProvider Create(LlmConnectionFactory factory)
TranscribeAsync(TranscriptionRequest, CancellationToken)
Transcribes one recording.
public Task<TranscriptionResult> TranscribeAsync(TranscriptionRequest request, CancellationToken ct = default)
Constructors
OpenAiTranscriptionProvider(LlmConnectionFactory, HttpClient)
Creates the provider with an externally owned http.