Record Class ElevenLabsVoicesApi.Voice
java.lang.Object
java.lang.Record
org.springframework.ai.elevenlabs.api.ElevenLabsVoicesApi.Voice
- Enclosing class:
ElevenLabsVoicesApi
public static record ElevenLabsVoicesApi.Voice(String voiceId, String name, List<ElevenLabsVoicesApi.Sample> samples, ElevenLabsVoicesApi.CategoryEnum category, ElevenLabsVoicesApi.FineTuning fineTuning, Map<String,String> labels, String description, String previewUrl, List<String> availableForTiers, ElevenLabsVoicesApi.VoiceSettings settings, ElevenLabsVoicesApi.VoiceSharing sharing, List<String> highQualityBaseModelIds, List<ElevenLabsVoicesApi.VerifiedVoiceLanguage> verifiedLanguages, ElevenLabsVoicesApi.SafetyControlEnum safetyControl, ElevenLabsVoicesApi.VoiceVerification voiceVerification, String permissionOnResource, Boolean isOwner, Boolean isLegacy, Boolean isMixed, Integer createdAtUnix)
extends Record
Represents a single voice from the ElevenLabs API.
-
Constructor Summary
ConstructorsConstructorDescriptionVoice(String voiceId, String name, List<ElevenLabsVoicesApi.Sample> samples, ElevenLabsVoicesApi.CategoryEnum category, ElevenLabsVoicesApi.FineTuning fineTuning, Map<String, String> labels, String description, String previewUrl, List<String> availableForTiers, ElevenLabsVoicesApi.VoiceSettings settings, ElevenLabsVoicesApi.VoiceSharing sharing, List<String> highQualityBaseModelIds, List<ElevenLabsVoicesApi.VerifiedVoiceLanguage> verifiedLanguages, ElevenLabsVoicesApi.SafetyControlEnum safetyControl, ElevenLabsVoicesApi.VoiceVerification voiceVerification, String permissionOnResource, Boolean isOwner, Boolean isLegacy, Boolean isMixed, Integer createdAtUnix) Creates an instance of aVoicerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theavailableForTiersrecord component.category()Returns the value of thecategoryrecord component.Returns the value of thecreatedAtUnixrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefineTuningrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thehighQualityBaseModelIdsrecord component.isLegacy()Returns the value of theisLegacyrecord component.isMixed()Returns the value of theisMixedrecord component.isOwner()Returns the value of theisOwnerrecord component.labels()Returns the value of thelabelsrecord component.name()Returns the value of thenamerecord component.Returns the value of thepermissionOnResourcerecord component.Returns the value of thepreviewUrlrecord component.Returns the value of thesafetyControlrecord component.samples()Returns the value of thesamplesrecord component.settings()Returns the value of thesettingsrecord component.sharing()Returns the value of thesharingrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theverifiedLanguagesrecord component.voiceId()Returns the value of thevoiceIdrecord component.Returns the value of thevoiceVerificationrecord component.
-
Constructor Details
-
Voice
public Voice(String voiceId, String name, List<ElevenLabsVoicesApi.Sample> samples, ElevenLabsVoicesApi.CategoryEnum category, ElevenLabsVoicesApi.FineTuning fineTuning, Map<String, String> labels, String description, String previewUrl, List<String> availableForTiers, ElevenLabsVoicesApi.VoiceSettings settings, ElevenLabsVoicesApi.VoiceSharing sharing, List<String> highQualityBaseModelIds, List<ElevenLabsVoicesApi.VerifiedVoiceLanguage> verifiedLanguages, ElevenLabsVoicesApi.SafetyControlEnum safetyControl, ElevenLabsVoicesApi.VoiceVerification voiceVerification, String permissionOnResource, Boolean isOwner, Boolean isLegacy, Boolean isMixed, Integer createdAtUnix) Creates an instance of aVoicerecord class.- Parameters:
voiceId- the value for thevoiceIdrecord componentname- the value for thenamerecord componentsamples- the value for thesamplesrecord componentcategory- the value for thecategoryrecord componentfineTuning- the value for thefineTuningrecord componentlabels- the value for thelabelsrecord componentdescription- the value for thedescriptionrecord componentpreviewUrl- the value for thepreviewUrlrecord componentavailableForTiers- the value for theavailableForTiersrecord componentsettings- the value for thesettingsrecord componentsharing- the value for thesharingrecord componenthighQualityBaseModelIds- the value for thehighQualityBaseModelIdsrecord componentverifiedLanguages- the value for theverifiedLanguagesrecord componentsafetyControl- the value for thesafetyControlrecord componentvoiceVerification- the value for thevoiceVerificationrecord componentpermissionOnResource- the value for thepermissionOnResourcerecord componentisOwner- the value for theisOwnerrecord componentisLegacy- the value for theisLegacyrecord componentisMixed- the value for theisMixedrecord componentcreatedAtUnix- the value for thecreatedAtUnixrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
voiceId
Returns the value of thevoiceIdrecord component.- Returns:
- the value of the
voiceIdrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
samples
Returns the value of thesamplesrecord component.- Returns:
- the value of the
samplesrecord component
-
category
Returns the value of thecategoryrecord component.- Returns:
- the value of the
categoryrecord component
-
fineTuning
Returns the value of thefineTuningrecord component.- Returns:
- the value of the
fineTuningrecord component
-
labels
Returns the value of thelabelsrecord component.- Returns:
- the value of the
labelsrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
previewUrl
Returns the value of thepreviewUrlrecord component.- Returns:
- the value of the
previewUrlrecord component
-
availableForTiers
Returns the value of theavailableForTiersrecord component.- Returns:
- the value of the
availableForTiersrecord component
-
settings
Returns the value of thesettingsrecord component.- Returns:
- the value of the
settingsrecord component
-
sharing
Returns the value of thesharingrecord component.- Returns:
- the value of the
sharingrecord component
-
highQualityBaseModelIds
Returns the value of thehighQualityBaseModelIdsrecord component.- Returns:
- the value of the
highQualityBaseModelIdsrecord component
-
verifiedLanguages
Returns the value of theverifiedLanguagesrecord component.- Returns:
- the value of the
verifiedLanguagesrecord component
-
safetyControl
Returns the value of thesafetyControlrecord component.- Returns:
- the value of the
safetyControlrecord component
-
voiceVerification
Returns the value of thevoiceVerificationrecord component.- Returns:
- the value of the
voiceVerificationrecord component
-
permissionOnResource
Returns the value of thepermissionOnResourcerecord component.- Returns:
- the value of the
permissionOnResourcerecord component
-
isOwner
Returns the value of theisOwnerrecord component.- Returns:
- the value of the
isOwnerrecord component
-
isLegacy
Returns the value of theisLegacyrecord component.- Returns:
- the value of the
isLegacyrecord component
-
isMixed
Returns the value of theisMixedrecord component.- Returns:
- the value of the
isMixedrecord component
-
createdAtUnix
Returns the value of thecreatedAtUnixrecord component.- Returns:
- the value of the
createdAtUnixrecord component
-