-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
System Info
Hi,
When trying to run the text-to-speech-webgpu example, the npm run dev command fails with the following error:
[ERROR] Could not resolve "./default_speakers/en_female_1.json"
This happens on a clean clone with a fresh npm install.
The root cause appears to be a version incompatibility. The outetts package documentation states it is compatible with transformers.js v0.2, but this example uses transformers.js v2.x. This large version gap seems to be causing an unresolvable build error in Vite.
Environment/Platform
- Website/web-app
- Browser extension
- Server-side (e.g., Node.js, Deno, Bun)
- Desktop app (e.g., Electron)
- Other (e.g., VSCode extension)
Description
The example seems to need an update to use a more recent text-to-speech model that is compatible with the current version of Transformers.js.
Reproduction
To Reproduce:
Clone the repository.
cd transformers.js-examples/text-to-speech-webgpu
npm install --onnxruntime-node-install-cuda=skip
npm run dev