Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
Classe qui définit des configurations hybrides (cloud et incorporées) pour la reconnaissance vocale ou la synthèse vocale.
Membres
opérateur SPXSPEECHCONFIGHANDLE
Syntaxe : public inline explicit operator SPXSPEECHCONFIGHANDLE ( ) const;
Opérateur interne utilisé pour obtenir la valeur de handle sous-jacente.
Retours
Un handle.
SetSpeechRecognitionOutputFormat
Syntaxe : public inline void SetSpeechRecognitionOutputFormat ( OutputFormat format );
Définit le format de sortie de reconnaissance vocale.
Paramètres
-
formatformat de sortie de reconnaissance vocale (simple ou détaillé).
GetSpeechRecognitionOutputFormat
Syntaxe : public inline OutputFormat GetSpeechRecognitionOutputFormat ( ) const;
Obtient le format de sortie de reconnaissance vocale.
Retours
Format de sortie de reconnaissance vocale (simple ou détaillé).
SetSpeechSynthesisOutputFormat
Syntaxe : public inline void SetSpeechSynthesisOutputFormat ( SpeechSynthesisOutputFormat formatId );
Définit le format de sortie de synthèse vocale (par exemple, Riff16Khz16BitMonoPcm).
Paramètres
-
formatIdSpécifie l’ID de format de sortie
GetSpeechSynthesisOutputFormat
Syntaxe : public inline std::string GetSpeechSynthesisOutputFormat ( ) const;
Obtient le format de sortie de synthèse vocale.
Retours
Format de sortie de synthèse vocale.
SetProperty
Syntaxe : public inline void SetProperty ( const std::string & name , const std::string & value );
Définit une valeur de propriété par nom.
Paramètres
nameLe nom de la propriété.valueValeur de la propriété.
SetProperty
Syntaxe : public inline void SetProperty ( PropertyId id , const std::string & value );
Définit une valeur de propriété par ID.
Paramètres
idl’ID de propriété.valueValeur de la propriété.
GetProperty
Syntaxe : public inline std::string GetProperty ( const std::string & name ) const;
Obtient une valeur de propriété par nom.
Paramètres
-
nameLe nom du paramètre.
Retours
Valeur de la propriété.
GetProperty
Syntaxe : public inline std::string GetProperty ( PropertyId id ) const;
Obtient une valeur de propriété par ID.
Paramètres
-
idl’ID de paramètre.
Retours
Valeur de la propriété.
~HybridSpeechConfig
Syntaxe : public virtual ~HybridSpeechConfig ( ) = default;
Destructeur l’objet.
FromConfigs
Syntaxe : public inline static std::shared_ptr< HybridSpeechConfig > FromConfigs ( std::shared_ptr< SpeechConfig > cloudSpeechConfig , std::shared_ptr< EmbeddedSpeechConfig > embeddedSpeechConfig );
Crée une instance de la configuration vocale hybride avec des configurations vocales cloud et incorporées spécifiées.
Paramètres
cloudSpeechConfigpointeur intelligent partagé d’une configuration de reconnaissance vocale cloud.embeddedSpeechConfigpointeur intelligent partagé d’une configuration vocale incorporée.
Retours
Pointeur partagé vers la nouvelle instance de configuration vocale hybride.