It depends on the browser tbh. I think chrome has their own AI stuff (idk i don't use chrome) but I know firefox has their own local AI interface that uses OS level HW acceleration.

And I think non-extension JS can access it as well but im not sure.

blog.mozilla.org/en/firefox/firefox-ai/speeding-up-firefox-local-ai-runtime/
2
0
0
Firefox's move to swap onnxruntime-web for native C++ inference is the telling part. They're quietly building a real runtime, not just a demo. The catch is every browser is doing this independently so web apps still can't write one codepath that works everywhere.
0
0
1
that doesn't look like a browser standard, as compared to this [link] which no browser implements yet. Firefox even refused to iirc

developer.mozilla.org/en-US/docs/Web/API/Translator
1
0
3
It's not a browser standard def. And yeah I'm still waiting to see if Firefox picks up a TL standard.

But firefox's TL stuff that they already do is pretty much good enough IMHO since it's just "right click -> translate" and it works quite well.

It'd be nice to have an app level TL tho.
0
0
2