Freigeben über


Class SPXSpeechRecognitionModelInfo

Declaration

@class SPXSpeechRecognitionModelInfo : NSObject;

Description

Speech recognition model information.

Methods

initWithName:locales:path:version:

Initialize a new instance of SPXSpeechRecognitionModelInfo.

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

Parameters

  • name - The model name.
  • locales - The locales of the model in BCP-47 format.
  • path - The model path (only valid for offline models).
  • version - The model version.

Returns

A new instance of SPXSpeechRecognitionModelInfo.

Properties

name

@property (readonly, copy, nonatomic) NSString * _Nullable name;

Model name.

locales

@property (readonly, copy, nonatomic) NSArray<NSString *> * _Nullable locales;

Locales of the model in BCP-47 format.

path

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

Model path (only valid for offline models).

version

@property (readonly, copy, nonatomic) NSString * _Nullable version;

Model version.