Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
@bottlenose/rxtranscribe
Advanced tools
This package allows real-time speech-to-text (STT) functionality to be performed on audio streams. It offers numerous strategies for how the STT can be performed including the following pipelines: the opensource DeepSpeech architecture, the Amazon Transcribe API and Google Speech-to-text API.
Currently, audio can be passed in as a stream of Buffer objects containing audio data encoded using one of the following
yarn add @bottlenose/rxtranscribe
npm i --save @bottlenose/rxtranscribe
To run the DeepSpeech pipeline, download the DeepSpeech model, unzip it and pass the model directory to the toDeepSpeech
operator like this: toDeepSpeech({modelDir: 'path/to/deepseech-models-0.7.0'})
.
To run the AWS Transcribe pipeline, you'll need a valid ACCESS_KEY_ID and SECRET_ACCESS_KEY with permissions to run AWS Transcribe.
:bulb: In the future, it would be nicer to have an npm library that can install Sox so that yarn install
would handle all the dependencies.
Platform | Support |
---|---|
node.js (>12) | ✅ |
Browsers | ❓ |
React Native | ❓ |
Electron | ❓ |
💡 This package has only been tested in the node.js environment. If it doesn't work isomorphically, it could probably be modified to do so without much effort. The authors haven't done so because running it on client devices does not seem like an advisable design for production situations. But if you want to take a stab at implementing isomorphic support, contact us!
import {map} from 'rxjs/operators';
import {toDeepSpeech} from '@bottlenose/rxtranscribe';
// The pipeline takes a stream of .wav audio chunks (Buffer, String, Blob or Typed Array)
const buffer$ = pcmChunkEncodedAs16BitIntegers$.pipe(
map(chunk => Buffer.from(chunk, 'base64')),
toDeepSpeech({modelDir: '/path/to/deepspeech-models-0.7.0'})
);
FAQs
👂 Realtime speech-to-text (S2T) transcription with RxJS
The npm package @bottlenose/rxtranscribe receives a total of 5 weekly downloads. As such, @bottlenose/rxtranscribe popularity was classified as not popular.
We found that @bottlenose/rxtranscribe demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.