HybridSpeechConfig Classe
- java.
lang. Object - com.
microsoft. cognitiveservices. speech. HybridSpeechConfig
- com.
Implémente
public final class HybridSpeechConfig
implements java.lang.AutoCloseable
Classe qui définit des configurations hybrides (cloud et incorporées) pour la reconnaissance vocale et la synthèse vocale. Remarque : close() doit être appelé pour libérer les ressources sous-jacentes détenues par l’objet.
Résumé de la méthode
Modificateur et type | Méthode et description |
---|---|
final void |
close()
Supprimer les ressources associées. |
static final
Hybrid |
fromConfigs(SpeechConfig cloudSpeechConfig, EmbeddedSpeechConfig embeddedSpeechConfig)
Crée une instance de la configuration vocale hybride avec des configurations vocales cloud et incorporées spécifiées. |
Safe |
getImpl()
Retourne un handle interne à l’implémentation speech |
java.lang.String |
getProperty(PropertyId id)
Obtient la propriété par ID de propriété |
java.lang.String |
getProperty(String name)
Obtient une propriété nommée en tant que valeur. |
final
Output |
getSpeechRecognitionOutputFormat()
Obtient le format de sortie de reconnaissance vocale. |
final java.lang.String |
getSpeechSynthesisOutputFormat()
Obtient le format de sortie de synthèse vocale. |
void |
setProperty(PropertyId id, String value)
Définit la propriété par ID de propriété |
void |
setProperty(String name, String value)
Définit une propriété nommée comme valeur. |
final void |
setSpeechRecognitionOutputFormat(OutputFormat value)
Définit le format de sortie de la reconnaissance vocale. |
final void |
setSpeechSynthesisOutputFormat(SpeechSynthesisOutputFormat value)
Définit le format de sortie de synthèse vocale. |
Méthodes héritées de java.lang.Object
Détails de la méthode
close
public final void close()
Supprimer les ressources associées.
fromConfigs
public static final HybridSpeechConfig fromConfigs(SpeechConfig cloudSpeechConfig, EmbeddedSpeechConfig embeddedSpeechConfig)
Crée une instance de la configuration vocale hybride avec des configurations vocales cloud et incorporées spécifiées.
Parameters:
Returns:
getImpl
public SafeHandle getImpl()
Retourne un handle interne à l’implémentation SpeechConfig.
Returns:
getProperty
public String getProperty(PropertyId id)
Obtient la propriété par propertyId.
Parameters:
Returns:
getProperty
public String getProperty(String name)
Obtient une propriété nommée en tant que valeur.
Parameters:
Returns:
getSpeechRecognitionOutputFormat
public final OutputFormat getSpeechRecognitionOutputFormat()
Obtient le format de sortie de reconnaissance vocale.
Returns:
getSpeechSynthesisOutputFormat
public final String getSpeechSynthesisOutputFormat()
Obtient le format de sortie de synthèse vocale.
Returns:
setProperty
public void setProperty(PropertyId id, String value)
Définit la propriété par propertyId.
Parameters:
setProperty
public void setProperty(String name, String value)
Définit une propriété nommée comme valeur.
Parameters:
setSpeechRecognitionOutputFormat
public final void setSpeechRecognitionOutputFormat(OutputFormat value)
Définit le format de sortie de la reconnaissance vocale.
Parameters:
setSpeechSynthesisOutputFormat
public final void setSpeechSynthesisOutputFormat(SpeechSynthesisOutputFormat value)
Définit le format de sortie de synthèse vocale.
Parameters:
S’applique à
Azure SDK for Java
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour