Class SpeechTranslationModel

  • All Implemented Interfaces:
    AutoCloseable

    public class SpeechTranslationModel
    extends Object
    implements AutoCloseable
    Contains detailed speech translation 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.
      • getSourceLanguages

        public List<String> getSourceLanguages()
        Gets the source languages that the model supports.
        Returns:
        Source languages of the model.
      • getTargetLanguages

        public List<String> getTargetLanguages()
        Gets the target languages that the model supports.
        Returns:
        Target languages 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.