{"id":19245091,"url":"https://github.com/rxtoolkit/stt-aws","last_synced_at":"2025-02-23T15:15:43.850Z","repository":{"id":214799017,"uuid":"337524870","full_name":"rxtoolkit/stt-aws","owner":"rxtoolkit","description":"👂 RxJS operator for realtime speech-to-text (STT/S2T) using AWS Transcribe","archived":false,"fork":false,"pushed_at":"2024-02-16T18:39:33.000Z","size":3816,"stargazers_count":1,"open_issues_count":10,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-05T10:51:00.063Z","etag":null,"topics":["ai","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":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-02-09T20:15:48.000Z","updated_at":"2024-01-02T15:34:03.000Z","dependencies_parsed_at":"2023-12-30T22:09:08.451Z","dependency_job_id":"419ceec0-3a4e-42d9-ba48-37cbd5ee443b","html_url":"https://github.com/rxtoolkit/stt-aws","commit_stats":null,"previous_names":["rxtoolkit/stt-aws"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxtoolkit%2Fstt-aws","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxtoolkit%2Fstt-aws/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxtoolkit%2Fstt-aws/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxtoolkit%2Fstt-aws/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rxtoolkit","download_url":"https://codeload.github.com/rxtoolkit/stt-aws/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":["ai","fp","functional-programming","observables","package","reactive-programming","rxjs","speech-to-text","stt","transcription"],"created_at":"2024-11-09T17:26:37.163Z","updated_at":"2025-02-23T15:15:43.817Z","avatar_url":"https://github.com/rxtoolkit.png","language":"JavaScript","readme":"# @rxtk/stt-aws\n\u003e 👂 An RxJS operator for real-time speech-to-text (STT/S2T) streaming using the AWS Transcribe.\n\n```bash\nnpm i @rxtk/stt-aws\n```\n\n```bash\nyarn add @rxtk/stt-aws\n```\n\n⚠️ To run the AWS Transcribe pipeline, you'll need a valid ACCESS_KEY_ID and SECRET_ACCESS_KEY with permissions to run AWS Transcribe. You'll need to set these in the environment or else it will probably not work.  Unfortunately, this module does not auto-detect AWS credentials stored in `~/.aws`.\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### `toAWSTranscribe`\nStream audio speech data to AWS Transcribe via WebSocket and get transcripts back:\n```js\nimport {map} from 'rxjs/operators';\nimport {toAWSTranscribe} from '@rxtk/stt-aws';\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 stt$ = pcmChunkEncodedAs16BitIntegers$.pipe(\n  map(chunk =\u003e Buffer.from(chunk, 'base64')),\n  toAWSTranscribe()\n);\nstt$.subscribe(console.log); // log transcript output\nstt$.error$.subscribe(console.error) // handle WebSocket errors\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-aws","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frxtoolkit%2Fstt-aws","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frxtoolkit%2Fstt-aws/lists"}