3 Star 1 Fork 0

_Newcomer / libXfSpeechCompoment

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

##---------------------简介---------------------

科大讯飞 语音合成组件

##使用方便,统一管理

示列:

#1、在 Application oncreate 方法里初始化

XfSpeechAgent mXfSpeechAgent = XfSpeechAgent.getInstance();
mXfSpeechAgent.init(context,"appId"); //appId 为在讯飞 平台申请的 appid
mXfSpeechAgent.setDebug(true); //打开 debug log

#2、在掉用的 地方(Activity) 初始化 语音合成引擎

mXfSpeechAgent = XfSpeechAgent.getInstance();
if (!mXfSpeechAgent.isInitSpeechEngine()) {
	mXfSpeechAgent.initSpeechEngine(MainActivity.this);
}

#3、在需要的地方 调用语音合成 (播音)

mXfSpeechAgent.setVoicer(Voicer.XIAOXIN); // 设置播音员(可选)
mXfSpeechAgent.speak("测试语音合成,请多多支持!");

空文件

简介

科大讯飞 语音合成组件 展开 收起
Android
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Android
1
https://gitee.com/lbh/libXfSpeechCompoment.git
git@gitee.com:lbh/libXfSpeechCompoment.git
lbh
libXfSpeechCompoment
libXfSpeechCompoment
master

搜索帮助