class AutoDetectSourceLanguageConfig

Class that defines auto detection source configuration Updated in 1.13.0.

Members

operator SPXAUTODETECTSOURCELANGCONFIGHANDLE

Syntax: public inline explicit operator SPXAUTODETECTSOURCELANGCONFIGHANDLE ( ) const;

Internal operator used to get underlying handle value.

Returns

A handle.

~AutoDetectSourceLanguageConfig

Syntax: public inline virtual ~AutoDetectSourceLanguageConfig ( );

Destructs the object.

FromOpenRange

Syntax: public inline static std::shared_ptr< AutoDetectSourceLanguageConfig > FromOpenRange ( );

Creates an instance of the AutoDetectSourceLanguageConfig with open range as source languages Note: only SpeechSynthesizer and embedded speech translation support source language auto detection from open range, for Recognizer, please use AutoDetectSourceLanguageConfig with specific source languages. Added in 1.13.0.

Returns

A shared pointer to the new AutoDetectSourceLanguageConfig instance.

FromLanguages

Syntax: public inline static std::shared_ptr< AutoDetectSourceLanguageConfig > FromLanguages ( const std::vector< std::string > & languages );

Creates an instance of the AutoDetectSourceLanguageConfig with source languages.

Parameters

  • languages The list of source languages.

Returns

A shared pointer to the new AutoDetectSourceLanguageConfig instance.

FromSourceLanguageConfigs

Syntax: public inline static std::shared_ptr< AutoDetectSourceLanguageConfig > FromSourceLanguageConfigs ( std::vector< std::shared_ptr< SourceLanguageConfig > > configList );

Creates an instance of the AutoDetectSourceLanguageConfig with a list of source language config.

Parameters

  • configList The list of source languages config

Returns

A shared pointer to the new AutoDetectSourceLanguageConfig instance.