Voice Assistance integration with Android App in 2021

Is there any way to make an application with android studio which uses some service like "ok google" to interact within an app like "start the timer" something to only use voice command without buttons or anything like that?

something like wait for the command to start voice reading

It should not necessarily be from google but it should be compatible with android studio.

Thanks a lot!!