Class RealtimeParameters
Parameters to be sent to the realtime speech service over a websocket connection.
Inherited Members
Namespace: Oci.AispeechService.Models
Assembly: OCI.DotNetSDK.Aispeech.dll
Syntax
public class RealtimeParameters
Properties
Customizations
Declaration
[JsonProperty(PropertyName = "customizations")]
public List<CustomizationInference> Customizations { get; set; }
Property Value
| Type | Description |
|---|---|
| List<CustomizationInference> | Array of customization objects. Currently supported only for Oracle model. |
Encoding
Declaration
[JsonProperty(PropertyName = "encoding")]
public string Encoding { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Audio encoding to use
|
FinalSilenceThresholdInMs
Declaration
[JsonProperty(PropertyName = "finalSilenceThresholdInMs")]
public int? FinalSilenceThresholdInMs { get; set; }
Property Value
| Type | Description |
|---|---|
| int? | Silence threshold for Realtime Speech final results in milliseconds. Currently supported only for Oracle model. |
IsAckEnabled
Declaration
[JsonProperty(PropertyName = "isAckEnabled")]
public bool? IsAckEnabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? | Toggle for ack messages. |
LanguageCode
Declaration
[JsonProperty(PropertyName = "languageCode")]
public string LanguageCode { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Oracle model supported language codes are locale specific. Locale value as per given in [https://datatracker.ietf.org/doc/html/rfc5646]
|
ModelDomain
Declaration
[JsonProperty(PropertyName = "modelDomain")]
[JsonConverter(typeof(StringEnumConverter))]
public RealtimeParameters.ModelDomainEnum? ModelDomain { get; set; }
Property Value
| Type | Description |
|---|---|
| RealtimeParameters.ModelDomainEnum? | Model Domain. |
ModelType
Declaration
[JsonProperty(PropertyName = "modelType")]
public string ModelType { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Select a model to use for generating transcriptions. Currently supported models are:
|
PartialSilenceThresholdInMs
Declaration
[JsonProperty(PropertyName = "partialSilenceThresholdInMs")]
public int? PartialSilenceThresholdInMs { get; set; }
Property Value
| Type | Description |
|---|---|
| int? | Silence threshold for Realtime Speech partial results in milliseconds. Currently supported only for Oracle model. |
Punctuation
Declaration
[JsonProperty(PropertyName = "punctuation")]
[JsonConverter(typeof(StringEnumConverter))]
public RealtimeParameters.PunctuationEnum? Punctuation { get; set; }
Property Value
| Type | Description |
|---|---|
| RealtimeParameters.PunctuationEnum? | Configure punctuations in the generated transcriptions. Disabled by default.
|
ShouldIgnoreInvalidCustomizations
Declaration
[JsonProperty(PropertyName = "shouldIgnoreInvalidCustomizations")]
public bool? ShouldIgnoreInvalidCustomizations { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? | 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. Currently supported only for Oracle model. |
StabilizePartialResults
Declaration
[JsonProperty(PropertyName = "stabilizePartialResults")]
[JsonConverter(typeof(StringEnumConverter))]
public RealtimeParameters.StabilizePartialResultsEnum? StabilizePartialResults { get; set; }
Property Value
| Type | Description |
|---|---|
| RealtimeParameters.StabilizePartialResultsEnum? | When enabled sets the amount of confidence required for latest tokens before returning them as part of a new partial result Currently supported only for Oracle model. |