Noah;
Explore posts from serversMemory leak problem with System.Speech.Recognition && Microsoft.Speech.Recognition
Found some people doing the same thing as me online.
https://stackoverflow.com/questions/68106636/using-a-memorystream-with-nets-system-speech-speechrecognitionengine-class
https://stackoverflow.com/questions/1682902/streaming-input-to-system-speech-recognition-speechrecognitionengine?rq=4
They don't seem to be having any issues... but I can't find anything that they're doing that I am not..
22 replies
Memory leak problem with System.Speech.Recognition && Microsoft.Speech.Recognition
For some additional information, the buffered steam is just a list of bytes with a predefined size (48,000 bytes in this case, which is 0.25s of audio data) and its size never changes.
When trying to profile the issue using dotMemory the issue seems to be a ton of Byte[] object with a stack trace of literally just [AllThreadsRoot].
The exception gets called when a socket connection closes (each socket connection has its own instance of SpeechRecognitionEngine) and only happens once per instance. After that everything is being disposed.
22 replies