Class Eagle.Builder

  • Enclosing class:
    Eagle

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

      • Builder

        public Builder()
    • Method Detail

      • setAccessKey

        public Eagle.Builder setAccessKey​(java.lang.String accessKey)
      • setModelPath

        public Eagle.Builder setModelPath​(java.lang.String modelPath)
      • build

        public Eagle build​(android.content.Context context)
                    throws EagleException
        Validates properties and creates an instance of the Eagle speaker recognition engine.
        Parameters:
        context - Android app context (for extracting Eagle resources)
        Returns:
        An instance Eagle speaker recognition engine
        Throws:
        EagleException - if there is an error while initializing Eagle.