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

feat: Enable voice input using WebSpeech API #114

Merged
merged 6 commits into from
Nov 9, 2023

Conversation

shibbas
Copy link
Contributor

@shibbas shibbas commented Nov 8, 2023

Purpose

Enables voice chat input using WebSpeechAPI https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition

Does this introduce a breaking change?

[ ] Yes
[X] No

Pull Request Type

What kind of change does this Pull Request introduce?

[ ] Bugfix
[X] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

How to Test

  • Get the code
git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
npm install
  • Test the code
cd packages\chat-component
npm run start

What to Check

Verify that the following are valid

  • Voice button is visible next to chat submit button
  • Records and updates chat input using voice on click.
  • On click, changes colors to indicate recording.
  • Stop listening on clicking again.

Other Information

Some browsers do not support this API. https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition#browser_compatibility

@shibbas
Copy link
Contributor Author

shibbas commented Nov 8, 2023

Addresses Issue #9

@manekinekko manekinekko self-requested a review November 8, 2023 12:00
@shibbas shibbas force-pushed the feat/voice-commands branch from f91ab05 to 2f93d19 Compare November 8, 2023 16:02
@shibbas shibbas marked this pull request as draft November 8, 2023 18:33
@shibbas shibbas force-pushed the feat/voice-commands branch from 2f93d19 to 1a4794d Compare November 8, 2023 22:11
@shibbas shibbas marked this pull request as ready for review November 8, 2023 22:13
@anfibiacreativa anfibiacreativa merged commit fb0bb3c into main Nov 9, 2023
5 checks passed
@sinedied sinedied deleted the feat/voice-commands branch February 29, 2024 08:22
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

Successfully merging this pull request may close these issues.

3 participants