gpt4 book ai didi

android - 如何在应用程序中一直使用谷歌语音识别系统?

转载 作者:行者123 更新时间:2023-11-29 01:51:50 26 4
gpt4 key购买 nike

我正在编写一个智能助手,其中一个独有的功能是它一直在听你说话。有没有办法让 Speech to Text 始终处于 Activity 状态?

谢谢。

最佳答案

你的问题+回答似乎有点困惑......

"A foreground service is a service that's considered to be something the user is actively aware of and thus not a candidate for the system to kill when low on memory."

http://developer.android.com/guide/components/services.html

否则,答案是否定的。 Android 可以在需要资源的任何时候停止执行另一个进程的代码。请参阅上面的链接以获得进一步的说明。

关于android - 如何在应用程序中一直使用谷歌语音识别系统?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17530406/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com