Class AudioUrl.Builder

  • Enclosing class:
    AudioUrl

    public static class AudioUrl.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • url

        public AudioUrl.Builder url​(String url)
        The base64 encoded audio data or an audio uri if it’s supported.

        Example for an mp3 audio: { "type": "AUDIO", "audioUrl": { "url": "data:audio/mp3;base64," } }

        Example with an audio uri: { "type": "AUDIO", "audioUrl": { "url": "data:audio/mp3;uri,

        Parameters:
        url - the value to set
        Returns:
        this builder
      • detail

        public AudioUrl.Builder detail​(AudioUrl.Detail detail)
        The default value is AUTO and only AUTO is supported.

        This option controls how to convert the base64 encoded audio to tokens.

        Parameters:
        detail - the value to set
        Returns:
        this builder