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-text-to-speech-edge
Advanced tools
react-native-text-to-speech-edge component for React Native (iOS and Android)
react-native-text-to-speech-edge is a mobile library for Android and iOS to convert Text in Speech using Speech Service Azure!
$ npm install react-native-text-to-speech-edge --save
Go to your ios folder and run:
pod install
_ IMPORTANT _
The Project Running in iOS 9.3 or higher
Open the AndroidManifest.xml and Verify your Permission
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.INTERNET" />
Open the android/build.gradle and add repository of microsoft
allprojects {
repositories {
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url("$rootDir/../node_modules/react-native/android")
}
maven {
// Android JSC is installed from npm
url("$rootDir/../node_modules/jsc-android/dist")
}
google()
jcenter()
maven { url 'https://jitpack.io' }
mavenCentral()
maven {
url 'https://csspeechstorage.blob.core.windows.net/maven/'
}
}
}
And change your min-sdk-version to 19
ext {
buildToolsVersion = "28.0.3"
minSdkVersion = 19
compileSdkVersion = 28
targetSdkVersion = 28
}
_ IMPORTANT _
The Project Android Needs Min Android 4.4 KitKat (API 19)
For transform basic Text To Speech.
import { createTextToSpeechByText } from 'react-native-text-to-speech-edge';
createTextToSpeechByText(
'Your Text For Speech in Here',
'pt-BR-FranciscaNeural', //Your Neural Language [https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/language-support#neural-voices]
'Your Key',
'Your Region',
)
.then((success) => {
// Your Success Boolean Return
})
.catch((error) => {
// Your Error String Message
});
};
For transform Text To Speech using SSML.
import { createTextToSpeechByText } from 'react-native-text-to-speech-edge';
createTextToSpeechBySSML(
'Your SSML String in Here',
'pt-BR-FranciscaNeural', //Your Neural Language (https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/language-support#neural-voices)
'Your Key',
'Your Region',
)
.then((success) => {
// Your Success Boolean Return
})
.catch((error) => {
// Your Error String Message
});
};
For STOP audio text
import { stopEdge } from 'react-native-text-to-speech-edge';
stopEdge()
For listener on Audio Finish
For STOP audio text
```javascript
import TTSEdge from 'react-native-text-to-speech-edge';
TTSEdge.addEventListener('ttedge-finish', (event) =>
console.log('ttedge-finish', event) // Your Listener To Finish Audio
);
FAQs
TODO
We found that react-native-text-to-speech-edge 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
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.