Currently the listen_loop method simply prints the results to STDOUT. There is no way to access the string values. This PR moves the listening logic to listen_continuously, which yields the results one by one, and listen_loop can just call the new function. This is just a quick idea that came to my mind, there's probably a better way of doing it. But I need to read the values in my program to do stuff like terminating the process with a voice command, so I think this feature has its use cases.
Currently the
listen_loop
method simply prints the results to STDOUT. There is no way to access the string values. This PR moves the listening logic tolisten_continuously
, which yields the results one by one, andlisten_loop
can just call the new function. This is just a quick idea that came to my mind, there's probably a better way of doing it. But I need to read the values in my program to do stuff like terminating the process with a voice command, so I think this feature has its use cases.