RealtimeSTT
RealtimeSTT copied to clipboard
reworked mic reconnection on errors
The audio device might still be in the process of resetting when you attempt to reinitialize it after calling terminate(). When the interface is terminated, the system might not immediately recognize the microphone device (especially if it was briefly disconnected), leading to the "No Default Input Device Available" error.
By removing the termination step, you avoid fully closing the interface, allowing the device to reconnect more smoothly.