Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,5 @@ cd app
npm install
npm run dev
```

If you skip the build step above, the repository ships small placeholder modules so the app still builds, but Whisper will not run until you generate the real WASM binaries.
10 changes: 10 additions & 0 deletions app/public/wasm/whisper-web.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Placeholder Whisper WASM factory used when the real bundle is not built.
// Run ./scripts/build-wasm.sh to generate the optimized version.
export default async function whisperFactory() {
console.warn('Using placeholder Whisper WASM bundle. Run ./scripts/build-wasm.sh to build the real binary.');
return {
FS_writeFile: () => {
// no-op placeholder
}
};
}
3 changes: 3 additions & 0 deletions app/public/wasm/whisper-web.single.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Placeholder single-threaded Whisper WASM factory.
import whisperFactory from './whisper-web.js';
export default whisperFactory;
Loading