
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
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 24 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.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.