I am working on application in which i want to open and launch the application by using voice command is it possible to track user audio while application is off and turn it on by user voice command(some specific word like hello app name).
Asked
Active
Viewed 85 times
1 Answers
2
im new here so i dont have reputations for comment
you can use google assistant and users can say hey google, open my app
thats what you can do or
you need to keep a service running in background and capture users voice every second (that would consume a lot of battery)
Taha Gorme
- 25
- 2
-
Thank you for commenting can you please share a code of service i don't want to involve hey google – Hammad Qasir Aug 30 '21 at 06:34
-
@HammadQasir well that isnt recommended. it will detect users voice 24/7 and then detect if it calls to open the app. This isnt good for peoples privacy and it would consume a lot of battery. i mean a lot. – Taha Gorme Aug 31 '21 at 01:37
-
What if we take permissions to user and how can we achieve this – Hammad Qasir Aug 31 '21 at 10:02
-
@HammadQasir still, that would consume a lot of battery and heat up the phone lol – Taha Gorme Aug 31 '21 at 10:29
-
its ok but i want to implement it please – Hammad Qasir Aug 31 '21 at 10:57
-
@HammadQasir refer this post for running app in background https://stackoverflow.com/a/34573169 – Taha Gorme Aug 31 '21 at 11:09
-
already check sir its not working – Hammad Qasir Aug 31 '21 at 11:25