{"id":30876750,"url":"https://github.com/fastrepl/whisper-rs","last_synced_at":"2025-09-08T03:06:16.306Z","repository":{"id":313554355,"uuid":"1048742280","full_name":"fastrepl/whisper-rs","owner":"fastrepl","description":null,"archived":false,"fork":false,"pushed_at":"2025-09-06T17:07:26.000Z","size":689,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-06T22:04:38.133Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fastrepl.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-02T00:38:25.000Z","updated_at":"2025-09-06T17:07:30.000Z","dependencies_parsed_at":"2025-09-06T22:04:42.947Z","dependency_job_id":"dc543a4a-9ba2-47e7-bd0b-5aeeb90c3d0f","html_url":"https://github.com/fastrepl/whisper-rs","commit_stats":null,"previous_names":["fastrepl/whisper-rs"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/fastrepl/whisper-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastrepl%2Fwhisper-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastrepl%2Fwhisper-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastrepl%2Fwhisper-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastrepl%2Fwhisper-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fastrepl","download_url":"https://codeload.github.com/fastrepl/whisper-rs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastrepl%2Fwhisper-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274125879,"owners_count":25226493,"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-09-08T02:00:09.813Z","response_time":121,"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":[],"created_at":"2025-09-08T03:06:15.402Z","updated_at":"2025-09-08T03:06:16.298Z","avatar_url":"https://github.com/fastrepl.png","language":"Rust","readme":"# whisper-rs\n\nRust bindings to [whisper.cpp](https://github.com/ggerganov/whisper.cpp/)\n\n## Usage\n\n```bash\ngit clone --recursive https://codeberg.org/tazz4843/whisper-rs.git\n\ncd whisper-rs\n\ncargo run --example basic_use\n\ncargo run --example audio_transcription\n```\n\n```rust\nuse whisper_rs::{WhisperContext, WhisperContextParameters, FullParams, SamplingStrategy};\n\nfn main() {\n    let path_to_model = std::env::args().nth(1).unwrap();\n\n    // load a context and model\n    let ctx = WhisperContext::new_with_params(\n        path_to_model,\n        WhisperContextParameters::default()\n    ).expect(\"failed to load model\");\n\n    // create a params object\n    let params = FullParams::new(SamplingStrategy::BeamSearch {\n        beam_size: 5,\n        patience: -1.0,\n    });\n\n    // assume we have a buffer of audio data\n    // here we'll make a fake one, floating point samples, 32 bit, 16KHz, mono\n    let audio_data = vec![0_f32; 16000 * 2];\n\n    // now we can run the model\n    let mut state = ctx.create_state().expect(\"failed to create state\");\n    state\n        .full(params, \u0026audio_data[..])\n        .expect(\"failed to run model\");\n\n    // fetch the results\n    for segment in state.as_iter() {\n        println!(\n            \"[{} - {}]: {}\",\n            // note start and end timestamps are in centiseconds\n            // (10s of milliseconds)\n            segment.start_timestamp(),\n            segment.end_timestamp(),\n            // the Display impl for WhisperSegment will replace invalid UTF-8 with the Unicode replacement character\n            segment\n        );\n    }\n}\n```\n\nSee [examples/basic_use.rs](examples/basic_use.rs) for more details.\n\nLower level bindings are exposed if needed, but the above should be enough for most use cases.\nSee the docs: https://docs.rs/whisper-rs/ for more details.\n\n## Feature flags\n\nAll disabled by default unless otherwise specified.\n\n* `raw-api`: expose whisper-rs-sys without having to pull it in as a dependency.\n  **NOTE**: enabling this no longer guarantees semver compliance,\n  as whisper-rs-sys may be upgraded to a breaking version in a patch release of whisper-rs.\n* `cuda`: enable CUDA support. Implicitly enables hidden GPU flag at runtime.\n* `hipblas`: enable ROCm/hipBLAS support. Only available on linux. Implicitly enables hidden GPU flag at runtime.\n* `openblas`: enable OpenBLAS support.\n* `metal`: enable Metal support. Implicitly enables hidden GPU flag at runtime.\n* `vulkan`: enable Vulkan support. Implicitly enables hidden GPU flag at runtime.\n* `log_backend`: allows hooking into whisper.cpp's log output and sending it to the `log` backend. Requires calling\n* `tracing_backend`: allows hooking into whisper.cpp's log output and sending it to the `tracing` backend.\n\n## Building\n\nSee [BUILDING.md](BUILDING.md) for instructions for building whisper-rs on Windows and OSX M1. Linux builds should just\nwork out of the box.\n\n## Troubleshooting\n\n* Something other than Windows/macOS/Linux isn't working!\n    * I don't have a way to test these platforms, so I can't really help you.\n        * If you can get it working, please open a PR with any changes to make it work and build instructions in\n          BUILDING.md!\n* I get a panic during binding generation build!\n    * You can attempt to fix it yourself, or you can set the `WHISPER_DONT_GENERATE_BINDINGS` environment variable.\n      This skips attempting to build the bindings whatsoever and copies the existing ones. They may be out of date,\n      but it's better than nothing.\n        * `WHISPER_DONT_GENERATE_BINDINGS=1 cargo build`\n    * If you can fix the issue, please open a PR!\n\n## License\n\n[Unlicense](LICENSE)\n\ntl;dr: code is in the public domain\n\n[the PR template](./.github/PULL_REQUEST_TEMPLATE.md) is derived from\n[GoToSocial's PR template](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/.gitea/pull_request_template.md)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffastrepl%2Fwhisper-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffastrepl%2Fwhisper-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffastrepl%2Fwhisper-rs/lists"}