rawi-speech 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. rawi_speech-0.1.0/.gitignore +22 -0
  2. rawi_speech-0.1.0/CHANGELOG.md +341 -0
  3. rawi_speech-0.1.0/LICENSE +201 -0
  4. rawi_speech-0.1.0/NOTICE +55 -0
  5. rawi_speech-0.1.0/PKG-INFO +639 -0
  6. rawi_speech-0.1.0/README.md +536 -0
  7. rawi_speech-0.1.0/pyproject.toml +224 -0
  8. rawi_speech-0.1.0/src/rawi/__init__.py +7 -0
  9. rawi_speech-0.1.0/src/rawi/__main__.py +8 -0
  10. rawi_speech-0.1.0/src/rawi/audio/__init__.py +0 -0
  11. rawi_speech-0.1.0/src/rawi/audio/io.py +217 -0
  12. rawi_speech-0.1.0/src/rawi/audio/vad.py +48 -0
  13. rawi_speech-0.1.0/src/rawi/cli.py +487 -0
  14. rawi_speech-0.1.0/src/rawi/client.py +74 -0
  15. rawi_speech-0.1.0/src/rawi/config.py +96 -0
  16. rawi_speech-0.1.0/src/rawi/engines/__init__.py +0 -0
  17. rawi_speech-0.1.0/src/rawi/engines/base.py +175 -0
  18. rawi_speech-0.1.0/src/rawi/engines/factory.py +50 -0
  19. rawi_speech-0.1.0/src/rawi/engines/stt/__init__.py +0 -0
  20. rawi_speech-0.1.0/src/rawi/engines/stt/cohere.py +148 -0
  21. rawi_speech-0.1.0/src/rawi/engines/stt/faster_whisper.py +77 -0
  22. rawi_speech-0.1.0/src/rawi/engines/stt/qwen3.py +221 -0
  23. rawi_speech-0.1.0/src/rawi/engines/stt/sirocco.py +147 -0
  24. rawi_speech-0.1.0/src/rawi/engines/tts/__init__.py +0 -0
  25. rawi_speech-0.1.0/src/rawi/engines/tts/chatterbox.py +100 -0
  26. rawi_speech-0.1.0/src/rawi/engines/tts/f5.py +321 -0
  27. rawi_speech-0.1.0/src/rawi/engines/tts/kokoro_engine.py +196 -0
  28. rawi_speech-0.1.0/src/rawi/engines/tts/mlx_audio_engine.py +131 -0
  29. rawi_speech-0.1.0/src/rawi/engines/tts/omnivoice_engine.py +88 -0
  30. rawi_speech-0.1.0/src/rawi/engines/tts/speecht5.py +121 -0
  31. rawi_speech-0.1.0/src/rawi/engines/tts/supertonic.py +288 -0
  32. rawi_speech-0.1.0/src/rawi/engines/tts/tiny_voca.py +271 -0
  33. rawi_speech-0.1.0/src/rawi/engines/tts/tiny_voca_cs.py +70 -0
  34. rawi_speech-0.1.0/src/rawi/engines/tts/torch_base.py +290 -0
  35. rawi_speech-0.1.0/src/rawi/engines/tts/voxcpm.py +86 -0
  36. rawi_speech-0.1.0/src/rawi/engines/tts/xtts.py +151 -0
  37. rawi_speech-0.1.0/src/rawi/errors.py +164 -0
  38. rawi_speech-0.1.0/src/rawi/log.py +23 -0
  39. rawi_speech-0.1.0/src/rawi/manager.py +215 -0
  40. rawi_speech-0.1.0/src/rawi/registry/__init__.py +0 -0
  41. rawi_speech-0.1.0/src/rawi/registry/manifest.py +154 -0
  42. rawi_speech-0.1.0/src/rawi/registry/models.yaml +977 -0
  43. rawi_speech-0.1.0/src/rawi/registry/store.py +230 -0
  44. rawi_speech-0.1.0/src/rawi/server/__init__.py +0 -0
  45. rawi_speech-0.1.0/src/rawi/server/app.py +127 -0
  46. rawi_speech-0.1.0/src/rawi/server/routes/__init__.py +0 -0
  47. rawi_speech-0.1.0/src/rawi/server/routes/health.py +18 -0
  48. rawi_speech-0.1.0/src/rawi/server/routes/native.py +112 -0
  49. rawi_speech-0.1.0/src/rawi/server/routes/openai_audio.py +281 -0
  50. rawi_speech-0.1.0/src/rawi/server/schemas.py +34 -0
  51. rawi_speech-0.1.0/src/rawi/server/state.py +23 -0
  52. rawi_speech-0.1.0/src/rawi/text/__init__.py +0 -0
  53. rawi_speech-0.1.0/src/rawi/text/arabic.py +117 -0
  54. rawi_speech-0.1.0/src/rawi/text/metrics.py +38 -0
  55. rawi_speech-0.1.0/src/rawi/vendor/README.md +78 -0
  56. rawi_speech-0.1.0/src/rawi/vendor/catt_tashkeel/LICENSE +201 -0
  57. rawi_speech-0.1.0/src/rawi/vendor/catt_tashkeel/__init__.py +14 -0
  58. rawi_speech-0.1.0/src/rawi/vendor/catt_tashkeel/bw2ar.py +129 -0
  59. rawi_speech-0.1.0/src/rawi/vendor/catt_tashkeel/models.py +356 -0
  60. rawi_speech-0.1.0/src/rawi/vendor/catt_tashkeel/tokenizer.py +161 -0
  61. rawi_speech-0.1.0/src/rawi/vendor/catt_tashkeel/utils.py +142 -0
  62. rawi_speech-0.1.0/src/rawi/vendor/dizione/LICENSE +202 -0
  63. rawi_speech-0.1.0/src/rawi/vendor/dizione/__init__.py +74 -0
  64. rawi_speech-0.1.0/src/rawi/vendor/dizione/align.py +159 -0
  65. rawi_speech-0.1.0/src/rawi/vendor/dizione/convert.py +417 -0
  66. rawi_speech-0.1.0/src/rawi/vendor/dizione/data/abbreviations.txt +103 -0
  67. rawi_speech-0.1.0/src/rawi/vendor/dizione/data/chat.txt +111 -0
  68. rawi_speech-0.1.0/src/rawi/vendor/dizione/data/endings.txt +130 -0
  69. rawi_speech-0.1.0/src/rawi/vendor/dizione/data/exceptions.txt +250 -0
  70. rawi_speech-0.1.0/src/rawi/vendor/dizione/data/function_words.txt +189 -0
  71. rawi_speech-0.1.0/src/rawi/vendor/dizione/data/homograph_fixes.txt +57 -0
  72. rawi_speech-0.1.0/src/rawi/vendor/dizione/data/homograph_rules.txt +39 -0
  73. rawi_speech-0.1.0/src/rawi/vendor/dizione/data/letters.txt +27 -0
  74. rawi_speech-0.1.0/src/rawi/vendor/dizione/data/phrases.txt +63 -0
  75. rawi_speech-0.1.0/src/rawi/vendor/dizione/data/units.txt +76 -0
  76. rawi_speech-0.1.0/src/rawi/vendor/dizione/engine.py +280 -0
  77. rawi_speech-0.1.0/src/rawi/vendor/dizione/g2p.py +98 -0
  78. rawi_speech-0.1.0/src/rawi/vendor/dizione/homographs.py +201 -0
  79. rawi_speech-0.1.0/src/rawi/vendor/dizione/morphology.py +220 -0
  80. rawi_speech-0.1.0/src/rawi/vendor/dizione/normalize.py +1426 -0
  81. rawi_speech-0.1.0/src/rawi/vendor/dizione/sentence.py +118 -0
  82. rawi_speech-0.1.0/src/rawi/vendor/dizione/symbols.py +71 -0
  83. rawi_speech-0.1.0/src/rawi/vendor/dizione/tables.py +106 -0
  84. rawi_speech-0.1.0/src/rawi/vendor/supertonic/LICENSE +21 -0
  85. rawi_speech-0.1.0/src/rawi/vendor/supertonic/__init__.py +1 -0
  86. rawi_speech-0.1.0/src/rawi/vendor/supertonic/text.py +178 -0
  87. rawi_speech-0.1.0/src/rawi/vendor/tiny_voca_ar/LICENSE +201 -0
  88. rawi_speech-0.1.0/src/rawi/vendor/tiny_voca_ar/__init__.py +5 -0
  89. rawi_speech-0.1.0/src/rawi/vendor/tiny_voca_ar/arabic_frontend.py +351 -0
  90. rawi_speech-0.1.0/src/rawi/vendor/tiny_voca_ar/numbers.py +79 -0
  91. rawi_speech-0.1.0/src/rawi/vendor/tiny_voca_ar/text.py +144 -0
  92. rawi_speech-0.1.0/src/rawi/vendor/tiny_voca_cs/LICENSE +202 -0
  93. rawi_speech-0.1.0/src/rawi/vendor/tiny_voca_cs/__init__.py +3 -0
  94. rawi_speech-0.1.0/src/rawi/vendor/tiny_voca_cs/text.py +323 -0
  95. rawi_speech-0.1.0/tests/__init__.py +0 -0
  96. rawi_speech-0.1.0/tests/conftest.py +20 -0
  97. rawi_speech-0.1.0/tests/integration/__init__.py +0 -0
  98. rawi_speech-0.1.0/tests/integration/test_arena_tts_real.py +98 -0
  99. rawi_speech-0.1.0/tests/integration/test_hub_models_real.py +90 -0
  100. rawi_speech-0.1.0/tests/integration/test_pull_real.py +40 -0
  101. rawi_speech-0.1.0/tests/integration/test_qwen3_real.py +62 -0
  102. rawi_speech-0.1.0/tests/integration/test_server_real.py +66 -0
  103. rawi_speech-0.1.0/tests/integration/test_sirocco_real.py +58 -0
  104. rawi_speech-0.1.0/tests/integration/test_stt_real.py +100 -0
  105. rawi_speech-0.1.0/tests/integration/test_supertonic_real.py +61 -0
  106. rawi_speech-0.1.0/tests/integration/test_tts_real.py +68 -0
  107. rawi_speech-0.1.0/tests/server/__init__.py +0 -0
  108. rawi_speech-0.1.0/tests/server/conftest.py +165 -0
  109. rawi_speech-0.1.0/tests/server/test_cli_server.py +62 -0
  110. rawi_speech-0.1.0/tests/server/test_manager.py +164 -0
  111. rawi_speech-0.1.0/tests/server/test_openai_compat.py +108 -0
  112. rawi_speech-0.1.0/tests/server/test_routes.py +332 -0
  113. rawi_speech-0.1.0/tests/unit/__init__.py +0 -0
  114. rawi_speech-0.1.0/tests/unit/test_arena_nc.py +215 -0
  115. rawi_speech-0.1.0/tests/unit/test_audio_decode.py +95 -0
  116. rawi_speech-0.1.0/tests/unit/test_audio_io.py +21 -0
  117. rawi_speech-0.1.0/tests/unit/test_cli.py +45 -0
  118. rawi_speech-0.1.0/tests/unit/test_cli_registry.py +133 -0
  119. rawi_speech-0.1.0/tests/unit/test_config.py +58 -0
  120. rawi_speech-0.1.0/tests/unit/test_docs.py +45 -0
  121. rawi_speech-0.1.0/tests/unit/test_engines.py +236 -0
  122. rawi_speech-0.1.0/tests/unit/test_errors.py +45 -0
  123. rawi_speech-0.1.0/tests/unit/test_hub.py +68 -0
  124. rawi_speech-0.1.0/tests/unit/test_manifest.py +152 -0
  125. rawi_speech-0.1.0/tests/unit/test_metrics.py +15 -0
  126. rawi_speech-0.1.0/tests/unit/test_qwen3.py +115 -0
  127. rawi_speech-0.1.0/tests/unit/test_sirocco.py +99 -0
  128. rawi_speech-0.1.0/tests/unit/test_store.py +194 -0
  129. rawi_speech-0.1.0/tests/unit/test_streaming.py +145 -0
  130. rawi_speech-0.1.0/tests/unit/test_stt_engines.py +123 -0
  131. rawi_speech-0.1.0/tests/unit/test_supertonic.py +213 -0
  132. rawi_speech-0.1.0/tests/unit/test_text_arabic.py +55 -0
  133. rawi_speech-0.1.0/tests/unit/test_tiny_voca_cs.py +93 -0
  134. rawi_speech-0.1.0/tests/unit/test_torch_tts.py +257 -0
