Class VoiceProperties
Holds the voice.properties in a Properties class.
Implements
Inherited Members
Namespace: ivrToolkit.Core.Util
Assembly: ivrToolkit.Core.dll
Syntax
public class VoiceProperties : Properties, IDisposable
Constructors
| Edit this page View SourceVoiceProperties(ILoggerFactory)
Construct a VoiceProperties object without a text file for the defaults.
Declaration
public VoiceProperties(ILoggerFactory loggerFactory)
Parameters
| Type | Name | Description |
|---|---|---|
| ILoggerFactory | loggerFactory |
VoiceProperties(ILoggerFactory, string)
Constructs a VoiceProperties object given the text file that contains the definitions.
Declaration
protected VoiceProperties(ILoggerFactory loggerFactory, string fileName)
Parameters
| Type | Name | Description |
|---|---|---|
| ILoggerFactory | loggerFactory | |
| string | fileName | The text file that contains the definitions |
Properties
| Edit this page View SourceAnsweringMachineEndSpeechSilenceDurationSeconds
The amount of time between spoken words in seconds. Used to calculate when the person on the call stops speaking. This will be used to calculate the duration of the greeting. Default is 1.5 seconds.
Declaration
public double AnsweringMachineEndSpeechSilenceDurationSeconds { get; init; }
Property Value
| Type | Description |
|---|---|
| double |
AnsweringMachineGiveUpAfterSeconds
The amount of time before the answering machine calculation gives up in seconds. Default is 10.0 seconds. This could happen if the user rambles on and on. I think this is unlikely but there needs to be a time to stop.
Declaration
public double AnsweringMachineGiveUpAfterSeconds { get; init; }
Property Value
| Type | Description |
|---|---|
| double |
AnsweringMachineMaxStartSilenceSeconds
The maximum amount of time to wait for speech to begin in seconds. Default is 3.0 seconds. After which, the software will give up waiting for speech to happen and just return call analysis as connected.
Declaration
public double AnsweringMachineMaxStartSilenceSeconds { get; init; }
Property Value
| Type | Description |
|---|---|
| double |
AnsweringMachineSilenceThresholdAmplitude
The silence threshold amplitude. The higher the number the more sound it thinks is background noise and should be considered silence. Default is 0.1
Declaration
public float AnsweringMachineSilenceThresholdAmplitude { get; init; }
Property Value
| Type | Description |
|---|---|
| float |
DefaultWavSampleRate
The default wav sample rate to use when writing out wav files with TTS. 8000 or 16000 only. Default is 8000
Declaration
public int DefaultWavSampleRate { get; init; }
Property Value
| Type | Description |
|---|---|
| int |
DigitsTimeoutInMilli
Number of milliseconds between keypress before it considers it to be a prompt attempt. Default is '5000'.
Declaration
public int DigitsTimeoutInMilli { get; init; }
Property Value
| Type | Description |
|---|---|
| int |
PromptAttempts
Total number of attempts to try at a prompt before 'TooManyAttemptsException' is thrown. Default is '99'.
Declaration
public int PromptAttempts { get; init; }
Property Value
| Type | Description |
|---|---|
| int |
PromptBlankAttempts
Number of blank entry attempts to try at a prompt before 'TooManyAttemptsException' is thrown. Default is '5'.
Declaration
public int PromptBlankAttempts { get; init; }
Property Value
| Type | Description |
|---|---|
| int |
SystemRecordingSubfolder
The sub-folder location under "System Recordings" that contains the system recordings. Current options are "Original" or "en-US-JennyNeural"
Declaration
public string SystemRecordingSubfolder { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
TtsAzureRegion
The region for Azure Text-To-Speech
Declaration
public string TtsAzureRegion { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
TtsAzureSubscriptionKey
The subscription key for Azure Text-To-Speech
Declaration
public string TtsAzureSubscriptionKey { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
TtsAzureVoice
The region for Azure Text-To-Speech
Declaration
public string TtsAzureVoice { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
TtsGoogleApplicationCredentialsPath
The Google application credentials path for use with TTS
Declaration
public string TtsGoogleApplicationCredentialsPath { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
TtsGoogleGender
Declaration
public SsmlVoiceGender TtsGoogleGender { get; init; }
Property Value
| Type | Description |
|---|---|
| SsmlVoiceGender |
TtsGoogleLanguageCode
Declaration
public string TtsGoogleLanguageCode { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
TtsGoogleName
Declaration
public string TtsGoogleName { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
| Edit this page View SourceDispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()