0

In my Text to Speech related code, I use SpeechSynthesizer.SynthesisCompleted Event of the SpeechSynthesizer class of the Microsoft.CognitiveServices.Speech namespace to handle the scenarios when a speech is completed. I was looking for a similar event or method of the SpeechRecognizer class when working on Speech to text scenario - and I could not find any such event or method for the SpeechRecognizer class. The Microsoft document for SpeechRecognizer.Finalize Method of SpeechRecognizer Class does not give any description of the method. I was wondering a) what is the role of this method b) the doc gives the syntax of the method as ~SpeechRecognizer ();. What does the character ~ signifies here?

nam
  • 21,967
  • 37
  • 158
  • 332
  • 1
    It is a [finalizer](https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/destructors). – Guru Stron Jun 20 '21 at 21:35
  • @GuruStron You answered my question. Thank you for sharing your knowledge. – nam Jun 20 '21 at 21:43

0 Answers0