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

Speech Recognition #1487

Merged
merged 5 commits into from
Jul 28, 2021
Merged

Speech Recognition #1487

merged 5 commits into from
Jul 28, 2021

Conversation

cea2aj
Copy link
Member

@cea2aj cea2aj commented Jul 27, 2021

Add speech recognition functionality

cea2aj and others added 5 commits July 23, 2021 10:04
I reorganized the voice search icon logic to clean things up

I also noticed a bug when both the mic and the listening icon are custom. The styling changes fix that bug

J=none
TEST=manual

Test that the voice icon works and that all combinations of custom icons works as well
Update the listening icon with the new animation from UX

J=SLAP-1442
TEST=manual

See that the listening icon is animated when in the listening state
Add speech recognition functionality to the searchbar

This PR includes:
- Connecting the speech recognizer to the voice search button
- Adding analytics for clicking on the voice search button which includes not sending the queryId for the voice search analytics
- Checking that `navigator.mediaDevices` exists so that the search bar will hide on Edge without HTTPs
- Update the autocomplete component to know when voice search is active. This allows the autocomplete dropdown to appear while voice search is active
- Add `submitVoiceSearch()` to the search bar so that a search can be made with the VOICE_SEARCH query trigger

J=SLAP-1444
TEST=manual

Test speech recognition on Chrome, Safari, and Edge. Firefox is not supported. Note: The site must be on HTTPS for Edge to work.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.6%) to 59.147% when pulling 6db4e12 on feature/speech-recognition into 5daf975 on develop.

@cea2aj cea2aj merged commit 4062ace into develop Jul 28, 2021
@cea2aj cea2aj deleted the feature/speech-recognition branch July 28, 2021 15:36
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.

2 participants