WhisperClient class

Client for interacting with OpenAI's Whisper API

Constructors

WhisperClient({required String apiKey, String baseUrl = 'https://api.openai.com/v1', Client? httpClient})
Creates a new WhisperClient instance

Properties

apiKey → String
The OpenAI API key
final
baseUrl → String
The base URL for the OpenAI API
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Disposes of the HTTP client
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
transcribe(WhisperRequest request) → Future<WhisperResponse>
Transcribes audio using the Whisper API

Operators

operator ==(Object other) → bool
The equality operator.
inherited