Skip to content

Commit b9f75de

Browse files
authored
Merge pull request #15 from TranscribeJs/dev
v3.0.0
2 parents 648c4a0 + 47ddd3c commit b9f75de

File tree

17 files changed

+1030
-994
lines changed

17 files changed

+1030
-994
lines changed

CHANGELOG.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
# Changelog
22

3-
## [2.0.6] - 2024-02-18
3+
## [3.0.0] - 2025-05-16
4+
5+
### Breaking
6+
7+
- removed `workerPath` & `locateFile` because there is no separate worker file anymore
8+
- this is only a breaking changed if you've used these options to locate the separate worker file
9+
10+
### Changed
11+
12+
- updated whisper.cpp to v1.7.5
13+
- updated dev dependencies
14+
- disable console.log output in vitest (`npm run test:unit`)
15+
16+
## Fixed
17+
18+
- build with latest emscripten version to fix `Vite is unable to parse the worker options`; issue [#14](https://github.com/TranscribeJs/transcribe.js/issues/14)
19+
20+
## [2.0.6] - 2025-02-18
421

522
### Add
623

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ Transcribe speech to text in the browser. Based on a wasm build of [whisper.cpp]
1515

1616
All packages are under [@transcribe](https://www.npmjs.com/search?q=%40transcribe) namespace.
1717

18-
| Package | Description |
19-
| --------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
20-
| **@transcribe/shout** | Wasm build based on [whisper.cpp](https://github.com/ggerganov/whisper.cpp). Contains Module file including the wasm binary and a separate webworker file. |
21-
| **@transcribe/transcriber** | `FileTranscriber` and `StreamTranscriber` for transcribing media files or streams. |
18+
| Package | Description |
19+
| --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
20+
| **@transcribe/shout** | Wasm build based off [whisper.cpp](https://github.com/ggerganov/whisper.cpp). `shout.wasm.js` contains the wasm binary and the worker file. |
21+
| **@transcribe/transcriber** | `FileTranscriber` and `StreamTranscriber` for transcribing media files or streams. |
2222

2323
## Prerequisite
2424

@@ -59,11 +59,9 @@ The `shout.wasm` files must be accessable and served by your webserver. Dependin
5959

6060
```bash
6161
# copy shout wasm
62-
cp node_modules/@transcribe/shout/src/shout/shout.wasm.worker.mjs /your/project
6362
cp node_modules/@transcribe/shout/src/shout/shout.wasm.js /your/project
6463

6564
# optional: copy no-simd build
66-
cp node_modules/@transcribe/shout/src/shout/shout.wasm.worker_no-simd.mjs /your/project
6765
cp node_modules/@transcribe/shout/src/shout/shout.wasm_no-simd.js /your/project
6866

6967
# optional: copy audio-worklets, only needed if you want to use StreamTranscriber
@@ -108,7 +106,6 @@ import { FileTranscriber } from "@transcribe/transcriber";
108106
const transcriber = new FileTranscriber({
109107
createModule, // create module function from emscripten build
110108
model: "/your/project/ggml-tiny-q5_1.bin", // path to ggml model file
111-
// workerPath: "/your/project", // only set if you don't use a bundler; directory of shout.wasm.worker.mjs copied before
112109
});
113110

114111
// init wasm transcriber worker

examples/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515

1616
<script type="module">
1717
import { simd } from "./lib/simd.js";
18-
import { default as createModuleSimd } from "../src/shout/shout.wasm.js?v1.0.5";
19-
import { default as createModuleNoSimd } from "../src/shout/shout.wasm_no-simd.js?v1.0.5";
20-
import { FileTranscriber } from "../src/index.js?v2.0.6";
18+
import { default as createModuleSimd } from "../src/shout/shout.wasm.js?v1.0.6";
19+
import { default as createModuleNoSimd } from "../src/shout/shout.wasm_no-simd.js?v1.0.6";
20+
import { FileTranscriber } from "../src/index.js?v3.0.0";
2121

2222
(async function () {
2323
// feature detect simd support

examples/stream.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515

1616
<script type="module">
1717
import { simd } from "./lib/simd.js";
18-
import { default as createModuleSimd } from "../src/shout/shout.wasm.js?v1.0.5";
19-
import { default as createModuleNoSimd } from "../src/shout/shout.wasm_no-simd.js?v1.0.5";
20-
import { StreamTranscriber } from "../src/index.js?v2.0.6";
18+
import { default as createModuleSimd } from "../src/shout/shout.wasm.js?v1.0.6";
19+
import { default as createModuleNoSimd } from "../src/shout/shout.wasm_no-simd.js?v1.0.6";
20+
import { StreamTranscriber } from "../src/index.js?v3.0.0";
2121

2222
(async function () {
2323
// feature detect simd support

0 commit comments

Comments
 (0)