Class SynthesizeOptions.Builder

java.lang.Object
com.ibm.watson.text_to_speech.v1.model.SynthesizeOptions.Builder
Enclosing class:
SynthesizeOptions

public static class SynthesizeOptions.Builder
extends Object
Builder.
  • Constructor Details

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

      public Builder​(String text)
      Instantiates a new builder with required properties.
      Parameters:
      text - the text
  • Method Details

    • build

      public SynthesizeOptions build()
      Builds a SynthesizeOptions.
      Returns:
      the new SynthesizeOptions instance
    • text

      public SynthesizeOptions.Builder text​(String text)
      Set the text.
      Parameters:
      text - the text
      Returns:
      the SynthesizeOptions builder
    • accept

      public SynthesizeOptions.Builder accept​(String accept)
      Set the accept.
      Parameters:
      accept - the accept
      Returns:
      the SynthesizeOptions builder
    • voice

      public SynthesizeOptions.Builder voice​(String voice)
      Set the voice.
      Parameters:
      voice - the voice
      Returns:
      the SynthesizeOptions builder
    • customizationId

      public SynthesizeOptions.Builder customizationId​(String customizationId)
      Set the customizationId.
      Parameters:
      customizationId - the customizationId
      Returns:
      the SynthesizeOptions builder
    • timings

      public SynthesizeOptions.Builder timings​(List<String> timings)
      Set the timings.
      Parameters:
      timings - the timings
      Returns:
      the SynthesizeOptions builder