{"id":19245089,"url":"https://github.com/rxtoolkit/stt-gcp","last_synced_at":"2025-07-04T21:02:43.098Z","repository":{"id":214798986,"uuid":"337540605","full_name":"rxtoolkit/stt-gcp","owner":"rxtoolkit","description":"👂 RxJS operator for realtime speech-to-text (STT/S2T) using GCP speech-to-text","archived":false,"fork":false,"pushed_at":"2024-02-16T18:40:09.000Z","size":3742,"stargazers_count":1,"open_issues_count":10,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-05T10:15:36.032Z","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":"CHANGELOG.md","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-09T21:25:55.000Z","updated_at":"2024-01-02T15:36:49.000Z","dependencies_parsed_at":"2024-11-09T17:30:19.110Z","dependency_job_id":"ffcc7536-b58d-48a4-bf46-d6969da02678","html_url":"https://github.com/rxtoolkit/stt-gcp","commit_stats":null,"previous_names":["rxtoolkit/stt-gcp"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxtoolkit%2Fstt-gcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxtoolkit%2Fstt-gcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxtoolkit%2Fstt-gcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxtoolkit%2Fstt-gcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rxtoolkit","download_url":"https://codeload.github.com/rxtoolkit/stt-gcp/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:36.968Z","updated_at":"2025-02-23T15:15:42.340Z","avatar_url":"https://github.com/rxtoolkit.png","language":"JavaScript","readme":"# @rxtk/stt-gcp\n\u003e 👂 An RxJS operator for real-time speech-to-text (STT/S2T) streaming using the GCP speech-to-text API.\n\n\u003e 🍎 If you are using an Apple Silicon (ARM) machine, this package only works in node \u003e15.x\n\n```bash\nnpm i @rxtk/stt-gcp\n```\n\n```bash\nyarn add @rxtk/stt-gcp\n```\n\n⚠️  To run the GCP transcription pipeline, you will need to provide a path to JSON containing your `GOOGLE_APPLICATION_CREDENTIALS`. You can set this as an environment variable or pass it in.\n\n⚠️  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### `toGCPSpeech`\nStream audio speech data to AWS Transcribe via WebSocket and get transcripts back:\n```js\nimport {map} from 'rxjs/operators';\nimport {toGCPSpeech} from '@rxtk/stt-gcp';\n\n// The pipeline can take a stream of audio chunks encoded as \n// LINEAR16 (PCM encoded as 16-bit integers) in the form of a Buffer\nconst buffer$ = pcmChunkEncodedAs16BitIntegers$.pipe(\n  map(chunk =\u003e Buffer.from(chunk, 'base64')),\n  toGCPSpeech({\n    sampleRate: 16000, // optional\n    contentType: 'audio/l16', // optional\n    googleCreds: process.env.GOOGLE_APPLICATION_CREDENTIALS, // required\n    useSpeakerLabels: true, // optional\n    useWordConfidence: true, // optional\n    usePunctuation: true, // optional\n  })\n);\nbuffer$.subscribe(console.log); // log transcript output\n```\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-gcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frxtoolkit%2Fstt-gcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frxtoolkit%2Fstt-gcp/lists"}