Skip to content

Build fails for text-to-speech-webgpu example due to outetts incompatibility #1425

@Darshan0312

Description

@Darshan0312

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions