{"id":19245098,"url":"https://github.com/rxtoolkit/stt-deepspeech","last_synced_at":"2025-06-29T00:36:05.731Z","repository":{"id":214798694,"uuid":"337514483","full_name":"rxtoolkit/stt-deepspeech","owner":"rxtoolkit","description":"👂 RxJS operator for speech-to-text using DeepSpeech","archived":false,"fork":false,"pushed_at":"2024-02-16T18:39:26.000Z","size":3619,"stargazers_count":1,"open_issues_count":10,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-05T04:23:40.022Z","etag":null,"topics":["fp","functional-programming","observables","package","reactive-programming","rxjs","speech-to-text","stt","transcription"],"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/rxtoolkit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2021-02-09T19:33:25.000Z","updated_at":"2024-01-02T15:36:01.000Z","dependencies_parsed_at":"2023-12-30T22:07:21.755Z","dependency_job_id":"187a246b-64f2-4294-973c-7b492c2f8c1b","html_url":"https://github.com/rxtoolkit/stt-deepspeech","commit_stats":null,"previous_names":["rxtoolkit/stt-deepspeech"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxtoolkit%2Fstt-deepspeech","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxtoolkit%2Fstt-deepspeech/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxtoolkit%2Fstt-deepspeech/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxtoolkit%2Fstt-deepspeech/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rxtoolkit","download_url":"https://codeload.github.com/rxtoolkit/stt-deepspeech/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240331361,"owners_count":19784646,"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","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":["fp","functional-programming","observables","package","reactive-programming","rxjs","speech-to-text","stt","transcription"],"created_at":"2024-11-09T17:26:37.768Z","updated_at":"2025-02-23T15:15:41.200Z","avatar_url":"https://github.com/rxtoolkit.png","language":"JavaScript","readme":"# @rxtk/toDeepSpeech\n\u003e 👂 An RxJS operator for real-time speech-to-text (STT/S2T) streaming using the opensource DeepSpeech library.\n\n```bash\nnpm i @rxtk/stt-deepspeech\n```\n\n```bash\nyarn add @rxtk/stt-deepspeech\n```\n\n⚠️ To run the DeepSpeech pipeline, you must [download the corresponding DeepSpeech model](https://github.com/mozilla/DeepSpeech/releases), unzip it and pass the model directory to the `toDeepSpeech` operator like this: `toDeepSpeech({modelDir: 'path/to/deepseech-models-0.7.0'})`.\n\n\u003e ⚠️ node.js only. This has not been tested on Browsers but it might be possible to make it work.  If you get it working, please make a PR!\n\n## API\n\n### `toDeepSpeech`\nStream audio speech data to DeepSpeech and get transcripts back:\n```js\nimport {map} from 'rxjs/operators';\nimport {toDeepSpeech} from '@rxtk/stt-deepspeech';\n\n// The pipeline takes a stream of audio chunks encoded as LINEAR16 (PCM encoded as 16-bit integers) (Buffer, String, Blob or Typed Array)\nconst buffer$ = pcmChunkEncodedAs16BitIntegers$.pipe(\n  map(chunk =\u003e Buffer.from(chunk, 'base64')),\n  toDeepSpeech({modelDir: '/path/to/deepspeech-models-0.7.0'})\n);\nbuffer$.subscribe(console.log); // log transcript output\n```\n\n\u003e ⚠️ Pay attention to the endcoding of the audio data.  The operator only accepts PCM data encoded as 16-bit integers. For example, LINEAR16 encoding usually works.\n\n## Guides\n- [Introduction to audio data](https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Audio_concepts)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frxtoolkit%2Fstt-deepspeech","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frxtoolkit%2Fstt-deepspeech","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frxtoolkit%2Fstt-deepspeech/lists"}