{"id":25528854,"url":"https://github.com/numq/speech-recognition","last_synced_at":"2025-10-15T14:12:05.678Z","repository":{"id":271470958,"uuid":"913563587","full_name":"numq/speech-recognition","owner":"numq","description":"JVM library for speech-to-text recognition, written in Kotlin and based on the C++ library whisper.cpp","archived":false,"fork":false,"pushed_at":"2025-03-11T23:07:42.000Z","size":2409,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-20T16:41:59.635Z","etag":null,"topics":["cpp","java","jni","jvm","kotlin","ml","speech-recognition","speech-to-text","stt","whisper-cpp"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/numq.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-01-07T23:40:40.000Z","updated_at":"2025-03-11T23:06:26.000Z","dependencies_parsed_at":"2025-01-08T00:34:18.840Z","dependency_job_id":"29efdf67-17ba-4fdf-8841-214690a17c7f","html_url":"https://github.com/numq/speech-recognition","commit_stats":null,"previous_names":["numq/stt","numq/speech-to-text","numq/speech-recognition"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/numq/speech-recognition","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numq%2Fspeech-recognition","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numq%2Fspeech-recognition/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numq%2Fspeech-recognition/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numq%2Fspeech-recognition/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/numq","download_url":"https://codeload.github.com/numq/speech-recognition/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numq%2Fspeech-recognition/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279085179,"owners_count":26100015,"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":["cpp","java","jni","jvm","kotlin","ml","speech-recognition","speech-to-text","stt","whisper-cpp"],"created_at":"2025-02-19T23:23:40.442Z","updated_at":"2025-10-15T14:12:05.673Z","avatar_url":"https://github.com/numq.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eSpeech recognition\u003c/h1\u003e\n\n\u003cbr\u003e\n\n\u003cdiv align=\"center\" style=\"display: grid; justify-content: center;\"\u003e\n\n|                                                                  🌟                                                                   |                  Support this project                   |               \n|:-------------------------------------------------------------------------------------------------------------------------------------:|:-------------------------------------------------------:|\n|  \u003cimg src=\"https://raw.githubusercontent.com/ErikThiart/cryptocurrency-icons/master/32/bitcoin.png\" alt=\"Bitcoin (BTC)\" width=\"32\"/\u003e  | \u003ccode\u003ebc1qs6qq0fkqqhp4whwq8u8zc5egprakvqxewr5pmx\u003c/code\u003e | \n| \u003cimg src=\"https://raw.githubusercontent.com/ErikThiart/cryptocurrency-icons/master/32/ethereum.png\" alt=\"Ethereum (ETH)\" width=\"32\"/\u003e | \u003ccode\u003e0x3147bEE3179Df0f6a0852044BFe3C59086072e12\u003c/code\u003e |\n|  \u003cimg src=\"https://raw.githubusercontent.com/ErikThiart/cryptocurrency-icons/master/32/tether.png\" alt=\"USDT (TRC-20)\" width=\"32\"/\u003e   |     \u003ccode\u003eTKznmR65yhPt5qmYCML4tNSWFeeUkgYSEV\u003c/code\u003e     |\n\n\u003c/div\u003e\n\n\u003cbr\u003e\n\n\u003cp align=\"center\"\u003eJVM library for speech recognition, written in Kotlin and based on the C++ library \u003ca href=\"https://github.com/ggerganov/whisper.cpp\"\u003ewhisper.cpp\u003c/a\u003e and ML model \u003ca href=\"https://github.com/snakers4/silero-models\"\u003eSilero\u003c/a\u003e\u003c/p\u003e\n\n### See also\n\n- [Stretch](https://github.com/numq/stretch) *to change the speed of audio without changing the pitch*\n\n\n- [Voice Activity Detection](https://github.com/numq/voice-activity-detection) *to extract speech from audio*\n\n\n- [Speech generation](https://github.com/numq/speech-generation) *to generate voice audio from text*\n\n\n- [Text generation](https://github.com/numq/text-generation) *to generate text from prompt*\n\n\n- [Noise reduction](https://github.com/numq/noise-reduction) *to remove noise from audio*\n\n## Features\n\n- Recognizes speech in PCM audio data and returns a string with the result\n- Supports any sampling rate and number of channels due to resampling and downmixing\n\n## Installation\n\n- Download latest [release](https://github.com/numq/speech-recognition/releases)\n\n- Add library dependency\n   ```kotlin\n   dependencies {\n        implementation(file(\"/path/to/jar\"))\n   }\n   ```\n\n### whisper.cpp\n\n- Unzip binaries\n\n- Download one of the models [here](https://huggingface.co/ggerganov/whisper.cpp) or use any other compatible model\n\n### Silero\n\n- Add ONNX dependency\n   ```kotlin\n   dependencies {\n        implementation(\"com.microsoft.onnxruntime:onnxruntime:1.20.0\")\n   }\n   ```\n\n- Download \n\n## Usage\n\n### TL;DR\n\n\u003e See the [example](example) module for implementation details\n\n- Call `recognize` to process the input data and get recognized string\n\n### Step-by-step\n\n- Load binaries if you are going to use whisper.cpp\n    - CPU\n       ```kotlin\n       SpeechRecognition.Whisper.loadCPU(\n        ggmlBase = \"/path/to/ggml-base\", \n        ggmlCpu = \"/path/to/ggml-cpu\",\n        ggml = \"/path/to/ggml\",\n        speechRecognitionWhisper = \"/path/to/speech-recognition-whisper\",\n      )\n       ```\n    - CUDA\n       ```kotlin\n       SpeechRecognition.Whisper.loadCUDA(\n        ggmlBase = \"/path/to/ggml-base\", \n        ggmlCpu = \"/path/to/ggml-cpu\",\n        ggmlCuda = \"/path/to/ggml-cuda\",\n        ggml = \"/path/to/ggml\",\n        speechRecognitionWhisper = \"/path/to/speech-recognition-whisper\",\n      )\n       ```\n\n- Create an instance\n\n  ### whisper.cpp\n\n     ```kotlin\n     SpeechRecognition.Whisper.create(modelPath = \"/path/to/model\")\n     ```\n\n  ### Silero\n\n    ```kotlin\n    SpeechRecognition.Silero.create(modelPath = \"/path/to/model\")\n    ```\n\n- Call `minimumInputSize` to get the audio producer buffer size for real-time detection\n\n\n- Call `adjustTemperature` to adjust the temperature parameter\n\n\n- Call `recognize` passing the input data, sample rate, and number of channels as arguments\n\n\n- Call `reset` to reset the internal state - for example when the audio source changes\n\n\n- Call `close` to release resources\n\n## Requirements\n\n- JVM version 9 or higher\n\n## License\n\nThis project is licensed under the [Apache License 2.0](LICENSE)\n\n## Acknowledgments\n\n- [whisper.cpp](https://github.com/ggerganov/whisper.cpp)\n- [Silero](https://github.com/snakers4/silero-models)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnumq%2Fspeech-recognition","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnumq%2Fspeech-recognition","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnumq%2Fspeech-recognition/lists"}