Closed vinbala closed 2 years ago
Note - this is in the Telephony composer package. Per docs barge in docs we should be able to override composer setting by specifying a valid inputHint inside the prompt.
The doc reference two additional inputHint values: https://github.com/microsoft/botframework-telephony/blob/28ff59a78c5678b731b795d5bb4e54e9ac933f1b/BargeIn.md#inputhint-additions
I can only find the base three however in the inputHints.cs schema: https://github.com/microsoft/botbuilder-dotnet/blob/main/libraries/Microsoft.Bot.Schema/InputHints.cs
GitHubGitHub is where people build software. More than 83 million people use GitHub to discover, fork, and contribute to over 200 million projects.
GitHubWelcome to the Bot Framework SDK for .NET repository, which is the home for the libraries and packages that enable developers to build sophisticated bot applications using .NET. - botbuilder-dotne...
The InputHints field in JavaScript SDK side contains the same three constants as the .NET SDK:
export enum InputHints {
AcceptingInput = 'acceptingInput',
IgnoringInput = 'ignoringInput',
ExpectingInput = 'expectingInput',
}
public static class InputHints
{
/// <summary>
/// The hint value for accepting input.
/// </summary>
public const string AcceptingInput = "acceptingInput";
/// <summary>
/// The hint value for ignoring input.
/// </summary>
public const string IgnoringInput = "ignoringInput";
/// <summary>
/// The hint value for expecting input.
/// </summary>
public const string ExpectingInput = "expectingInput";
}
GitHubWelcome to the Bot Framework SDK for JavaScript repository, which is the home for the libraries and packages that enable developers to build sophisticated bot applications using JavaScript. - botb...
GitHubWelcome to the Bot Framework SDK for .NET repository, which is the home for the libraries and packages that enable developers to build sophisticated bot applications using .NET. - botbuilder-dotne...
@vinbala thanks for opening this issue, however, we are not prioritizing this work at this stage, closing.
The ignoringSpeechInput and ignoringNonSpeechInput InputHints do work, however they only apply for the duration of the message playback.
See the newly added FAQ's question: What are <break>
tags? Why are <break>
tags useful? for an example on how to combine <break>
tags with InputHints to achieve the desired result of only accepting DTMF or Speech Inputs
Bug
Bug: InputHint 'ignoringSpeechInput' and 'ignoringNonSpeechInput' is not working
Version
Bot Framework Composer Version: 2.1.2 Electron: 8.2.4 Chrome: 80.0.3987.165 NodeJS: 12.13.0 V8: 8.0.426.27-electron.0
To Reproduce
Has a speech prompt with InputHint = ignoringSpeechInput or InputHint = ignoringNonSpeechInput
Expected behavior
InputHint = ignoringSpeechInput --> This should disable speech input, all other inputs should be allowed. InputHint = ignoringNonSpeechInput --> This should disable all inputs other than speech.
Screenshots