Package ai.picovoice.orca
Class OrcaSynthesizeParams.Builder
java.lang.Object
ai.picovoice.orca.OrcaSynthesizeParams.Builder
- Enclosing class:
- OrcaSynthesizeParams
Builder for creating instance of OrcaSynthesizeParams.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Validates properties and creates an instance of OrcaSynthesizeParams.setSpeechRate(float speechRate) Sets the speech rate.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setSpeechRate
Sets the speech rate.- Parameters:
speechRate- The pace of the synthesized speech. Valid values are within [0.7, 1.3].- Returns:
- Modified builder object.
-
build
Validates properties and creates an instance of OrcaSynthesizeParams.- Returns:
- An instance of OrcaSynthesizeParams
- Throws:
OrcaInvalidArgumentException- if there is an invalid parameter.
-