@@ -0,0 +1,22 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ .venv/
4
+ .pytest_cache/
5
+ .mypy_cache/
6
+ .ruff_cache/
7
+ dist/
8
+ build/
9
+ *.egg-info/
10
+ .coverage
11
+ htmlcov/
12
+ # never commit model weights or large audio
13
+ *.onnx
14
+ *.safetensors
15
+ *.bin
16
+ *.pt
17
+ /models/
18
+ .DS_Store
19
+
20
+ # generated model hub and documentation website
21
+ hub/_site/
22
+ website/site/
@@ -0,0 +1,341 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project are documented here. The format follows
4
+ [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
5
+
6
+ ## [Unreleased]
7
+
8
+ ### Packaging for PyPI
9
+ - The PyPI package is named **`rawi-speech`** (`rawi` was not available on PyPI). Only install
10
+ commands change (`pip install rawi-speech`, `"rawi-speech[qwen]"`, `"rawi-speech @ git+..."`),
11
+ including the fix commands in error messages. The project, the `rawi` command and
12
+ `import rawi` keep the name Rawi.
13
+ - Version 0.1.0, ready for the first PyPI release. The version now lives only in
14
+ `src/rawi/__init__.py`; `pyproject.toml` reads it from there.
15
+ - New workflow `.github/workflows/publish.yml`: a `v*` tag builds and uploads to PyPI with
16
+ Trusted Publishing (no tokens); running it by hand uploads to TestPyPI. It refuses a tag that
17
+ doesn't match `__version__`.
18
+ - New `docs/RELEASING.md`: one-time PyPI setup, practice run, release steps, troubleshooting.
19
+ - The sdist now holds only code, tests and the files PyPI shows (no lock file, website, hub or
20
+ local audio). Added project links (docs, changelog, issues) and classifiers.
21
+ - README links and the poster use full URLs, so they also work on the PyPI page.
22
+ - `.gitignore`: removed leftover merge-conflict markers.
23
+
24
+ ### README
25
+ - New poster banner (`docs/assets/rawi-poster.svg`) in the docs-site palette, with badges and
26
+ quick links.
27
+ - Step-by-step installation (requirements, macOS/Linux, verify, first model, extras, update and
28
+ uninstall), a "How it works" diagram, and the Arabic section now has install steps too.
29
+ - Model table split into base-install TTS, optional-extra TTS and STT; removed rows that were
30
+ listed twice.
31
+ - Windows install steps: uv, ffmpeg and Git with winget, then the same `uv tool install` as
32
+ macOS and Linux, in English and Arabic.
33
+ - Docs site and `docs/INSTALL.md`: the same native Windows steps (installation page with uv and
34
+ pipx tabs, Arabic quickstart, FAQ, home page), replacing "not tested, use Docker or WSL 2".
35
+
36
+ ### Streaming TTS for every model
37
+ - `/v1/audio/speech` streams on request for every TTS model; non-streaming stays the default.
38
+ `"stream": true` sends raw audio by chunked transfer (`wav`, `pcm`, and now `mp3` and `aac`).
39
+ OpenAI's `"stream_format": "sse"` sends `speech.audio.delta` events with base64 audio, then
40
+ `speech.audio.done`. `flac`/`opus` with streaming return a clear 400 error instead of quietly
41
+ not streaming.
42
+ - Streaming cuts sentences longer than 50 characters at commas and sends each clause as soon as
43
+ it is ready, so the first audio no longer waits for a whole long sentence. The pause between
44
+ pieces goes in front of the next piece, so streams never end in silence.
45
+ - New `rawi.engines.base.stream_pieces` and `rawi.text.arabic.split_clauses`. Engines that only
46
+ implement `synthesize` now stream through a generic sentence/clause fallback.
47
+ - New header `X-Rawi-First-Chunk-Ms` on streaming responses. Each streamed piece carries only
48
+ the warnings that are new since the previous piece.
49
+ - Docs: API reference (streaming section, SSE format), TTS guide, adding-a-model guide.
50
+
51
+ ### Sirocco-ASR-v1
52
+ - New STT model `sirocco-asr` (AI71ai/Sirocco-ASR-v1 @ `9a34ecf`), first on the Open Universal
53
+ Arabic ASR Leaderboard (average WER 19.35). **CC-BY-NC-4.0: non-commercial use only.**
54
+ - New engine `sirocco_asr` and extra `rawi[sirocco]` (torch, transformers ≥ 5.14.1). The model's
55
+ decoder is the repo's own `modeling_hybrid.py`, loaded with `trust_remote_code` from the pinned
56
+ commit in the local model folder. CUDA → MPS → CPU fallback; `digits`/`latin` options.
57
+ - CI job `integration / sirocco-asr (CPU torch)`: tiny-voca → Sirocco round trip.
58
+ - Docs: model catalog, STT guide, installation extras, licenses, hub page, Arabic pages, README.
59
+
60
+ ### Model hub inside the docs site
61
+ - The model hub is now a page of the documentation site (`/RAWI/docs/hub/`), so it has the same
62
+ header, tabs, search and light/dark toggle as every other page. `hub/build.py --docs-page`
63
+ generates `website/docs/hub.md` from `models.yaml`, and `--redirect` turns the old address
64
+ (`/RAWI/`) into a redirect to it. `models.json` stays at `/RAWI/models.json`.
65
+ - Hub filters now work (cards were never hidden because `display: flex` beat `[hidden]`), and a
66
+ second row filters by engine. Each card shows its engine.
67
+ - Docs cover the 12 non-commercial Arena models (`habibi`, `habibi-sau`, `habibi-uae`,
68
+ `arabic-f5`, `xtts-v2`, `fasih`, `speecht5-ar`, `omnivoice`, `voxtral-tts`, `higgs-tts-3`,
69
+ `fish-s2-pro`, `moss-tts-nano`), the `xtts`, `speecht5`, `omnivoice` and `mlx_audio` engines
70
+ and their extras: model catalog, TTS guide, installation, architecture, adding a model, FAQ,
71
+ licenses, home page and the Arabic models page.
72
+
73
+ ### Docs: new models and engines
74
+ - Documentation site and README updated for the 12 TTS models added since the docs were
75
+ written (`tiny-voca-ar-en`, `nabra`, `silma-tts`, five `habibi-*`, `chatterbox-ar`, `lahgtna`,
76
+ `lahgtna-v0`, `voxcpm2`), the `tiny_voca_cs_onnx`, `f5_tts`, `chatterbox`, `voxcpm` and `kokoro`
77
+ engines, and the `f5`, `chatterbox`, `voxcpm` and `kokoro` extras (including how to run
78
+ Chatterbox in its own environment). Model catalog, TTS guide, installation, home page, API
79
+ speed ranges, architecture, adding a model, FAQ, licenses and the Arabic pages.
80
+ ### Model hub navigation bar
81
+ - The hub page now has the same top bar and tabs as the documentation site (Home, Model hub,
82
+ Getting started, Guides, Reference, Concepts, Contributing, Help, About, العربية, GitHub).
83
+
84
+ ### Website design: Arabic identity
85
+ - Docs site and model hub restyled with an Arabic-identity palette (ink `#1c1c1e`, graphite
86
+ `#3a3a3c`, copper `#a8784f`, warm paper `#f6f4f2`) and IBM Plex Sans Arabic. Dark (ink) is the
87
+ default with a warm-paper light mode; copper buttons, section rules and accents; an Arabic-first
88
+ hero on the docs home page; buttons for the docs on the hub page.
89
+
90
+ ### Arabic TTS Arena models
91
+ - Eleven TTS models from the Arabic TTS Arena with MIT/Apache-2.0 weights, on four new PyTorch
92
+ engines that share `engines/tts/torch_base.py` (extra check, CUDA → MPS → CPU fallback,
93
+ numbers read in Arabic, sentence-by-sentence streaming, `seed` option):
94
+ - `chatterbox` engine (`rawi[chatterbox]`): `chatterbox-ar` (Chatterbox Multilingual V3),
95
+ `lahgtna` and `lahgtna-v0` (dialect fine-tunes).
96
+ - `voxcpm` engine (`rawi[voxcpm]`): `voxcpm2`, voices `male`, `female`, `narrator`, `news`
97
+ or any `"(description)"`.
98
+ - `f5_tts` engine (`rawi[f5]`): `silma-tts` and `habibi-msa`, `habibi-egy`, `habibi-irq`,
99
+ `habibi-mar`, `habibi-alg`. Reference clips and the Vocos vocoder download as assets.
100
+ - `kokoro` engine (`rawi[kokoro]`): `nabra` (Nabra-82M), CATT + espeak-ng front end.
101
+ - The new extras are declared as uv conflicts where their pins clash (Chatterbox pins
102
+ torch 2.6 / transformers 5.2).
103
+ - Closed/API-only Arena models are listed as not addable in the plan (§1.1d).
104
+ - Plan change: Kokoro/espeak-ng (GPL) and cloning-based F5 models, skipped in §1.1c, are now in,
105
+ each behind an optional extra.
106
+ - Fix: the `cohere` Docker image read the first torch version in `uv.lock` (now Chatterbox's
107
+ 2.6.0); it now takes torch's pin from the cohere export.
108
+ - Fix: `nabra` produced noise. The checkpoint uses the parametrized weight norm of the Kokoro
109
+ fork it was trained with, which PyPI `kokoro` silently skipped (`strict=False`); the engine now
110
+ converts it once to the legacy names (`kokoro_arabic.rawi.pth`).
111
+ - Fix: Chatterbox failed to load because its watermarker (resemble-perth) imports
112
+ `pkg_resources`, removed in setuptools 81; the extra now pins `setuptools<81`.
113
+ ### Arabic TTS Arena models, non-commercial licenses
114
+ - Twelve more Arena models whose weights are non-commercial (or Apple Silicon only), each
115
+ marked by its `license`:
116
+ - `f5_tts`: `habibi` (Unified; the voice picks the dialect: `msa`, `najdi`, `uae`, `egy`,
117
+ `irq`, `mar`, `alg`), `habibi-sau` (`najdi`, `hijazi`, `gulf`), `habibi-uae`, and
118
+ `arabic-f5` (Arabic F5-TTS v2, new `f5_base_arabic` arch). F5 models can now have several
119
+ voices, each with its own reference clip (`ref_audio:<voice>`).
120
+ - New `xtts` engine (`rawi[xtts]`): `xtts-v2` (any built-in speaker name works as the voice)
121
+ and `fasih`.
122
+ - New `speecht5` engine (`rawi[speecht5]`): `speecht5-ar`.
123
+ - New `omnivoice` engine (`rawi[omnivoice]`): `omnivoice`, voices from tag lists.
124
+ - New `mlx_audio` engine (`rawi[mlx]`, Mac with Apple Silicon only): `voxtral-tts`,
125
+ `higgs-tts-3`, `fish-s2-pro`, `moss-tts-nano`.
126
+ - The torch engine base now leaves the framework to a `_devices()` / `_seed()` hook, so the MLX
127
+ engine shares the sentence splitting and streaming.
128
+ - CI: new arena jobs for `xtts`, `speecht5`, `omnivoice`, `habibi` + `arabic-f5`, and an
129
+ Apple Silicon job for `voxtral-tts`.
130
+ - After the first real CI run: `voxtral-tts` now uses the 4-bit MLX conversion (2.5 GB instead
131
+ of 8 GB, fits 8 GB Macs and the CI runner); `moss-tts-nano` was removed (no recognizable Arabic,
132
+ CER 0.8); the `xtts` extra installs `coqui-tts[codec]` (torchcodec, needed with torch >= 2.9).
133
+ ### Documentation on GitHub Pages
134
+ - The model hub deploy (`hub.yml`) now also builds the MkDocs site from `website/` and publishes
135
+ it at https://omarsalah26.github.io/RAWI/docs/. The hub page links to it, and the README's
136
+ documentation links point there.
137
+ ### Models
138
+ - New TTS model `tiny-voca-ar-en` (`oddadmix/tiny-voca-arabic-code-switching`, Apache-2.0,
139
+ ~115 MB): Modern Standard Arabic with English words mixed in (`اجتماع الـ team على Zoom`),
140
+ voices `arcs_male` (default) and `arcs_female`.
141
+ - New engine `tiny_voca_cs_onnx` (`TinyVocaCodeSwitchEngine`): same ONNX contract as tiny-voca,
142
+ with the model's code-switching front end. English is read by dizione, the article written
143
+ `الـ` before an English word is kept, and digits inside English names (`iPhone 15`) stay English.
144
+ - `TinyVocaEngine` gets a `front_end` module attribute and a `_configure_front_end()` hook.
145
+ - Vendored `dizione` (English phonemizer, NumPy only) and the model's `text.py` in
146
+ `src/rawi/vendor/`; `scripts/vendor_tiny_voca_cs.py` re-vendors them at a pinned commit and
147
+ checks the front-end fingerprint against `onnx/model.json`.
148
+
149
+ ### README
150
+ - Rewritten for the current release: features, install with the `qwen`/`cohere`/`all` extras,
151
+ quick start, all 11 built-in models, OpenAI SDK/curl/Open WebUI usage, Docker, a docs index
152
+ (including the documentation website on the `rawi-documentation` branch), and a fuller Arabic
153
+ section with the model table.
154
+
155
+ ### M6 — Hub, docs & community
156
+ - `docs/API.md`: every route with curl and Python examples in Arabic, the error table, streaming,
157
+ and Open WebUI setup.
158
+ - `docs/MODELS.md`: how to add a model (checks, manifest entry tried in `models.local.yaml`, an
159
+ engine template, extras, vendoring, tests, PR checklist). A unit test runs its YAML and engine
160
+ examples so the guide can't drift from the code.
161
+ - `docs/ARCHITECTURE.md`: STT, server/manager, packaging and hub sections.
162
+ - `hub/build.py`: renders `models.yaml` into a static bilingual (RTL-aware) site with one card per
163
+ model (task, dialects, size, license, pinned source, install command, benchmark placeholder fed
164
+ by an optional `hub/benchmarks.json`) and `models.json`; light/dark, task filter.
165
+ `.github/workflows/hub.yml` deploys it to GitHub Pages.
166
+ - `hub/huggingface/README.md`: draft organization card for the Hugging Face org.
167
+ - README: three-command quick start, model table, Open WebUI setup, links to the docs and hub.
168
+
169
+ ### Plan changes (M6)
170
+ - The hub uses plain Python string templates (no Jinja dependency).
171
+ - The Hugging Face organization is not created by this PR: creating it and enabling GitHub Pages
172
+ are repository-owner steps (see the PR).
173
+
174
+ ### Documentation website
175
+ - New MkDocs (Material) site in `website/`: home page, installation (macOS with uv/Homebrew,
176
+ pipx, Linux, Docker, the `cohere`/`qwen` extras and `HF_TOKEN`), quick start, guides (text to
177
+ speech, speech to text, server, Docker, Open WebUI, OpenAI SDKs and other clients), reference
178
+ (CLI, HTTP API, model catalog, configuration, errors), architecture, contributing (development
179
+ setup, adding a model), troubleshooting, FAQ, synthetic-voice disclosure, licenses, and Arabic
180
+ pages (overview, install and quick start, models). Commands and fields checked against
181
+ `src/rawi/cli.py`, `config.py`, `server/` and `models.yaml`.
182
+ - `.github/workflows/docs-site.yml` builds the site with `mkdocs build --strict` on PRs.
183
+
184
+ ### Leaderboard models
185
+ - New STT models on the existing faster-whisper engine, picked from the Open Universal Arabic ASR
186
+ Leaderboard: `whisper-large-v3` (`Systran/faster-whisper-large-v3`, avg WER 36.86 vs 40.05 for
187
+ turbo, ~3.1 GB) and `whisper-medium` (`Systran/faster-whisper-medium`, ~1.5 GB). Both MIT, ungated.
188
+ - New TTS model `supertonic-3` (`Supertone/supertonic-3`, #2 for Arabic on the Open TTS
189
+ Leaderboard, WER 4.45) on a new `supertonic_onnx` engine: four ONNX graphs on CPU, 44.1 kHz,
190
+ ten preset voices (`M1`-`M5`, `F1`-`F5`), 31 languages (`language` option, default `ar`),
191
+ `steps` (default 8) and `seed` options, numbers spelled out for Arabic, text chunked at
192
+ 300 characters. Front end vendored from `supertone-inc/supertonic` (MIT); weights OpenRAIL-M,
193
+ ~400 MB. Custom voice styles (voice cloning) are not supported.
194
+ - New STT model `qwen3-asr` (`Qwen/Qwen3-ASR-1.7B-hf`, Apache-2.0, ungated, ~4.1 GB; avg WER
195
+ 33.36 on the Arabic ASR leaderboard) on a new `qwen3_asr` engine (transformers-native, needs
196
+ the new `rawi[qwen]` extra with `transformers>=5.13`). Forced or auto-detected language,
197
+ recordings split at quiet points into pieces of at most 60 s, CUDA → MPS → CPU fallback.
198
+ CI job `integration / qwen3-asr` installs CPU torch and runs the round trip.
199
+ - Second batch from a wider Hugging Face search, all on existing engines, Apache-2.0, ungated:
200
+ - `tiny-voca-ar-v2` (`oddadmix/tiny-voca-arabic-v2.1`, ~110 MB): eight MSA voices (`a000`,
201
+ `am6`, `nf2`, `nm2`, `sf1`, `sm3`, `pf4`, `pm2`, or `0`-`7`), same front end as `tiny-voca-ar`.
202
+ - `tiny-voca-saudi` (`Messam174/tiny-voca-arabic-TTS-saudi`): Saudi dialect, one male voice.
203
+ - `whisper-dialectal` (`SohailElsek/whisper-large-v3-arabic-dialectal-v2-ct2`, ~3.1 GB): CT2
204
+ conversion of `oddadmix/whisper-large-v3-arabic-dialectal-v2`, fine-tuned on 13 dialects.
205
+ - New manifest field `options` (per-model engine defaults) and tiny-voca option `case_endings`
206
+ (default true). `tiny-voca-saudi` sets it to false, which drops the optional MSA case endings
207
+ the way the model author's dialect ("colloquial") reading does. Per call it can be overridden.
208
+ The author's pitch smoothing (PyTorch path only) and denoising are not ported.
209
+ - `whisper-small` is now pinned to a commit SHA; a test checks every built-in model is pinned.
210
+
211
+ ### M5 — Packaging: Docker + macOS
212
+ - `docker/Dockerfile`: multi-stage, `python:3.11-slim`, locked deps via `uv sync --frozen
213
+ --no-dev`, ffmpeg, non-root `rawi` user (uid 1000), `RAWI_HOME=/data` volume,
214
+ `RAWI_HOST=0.0.0.0`, `HEALTHCHECK` on `/health`, port 11435, `ENTRYPOINT ["rawi"]` with
215
+ `CMD ["serve"]` (so `docker run … rawi pull …` works). Base image ≈ 190 MB compressed.
216
+ - `--target cohere`: adds `rawi[cohere]` with CPU-only PyTorch (same version as `uv.lock`).
217
+ - `docker/docker-compose.yml`: persistent volume, optional `HF_TOKEN`/`RAWI_API_KEY`, and an
218
+ Open WebUI service (`--profile webui`) pre-configured to use Rawi for TTS and STT.
219
+ - `.github/workflows/docker.yml`: on PRs, builds the base image and runs the acceptance flow
220
+ (healthy → `rawi pull tiny-voca-ar` → `/v1/audio/speech` wav and mp3), and builds the cohere
221
+ image; on `v*` tags, pushes `linux/amd64` + `linux/arm64` images to GHCR
222
+ (`:X.Y.Z`, `:latest`, `:X.Y.Z-cohere`, `:cohere`).
223
+ - CI integration job now also runs on `macos-latest` (native Apple Silicon: real pull, TTS,
224
+ Whisper round trip, server).
225
+ - `docs/INSTALL.md`: macOS (Homebrew ffmpeg, `uv tool install` / `pipx` from GitHub, Cohere on
226
+ MPS), Linux, Docker.
227
+ - Health probes (`/`, `/health`) are logged at DEBUG instead of INFO.
228
+
229
+ ### Plan changes (M5)
230
+ - Rawi is not on PyPI yet, so the macOS docs install from GitHub
231
+ (`uv tool install "rawi @ git+https://github.com/OmarSalah26/RAWI"`); `uv tool install rawi`
232
+ comes with the first PyPI release.
233
+ - Compose builds the image locally (`rawi:local`) until the first GHCR release exists.
234
+ - The M5 acceptance flow runs in CI (`docker.yml` smoke job and the macOS integration job)
235
+ rather than by hand.
236
+
237
+ ### M4 — Server & model manager
238
+ - `ModelManager`: lazy load in a worker thread, per-model lock (concurrent first requests load
239
+ once), `keep_alive` per request or `RAWI_KEEP_ALIVE` (`5m`, `30s`, `0` unloads right away,
240
+ `-1` keeps forever), 15 s reaper, LRU eviction at `RAWI_MAX_LOADED_MODELS` (busy models are
241
+ never evicted), `RAWI_NUM_PARALLEL` concurrent inferences per model (default 1), `ps()`.
242
+ - FastAPI server (`rawi serve [--host --port --keep-alive --device]`, default `127.0.0.1:11435`):
243
+ - `POST /v1/audio/speech`: `tts-1`, `tts-1-hd`, `gpt-4o-mini-tts` map to `RAWI_DEFAULT_TTS`;
244
+ OpenAI voices fall back with a warning in `X-Rawi-Warnings`; formats wav, flac, pcm, mp3,
245
+ opus, aac; `"stream": true` sends one chunk per sentence for wav/pcm, and input errors are
246
+ returned as JSON before any audio; every response carries `X-Rawi-Synthetic: true`.
247
+ - `POST /v1/audio/transcriptions`: multipart, `whisper-1` and `gpt-4o(-mini)-transcribe`
248
+ aliases, json/text/verbose_json, language defaults to `ar` (`auto` detects), upload limit
249
+ `RAWI_MAX_UPLOAD_MB` (413).
250
+ - `POST /v1/audio/translations` returns 501; `GET /v1/models` lists pulled models.
251
+ - Native: `POST /api/pull` (NDJSON progress), `GET /api/tags`, `POST /api/show`,
252
+ `DELETE /api/delete`, `GET /api/ps`.
253
+ - OpenAI error shape everywhere (including validation errors as 400), optional bearer key
254
+ (`RAWI_API_KEY`; `/` and `/health` stay public), request log with latency.
255
+ - `rawi ps`; `rawi run` sends the request to a running server (reusing the loaded model), or
256
+ runs in-process with `--local` or when no server is up.
257
+ - `RawiClient` (httpx) for the CLI.
258
+ - Tests: manager lifecycle with a fake clock, routes with fake engines, the official `openai`
259
+ SDK against a live uvicorn server, CLI against the server; slow test: real models behind the
260
+ server, SDK TTS → STT round trip.
261
+ - New base dependencies: `fastapi`, `uvicorn`, `python-multipart`; dev: `openai`.
262
+
263
+ ### Plan changes (M4)
264
+ - Per-model concurrency uses an `anyio.Semaphore`, not a `CapacityLimiter`: a streaming
265
+ response acquires the slot in the request task and releases it in the body task, which a
266
+ task-bound limiter rejects.
267
+ - `rawi run --local` added to skip the server.
268
+
269
+ ### M3 — STT engines
270
+ - `audio/io.py`: decode with soundfile, falling back to ffmpeg (415 with a fix if missing);
271
+ ffmpeg preferred for MP3 because libsndfile misreads VBR MP3 length from memory; mono downmix,
272
+ soxr resampling; encode wav, flac, pcm, plus mp3/opus/aac through ffmpeg; streaming WAV header.
273
+ - `audio/vad.py`: energy-based trimming of leading/trailing silence; silent input returns an
274
+ empty transcript without running the model.
275
+ - `FasterWhisperEngine`: CPU int8 (CTranslate2 has no Metal backend), language passthrough or
276
+ auto-detect, segments with timestamps, faster-whisper's VAD filter on.
277
+ - `CohereAsrEngine` (`rawi[cohere]`): lazy torch import, device order CUDA → MPS → CPU with
278
+ fallback after a failed load or smoke inference, BF16 on GPU / FP32 on CPU, long-form via
279
+ `audio_chunk_index`, language check (ar, en).
280
+ - `rawi run <stt-model> audio.wav [--language ar|auto] [--format text|json]`.
281
+ - `text/metrics.py`: CER with Arabic normalization (tashkeel, alef/ya/ta marbuta).
282
+ - Slow tests: TTS → STT round trip (CER < 0.25) for whisper-turbo; Cohere when `HF_TOKEN` and the
283
+ extra are present.
284
+ - New base dependencies: `soundfile`, `soxr`, `faster-whisper`.
285
+
286
+ ### Plan changes (M3)
287
+ - No committed audio fixtures yet: the round-trip test synthesizes its input with tiny-voca at
288
+ test time (no fixture can drift from the model).
289
+ - Cohere loads with transformers' native class (verified), no `trust_remote_code`.
290
+
291
+ ### M2 — TTS engine (tiny-voca-arabic)
292
+ - Vendored the tiny-voca-arabic MSA front end and the CATT diacritizer (ONNX) under
293
+ `src/rawi/vendor/` with license headers, `vendor/README.md` (sources, commit SHA, patches) and
294
+ NOTICE entries. Runtime downloads in CATT removed; weights come from `rawi pull`.
295
+ - `text/arabic.py`: normalization, sentence splitting, phoneme-budget chunking, detection of
296
+ skipped non-Arabic text.
297
+ - Engine interfaces (`engines/base.py`) and a lazy engine factory.
298
+ - `TinyVocaEngine` on onnxruntime: sentence chunking, 120 ms silence joins, speed, pitch shift
299
+ (semitones), pitch range, per-sentence streaming, peak limiting, warnings.
300
+ - Minimal WAV (PCM16) encoder.
301
+ - `rawi run <tts-model> "text" [-o out.wav] [-f file] [--voice] [--speed] [--pitch] [--play] [-y]`,
302
+ with auto-pull after a prompt.
303
+ - `RAWI_THREADS` setting (CPU threads per engine, 0 = auto).
304
+ - New base dependencies: `numpy`, `onnxruntime`.
305
+ - `docs/ARCHITECTURE.md` started (diacritizer decision, phoneme budget).
306
+
307
+ ### Plan changes (M2)
308
+ - Sentences split only at `. ! ? ؟ … \n`; commas split only when over budget (as the demo does).
309
+ - Budget is `max_tokens - 12` from `onnx/model.json` (500); join silence is 120 ms, not 150 ms.
310
+ - WAV encoding moved forward from M3 (needed by `rawi run -o`).
311
+
312
+ ### M1 — Registry & store
313
+ - Built-in manifest `registry/models.yaml` with `tiny-voca-ar`, `whisper-turbo`, `whisper-small`,
314
+ `cohere-ar`; revisions pinned to verified commit SHAs (except `whisper-small`, still `main`).
315
+ - `ModelSpec` validation, `~/.rawi/models.local.yaml` overrides/extensions, `name:revision`
316
+ references, close-match suggestions for unknown names.
317
+ - Local store: idempotent `pull` (Hugging Face `snapshot_download` with `allow_patterns`, plus
318
+ URL assets with sha256 check and zip unpacking), `rawi.json` metadata, `list`, `rm`, `show`.
319
+ - Clear errors for gated repos (accept-terms link + `HF_TOKEN`), missing extras, bad checksums.
320
+ - CLI: `rawi pull`, `rawi list`, `rawi rm [--yes]`, `rawi show`, `rawi models available`.
321
+ - CI job that pulls the real `tiny-voca-ar` model.
322
+ - New base dependencies: `pyyaml`, `huggingface_hub`, `httpx`.
323
+
324
+ ### Plan changes (M1)
325
+ - Manifest field `extra_assets` became `assets` (url, sha256, unpack, dest, size_mb) because the
326
+ CATT weights live on GitHub releases, not Hugging Face.
327
+ - `tiny-voca-ar` pull is ~115 MB, not <30 MB: the CATT diacritizer zip alone is 86 MB.
328
+
329
+ ### M0 — Scaffold
330
+ - Python package `rawi` (src layout, hatchling, uv) with extras `cohere`, `dev`, `all`.
331
+ - `rawi version` command; Typer CLI with no heavy imports at startup.
332
+ - Settings via `RAWI_*` env vars and `~/.rawi/config.toml` (env wins), plus `HF_TOKEN` and `OLLAMA_HOST`.
333
+ - Typed errors with fix commands and OpenAI-shaped JSON rendering.
334
+ - ruff, mypy, pytest (`slow` marker) and GitHub Actions CI on ubuntu-latest and macos-latest (macos-14 runners are no longer supported).
335
+ - LICENSE (Apache-2.0), NOTICE, bilingual README skeleton.
336
+
337
+ ### Plan changes
338
+ - Verified model repos (2026-12-03): CATT diacritizer is ONNX-only, so the base install stays
339
+ torch-free; its weights come from GitHub releases (manifest gains a URL asset type in M1);
340
+ tiny-voca's `onnx/model.json` is needed for the phoneme budget. `docs/IMPLEMENTATION_PLAN.md`
341
+ and `docs/PHASES.md` updated.
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,55 @@
1
+ Rawi (راوي)
2
+ Copyright 2026 Rawi contributors
3
+
4
+ This product is licensed under the Apache License, Version 2.0 (see LICENSE).
5
+
6
+ Third-party components and models
7
+ ---------------------------------
8
+ Rawi downloads model weights at runtime; no weights are distributed with this
9
+ package. Attributions for models and vendored code are listed below and are
10
+ completed as each component lands (see CHANGELOG.md).
11
+
12
+ - tiny-voca-arabic (oddadmix/tiny-voca-arabic), Apache-2.0
13
+ Based on tiny-voca by Muhammed Nazeem (n4ze3m/tiny-voca).
14
+ Front-end code vendored in src/rawi/vendor/tiny_voca_ar/ (see vendor/README.md).
15
+ - tiny-voca-arabic v2.1 (oddadmix/tiny-voca-arabic-v2.1), Apache-2.0
16
+ - tiny-voca-arabic Saudi (Messam174/tiny-voca-arabic-TTS-saudi), Apache-2.0
17
+ - tiny-voca-arabic code-switching (oddadmix/tiny-voca-arabic-code-switching), Apache-2.0
18
+ Front-end code vendored in src/rawi/vendor/tiny_voca_cs/ (see vendor/README.md).
19
+ - dizione English phonemizer (n4ze3m/dizione), Apache-2.0, by Muhammed Nazeem.
20
+ Code vendored in src/rawi/vendor/dizione/; its data (CMUdict-derived, license in the model
21
+ repo's phonemizer/LICENSE.cmudict, pulled with the model) is downloaded by `rawi pull`.
22
+ - CATT Arabic diacritizer (abjadai/catt, catt-tashkeel 1.0.2), Apache-2.0
23
+ Copyright Faris Alasmary / Abjad AI.
24
+ Code vendored in src/rawi/vendor/catt_tashkeel/; weights downloaded by `rawi pull`.
25
+ - Supertonic 3 (Supertone/supertonic-3), model under OpenRAIL-M, Copyright 2026 Supertone Inc.
26
+ Text front-end code from supertone-inc/supertonic (MIT, Copyright (c) 2025 Supertone Inc.)
27
+ vendored in src/rawi/vendor/supertonic/; weights downloaded by `rawi pull`.
28
+ - Chatterbox Multilingual V3 (ResembleAI/chatterbox), MIT, Copyright Resemble AI.
29
+ Outputs carry Resemble's Perth watermark. Loaded with chatterbox-tts (MIT).
30
+ - Lahgtna (oddadmix/lahgtna-chatterbox-v1, -v0), MIT.
31
+ - VoxCPM 2 (openbmb/VoxCPM2), Apache-2.0. Loaded with voxcpm (Apache-2.0).
32
+ - SILMA TTS v1 Small (silma-ai/silma-tts), weights Apache-2.0, code MIT, Copyright 2026 SILMA AI.
33
+ Reference voice clip downloaded from SILMA-AI/silma-tts by `rawi pull`.
34
+ - Habibi TTS specialized MSA/EGY/IRQ/MAR/ALG models (SWivid/Habibi-TTS), Apache-2.0.
35
+ Reference clips downloaded from SWivid/Habibi-TTS (MIT repo) by `rawi pull`.
36
+ - F5-TTS (SWivid/F5-TTS, f5-tts), MIT; Vocos vocoder (charactr/vocos-mel-24khz), MIT.
37
+ - Nabra-82M (oddadmix/Nabra-82M-v0.1), Apache-2.0, a fine-tune of hexgrad/Kokoro-82M.
38
+ Loaded with kokoro and misaki (Apache-2.0); phonemes from espeak-ng via espeakng-loader and
39
+ phonemizer-fork (GPL-3.0), installed only with the optional `kokoro` extra.
40
+ - Non-commercial models (weights downloaded by `rawi pull`, never shipped with Rawi):
41
+ Habibi TTS Unified/SAU/UAE (SWivid/Habibi-TTS), CC-BY-NC-SA-4.0;
42
+ Arabic-F5-TTS-v2 (IbrahimSalah), Fair Noncommercial Research License;
43
+ XTTS v2 (coqui/XTTS-v2) and Fasih-TTS-V1 (NightPrince), Coqui Public Model License;
44
+ SpeechT5 ClArTTS (MBZUAI/speecht5_tts_clartts_ar), CC-BY-NC-4.0, with the SpeechT5 HiFi-GAN
45
+ vocoder (microsoft, MIT) and arabic_xvector_embeddings (herwoww, MIT);
46
+ OmniVoice (k2-fsa), CC-BY-NC-4.0, with the Higgs Audio v2 tokenizer (Boson AI community license);
47
+ Voxtral TTS (Mistral AI, mlx-community conversion), CC-BY-NC-4.0;
48
+ Higgs TTS 3 (bosonai), Boson research and non-commercial license;
49
+ Fish Audio S2 Pro (mlx-community conversion), Fish Audio research license.
50
+ - coqui-tts (idiap), MPL-2.0; omnivoice (k2-fsa), Apache-2.0; mlx-audio (Blaizzy), MIT.
51
+ - Cohere Transcribe Arabic (CohereLabs/cohere-transcribe-arabic-07-2026), Apache-2.0
52
+ - Qwen3-ASR (Qwen/Qwen3-ASR-1.7B-hf), Apache-2.0
53
+ - whisper-large-v3-arabic-dialectal-v2 (oddadmix), CT2 conversion by SohailElsek, Apache-2.0
54
+ - faster-whisper (SYSTRAN/faster-whisper), MIT
55
+ - faster-whisper-large-v3-turbo-ct2 (deepdml), MIT