This is a simple Chrome extension that shows how Speechly enables easily filtering products by voice. Speechly configuration for the app can be found in speechly_config.sal.
Built with:
You can easily set it up locally to your Chrome browser.
Speechly is a developer tool for building real-time multimodal voice user interfaces. It enables developers and designers to enhance their current touch user interface with voice functionalities for better user experience. Speechly key features:
- Fully streaming API
- Multi modal from the ground up
- Easy to configure for any use case
- Fast to integrate to any touch screen application
- Supports natural corrections such as "Show me red – i mean blue t-shirts"
- Real time visual feedback encourages users to go on with their voice
You can refer to our React client example to build something like this on React.
Install the extension either from Chrome Web Store or by following these steps.
After installation you can find the Speechly icon next to URL bar:
Go to ASOS and navigate 'Men' or 'Women' -> 'New in' -> 'View all'. Click the Speechly icon to open a small popup with the microphone. Speak aload your command while pressing the mic. You can see the transcript of your speech below the mic.
If you use the code as it is and the default SAL configuration speechly_config.sal, you can test it by saying for example
- filter the products from puma
- filter the medium sizes
- filter the orange colour
- node + npm (Current Version)
Install dependencies.
npm install
Build the extension to dist
directory
npm run build
Build in watch mode
npm run watch
Test npm run test
- Clone the repository locally
- Run
mv .env.local .env
and add your Speechly app id to .env file - Run
npm run build
to build the Chrome extension. Nowdist/
should contain the extension. - Navigate to
chrome://extensions
in your chrome browser. Expand the Developer dropdown menu and click "Load Unpacked Extension" 5xw. Choose thedist
directory and click Ok