To implement a voice search, please refer to this guide for more information: https://www.algolia.com/doc/guides/solutions/ecommerce/voice-search/
If you are already using InstantSearch, we have a voiceSearch widget: https://www.algolia.com/doc/api-reference/widgets/voice-search/js/ that you can utilize to implement the UI.