Commit 32e5bbc
committed
address comments
- .github/workflows/swift-format.yml
2. Documentation/EspeakFramework.md
- Reorganized documentation to clarify that both macOS and iOS use the same primary flow (packaged bundle first)
- Separated fallback behavior - only macOS falls back to downloading zip if bundle missing
- Removed confusion about platform differences in bundling approach
3. sources/FluidAudio/Resources/.gitkeep & espeak-ng/.gitkeep ❌ DELETED
- Removed placeholder files (no longer needed if committing actual bundle)
4. Sources/FluidAudio/TextToSpeech/Kokoro/Assets/Lexicon/EspeakG2P.swift
- Added configurable espeak voice parameter (defaults to en-us)
- Tracks current voice and only calls espeak_SetVoiceByName() when it changes
- Enables multi-language support (British English, Spanish, French, etc.)
5. Sources/FluidAudio/TextToSpeech/Kokoro/Assets/TtsResourceDownloader.swift
- Removed PyTorch .pt file download logic (58 lines removed)
- Simplified voice embedding download to only fetch usable JSON files
- Better error messages when embeddings unavailable
6. Sources/FluidAudio/TextToSpeech/Kokoro/Pipeline/Preprocess/KokoroChunker.swift
- Removed #if canImport(ESpeakNG) checks (96 lines removed)
- Removed #available checks for macOS 10.14/iOS 12.0 (unnecessary with current deployment targets)
- Removed NSLinguisticTagger fallback code (always uses NaturalLanguage now)
- Cleaner code without redundant platform checks1 parent 4c7b8b2 commit 32e5bbc
8 files changed
Lines changed: 58 additions & 384 deletions
File tree
- .github/workflows
- Documentation
- Sources/FluidAudio
- Resources
- espeak-ng
- TextToSpeech/Kokoro
- Assets
- Lexicon
- Pipeline/Preprocess
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
| |||
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
53 | | - | |
| 52 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
Whitespace-only changes.
Whitespace-only changes.
Lines changed: 14 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
44 | 52 | | |
45 | 53 | | |
46 | 54 | | |
| |||
64 | 72 | | |
65 | 73 | | |
66 | 74 | | |
67 | | - | |
| 75 | + | |
| 76 | + | |
68 | 77 | | |
69 | 78 | | |
70 | 79 | | |
| |||
Lines changed: 11 additions & 47 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | 49 | | |
51 | 50 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 51 | + | |
| 52 | + | |
64 | 53 | | |
65 | 54 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
98 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
99 | 65 | | |
100 | | - | |
101 | | - | |
102 | 66 | | |
103 | 67 | | |
104 | 68 | | |
| |||
Lines changed: 21 additions & 75 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
397 | 392 | | |
398 | 393 | | |
399 | | - | |
400 | 394 | | |
401 | 395 | | |
402 | 396 | | |
| |||
408 | 402 | | |
409 | 403 | | |
410 | 404 | | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
420 | 409 | | |
421 | 410 | | |
422 | | - | |
423 | 411 | | |
424 | 412 | | |
425 | 413 | | |
| |||
590 | 578 | | |
591 | 579 | | |
592 | 580 | | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | | - | |
606 | | - | |
607 | | - | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
616 | | - | |
617 | | - | |
618 | | - | |
619 | | - | |
620 | | - | |
621 | | - | |
622 | | - | |
623 | | - | |
624 | | - | |
625 | | - | |
626 | | - | |
627 | | - | |
628 | | - | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | | - | |
633 | | - | |
634 | | - | |
635 | | - | |
636 | | - | |
637 | | - | |
638 | | - | |
639 | | - | |
640 | | - | |
641 | | - | |
642 | | - | |
643 | | - | |
644 | | - | |
645 | | - | |
646 | | - | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
647 | 593 | | |
648 | 594 | | |
649 | 595 | | |
| |||
655 | 601 | | |
656 | 602 | | |
657 | 603 | | |
| 604 | + | |
658 | 605 | | |
659 | | - | |
660 | 606 | | |
661 | 607 | | |
662 | 608 | | |
| |||
0 commit comments