thewh1teagle/piper-rs

Unloading models

Opened this issue · 0 comments

Hello, I'm new to Rust, and as an exercise, I made a simple TTS GUI using Tauri. I used your crate for TTS, but I encountered a memory leak, which I believe is caused by not being able to unload ONNX models. I'm not entirely sure how to explain this properly since I'm new to this area.

Could you let me know if I'm using the crate incorrectly or in a way it wasn't intended? Any guidance would be appreciated.
https://github.com/Aryxst/simple-tts-gui/blob/master/src-tauri/src/tts.rs#L9-L40

2024-12-23.12-21-43.mp4