Skip to content

JackSam555/speekDemo

Repository files navigation

speekDemo

Step 1. Add the JitPack repository to your buil d file gradle Add it in your root build.gradle at the end of repositories:

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}

Step 2. Add the dependency

dependencies {
        implementation 'com.github.JackSam555:speekDemo:1.0.0'
      
}

Step 3. init

    SpeakManage tts = SpeakManage.getInstance(this);
    tts.setLanguage(Locale.CHINA);//language setting
    tts.setPitch(1.2f);//Set intonation
    tts.setSpeechRate(0.4f);//Set speaking rate
    tts.speak("哈哈哈,我的demo测试成功了");//Broadcast text

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages