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 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 a Voice record class.
      Parameters:
      voiceId - the value for the voiceId record component
      name - the value for the name record component
      samples - the value for the samples record component
      category - the value for the category record component
      fineTuning - the value for the fineTuning record component
      labels - the value for the labels record component
      description - the value for the description record component
      previewUrl - the value for the previewUrl record component
      availableForTiers - the value for the availableForTiers record component
      settings - the value for the settings record component
      sharing - the value for the sharing record component
      highQualityBaseModelIds - the value for the highQualityBaseModelIds record component
      verifiedLanguages - the value for the verifiedLanguages record component
      safetyControl - the value for the safetyControl record component
      voiceVerification - the value for the voiceVerification record component
      permissionOnResource - the value for the permissionOnResource record component
      isOwner - the value for the isOwner record component
      isLegacy - the value for the isLegacy record component
      isMixed - the value for the isMixed record component
      createdAtUnix - the value for the createdAtUnix record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • voiceId

      public String voiceId()
      Returns the value of the voiceId record component.
      Returns:
      the value of the voiceId record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • samples

      public List<ElevenLabsVoicesApi.Sample> samples()
      Returns the value of the samples record component.
      Returns:
      the value of the samples record component
    • category

      Returns the value of the category record component.
      Returns:
      the value of the category record component
    • fineTuning

      public ElevenLabsVoicesApi.FineTuning fineTuning()
      Returns the value of the fineTuning record component.
      Returns:
      the value of the fineTuning record component
    • labels

      public Map<String,String> labels()
      Returns the value of the labels record component.
      Returns:
      the value of the labels record component
    • description

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • previewUrl

      public String previewUrl()
      Returns the value of the previewUrl record component.
      Returns:
      the value of the previewUrl record component
    • availableForTiers

      public List<String> availableForTiers()
      Returns the value of the availableForTiers record component.
      Returns:
      the value of the availableForTiers record component
    • settings

      Returns the value of the settings record component.
      Returns:
      the value of the settings record component
    • sharing

      Returns the value of the sharing record component.
      Returns:
      the value of the sharing record component
    • highQualityBaseModelIds

      public List<String> highQualityBaseModelIds()
      Returns the value of the highQualityBaseModelIds record component.
      Returns:
      the value of the highQualityBaseModelIds record component
    • verifiedLanguages

      public List<ElevenLabsVoicesApi.VerifiedVoiceLanguage> verifiedLanguages()
      Returns the value of the verifiedLanguages record component.
      Returns:
      the value of the verifiedLanguages record component
    • safetyControl

      public ElevenLabsVoicesApi.SafetyControlEnum safetyControl()
      Returns the value of the safetyControl record component.
      Returns:
      the value of the safetyControl record component
    • voiceVerification

      public ElevenLabsVoicesApi.VoiceVerification voiceVerification()
      Returns the value of the voiceVerification record component.
      Returns:
      the value of the voiceVerification record component
    • permissionOnResource

      public String permissionOnResource()
      Returns the value of the permissionOnResource record component.
      Returns:
      the value of the permissionOnResource record component
    • isOwner

      public Boolean isOwner()
      Returns the value of the isOwner record component.
      Returns:
      the value of the isOwner record component
    • isLegacy

      public Boolean isLegacy()
      Returns the value of the isLegacy record component.
      Returns:
      the value of the isLegacy record component
    • isMixed

      public Boolean isMixed()
      Returns the value of the isMixed record component.
      Returns:
      the value of the isMixed record component
    • createdAtUnix

      public Integer createdAtUnix()
      Returns the value of the createdAtUnix record component.
      Returns:
      the value of the createdAtUnix record component