Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Documentation/ASR/PostProcessing.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ TN converts written-form text to spoken form — useful for TTS preprocessing:

## Using with FluidAudio

FluidAudio supports text-processing-rs through the `TextNormalizer` class. The native engine ships with the package as the `NemoTextProcessing` binary target and is linked directly — no setup required, it works out of the box for every SwiftPM consumer. Apps that don't use TTS or ITN can opt out of the engine (about 8 MB per architecture slice) with a package trait; see [Opting out](#opting-out-of-the-engine).
FluidAudio supports text-processing-rs through the `TextNormalizer` class. The native engine ships with the package as the `NemoTextProcessing` binary target and is linked directly — no setup required, it works out of the box for every SwiftPM consumer. The xcframework carries macOS (arm64 + x86_64), iOS device (arm64), iOS Simulator (arm64 + x86_64) and Mac Catalyst (arm64 + x86_64) slices; text-processing-rs 0.3.0 and earlier had no Catalyst or x86_64-simulator slice, which broke those builds on FluidAudio 0.15.6–0.15.8. Apps that don't use TTS or ITN can opt out of the engine (about 8 MB per architecture slice) with a package trait; see [Opting out](#opting-out-of-the-engine).

### ITN (Spoken to Written)

Expand Down
7 changes: 4 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,15 @@ let package = Package(
]
),
// Byte-exact NeMo text normalization (FST engine, all 7 languages).
// Prebuilt xcframework from FluidInference/text-processing-rs v0.3.0.
// Prebuilt xcframework from FluidInference/text-processing-rs v0.3.1
// (macOS, iOS, iOS Simulator and Mac Catalyst slices).
// 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"
"https://github.com/FluidInference/text-processing-rs/releases/download/v0.3.1/NemoTextProcessing.xcframework.zip",
checksum: "5fa8c10d4ec26c1bb2413125f351a7222a4c68a23b74476680fbada7e26fc6aa"
),
.target(
name: "FastClusterWrapper",
Expand Down
7 changes: 4 additions & 3 deletions Package@swift-6.2.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,13 @@ let package = Package(
]
),
// Byte-exact NeMo text normalization (FST engine, all 7 languages).
// Prebuilt xcframework from FluidInference/text-processing-rs v0.3.0.
// Prebuilt xcframework from FluidInference/text-processing-rs v0.3.1
// (macOS, iOS, iOS Simulator and Mac Catalyst slices).
.binaryTarget(
name: "NemoTextProcessing",
url:
"https://github.com/FluidInference/text-processing-rs/releases/download/v0.3.0/NemoTextProcessing.xcframework.zip",
checksum: "76d0ee9a32b1ee2193231299180ca9bc4fc7e98794e771b3d55d66498352d85f"
"https://github.com/FluidInference/text-processing-rs/releases/download/v0.3.1/NemoTextProcessing.xcframework.zip",
checksum: "5fa8c10d4ec26c1bb2413125f351a7222a4c68a23b74476680fbada7e26fc6aa"
),
.target(
name: "FastClusterWrapper",
Expand Down
Loading