Class OrcaSynthesizeParams.Builder

  • Enclosing class:
    OrcaSynthesizeParams

    public static class OrcaSynthesizeParams.Builder
    extends java.lang.Object
    Builder for creating instance of OrcaSynthesizeParams.
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • setSpeechRate

        public OrcaSynthesizeParams.Builder setSpeechRate​(float speechRate)
        Sets the speech rate.
        Parameters:
        speechRate - The pace of the synthesized speech. Valid values are within [0.7, 1.3].
        Returns:
        Modified builder object.
      • setRandomState

        public OrcaSynthesizeParams.Builder setRandomState​(long randomState)
        Sets the random state.
        Parameters:
        randomState - The random state for the synthesized speech.
        Returns:
        Modified builder object.