Class SPXAutoDetectSourceLanguageConfiguration
Declaration
@class SPXAutoDetectSourceLanguageConfiguration : NSObject;
Description
Represents auto detection source language configuration Updated in version 1.13.0
Methods
initWithOpenRange
Initializes an SPXAutoDetectSourceLanguageConfiguration object with open range.
Note: only SPXSpeechSynthesizer and multilingual SPXTranslationRecognizer support source language auto detection from open range, for SPXRecognizer, please use SPXAutoDetectSourceLanguageConfig with specific source languages.
Added in version 1.13.0
- (instancetype _Nullable)initWithOpenRange
Returns
an instance of auto detection source language configuration.
initWithOpenRange:
Initializes an SPXAutoDetectSourceLanguageConfiguration object with open range
Note: only SPXSpeechSynthesizer and multilingual SPXTranslationRecognizer support source language auto detection from open range, for SPXRecognizer, please use SPXAutoDetectSourceLanguageConfig with specific source languages.
Added in version 1.13.0
- (instancetype _Nullable)initWithOpenRange:(NSError * _Nullable * _Nullable)outError
Parameters
outError
- error information.
Returns
an instance of auto detection source language configuration.
init:
Initializes an SPXAutoDetectSourceLanguageConfiguration object using languages.
- (instancetype _Nullable)init:(NSArray<NSString *> * _Nonnull)languages
Parameters
languages
- the candidate languages.
Returns
an instance of auto detection source language configuration.
init:error:
Initializes an SPXAutoDetectSourceLanguageConfiguration object using languages.
- (instancetype _Nullable)init:(NSArray<NSString *> * _Nonnull)languages
error:(NSError * _Nullable * _Nullable)outError
Parameters
languages
- the candidate languages.outError
- error information.
Returns
an instance of auto detection source language configuration.
initWithSourceLanguageConfigurations:
Initializes an SPXAutoDetectSourceLanguageConfiguration object using source language configurations.
- (instancetype _Nullable)initWithSourceLanguageConfigurations:(NSArray<SPXSourceLanguageConfiguration *> * _Nonnull)sourceLanguageConfigurations
Parameters
sourceLanguageConfigurations
- the candidate source languages' configurations.
Returns
an instance of auto detection source language configuration.
initWithSourceLanguageConfigurations:error:
Initializes an SPXAutoDetectSourceLanguageConfiguration object using source language configurations.
- (instancetype _Nullable)initWithSourceLanguageConfigurations:(NSArray<SPXSourceLanguageConfiguration *> * _Nonnull)sourceLanguageConfigurations
error:(NSError * _Nullable * _Nullable)outError
Parameters
sourceLanguageConfigurations
- the candidate source languages' configurations.outError
- error information.
Returns
an instance of auto detection source language configuration.