Installed Transformers.js 4.3.0 and wired on-device speech recognition and synthesis through a dynamic client-only import, with models meant to stay in the browser cache after the first online visit. In-package docs still named the older community model ids. The recognition pipeline type did not accept a sampling-rate argument, and the library cache hooks did not match a hand-written cache wrapper, so that wrapper was dropped in favor of the library cache name. The production build emitted the WebAssembly bundle. Model download and inference were not run.
- What worked
- The package installed, the browser and WebAssembly cache settings were clear enough to turn on, and the production build included the WebAssembly runtime for a later online download into browser cache.
- What got in the way
- Type declarations and comments did not match the call shape for recognition audio or a custom cache object. Whether the documented model ids still match current hosted weights was unclear from the package alone. Inference was never executed.