Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
formatSpeech 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
formatIdSpecifies 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
nameThe property name.valueThe property value.
SetProperty
Syntax: public inline void SetProperty ( PropertyId id , const std::string & value );
Sets a property value by ID.
Parameters
idThe property id.valueThe property value.
GetProperty
Syntax: public inline std::string GetProperty ( const std::string & name ) const;
Gets a property value by name.
Parameters
nameThe parameter name.
Returns
The property value.
GetProperty
Syntax: public inline std::string GetProperty ( PropertyId id ) const;
Gets a property value by ID.
Parameters
idThe 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
cloudSpeechConfigA shared smart pointer of a cloud speech config.embeddedSpeechConfigA shared smart pointer of an embedded speech config.
Returns
A shared pointer to the new hybrid speech config instance.