Share via


ConsecutiveSilencesSpeechEventActivity.MaximumSilences Property

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Gets or sets the maximum number of consecutive silences that must occur for the event to be initiated.

Namespace: Microsoft.SpeechServer.Dialog
Assembly: Microsoft.SpeechServer (in microsoft.speechserver.dll)

Syntax

'Declaration
<GlobalizedCategoryAttribute("SpeechCategory")> _
<GlobalizedDescriptionAttribute("ConsecutiveSilencesSpeechEventActivity_MaximumSilences")> _
<DefaultValueAttribute(3)> _
Public Property MaximumSilences As Integer
[GlobalizedCategoryAttribute("SpeechCategory")] 
[GlobalizedDescriptionAttribute("ConsecutiveSilencesSpeechEventActivity_MaximumSilences")] 
[DefaultValueAttribute(3)] 
public int MaximumSilences { get; set; }

Property Value

The maximum number of consecutive silences that must occur for the event to be initiated. A value of 0 means that the event is not raised. The default value is 3.

Example

The following example creates a named ConsecutiveSilencesSpeechEventActivity instance and adds two activities to the Activities property on the instance. The example then sets MaximumSilences to 1 (the default value is 3) and sets the instance's Name property. Finally, the example adds the instance to the Activities property of the enclosing activity.

this.consecutiveSilences = new Microsoft.SpeechServer.Dialog.ConsecutiveSilencesSpeechEventActivity();
this.consecutiveSilences.Activities.Add(this.PlayBackToTheMainMenu);
this.consecutiveSilences.Activities.Add(this.ConsecutiveSilencesGoToMainMenu_QA);
this.consecutiveSilences.MaximumSilences = 1;
this.consecutiveSilences.Name = "ConsecutiveSilences";
this.OrderStatusSpeechEventsActivity.Activities.Add(this.consecutiveSilences);

Thread Safety

All public static (Shared in Visual Basic) members of this type are thread-safe. Instance members are not guaranteed to be thread-safe.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Vista Ultimate Edition, Windows Vista Business Edition, Windows Vista Enterprise Edition

Target Platforms

Windows Server 2003

See Also

Reference

ConsecutiveSilencesSpeechEventActivity Class
ConsecutiveSilencesSpeechEventActivity Members
Microsoft.SpeechServer.Dialog Namespace