Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
react-native-baidu-tts-offline
Advanced tools
This is an React-native library that can do text-to-speech make setting.
Readme
This is an React-native library that can do text-to-speech make setting.
current is only support android, ios coming soon.
$ npm install react-native-baidu-tts-offline --save
$ react-native link react-native-baidu-tts-offline
coming soon
android/app/src/main/java/[...]/MainActivity.java
import com.wayne.baiduvoice.RNBaiduvoicePackage;
to the imports at the top of the filenew RNBaiduvoicePackage()
to the list returned by the getPackages()
methodandroid/settings.gradle
:
include ':react-native-baidu-vtts'
project(':react-native-baidu-vtts').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-baidu-vtts/android')
android/app/build.gradle
:
implementation project(':react-native-baidu-vtts')
import RNBaiduvoice from 'react-native-baidu-tts-offline';
// TODO: What to do with the module?
class App extends Component{
componentDidMount() {
// 填写百度语音官网申请的appid, apikey, secretkey
const appid = ''
const apikey = ''
const secretkey = ''
const sn =''
RNBaiduvoice.initBaiduTTS(appid,apikey,secretkey,sn)
}
_speechText = () => {
RNBaiduvoice.speak('百度语音')
}
render() {
return (
<View style={styles.container}>
{/*<TwoList/>*/}
<TouchableOpacity onPress={this._speechText}>
<Text style={{fontSize: 20, height: 30}}>测试语音</Text>
</TouchableOpacity>
</View>
);
}
}
FAQs
This is an React-native library that can do text-to-speech make setting.
The npm package react-native-baidu-tts-offline receives a total of 0 weekly downloads. As such, react-native-baidu-tts-offline popularity was classified as not popular.
We found that react-native-baidu-tts-offline 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.