HybridSpeechConfig Class
- java.
lang. Object - com.
microsoft. cognitiveservices. speech. HybridSpeechConfig
- com.
Implements
public final class HybridSpeechConfig
implements java.lang.AutoCloseable
Class that defines hybrid (cloud and embedded) configurations for speech recognition and speech synthesis. Note: close() must be called in order to release underlying resources held by the object.
Method Summary
Modifier and Type | Method and Description |
---|---|
final void |
close()
Dispose of associated resources. |
static final
Hybrid |
fromConfigs(SpeechConfig cloudSpeechConfig, EmbeddedSpeechConfig embeddedSpeechConfig)
Creates an instance of the hybrid speech config with specified cloud and embedded speech configs. |
Safe |
getImpl()
Returns a internal handle to Speech |
java.lang.String |
getProperty(PropertyId id)
Gets the property by property |
java.lang.String |
getProperty(String name)
Gets a named property as value. |
final
Output |
getSpeechRecognitionOutputFormat()
Gets the speech recognition output format. |
final java.lang.String |
getSpeechSynthesisOutputFormat()
Gets the speech synthesis output format. |
void |
setProperty(PropertyId id, String value)
Sets the property by property |
void |
setProperty(String name, String value)
Sets a named property as value. |
final void |
setSpeechRecognitionOutputFormat(OutputFormat value)
Sets the speech recognition output format. |
final void |
setSpeechSynthesisOutputFormat(SpeechSynthesisOutputFormat value)
Sets the speech synthesis output format. |
Methods inherited from java.lang.Object
Method Details
close
public final void close()
Dispose of associated resources.
fromConfigs
public static final HybridSpeechConfig fromConfigs(SpeechConfig cloudSpeechConfig, EmbeddedSpeechConfig embeddedSpeechConfig)
Creates an instance of the hybrid speech config with specified cloud and embedded speech configs.
Parameters:
Returns:
getImpl
public SafeHandle getImpl()
Returns a internal handle to SpeechConfig implementation.
Returns:
getProperty
public String getProperty(PropertyId id)
Gets the property by propertyId.
Parameters:
Returns:
getProperty
public String getProperty(String name)
Gets a named property as value.
Parameters:
Returns:
getSpeechRecognitionOutputFormat
public final OutputFormat getSpeechRecognitionOutputFormat()
Gets the speech recognition output format.
Returns:
getSpeechSynthesisOutputFormat
public final String getSpeechSynthesisOutputFormat()
Gets the speech synthesis output format.
Returns:
setProperty
public void setProperty(PropertyId id, String value)
Sets the property by propertyId.
Parameters:
setProperty
public void setProperty(String name, String value)
Sets a named property as value.
Parameters:
setSpeechRecognitionOutputFormat
public final void setSpeechRecognitionOutputFormat(OutputFormat value)
Sets the speech recognition output format.
Parameters:
setSpeechSynthesisOutputFormat
public final void setSpeechSynthesisOutputFormat(SpeechSynthesisOutputFormat value)
Sets the speech synthesis output format.
Parameters:
Applies to
Azure SDK for Java