jinguangyang / chinesetts Goto Github PK
View Code? Open in Web Editor NEWChineseTTS Android 文字转换 中文语音
License: Apache License 2.0
ChineseTTS Android 文字转换 中文语音
License: Apache License 2.0
谢谢提供这么好的tts,我用AS编译通过了,在手机上也安装没问题,但我觉得包有点大,约110M,我去掉了X86与ARM V8,还是有40多M,我拆包看到armeabi-v7a下面有两个文件,分别是libtensorflowlite_flex_jni.so和libtensorflowlite_jni.so,第一个约46M,第二个约1.7M。我想大概是由于引入tensorflowlite引起的,想问如何把这个46M包的大小给降下来?
另外,运行后听声音似乎还是不太自然,似乎还很急促,是不是tflite的缘故?能不能加入韵律?在知乎上有一篇文章,采用的类似的方法,是用python实现的,加入了韵律,我听了作者在B站上的音频,觉得效果不错,很贴近真人。
(https://zhuanlan.zhihu.com/p/319978933)
比如"未找到蓝牙钥匙,请重新扫描",读出来的是“未找到蓝牙钥匙哦,请重新扫描”
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.air4.chinesetts.tts.InputWorker.interrupt()' on a null object reference
at com.air4.chinesetts.tts.TtsManager.stopTts(TtsManager.java:86)
at com.air4.chinesetts.tts.TtsManager.speak(TtsManager.java:91)
at com.bohai.myapplication.MainActivity$2.onClick(MainActivity.java:43)
at android.view.View.performClick(View.java:7659)
at android.view.View.performClickInternal(View.java:7636)
at android.view.View.-$$Nest$mperformClickInternal(Unknown Source:0)
at android.view.View$PerformClick.run(View.java:30156)
at android.os.Handler.handleCallback(Handler.java:990)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:205)
at android.os.Looper.loop(Looper.java:294)
at android.app.ActivityThread.main(ActivityThread.java:8214)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1187)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.