@Generated(value="OracleSDKGenerator", comments="API Version: 20220101") public final class RealtimeParameters extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Parameters to be sent to the realtime speech service over a websocket connection.
Note: Objects should always be created or deserialized using the RealtimeParameters.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the RealtimeParameters.Builder
, which maintain a
set of all explicitly set fields called RealtimeParameters.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
RealtimeParameters.Builder |
static class |
RealtimeParameters.ModelDomain
Model Domain.
|
static class |
RealtimeParameters.StabilizePartialResults
When enabled sets the amount of confidence required for latest tokens before returning them
as part of a new partial result
|
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
RealtimeParameters(String encoding,
Boolean isAckEnabled,
Integer partialSilenceThresholdInMs,
Integer finalSilenceThresholdInMs,
RealtimeParameters.StabilizePartialResults stabilizePartialResults,
RealtimeParameters.ModelDomain modelDomain,
String languageCode,
Boolean shouldIgnoreInvalidCustomizations,
List<CustomizationInference> customizations)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static RealtimeParameters.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
List<CustomizationInference> |
getCustomizations()
Array of customization objects.
|
String |
getEncoding()
Audio encoding to use - audio/raw;rate=16000 - audio/raw;rate=8000 -
audio/raw;rate=8000;codec=mulaw - audio/raw;rate=8000;codec=alaw
|
Integer |
getFinalSilenceThresholdInMs()
Silence threshold for Realtime Speech final results in milliseconds.
|
Boolean |
getIsAckEnabled()
Toggle for ack messages.
|
String |
getLanguageCode()
Locale value as per given in [https://datatracker.ietf.org/doc/html/rfc5646].
|
RealtimeParameters.ModelDomain |
getModelDomain()
Model Domain.
|
Integer |
getPartialSilenceThresholdInMs()
Silence threshold for Realtime Speech partial results in milliseconds.
|
Boolean |
getShouldIgnoreInvalidCustomizations()
If set to true, the service will not fail connection attempt if it encounters any issues that
prevent the loading of all specified user customizations.
|
RealtimeParameters.StabilizePartialResults |
getStabilizePartialResults()
When enabled sets the amount of confidence required for latest tokens before returning them
as part of a new partial result
|
int |
hashCode() |
RealtimeParameters.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"encoding","isAckEnabled","partialSilenceThresholdInMs","finalSilenceThresholdInMs","stabilizePartialResults","modelDomain","languageCode","shouldIgnoreInvalidCustomizations","customizations"}) public RealtimeParameters(String encoding, Boolean isAckEnabled, Integer partialSilenceThresholdInMs, Integer finalSilenceThresholdInMs, RealtimeParameters.StabilizePartialResults stabilizePartialResults, RealtimeParameters.ModelDomain modelDomain, String languageCode, Boolean shouldIgnoreInvalidCustomizations, List<CustomizationInference> customizations)
public static RealtimeParameters.Builder builder()
Create a new builder.
public RealtimeParameters.Builder toBuilder()
public String getEncoding()
Audio encoding to use - audio/raw;rate=16000 - audio/raw;rate=8000 - audio/raw;rate=8000;codec=mulaw - audio/raw;rate=8000;codec=alaw
public Boolean getIsAckEnabled()
Toggle for ack messages.
public Integer getPartialSilenceThresholdInMs()
Silence threshold for Realtime Speech partial results in milliseconds.
public Integer getFinalSilenceThresholdInMs()
Silence threshold for Realtime Speech final results in milliseconds.
public RealtimeParameters.StabilizePartialResults getStabilizePartialResults()
When enabled sets the amount of confidence required for latest tokens before returning them as part of a new partial result
public RealtimeParameters.ModelDomain getModelDomain()
Model Domain.
public String getLanguageCode()
Locale value as per given in [https://datatracker.ietf.org/doc/html/rfc5646]. - en-US: English - United States - es-ES: Spanish - Spain - pt-BR: Portuguese - Brazil - en-GB: English - Great Britain - en-AU: English - Australia - en-IN: English - India - hi-IN: Hindi
public Boolean getShouldIgnoreInvalidCustomizations()
If set to true, the service will not fail connection attempt if it encounters any issues that prevent the loading of all specified user customizations. Any invalid customizations will simply be ignored and connection will continue being established with the default base model and any remaining valid customizations. If set to false, if the service is unable to load any of the specified customizations, an error detailing why will be returned and the session will end.
public List<CustomizationInference> getCustomizations()
Array of customization objects.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.