forked from Blaizzy/mlx-audio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
38 lines (37 loc) · 1.24 KB
/
Package.swift
File metadata and controls
38 lines (37 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// swift-tools-version:5.9
import PackageDescription
let package = Package(
name: "Swift-TTS",
platforms: [.macOS(.v14), .iOS(.v16)],
products: [
.library(
name: "mlx-swift-audio",
targets: ["Swift-TTS","ESpeakNG"]),
],
dependencies: [
.package(url: "https://github.com/ml-explore/mlx-swift", from: "0.25.2")
],
targets: [
.binaryTarget(
name: "ESpeakNG",
path: "mlx_audio_swift/tts/Swift-TTS/Kokoro/Frameworks/ESpeakNG.xcframework"
),
.target(
name: "Swift-TTS",
dependencies: [
.product(name: "MLX", package: "mlx-swift"),
.product(name: "MLXFFT", package: "mlx-swift"),
.product(name: "MLXNN", package: "mlx-swift"),
"ESpeakNG"
],
path: "mlx_audio_swift/tts/Swift-TTS",
exclude: ["Preview Content", "Assets.xcassets", "Swift_TTSApp.swift", "Swift_TTS.entitlements"],
resources: [.process("Kokoro/Resources")] // Access the voices from Kokoro
),
.testTarget(
name: "Swift-TTS-Tests",
dependencies: ["Swift-TTS"],
path: "mlx_audio_swift/tts/Tests"
),
]
)