Create a new instance of OpenAI STT.
apiKey must be set to your OpenAI API key, either using the argument or by setting the
OPENAI_API_KEY environment variable.
Returns this STT's capabilities
Get the model name/identifier for this STT instance.
The model name if available, "unknown" otherwise.
Plugins should override this property to provide their model information.
Get the provider name for this STT instance.
The provider name if available, "unknown" otherwise.
Plugins should override this property to provide their provider information.
Optional abortSignal: AbortSignalReceives an audio buffer and returns transcription in the form of a SpeechEvent
Optional abortSignal: AbortSignalThis method throws an error; streaming is unsupported on OpenAI STT.
Static withCreate a new instance of Groq STT.
apiKey must be set to your Groq API key, either using the argument or by setting the
GROQ_API_KEY environment variable.
Static withOVHcloudCreate a new instance of OVHcloud AI Endpoints STT.
apiKey must be set to your OVHcloud AI Endpoints API key, either using the argument or by setting the
OVHCLOUD_API_KEY environment variable.
An instance of a speech-to-text adapter.
Remarks
This class is abstract, and as such cannot be used directly. Instead, use a provider plugin that exports its own child STT class, which inherits this class's methods.