Class Cheetah.Builder

  • Enclosing class:
    Cheetah

    public static class Cheetah.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • setAccessKey

        public Cheetah.Builder setAccessKey​(java.lang.String accessKey)
      • setLibraryPath

        public Cheetah.Builder setLibraryPath​(java.lang.String libraryPath)
      • setModelPath

        public Cheetah.Builder setModelPath​(java.lang.String modelPath)
        Setter for the absolute path to the file containing Cheetah model parameters.
        Parameters:
        modelPath - Absolute path to the file containing Cheetah model parameters.
      • setEndpointDuration

        public Cheetah.Builder setEndpointDuration​(float endpointDuration)
        Setter for the duration of endpoint in seconds.
        Parameters:
        endpointDuration - Duration of endpoint in seconds. A speech endpoint is detected when there is a chunk of audio (with a duration specified herein) after an utterance without any speech in it.
      • setEnableAutomaticPunctuation

        public Cheetah.Builder setEnableAutomaticPunctuation​(boolean enableAutomaticPunctuation)
        Setter for enabling automatic punctuation insertion
        Parameters:
        enableAutomaticPunctuation - Set to `true` to enable automatic punctuation insertion.