Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
DtmfRecognitionEngine.SetTerminationTone Method
Sets a DTMF tone that will terminate DTMF recognition immediately.
Namespace: Microsoft.Speech.Recognition
Assembly: Microsoft.Speech (in Microsoft.Speech.dll)
Syntax
'Declaration
Public Sub SetTerminationTone ( _
tone As DtmfTone _
)
'Usage
Dim instance As DtmfRecognitionEngine
Dim tone As DtmfTone
instance.SetTerminationTone(tone)
public void SetTerminationTone(
DtmfTone tone
)
Parameters
- tone
Type: Microsoft.Speech.Recognition.DtmfTone
Remarks
A typical use of SetTerminationTone(DtmfTone) would set Hash (the symbol #, also known as the pound sign) as the termination tone. Using this setting, an application could issue the prompt "Please enter your PIN, followed by the pound sign".