Partager via


HybridSpeechConfig Classe

  • java.lang.Object
    • com.microsoft.cognitiveservices.speech.HybridSpeechConfig

Implémente

java.lang.AutoCloseable

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 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.

SafeHandle getImpl()

Retourne un handle interne à l’implémentation speechConfig.

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 OutputFormat 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

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

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:

cloudSpeechConfig - Configuration de la voix cloud.
embeddedSpeechConfig - Configuration vocale incorporée.

Returns:

Une configuration vocale hybride instance.

getImpl

public SafeHandle getImpl()

Retourne un handle interne à l’implémentation SpeechConfig.

Returns:

Handle d’implémentation.

getProperty

public String getProperty(PropertyId id)

Obtient la propriété par propertyId.

Parameters:

id - PropertyId de la propriété.

Returns:

La valeur.

getProperty

public String getProperty(String name)

Obtient une propriété nommée en tant que valeur.

Parameters:

name - nom de la propriété.

Returns:

La valeur.

getSpeechRecognitionOutputFormat

public final OutputFormat getSpeechRecognitionOutputFormat()

Obtient le format de sortie de reconnaissance vocale.

Returns:

Format de sortie de reconnaissance.

getSpeechSynthesisOutputFormat

public final String getSpeechSynthesisOutputFormat()

Obtient le format de sortie de synthèse vocale.

Returns:

Retourne le format de sortie de synthèse.

setProperty

public void setProperty(PropertyId id, String value)

Définit la propriété par propertyId.

Parameters:

id - PropertyId de la propriété.
value - La valeur.

setProperty

public void setProperty(String name, String value)

Définit une propriété nommée comme valeur.

Parameters:

name - nom de la propriété.
value - valeur.

setSpeechRecognitionOutputFormat

public final void setSpeechRecognitionOutputFormat(OutputFormat value)

Définit le format de sortie de la reconnaissance vocale.

Parameters:

value - Format de sortie de reconnaissance.

setSpeechSynthesisOutputFormat

public final void setSpeechSynthesisOutputFormat(SpeechSynthesisOutputFormat value)

Définit le format de sortie de synthèse vocale.

Parameters:

value - ID du format de sortie de synthèse (par exemple, Riff16Khz16BitMonoPcm).

S’applique à