I’ve adapted
NewPipe Extractor to work with
Compose Multiplatform.
https://github.com/yushosei/NewPipeExtractor-KMP
Currently, it supports extracting
audio streams from YouTube and SoundCloud.
If you're building a music-related service, this project may be useful as a reference.
There are also playback examples available for multiple targets.