Skip to content

[BUG] InitialSilenceTimeout is ignored when InterruptPrompt is enabled #45842

Open
@defunky

Description

@defunky

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    ClientThis issue points to a problem in the data-plane of the library.CommunicationService AttentionWorkflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions