Isn’t this already built into browsers? https://developer.mozilla.org/en-US/docs/Web/API/Web_Speech_...
Kokoro WebGPU: Real-time text-to-speech 100% locally in the browser
41–50 of 56 posts
Re: Kokoro WebGPU: Real-time text-to-speech 100% locally in the browser
#42Re: Kokoro WebGPU: Real-time text-to-speech 100% locally in the browser
#43Isn’t this already built into browsers? https://developer.mozilla.org/en-US/docs/Web/API/Web_Speech_...
WebGPU actually generates the speech entirely in the browser. Web Speech is great too, but less practical if the model is complicated to set up and integrate with the speech API on the host.
Re: Kokoro WebGPU: Real-time text-to-speech 100% locally in the browser
#44Re: Kokoro WebGPU: Real-time text-to-speech 100% locally in the browser
#45Earlier quoted context omitted.
WebGPU actually generates the speech entirely in the browser. Web Speech is great too, but less practical if the model is complicated to set up and integrate with the speech API on the host.
I don’t understand. From what I can tell, it’s natively supported on all modern browsers and on Windows, Macs, iOS and Android
Re: Kokoro WebGPU: Real-time text-to-speech 100% locally in the browser
#46Earlier quoted context omitted.
I don’t understand. From what I can tell, it’s natively supported on all modern browsers and on Windows, Macs, iOS and Android
The implementation of the Web Speech API usually involves the specific browser vendor calling out to their own, proprietary, cloud-based TTS APIs. I say "usually" because, for a time, Microsoft used their local Windows Speech API in Edge, but I believe they've stopped that and have largely deprecated Windows Speech for Azure Speech even at the OS level.
You could do text to speech on a 1Mhz Apple //e using the 1 bit speaker back in the 80s (software automated mouth) and MacinTalk was built into the Mac in 1984. I know it’s built into both the Mac and iOS devices and run off line.
But I do see how cross platform browsers like Firefox would want a built in solution that doesn’t depend on the vendor.
Re: Kokoro WebGPU: Real-time text-to-speech 100% locally in the browser
#47Earlier quoted context omitted.
The implementation of the Web Speech API usually involves the specific browser vendor calling out to their own, proprietary, cloud-based TTS APIs. I say "usually" because, for a time, Microsoft used their local Windows Speech API in Edge, but I believe they've stopped that and have largely deprecated Windows Speech for Azure Speech even at the OS level.
Just to be clear, are you really saying that speech with text to speech is server hosted and not on device for Windows? You could do text to speech on a 1Mhz Apple //e using the 1 bit speaker back in the 80s (software automated mouth) and MacinTalk was built into the Mac in 1984. I know it’s built into both the Mac and iOS devices and run off line. But I do see how cross platform browsers like Firefox would want a bu…
Firefox on Windows is one such application that still uses SAPI. I don't know what uses does on other operating systems. Like, on Android, I imagine it uses whatever is the built-in OS TTS API, which likely goes through Google Cloud.
But anything that sounds at all natural, from any of the OS or browser vendors, is going through some cloud TTS API now.
Re: Kokoro WebGPU: Real-time text-to-speech 100% locally in the browser
#48Re: Kokoro WebGPU: Real-time text-to-speech 100% locally in the browser
#49Sounds terrible on Chrome with an AMD 5700XT. Sounds great on Chrome with an Nvidia 1650Ti. Sounds great on Chrome on a Pixel 6. Sound like being bitcrushed. Maybe a 64 vs 32 bit error? Solid results when working.
Edit: Sorry, it was a problem of my specific audio setup, it works equally well on Chromium.
Re: Kokoro WebGPU: Real-time text-to-speech 100% locally in the browser
#50Earlier quoted context omitted.
This is brilliant. All we need now is for someone to code a frontend for it so we can input an article's URL and have this voice read it out loud... built-in local voices on MacOS are not even close to this Kokoro model
There are a few already, I assume MacWhisper will add it. That being said, I am also working on a (crossplatform, in Flutter) UI for this.
Here I'm talking about the model shared in this thread, which is text-to-speech (reading out loud content from the web)