DetectAnsweringMachineActivity.Grammar 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 the grammar to use to distinguish a human from an answering machine.

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

Syntax

'Declaration
<ReadOnlyAttribute(True)> _
<TypeConverterAttribute("Microsoft.SpeechServer.Authoring.DialogDesigner.EditFromCodeBesideStringConverter, Microsoft.SpeechServer.Authoring.DialogDesigner, Version=2.0.3400.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")> _
<GlobalizedCategoryAttribute("SpeechCategory")> _
<DefaultValueAttribute(Nothing)> _
<GlobalizedDescriptionAttribute("DetectAnsweringMachineActivity_Grammar")> _
Public Property Grammar As Grammar
[ReadOnlyAttribute(true)] 
[TypeConverterAttribute("Microsoft.SpeechServer.Authoring.DialogDesigner.EditFromCodeBesideStringConverter, Microsoft.SpeechServer.Authoring.DialogDesigner, Version=2.0.3400.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")] 
[GlobalizedCategoryAttribute("SpeechCategory")] 
[DefaultValueAttribute(null)] 
[GlobalizedDescriptionAttribute("DetectAnsweringMachineActivity_Grammar")] 
public Grammar Grammar { get; set; }

Property Value

The Grammar to use to distinguish humans from answering machines.

Remarks

The grammar referred to by this property is used only if DetectAnsweringMachineActivity cannot determine whether the answering entity is a human or an answering machine based on the duration of the utterance.

A grammar provided by an author must ensure that the grammar returns a Rule Name property named DetectedEntity that is set to one of the following semantic values to distinguish an answering machine from a human. For more information, see Create the Detection Grammar in Walkthrough: Detect an Answering Machine.

  • ANSWERING_MACHINE_RESPONSE

  • LIVE_PERSON_RESPONSE

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

DetectAnsweringMachineActivity Class
DetectAnsweringMachineActivity Members
Microsoft.SpeechServer.Dialog Namespace
Grammar