Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
google-cloud-speech-webaudio
Advanced tools
Google Cloud speech recognition and synthesis integrated with WebAudio, fully functional in the browser.
Speech recognition and synthesis using the Google Cloud Speech APIs integrated with the Web Audio API for microphone input and playback directly in the browser.
For now authorization only works with an API Key, you can create one at https://console.cloud.google.com/apis/credentials. Make sure you restrict it to only Cloud Speech-to-Text and Cloud Text-to-Speech APIs.
npm install google-cloud-speech-webaudio
import { GoogleSpeechRecognition } from 'google-cloud-speech-webaudio';
const GOOGLE_API_KEY = '...';
// Optionally define a regional endpoint: https://cloud.google.com/speech-to-text/docs/endpoints
const EU_ENDPOINT = 'https://eu-speech.googleapis.com'
// If this parameter is not defined, the US endpoint will be used by default.
// const US_ENDPOINT = 'https://us-speech.googleapis.com'
const speechRecognition = new GoogleSpeechRecognition(GOOGLE_API_KEY, EU_ENDPOINT);
// start recording microphone audio to a buffer.
// on first run it will request microphone permission.
await speechRecognition.startListening();
// stop recording your audio, send the buffer to Google for transcription
const result = await speechRecognition.stopListening();
import { GoogleSpeechSynthesis } from 'google-cloud-speech-webaudio';
const GOOGLE_API_KEY = '...';
const speechSynthesis = new GoogleSpeechSynthesis(GOOGLE_API_KEY);
// make the API call and play the produced speech audio buffer
await speechSynthesis.speak('hello world');
Andrei Gheorghe
FAQs
Google Cloud speech recognition and synthesis integrated with WebAudio, fully functional in the browser.
The npm package google-cloud-speech-webaudio receives a total of 11 weekly downloads. As such, google-cloud-speech-webaudio popularity was classified as not popular.
We found that google-cloud-speech-webaudio demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.