sherpa-onnx icon indicating copy to clipboard operation
sherpa-onnx copied to clipboard

How to reduce onnxruntime.xcframework size for iOS

Open kim-sangyeon opened this issue 2 months ago • 1 comments

Hi, thanks for the great framework!

I'm trying to use a VITS TTS model on my iOS app, but the onnxruntime.xcframework is quite large (around 64.6 MB, v1.17.1). This is a bit too heavy for my app distribution.

I noticed the framework seems to be already built with essential modules. Is there a way to reduce the size, maybe by building for specific architectures only or excluding unused operators?

I'm only targeting iOS (ios-arm64), so I'm wondering if there are any build configurations or options I could use to make it smaller.

Thanks!

kim-sangyeon avatar Oct 02 '25 05:10 kim-sangyeon