Noah;
Noah;
Explore posts from servers
CC#
Created by Noah; on 1/31/2024 in #help
Memory leak problem with System.Speech.Recognition && Microsoft.Speech.Recognition
solved
22 replies
CC#
Created by Noah; on 1/31/2024 in #help
Memory leak problem with System.Speech.Recognition && Microsoft.Speech.Recognition
just hoping this isnt impossible to fix
22 replies
CC#
Created by Noah; on 1/31/2024 in #help
Memory leak problem with System.Speech.Recognition && Microsoft.Speech.Recognition
All help is appreciated :)
22 replies
CC#
Created by Noah; on 1/31/2024 in #help
Memory leak problem with System.Speech.Recognition && Microsoft.Speech.Recognition
Still very stumped on this.
22 replies
CC#
Created by Noah; on 1/31/2024 in #help
Memory leak problem with System.Speech.Recognition && Microsoft.Speech.Recognition
For what it's worth, the full code:
22 replies
CC#
Created by Noah; on 1/31/2024 in #help
Memory 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
CC#
Created by Noah; on 1/31/2024 in #help
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
CC#
Created by Noah; on 1/31/2024 in #help
Memory leak problem with System.Speech.Recognition && Microsoft.Speech.Recognition
(I have isolated this and profiled it & have determined the issue does not appear to be my code)
22 replies