Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow user silent response #42

Open
dtbell99 opened this issue Jun 1, 2021 · 4 comments
Open

Allow user silent response #42

dtbell99 opened this issue Jun 1, 2021 · 4 comments

Comments

@dtbell99
Copy link

dtbell99 commented Jun 1, 2021

Is it possible to get ChatPickle to allow a silent response from the user? Suggestion below passing to response with silence to bot.

bot: what can I help you with?
user:
bot: I didn't get that, what can I help you with?

@arsena
Copy link
Member

arsena commented Jun 1, 2021 via email

@dtbell99
Copy link
Author

dtbell99 commented Jun 1, 2021

It appears inputText must have a length of 1. The only thing I see that may be researched could be x-amz-lex:start-silence-threshold-ms and set it to zero and possibly x-amz-lex:end-silence-threshold-ms to also be zero. Then post to it with those and see if it responds with the expected result. Both of these are session attributes which can be passed in the postText json body.

@arsena
Copy link
Member

arsena commented Jun 18, 2021

This also might be possible if we implement voice... see this discussion starting here. #44

@dtbell99
Copy link
Author

dtbell99 commented Jun 18, 2021

I was not aware of the postContent functionality. May be an opportunity to tie into Polly to generate the audio and then post it and perhaps even save the utterances in a file so if you already have a "Yes" or a "Pay my Bill" it would map that utterance to a audio file "audiofile1.mp3" in a local json config so it only goes to polly each time you have a new utterance. This would not be efficient in a pipeline unless you had control of the storage but a really nifty innovation to this library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants