How to properly dispose of SpeechSynthesizer for async text-to-speech?
问题 I have a form and I want to allow the user to receive asynchronous text-to-speech output based on the content of a text box whenever a button is pressed. For context, this form is launched as part of an "internal" C# function within VoiceAttack, and this is a continuation of a previous question. This snippet does the job nicely: SpeechSynthesizer synth = new SpeechSynthesizer(); // Create new SpeechSynthesizer instance // Function for asynchronous voicing of text with text-to-speech public