文本到语音Android中 [英] Text To Speech In android

查看:117
本文介绍了文本到语音Android中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的Andr​​oid和我试图开发一个应用,在那里只要文本到语音完成音频文件已被播放。任何人都可以让我知道如何做到这一点。我已经在开发者博客查了一些资源,但我没有成功。

I am new to android and I'm trying to develop an app where as soon as the text to speech is completed an audio file has to be played. Can anyone let me know how to do this. I have checked some resources in developer's blog but I was not successful.

请谁能帮助我一个样品code。

Please can anyone help me with a sample code.

任何帮助将AP preciated。非常感谢。

Any help will be appreciated. Thanks a lot.

推荐答案

我已经找到了解决方案,那就是在方法 onUtteranceCompletedListener()我们可以知道是否演讲停止或没有,然后我们可以写code播放音频文件

I have found the solution and that is in the method onUtteranceCompletedListener() we can know whether the speech is stopped or not and then we can write the code to play the audio file

这篇关于文本到语音Android中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