Class SpeechRecognitionModel

  • All Implemented Interfaces:
    AutoCloseable

    public class SpeechRecognitionModel
    extends Object
    implements AutoCloseable
    Contains detailed speech recognition model information. Note: close() must be called in order to release underlying resources held by the object.
    • Method Detail

      • getName

        public String getName()
        Gets the model name.
        Returns:
        The model name.
      • getLocales

        public List<String> getLocales()
        Gets the locales of the model in BCP-47 format.
        Returns:
        The locales of the model.
      • getPath

        public String getPath()
        Gets the model path (only valid for offline models).
        Returns:
        The model path.
      • getVersion

        public String getVersion()
        Gets the model version.
        Returns:
        The model version.
      • close

        public void close()
        Explicitly frees any external resource attached to the object.
        Specified by:
        close in interface AutoCloseable
      • getImpl

        public SafeHandle getImpl()
        Returns the model info implementation.
        Returns:
        The implementation handle.