Description
Library name and version
Azure.Communication.CallAutomation 1.2.0
Describe the bug
When using CallMediaRecognizeChoiceOptions
and setting the InterruptPrompt
property to true, the InitialSilenceTimeout
value appears to be ignored. Regardless of the configured duration for InitialSilenceTimeout
, it consistently defaults to approximately 2 seconds. This issue persists even when InitialSilenceTimeout
is not explicitly set, where it should default to 5 seconds. No user interaction is triggering the prompt to be interrupted.
However, when InterruptPrompt
is disabled, the InitialSilenceTimeout
functions as expected, adhering to the specified duration.
Expected behavior
The InitialSilenceTimeout
should adhere to the configured value or default to 5 seconds if not specified.
Actual behavior
The InitialSilenceTimeout
defaults to approximately 2 seconds, regardless of configuration.
Reproduction Steps
var result = await callMedia.StartRecognizingAsync(
new CallMediaRecognizeChoiceOptions(new PhoneNumberIdentifier(phoneNumber), Choices)
{
InterruptCallMediaOperation = false,
InterruptPrompt = true,
InitialSilenceTimeout = TimeSpan.FromSeconds(5),
Prompt = new TextSource($"Hello, this is a test message there should be a 10 second pause at end of this message")
{
VoiceName = "GB-OliviaNeural"
},
OperationContext = operationContext
});
Environment
No response