Card: CoreAIKit one-liner (catalog id)
Browse files
README.md
CHANGED
|
@@ -54,6 +54,14 @@ cold first run is 3.82 s ~ 2.1x real-time (load 1.24 s), before the GPU clocks r
|
|
| 54 |
|
| 55 |
## Use it
|
| 56 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
Ships in the zoo's **[coreai-audio](https://github.com/john-rocky/coreai-model-zoo/tree/main/apps/coreai-audio)**
|
| 58 |
app (**Separate** tab), which pairs it with the Music tab (Stable Audio Open Small): generate a
|
| 59 |
track, then rip its stems. Conversion recipe and the Swift host reference:
|
|
|
|
| 54 |
|
| 55 |
## Use it
|
| 56 |
|
| 57 |
+
```swift
|
| 58 |
+
import CoreAIKit
|
| 59 |
+
|
| 60 |
+
let separator = try await KitSeparator(catalog: "melband-roformer-vocal")
|
| 61 |
+
let stems = try await separator.separate(contentsOf: songURL)
|
| 62 |
+
// stems.vocals / stems.instrumental — [channel][sample] at 44.1 kHz
|
| 63 |
+
```
|
| 64 |
+
|
| 65 |
Ships in the zoo's **[coreai-audio](https://github.com/john-rocky/coreai-model-zoo/tree/main/apps/coreai-audio)**
|
| 66 |
app (**Separate** tab), which pairs it with the Music tab (Stable Audio Open Small): generate a
|
| 67 |
track, then rip its stems. Conversion recipe and the Swift host reference:
|