OpenAIAudioModel class final

This class is responsible for handling all audio requests, such as creating a transcription or translation for a given audio file.

Annotations
  • @immutable

Constructors

OpenAIAudioModel({required String text})
This class is responsible for handling all audio requests, such as creating a transcription or translation for a given audio file.
const
OpenAIAudioModel.fromMap(Map<String, dynamic> json)
This is used to convert a Map<String, dynamic> object to a OpenAIAudioModel object.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
The text response from the audio requests. This is the only field that is returned from the API.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
This method used to convert the OpenAIAudioModel to a Map<String, dynamic> object.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override