{"id":29246552,"url":"https://github.com/spafedev/whisper-napi","last_synced_at":"2025-10-15T07:27:59.481Z","repository":{"id":302262954,"uuid":"1011814485","full_name":"SpafeDev/Whisper-NAPI","owner":"SpafeDev","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-01T11:33:41.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-01T12:31:52.938Z","etag":null,"topics":["addon","bun","node-addon","nodejs","transcription","whisper"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SpafeDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-01T11:29:13.000Z","updated_at":"2025-07-01T11:35:05.000Z","dependencies_parsed_at":"2025-07-01T12:43:49.784Z","dependency_job_id":null,"html_url":"https://github.com/SpafeDev/Whisper-NAPI","commit_stats":null,"previous_names":["spafedev/whisper-napi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SpafeDev/Whisper-NAPI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpafeDev%2FWhisper-NAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpafeDev%2FWhisper-NAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpafeDev%2FWhisper-NAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpafeDev%2FWhisper-NAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SpafeDev","download_url":"https://codeload.github.com/SpafeDev/Whisper-NAPI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpafeDev%2FWhisper-NAPI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279059388,"owners_count":26094948,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-15T02:00:07.814Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["addon","bun","node-addon","nodejs","transcription","whisper"],"created_at":"2025-07-03T23:02:11.301Z","updated_at":"2025-10-15T07:27:59.464Z","avatar_url":"https://github.com/SpafeDev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# whisper-napi\n\n## Usage Example\n\n```js\nconst { MutterModel } = require(\"./whisper-napi.win32-x64-msvc.node\");\n\nconst model = new MutterModel(\"./ggml-tiny.bin\");\nconst audioPath = \"./example.wav\";\n\n(async () =\u003e {\n  try {\n    // Transcribe audio from WAV file asynchronously\n    const result = await model.transcribe(audioPath);\n\n    console.log(\"Text:\");\n    console.log(result.text);\n\n    console.log(\"\\nSRT:\");\n    console.log(result.srt);\n  } catch (err) {\n    console.error(\"Error:\", err);\n  }\n})();\n```\n\n## API\n\n### `new MutterModel(modelPath: string)`\n\nConstructs a new MutterModel instance by loading a GGML model from the specified path.\n\n- **modelPath**: Path to the GGML model file (e.g. `\"./ggml-tiny.bin\"`).\n\nThrows an error if the model fails to load.\n\n---\n\n### `transcribe(wavPath: string): Promise\u003cTranscription\u003e`\n\nAsynchronously transcribes the audio from a WAV file.\n\n- **wavPath**: Path to the WAV audio file to transcribe.\n\nReturns a Promise resolving to a `Transcription` object containing:\n\n- `text` — the transcription as plain text.\n- `srt` — the transcription formatted as subtitles (SRT).\n\nThrows an error if reading the WAV file or transcription fails.\n\n---\n\n## Transcription Object\n\n```ts\ninterface Transcription {\n  text: string; // plain transcription text\n  srt: string; // transcription in SRT subtitle format\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspafedev%2Fwhisper-napi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspafedev%2Fwhisper-napi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspafedev%2Fwhisper-napi/lists"}