EmbeddedSpeechConfig Classe
- java.
lang. Object - com.
microsoft. cognitiveservices. speech. EmbeddedSpeechConfig
- com.
Implémente
public final class EmbeddedSpeechConfig
implements java.lang.AutoCloseable
Classe qui définit la configuration vocale incorporée (hors connexion). 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
Embedded |
fromPath(String path)
Crée une instance de la configuration vocale incorporée avec un chemin de modèle hors connexion spécifié. |
static final
Embedded |
fromPaths(List<String> paths)
Crée un instance de la configuration vocale incorporée avec des chemins de modèle hors connexion spécifiés. |
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 java.lang.String |
getSpeechRecognitionModelName()
Obtient le nom du modèle pour la reconnaissance vocale. |
final
java.util.List<Speech |
getSpeechRecognitionModels()
Obtient la liste des modèles de reconnaissance vocale disponibles. |
final
Output |
getSpeechRecognitionOutputFormat()
Obtient le format de sortie de la reconnaissance vocale incorporée. |
final java.lang.String |
getSpeechSynthesisOutputFormat()
Obtient le format de sortie de synthèse vocale incorporée. |
final java.lang.String |
getSpeechSynthesisVoiceName()
Obtient le nom de la voix pour la synthèse vocale incorporée. |
final java.lang.String |
getSpeechTranslationModelName()
Obtient le nom du modèle pour la traduction vocale. |
final
java.util.List<Speech |
getSpeechTranslationModels()
Obtient la liste des modèles de traduction vocale disponibles. |
final void |
setProfanity(ProfanityOption value)
Définit l’option blasphème. |
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 |
setSpeechRecognitionModel(String name, String key)
Définit le modèle pour la reconnaissance vocale. |
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 incorporée. |
final void |
setSpeechSynthesisVoice(String name, String key)
Définit la voix pour la synthèse vocale. |
final void |
setSpeechTranslationModel(String name, String key)
Définit le modèle pour la traduction 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.
fromPath
public static final EmbeddedSpeechConfig fromPath(String path)
Crée une instance de la configuration vocale incorporée avec un chemin de modèle hors connexion spécifié.
Parameters:
Returns:
fromPaths
public static final EmbeddedSpeechConfig fromPaths(List
Crée un instance de la configuration vocale incorporée avec des chemins de modèle hors connexion spécifiés.
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:
getSpeechRecognitionModelName
public final String getSpeechRecognitionModelName()
Obtient le nom du modèle pour la reconnaissance vocale.
Returns:
getSpeechRecognitionModels
public final List
Obtient la liste des modèles de reconnaissance vocale disponibles.
Returns:
getSpeechRecognitionOutputFormat
public final OutputFormat getSpeechRecognitionOutputFormat()
Obtient le format de sortie de la reconnaissance vocale incorporée.
Returns:
getSpeechSynthesisOutputFormat
public final String getSpeechSynthesisOutputFormat()
Obtient le format de sortie de synthèse vocale incorporée.
Returns:
getSpeechSynthesisVoiceName
public final String getSpeechSynthesisVoiceName()
Obtient le nom de la voix pour la synthèse vocale incorporée.
Returns:
getSpeechTranslationModelName
public final String getSpeechTranslationModelName()
Obtient le nom du modèle pour la traduction vocale.
Returns:
getSpeechTranslationModels
public final List
Obtient la liste des modèles de traduction vocale disponibles.
Returns:
setProfanity
public final void setProfanity(ProfanityOption value)
Définit l’option blasphème. Cela peut être utilisé pour supprimer les mots profanes ou les masquer dans la sortie.
Parameters:
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:
setSpeechRecognitionModel
public final void setSpeechRecognitionModel(String name, String key)
Définit le modèle pour la reconnaissance vocale.
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 incorporée.
Parameters:
setSpeechSynthesisVoice
public final void setSpeechSynthesisVoice(String name, String key)
Définit la voix pour la synthèse vocale.
Parameters:
setSpeechTranslationModel
public final void setSpeechTranslationModel(String name, String key)
Définit le modèle pour la traduction 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