Class RealtimeParamVoice

java.lang.Object
com.sap.ai.sdk.foundationmodels.openai.realtime.RealtimeParamVoice
All Implemented Interfaces:
RealtimeParam

@Beta public final class RealtimeParamVoice extends Object implements RealtimeParam
Allows to configure model output voice
  • Field Details

  • Method Details

    • withExplicitVoice

      @Nonnull @Beta public static RealtimeParamVoice withExplicitVoice(@Nonnull String voiceName)
      Allows to configure raw voice name as named by model provider. Unsafe because SDK cannot verify in advance if the provided voice name is correct and supported by the chosen model and use case NOTE: this method does not check voice name and incorrect input may produce runtime exceptions (unsafe)
      Parameters:
      voiceName - as named by model provider
      Returns:
      typed voice client configuration param
    • getParamName

      @Beta @Nonnull public RealtimeParam.ParamName getParamName()
      Description copied from interface: RealtimeParam
      Returns param name
      Specified by:
      getParamName in interface RealtimeParam
      Returns:
      name
    • getValueAsString

      @Beta @Nonnull public String getValueAsString()
      Description copied from interface: RealtimeParam
      Returns string value representation of the param
      Specified by:
      getValueAsString in interface RealtimeParam
      Returns:
      string value
    • equals

      @Beta public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      @Beta public int hashCode()
      Overrides:
      hashCode in class Object