Freigeben über


Class SPXSpeechTranslationModelInfo

Declaration

@class SPXSpeechTranslationModelInfo : NSObject;

Description

Represents information about a speech translation model.

Methods

initWithName:sourceLanguages:targetLanguages:path:version:

Initializes a new instance of the SPXSpeechTranslationModelInfo class.

- (instancetype _Nullable)initWithName:(NSString * _Nonnull)name
    sourceLanguages:(NSArray<NSString *> * _Nonnull)sourceLanguages
    targetLanguages:(NSArray<NSString *> * _Nonnull)targetLanguages path:(NSString * _Nullable)path
    version:(NSString * _Nonnull)version

Parameters

  • name - The name of the model.
  • sourceLanguages - The source languages supported by the model.
  • targetLanguages - The target languages supported by the model.
  • path - The path of the model (valid only for offline models).
  • version - The version of the model.

Returns

An initialized SPXSpeechTranslationModelInfo instance.

Properties

name

@property (readonly, nonatomic) NSString * _Nonnull name;

The name of the speech translation model.

sourceLanguages

@property (readonly, nonatomic) NSArray<NSString *> * _Nonnull sourceLanguages;

The source languages supported by the model.

targetLanguages

@property (readonly, nonatomic) NSArray<NSString *> * _Nonnull targetLanguages;

The target languages supported by the model.

path

@property (readonly, nonatomic) NSString * _Nullable path;

The path of the model (valid only for offline models).

version

@property (readonly, nonatomic) NSString * _Nonnull version;

The version of the speech translation model.