libertymutual / chatpickle

Conversation Tests for Chatbots
Apache License 2.0
10 stars 6 forks source link

voice tests #44

Open jamesmcneill opened 3 years ago

jamesmcneill commented 3 years ago

Currently chatpickle supports postText. Could this be expanded to postContent as well, this would allow posting voice to lex.

arsena commented 3 years ago

Good idea. https://docs.aws.amazon.com/lex/latest/dg/API_runtime_PostContent.html

Two ways that this could become part of chatpickle.

  1. Create a Lex client that uses postContent for all conversational steps like User: This would get converted to audio before posted to lex
  2. Add a step definition like Given its a voice channel, and that might change how we test what was returned, if a string is returned, great chatpickle already asserts the expected string, but if its audio that comes back, that would be a fun area to explore how we would verify an audio file is accurate.
arsena commented 3 years ago

@taylor-lapointe fyi

reddyharsha commented 3 years ago

I forked the repo and am working on this issue. Pull request will follow soon.

reddyharsha commented 3 years ago

Here's the pull request. https://github.com/libertymutual/chatpickle/pull/46.

seckinarsoy commented 2 years ago

I'm working on testing this locally.