
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
Unofficial Speech To Text module for Expo which supported iOS and Android
This module just support iOS and Android platforms.
So sorry that I am unemployed and don't have much money to spend more time to make this module work also for web.
If you still want to support web platform, please follow this article https://developer.mozilla.org/en-US/docs/Web/API/Web_Speech_API/Using_the_Web_Speech_API

For managed Expo projects, please follow the installation instructions in the API documentation for the latest stable release. If you follow the link and there is no documentation available then this library is not yet usable within managed projects — it is likely to be included in an upcoming Expo SDK release.
For bare React Native projects, you must ensure that you have installed and configured the expo package before continuing.
npm install expo-stt
or
yarn add expo-stt
Run npx pod-install after installing the npm package.
I have trouble with expo plugin setup so you need to manually add these permissions key to Info.plist in ios project
Android don't need any permission even RECORD_AUDIO
<key>NSMicrophoneUsageDescription</key>
<string>Allow $(PRODUCT_NAME) to access your microphone</string>
<key>NSSpeechRecognitionUsageDescription</key>
<string>Allow $(PRODUCT_NAME) to access your speech recognition</string>
In case I could resolve the plugin config as mentioned above, add following key to plugins of app.json
"plugins": [
[
"expo-stt",
{
"microphonePermission": "Allow $(PRODUCT_NAME) to access your microphone",
"speechRecognitionPermission": "Allow $(PRODUCT_NAME) to access your speech recognition"
}
]
]
Register some listeners
import * as ExpoStt from 'expo-stt';
useEffect(() => {
const onSpeechStart = ExpoStt.addOnSpeechStartListener(() => {
setSpokenText("");
setError(undefined);
setRecognizing(true);
});
const onSpeechResult = ExpoStt.addOnSpeechResultListener(({ value }) => {
setSpokenText(value.join());
});
const onSpeechCancelled = ExpoStt.addOnSpeechCancelledListener(() => {
setRecognizing(false);
});
const onSpeechError = ExpoStt.addOnSpeechErrorListener(({ cause }) => {
setError(cause);
setRecognizing(false);
});
const onSpeechEnd = ExpoStt.addOnSpeechEndListener(() => {
setRecognizing(false);
});
return () => {
onSpeechStart.remove();
onSpeechResult.remove();
onSpeechCancelled.remove();
onSpeechError.remove();
onSpeechEnd.remove();
};
}, []);
There are some functions available to call such as:
Take a look into example/App.tsx for completed example
Contributions are very welcome! Please refer to guidelines described in the contributing guide.
I am looking for a job as a React native developer, remote work is preferred.
Check out my CV: https://anhtuank7c.github.io
FAQs
Unofficial Speech To Text module for Expo which supported iOS and Android
The npm package expo-stt receives a total of 4 weekly downloads. As such, expo-stt popularity was classified as not popular.
We found that expo-stt 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.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.