Is there any way to disable the microphone or to stop the voice ML once it has begun,
the stop command just merely stops the voice recording but the microphone doesn't get disabled
You can disable the microphone on your device by going into your device's settings and turning off the microphone. On most devices, you can also turn off the microphone temporarily by using the mute button.
If you want to stop the voice ML model from running, you can use the stop() function to stop the model. This will stop the model from processing any further input and will disable the microphone.