OpenAIAudioModel class final
This class represents the audio model of the OpenAI API, which is used and get returned while using the OpenAIAudio
methods.
- Annotations
Constructors
-
OpenAIAudioModel.new({required String text, String? task, String? language, double? duration, List<
Word> ? words, List<Segment> ? segments}) -
This class represents the audio model of the OpenAI API, which is used and get returned while using the
OpenAIAudio
methods.const -
OpenAIAudioModel.fromMap(Map<
String, dynamic> json) -
This is used to convert a Map<String, dynamic> object to a OpenAIAudioModel object.
factory
Properties
- duration → double?
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- language → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
segments
→ List<
Segment> ? -
final
- task → String?
-
final
- text → String
-
The text response from the audio requests.
This is the only field that is returned from the API.
final
-
words
→ List<
Word> ? -
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