class HybridSpeechConfig

Class that defines hybrid (cloud and embedded) configurations for speech recognition or speech synthesis.

Members

operator SPXSPEECHCONFIGHANDLE

Syntax: public inline explicit operator SPXSPEECHCONFIGHANDLE ( ) const;

Internal operator used to get the underlying handle value.

Returns

A handle.

SetSpeechRecognitionOutputFormat

Syntax: public inline void SetSpeechRecognitionOutputFormat ( OutputFormat format );

Sets the speech recognition output format.

Parameters

  • format Speech recognition output format (simple or detailed).

GetSpeechRecognitionOutputFormat

Syntax: public inline OutputFormat GetSpeechRecognitionOutputFormat ( ) const;

Gets the speech recognition output format.

Returns

Speech recognition output format (simple or detailed).

SetSpeechSynthesisOutputFormat

Syntax: public inline void SetSpeechSynthesisOutputFormat ( SpeechSynthesisOutputFormat formatId );

Sets the speech synthesis output format (e.g. Riff16Khz16BitMonoPcm).

Parameters

  • formatId Specifies the output format ID

GetSpeechSynthesisOutputFormat

Syntax: public inline std::string GetSpeechSynthesisOutputFormat ( ) const;

Gets the speech synthesis output format.

Returns

The speech synthesis output format.

SetProperty

Syntax: public inline void SetProperty ( const std::string & name , const std::string & value );

Sets a property value by name.

Parameters

  • name The property name.

  • value The property value.

SetProperty

Syntax: public inline void SetProperty ( PropertyId id , const std::string & value );

Sets a property value by ID.

Parameters

  • id The property id.

  • value The property value.

GetProperty

Syntax: public inline std::string GetProperty ( const std::string & name ) const;

Gets a property value by name.

Parameters

  • name The parameter name.

Returns

The property value.

GetProperty

Syntax: public inline std::string GetProperty ( PropertyId id ) const;

Gets a property value by ID.

Parameters

  • id The parameter id.

Returns

The property value.

~HybridSpeechConfig

Syntax: public virtual ~HybridSpeechConfig ( ) = default;

Destructs the object.

FromConfigs

Syntax: public inline static std::shared_ptr< HybridSpeechConfig > FromConfigs ( std::shared_ptr< SpeechConfig > cloudSpeechConfig , std::shared_ptr< EmbeddedSpeechConfig > embeddedSpeechConfig );

Creates an instance of the hybrid speech config with specified cloud and embedded speech configs.

Parameters

  • cloudSpeechConfig A shared smart pointer of a cloud speech config.

  • embeddedSpeechConfig A shared smart pointer of an embedded speech config.

Returns

A shared pointer to the new hybrid speech config instance.