-
Notifications
You must be signed in to change notification settings - Fork 421
Expand file tree
/
Copy pathPackage.swift
More file actions
82 lines (81 loc) · 2.68 KB
/
Copy pathPackage.swift
File metadata and controls
82 lines (81 loc) · 2.68 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// swift-tools-version: 6.0
import PackageDescription
import Foundation
let package = Package(
name: "FluidAudio",
platforms: [
.macOS(.v14),
.iOS(.v17),
],
products: [
.library(
name: "FluidAudio",
targets: ["FluidAudio"]
),
.executable(
name: "fluidaudiocli",
targets: ["FluidAudioCLI"]
),
],
dependencies: [],
targets: [
.target(
name: "FluidAudio",
dependencies: [
"FastClusterWrapper",
"MachTaskSelfWrapper",
"NemoTextProcessing",
],
path: "Sources/FluidAudio",
exclude: ["ASR/Parakeet/Unified/benchmark.md"],
resources: [
// Keep .process: .copy of a Resources-named directory breaks Apple code signing on iOS.
.process("TTS/LuxTts/G2p/Resources")
]
),
// Byte-exact NeMo text normalization (FST engine, all 7 languages).
// Prebuilt xcframework from FluidInference/text-processing-rs v0.3.0.
// Always linked on tools < 6.2; Package@swift-6.2.swift exposes it as
// the opt-out `NemoTextProcessing` trait (#880, #888).
.binaryTarget(
name: "NemoTextProcessing",
url:
"https://github.com/FluidInference/text-processing-rs/releases/download/v0.3.0/NemoTextProcessing.xcframework.zip",
checksum: "76d0ee9a32b1ee2193231299180ca9bc4fc7e98794e771b3d55d66498352d85f"
),
.target(
name: "FastClusterWrapper",
path: "Sources/FastClusterWrapper",
publicHeadersPath: "include"
),
.target(
name: "MachTaskSelfWrapper",
path: "Sources/MachTaskSelfWrapper",
publicHeadersPath: "include"
),
.executableTarget(
name: "FluidAudioCLI",
dependencies: ["FluidAudio"],
path: "Sources/FluidAudioCLI",
exclude: ["README.md"],
resources: [
.process("Utils/english.json")
]
),
.testTarget(
name: "FluidAudioTests",
dependencies: [
"FluidAudio",
"FluidAudioCLI",
],
resources: [
.process("TTS/LuxTts/Resources"),
.process("TTS/PocketTTS/Fixtures"),
// Real recordings (cleared for public release by the speaker) for the
// streaming final-window regression, issue #855.
.copy("ASR/Parakeet/SlidingWindow/Fixtures"),
]
),
],
cxxLanguageStandard: .cxx17
)