NavigableListActivity.InitialSilenceTimeout 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 length of silent time before the start of a user's utterance.
Namespace: Microsoft.SpeechServer.Dialog
Assembly: Microsoft.SpeechServer (in microsoft.speechserver.dll)
Syntax
'Declaration
<DefaultValueAttribute(GetType(TimeSpan), "00:00:03")> _
<GlobalizedCategoryAttribute("SpeechCategory")> _
<GlobalizedDescriptionAttribute("DialogActivityCommon_InitialSilenceTimeout")> _
<TypeConverterAttribute("Microsoft.SpeechServer.Authoring.DialogDesigner.ShortTimeSpanConverter, Microsoft.SpeechServer.Authoring.DialogDesigner, Version=2.0.3400.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")> _
Public Property InitialSilenceTimeout As TimeSpan
[DefaultValueAttribute(typeof(TimeSpan), "00:00:03")]
[GlobalizedCategoryAttribute("SpeechCategory")]
[GlobalizedDescriptionAttribute("DialogActivityCommon_InitialSilenceTimeout")]
[TypeConverterAttribute("Microsoft.SpeechServer.Authoring.DialogDesigner.ShortTimeSpanConverter, Microsoft.SpeechServer.Authoring.DialogDesigner, Version=2.0.3400.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")]
public TimeSpan InitialSilenceTimeout { get; set; }
Property Value
The length of silent time before the start of a user's utterance. The default value is 1.5 seconds.
Exceptions
Exception type | Condition |
---|---|
ArgumentOutOfRangeException | An attempt is made to set InitialSilenceTimeout to a value less than System.TimeSpan.Zero. |
Example
The following example creates a NavigableListActivity instance named browseCities and sets a number of properties on the instance. In the highlighted line of code, InitialSilenceTimeout is set to 1.5 seconds.
this.browseCities = new Microsoft.SpeechServer.Dialog.NavigableListActivity();
this.browseCities.CanBargeIn = true;
this.browseCities.ConfirmationThreshold = 1F;
this.browseCities.CurrentItem = null;
this.browseCities.DataField = "";
this.browseCities.DataMember = "";
this.browseCities.DataSource = null;
this.browseCities.CompleteTimeout = System.TimeSpan.Parse("00:00:01.5000000");
this.browseCities.InitialSilenceTimeout = System.TimeSpan.Parse("00:00:01.5000000");
this.browseCities.Name = "browseCities";
this.browseCities.UseDefaultGrammars = true;
this.browseCities.ConfirmationTurnStarting += new System.EventHandler<Microsoft.SpeechServer.Dialog.TurnStartingEventArgs>(this.browseCities_ConfirmationTurnStarting);
this.browseCities.TurnStarting += new System.EventHandler<Microsoft.SpeechServer.Dialog.SelectionTurnStartingEventArgs>(this.browseCities_TurnStarting);
this.Activities.Add(this.browseCities);
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
NavigableListActivity Class
NavigableListActivity Members
Microsoft.SpeechServer.Dialog Namespace
NavigableListActivity.CompleteTimeout Property
NavigableListActivity.InitialSilenceTimeoutProperty Field