Here is the Talk2Svelte library repository. It also contains this demo app full code.
Add a star on the GitHub repository if you like it!
The Web Speech API is not supported by all browsers (for example, it is not supported by Firefox or Edge), have a look to the current support status.
Also, on non-Chrome Chromium based browsers, the speech recognition might not work as expected (for example on Brave).