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
19 changes: 18 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
# Changelog

## [2.0.6] - 2024-02-18
## [3.0.0] - 2025-05-16

### Breaking

- removed `workerPath` & `locateFile` because there is no separate worker file anymore
- this is only a breaking changed if you've used these options to locate the separate worker file

### Changed

- updated whisper.cpp to v1.7.5
- updated dev dependencies
- disable console.log output in vitest (`npm run test:unit`)

## Fixed

- 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)

## [2.0.6] - 2025-02-18

### Add

Expand Down
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ Transcribe speech to text in the browser. Based on a wasm build of [whisper.cpp]

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

| Package | Description |
| --------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **@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. |
| **@transcribe/transcriber** | `FileTranscriber` and `StreamTranscriber` for transcribing media files or streams. |
| Package | Description |
| --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| **@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. |
| **@transcribe/transcriber** | `FileTranscriber` and `StreamTranscriber` for transcribing media files or streams. |

## Prerequisite

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

```bash
# copy shout wasm
cp node_modules/@transcribe/shout/src/shout/shout.wasm.worker.mjs /your/project
cp node_modules/@transcribe/shout/src/shout/shout.wasm.js /your/project

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

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

// init wasm transcriber worker
Expand Down
6 changes: 3 additions & 3 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@

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

(async function () {
// feature detect simd support
Expand Down
6 changes: 3 additions & 3 deletions examples/stream.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@

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

(async function () {
// feature detect simd support
Expand Down
Loading