Record Class SpeechModelInfo
java.lang.Object
java.lang.Record
fr.dreamin.dreamvoice.api.speech.model.SpeechModelInfo
- Record Components:
id- unique identifier / folder name (e.g. "vosk-model-small-fr-0.22")language- language ISO code (e.g. "fr", "en", "de")displayName- human-readable name of the modeldownloadUrl- direct HTTP(S) URL to the model zip archivesizeMb- approximate download size in megabytes
-
Constructor Summary
ConstructorsConstructorDescriptionSpeechModelInfo(@NotNull String id, @NotNull String language, @NotNull String displayName, @NotNull String downloadUrl, int sizeMb) Creates an instance of aSpeechModelInforecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull StringReturns the value of thedisplayNamerecord component.@NotNull StringReturns the value of thedownloadUrlrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull Stringid()Returns the value of theidrecord component.@NotNull Stringlanguage()Returns the value of thelanguagerecord component.intsizeMb()Returns the value of thesizeMbrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SpeechModelInfo
public SpeechModelInfo(@NotNull @NotNull String id, @NotNull @NotNull String language, @NotNull @NotNull String displayName, @NotNull @NotNull String downloadUrl, int sizeMb) Creates an instance of aSpeechModelInforecord class.- Parameters:
id- the value for theidrecord componentlanguage- the value for thelanguagerecord componentdisplayName- the value for thedisplayNamerecord componentdownloadUrl- the value for thedownloadUrlrecord componentsizeMb- the value for thesizeMbrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
-
language
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
downloadUrl
Returns the value of thedownloadUrlrecord component.- Returns:
- the value of the
downloadUrlrecord component
-
sizeMb
-