
Research
/Security News
60 Malicious Ruby Gems Used in Targeted Credential Theft Campaign
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
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
The npm package react-native-text-to-speech-edge receives a total of 4 weekly downloads. As such, react-native-text-to-speech-edge popularity was classified as not popular.
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 RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.