Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
react-native-voice-to-text-custom
Advanced tools
A React Native module that provides voice-to-text capabilities using Android's Speech Recognizer.
A React Native module that provides voice-to-text capabilities using Android's Speech Recognizer.
To install the package, run:
npm install react-native-voice-to-text-custom
Make sure you have set up permissions for Android. Add the following permission to your AndroidManifest.xml
:
<uses-permission android:name="android.permission.RECORD_AUDIO" />
import VoiceRecognition from 'react-native-voice-to-text';
// Request microphone permission first
VoiceRecognition.requestMicrophonePermission().then(() => {
// Start voice recognition
VoiceRecognition.startRecognition('en-US')
.then(() => console.log('Recognition started'))
.catch((error) => console.error('Error:', error));
});
// Stop recognition when needed
VoiceRecognition.stopRecognition().then(() => {
console.log('Recognition stopped');
});
requestMicrophonePermission()
Requests microphone permission from the user.
Returns: Promise<string>
startRecognition(locale: string)
Starts voice recognition with the given locale.
Arguments:
locale
(string): The language code (e.g., 'en-US') to be used for voice recognition.Returns: Promise<void>
stopRecognition()
Stops the voice recognition process.
Returns: Promise<void>
Contributions are welcome! Current version is only working on Android and tested with the latest SDK, will be working for the iOS and will be posted the update. Please feel free to open issues or submit pull requests.
This project is licensed under the MIT License. See the LICENSE file for more information.
FAQs
A React Native module that provides voice-to-text capabilities using Android's Speech Recognizer.
We found that react-native-voice-to-text-custom demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.