wavhost 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.
@@ -0,0 +1,15 @@
1
+ # Changelog
2
+
3
+ All notable changes to Wavhost are documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [0.1.0] - 2026-09-14
9
+
10
+ ### Added
11
+
12
+ - CLI: `pull`, `run`, `serve`, `list`, `rm`, and `uninstall`
13
+ - OpenAI-compatible `POST /v1/audio/speech` HTTP API
14
+ - Chatterbox backend with on-demand engine install
15
+ - Ollama-style content-addressed local model storage
wavhost-0.1.0/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,19 @@
1
+ include LICENSE
2
+ include NOTICE
3
+ include README.md
4
+ include CHANGELOG.md
5
+ include pyproject.toml
6
+ graft wavhost
7
+ graft tests
8
+ global-exclude *.py[cod]
9
+ global-exclude __pycache__
10
+ global-exclude *.so
11
+ global-exclude .DS_Store
12
+ prune env
13
+ prune .pytest_cache
14
+ prune wavhost.egg-info
15
+ prune dist
16
+ prune build
17
+ exclude PRD-v2.md
18
+ exclude REFACTORING.md
19
+ exclude output.wav
wavhost-0.1.0/NOTICE ADDED
@@ -0,0 +1,4 @@
1
+ Wavhost
2
+ Copyright 2026 Wavhost Contributors
3
+
4
+ This product includes software developed by Wavhost Contributors.
wavhost-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,400 @@
1
+ Metadata-Version: 2.4
2
+ Name: wavhost
3
+ Version: 0.1.0
4
+ Summary: Local-first TTS runtime with OpenAI-compatible API
5
+ Author: Wavhost Contributors
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/smitgol/wavhost
8
+ Project-URL: Documentation, https://github.com/smitgol/wavhost#readme
9
+ Project-URL: Repository, https://github.com/smitgol/wavhost
10
+ Project-URL: Issues, https://github.com/smitgol/wavhost/issues
11
+ Project-URL: Changelog, https://github.com/smitgol/wavhost/blob/master/CHANGELOG.md
12
+ Keywords: tts,text-to-speech,speech,local,runtime,openai,chatterbox
13
+ Classifier: Development Status :: 3 - Alpha
14
+ Classifier: Environment :: Console
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3 :: Only
19
+ Classifier: Programming Language :: Python :: 3.10
20
+ Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Programming Language :: Python :: 3.12
22
+ Classifier: Topic :: Multimedia :: Sound/Audio :: Speech
23
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
24
+ Requires-Python: >=3.10
25
+ Description-Content-Type: text/markdown
26
+ License-File: LICENSE
27
+ License-File: NOTICE
28
+ Requires-Dist: click>=8.1.0
29
+ Requires-Dist: fastapi>=0.109.0
30
+ Requires-Dist: uvicorn[standard]>=0.27.0
31
+ Requires-Dist: pydantic>=2.5.0
32
+ Requires-Dist: pydantic-settings>=2.1.0
33
+ Requires-Dist: httpx>=0.26.0
34
+ Requires-Dist: pyyaml>=6.0
35
+ Requires-Dist: tqdm>=4.66.0
36
+ Requires-Dist: numpy>=1.24.0
37
+ Requires-Dist: torch>=2.0.0
38
+ Requires-Dist: torchaudio>=2.0.0
39
+ Provides-Extra: chatterbox
40
+ Requires-Dist: chatterbox-tts>=0.1.0; extra == "chatterbox"
41
+ Requires-Dist: setuptools<82; extra == "chatterbox"
42
+ Provides-Extra: dev
43
+ Requires-Dist: pytest>=7.4.0; extra == "dev"
44
+ Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
45
+ Requires-Dist: pytest-cov>=4.1.0; extra == "dev"
46
+ Requires-Dist: black>=23.0.0; extra == "dev"
47
+ Requires-Dist: ruff>=0.1.0; extra == "dev"
48
+ Requires-Dist: mypy>=1.7.0; extra == "dev"
49
+ Provides-Extra: publish
50
+ Requires-Dist: build>=1.2.0; extra == "publish"
51
+ Requires-Dist: twine>=6.1.0; extra == "publish"
52
+ Dynamic: license-file
53
+
54
+ # Wavhost
55
+
56
+ [![PyPI](https://img.shields.io/pypi/v/wavhost.svg)](https://pypi.org/project/wavhost/)
57
+ [![Python](https://img.shields.io/pypi/pyversions/wavhost.svg)](https://pypi.org/project/wavhost/)
58
+ [![License](https://img.shields.io/pypi/l/wavhost.svg)](https://github.com/smitgol/wavhost/blob/master/LICENSE)
59
+
60
+ **Local-first TTS runtime with OpenAI-compatible API**
61
+
62
+ Wavhost is a local text-to-speech (TTS) runtime that brings high-quality voice synthesis to your machine. Run TTS models locally with a simple CLI and OpenAI-compatible HTTP API—no API keys, no per-character billing, complete privacy.
63
+
64
+ ## Features
65
+
66
+ - 🚀 **Local-first**: All processing happens on your machine
67
+ - 🔌 **OpenAI-compatible API**: Drop-in replacement for OpenAI's `/v1/audio/speech` endpoint
68
+ - 📦 **Ollama-style storage**: Content-addressed model storage with deduplication
69
+ - 🎯 **Simple CLI**: Pull, run, and serve models with ease
70
+ - 🔓 **Open source**: MIT/Apache-2.0 licensed runtime, using open TTS models
71
+ - ⚡ **GPU accelerated**: Optimized for NVIDIA GPUs (CPU fallback available)
72
+
73
+ ## Quick Start
74
+
75
+ ### Installation
76
+
77
+ ```bash
78
+ pip install wavhost
79
+ ```
80
+
81
+ This installs the runtime and PyTorch. TTS engines such as Chatterbox are **not** included, since each one is large and Wavhost supports several — the engine a model needs is installed for you when you pull that model.
82
+
83
+ **GPU users:** engines pin an exact PyTorch version, and PyPI's wheel for that pin is CPU-only on Windows. `wavhost pull` detects an NVIDIA GPU paired with a CPU-only PyTorch and prints the one command that swaps in the CUDA build while keeping the engine's pin, e.g.:
84
+
85
+ ```bash
86
+ pip install "torch==2.6.0+cu124" "torchaudio==2.6.0+cu124" --index-url https://download.pytorch.org/whl/cu124
87
+ ```
88
+
89
+ Run it *after* the pull (the engine install would otherwise replace it), and note the `+cu124` tag is required — pip considers `2.6.0+cpu` to already satisfy `torch==2.6.0`. The same hint appears if `wavhost run` ever has to fall back to the CPU.
90
+
91
+ ### Pull a Model
92
+
93
+ ```bash
94
+ wavhost pull chatterbox-turbo
95
+ ```
96
+
97
+ This displays the license, installs the model's backend engine if needed, and **downloads weight layers** into `~/.wavhost` (content-addressed blobs + a local checkpoint). Runtime loads from that local checkpoint — it does not call the Hugging Face Hub client.
98
+
99
+ Layer URLs currently point at Hugging Face resolve endpoints as plain HTTPS. Swapping to your own CDN later only requires changing those URLs in the registry.
100
+
101
+ If you'd rather manage engine packages yourself, install the matching extra ahead of time and skip the prompt:
102
+
103
+ ```bash
104
+ pip install "wavhost[chatterbox]"
105
+ wavhost pull chatterbox-turbo --skip-deps
106
+ ```
107
+
108
+ ### Generate Speech
109
+
110
+ ```bash
111
+ wavhost run chatterbox-turbo "Hello world, this is Wavhost!" -o output.wav
112
+ ```
113
+
114
+ ### Start the Server
115
+
116
+ ```bash
117
+ wavhost serve
118
+ ```
119
+
120
+ The server starts on `http://127.0.0.1:11435` with an OpenAI-compatible endpoint.
121
+
122
+ ### Use the API
123
+
124
+ ```bash
125
+ curl http://127.0.0.1:11435/v1/audio/speech \
126
+ -H "Content-Type: application/json" \
127
+ -d '{
128
+ "model": "chatterbox-turbo",
129
+ "input": "Hello from Wavhost!",
130
+ "voice": "default"
131
+ }' \
132
+ --output speech.mp3
133
+ ```
134
+
135
+ ## Available Models
136
+
137
+ | Model | Size | Device | Description |
138
+ |-------|------|--------|-------------|
139
+ | `chatterbox-turbo` | 350M | GPU | Fast, high-quality English TTS (MIT) |
140
+ | `chatterbox-base` | 500M | GPU | Original high-quality model (MIT) |
141
+
142
+ All models are licensed under MIT and developed by Resemble AI.
143
+
144
+ ## CLI Reference
145
+
146
+ ### `wavhost pull <model_name>`
147
+
148
+ Download weight layers into local storage and register the model, installing its backend engine if needed.
149
+
150
+ **Options:**
151
+ - `--force`: Pull even if the model is already installed (still resumes existing blobs)
152
+ - `--skip-deps`: Don't install the backend engine (assume it's already available)
153
+
154
+ **Example:**
155
+ ```bash
156
+ wavhost pull chatterbox-base
157
+ ```
158
+
159
+ ### `wavhost run <model_name> <text>`
160
+
161
+ Generate speech from text using a local model.
162
+
163
+ **Options:**
164
+ - `-o, --output PATH`: Output WAV file path (default: `output.wav`)
165
+ - `--voice PATH`: Reference voice audio for cloning (experimental)
166
+ - `--device DEVICE`: Device to use (`cuda`, `cpu`, or `mps`)
167
+
168
+ **Example:**
169
+ ```bash
170
+ wavhost run chatterbox-turbo "Welcome to Wavhost" -o welcome.wav
171
+ ```
172
+
173
+ ### `wavhost serve`
174
+
175
+ Start the OpenAI-compatible TTS server.
176
+
177
+ **Options:**
178
+ - `--host HOST`: Host to bind to (default: `127.0.0.1`)
179
+ - `--port PORT`: Port to bind to (default: `11435`)
180
+ - `--reload`: Enable auto-reload for development
181
+
182
+ **Example:**
183
+ ```bash
184
+ wavhost serve --host 0.0.0.0 --port 8000
185
+ ```
186
+
187
+ ### `wavhost list`
188
+
189
+ List installed models and available models in the registry.
190
+
191
+ **Example:**
192
+ ```bash
193
+ wavhost list
194
+ ```
195
+
196
+ ### `wavhost rm <model_name>`
197
+
198
+ Remove a pulled model and free its disk space (manifest, checkpoint, and any blobs no other model still uses).
199
+
200
+ **Options:**
201
+ - `-y, --yes`: Skip the confirmation prompt
202
+
203
+ **Example:**
204
+ ```bash
205
+ wavhost rm chatterbox-turbo
206
+ ```
207
+
208
+ ### `wavhost uninstall`
209
+
210
+ Wipe local Wavhost data under `~/.wavhost` and print how to remove the Python package.
211
+
212
+ **Options:**
213
+ - `--purge-data` / `--keep-data`: Delete or keep local storage (default: purge)
214
+ - `-y, --yes`: Skip the confirmation prompt
215
+
216
+ **Example:**
217
+ ```bash
218
+ wavhost uninstall
219
+ # then, if you also want the package gone:
220
+ pip uninstall wavhost
221
+ ```
222
+
223
+ ## API Reference
224
+
225
+ ### `POST /v1/audio/speech`
226
+
227
+ Generate speech from text (OpenAI-compatible).
228
+
229
+ **Request body:**
230
+ ```json
231
+ {
232
+ "model": "chatterbox-turbo",
233
+ "input": "Text to synthesize",
234
+ "voice": "default",
235
+ "response_format": "mp3",
236
+ "speed": 1.0
237
+ }
238
+ ```
239
+
240
+ **Parameters:**
241
+ - `model` (string, required): Model to use
242
+ - `input` (string, required): Text to synthesize (max 4096 chars)
243
+ - `voice` (string, optional): Voice identifier (default: "default")
244
+ - `response_format` (string, optional): Audio format. Defaults to `mp3`.
245
+ - Encoded: `mp3`, `wav`, `opus`, `flac`, `aac`
246
+ - Raw PCM (signed 16-bit little-endian): `pcm` (model native rate), `pcm_16000`, `pcm_22050`, `pcm_24000`, `pcm_44100`
247
+ - `speed` (float, optional): Speed multiplier 0.25-4.0 (currently not implemented)
248
+
249
+ **Response:**
250
+ Binary audio file in the requested format.
251
+
252
+ ### `GET /v1/models`
253
+
254
+ List available models (OpenAI-compatible).
255
+
256
+ **Response:**
257
+ ```json
258
+ {
259
+ "object": "list",
260
+ "data": [
261
+ {
262
+ "id": "chatterbox-turbo",
263
+ "object": "model",
264
+ "created": 0,
265
+ "owned_by": "resemble",
266
+ "installed": true,
267
+ "description": "Chatterbox Turbo - 350M parameter English TTS model (MIT License)"
268
+ }
269
+ ]
270
+ }
271
+ ```
272
+
273
+ ### `GET /health`
274
+
275
+ Health check endpoint.
276
+
277
+ **Response:**
278
+ ```json
279
+ {
280
+ "status": "ok"
281
+ }
282
+ ```
283
+
284
+ ## Architecture
285
+
286
+ ### Storage
287
+
288
+ Wavhost uses Ollama-style content-addressed storage:
289
+
290
+ ```
291
+ ~/.wavhost/
292
+ models/
293
+ manifests/
294
+ registry/
295
+ resemble/
296
+ chatterbox-turbo/
297
+ latest
298
+ blobs/
299
+ sha256-<hash>
300
+ checkpoints/
301
+ resemble/
302
+ chatterbox-turbo/
303
+ latest/
304
+ ve.safetensors
305
+ ...
306
+ ```
307
+
308
+ - **Manifests**: Model metadata and layer digests
309
+ - **Blobs**: Content-addressed file storage with SHA-256 deduplication
310
+ - **Checkpoints**: Materialized directories (hardlinks/copies of blobs) loaded by `from_local`
311
+
312
+ ### Backends
313
+
314
+ The `TTSBackend` protocol enables pluggable TTS engines:
315
+
316
+ - **Chatterbox**: MIT-licensed models by Resemble AI (currently implemented)
317
+ - Future backends can be added by implementing the `TTSBackend` protocol
318
+
319
+ ## Hardware Requirements
320
+
321
+ ### Recommended (GPU)
322
+ - NVIDIA GPU with 4GB+ VRAM (RTX 2060 or better)
323
+ - 16GB+ system RAM
324
+ - CUDA 11.8 or newer
325
+
326
+ ### Minimum (CPU)
327
+ - Modern CPU with 8+ cores
328
+ - 8GB+ system RAM
329
+ - Generation falls back to CPU automatically, but runs considerably slower than real-time
330
+
331
+ ## Development
332
+
333
+ ```bash
334
+ git clone https://github.com/smitgol/wavhost.git
335
+ cd wavhost
336
+ pip install -e ".[dev]"
337
+ ```
338
+
339
+ ### Running Tests
340
+
341
+ ```bash
342
+ pytest
343
+ ```
344
+
345
+ ### Code Quality
346
+
347
+ ```bash
348
+ # Format code
349
+ black wavhost tests
350
+
351
+ # Lint
352
+ ruff check wavhost tests
353
+
354
+ # Type checking
355
+ mypy wavhost
356
+ ```
357
+
358
+ ## Roadmap
359
+
360
+ ### v0.1 (Current)
361
+ - ✅ Ollama-style storage
362
+ - ✅ Chatterbox backend
363
+ - ✅ CLI (pull, run, serve)
364
+ - ✅ OpenAI-compatible API
365
+
366
+ ### Future
367
+ - Additional backends (Qwen3-TTS, etc.)
368
+ - Voice cloning support
369
+ - Streaming audio generation
370
+ - Model quantization
371
+ - Multi-language models
372
+
373
+ ## License
374
+
375
+ **Wavhost (this runtime):** Apache-2.0
376
+
377
+ **Third-party models:** Each model is subject to its own license:
378
+ - Chatterbox models: MIT License (see [Resemble AI's license](https://github.com/resemble-ai/chatterbox/blob/main/LICENSE))
379
+
380
+ Model licenses are displayed before download with `wavhost pull`.
381
+
382
+ ## Contributing
383
+
384
+ Contributions welcome! Please feel free to submit issues and pull requests.
385
+
386
+ ## Acknowledgments
387
+
388
+ - [Resemble AI](https://resemble.ai) for the excellent Chatterbox TTS models
389
+ - [Ollama](https://ollama.ai) for storage architecture inspiration
390
+ - [OpenAI](https://openai.com) for the audio API specification
391
+
392
+ ## Support
393
+
394
+ - 📖 [Documentation](https://github.com/smitgol/wavhost)
395
+ - 🐛 [Issue Tracker](https://github.com/smitgol/wavhost/issues)
396
+ - 💬 [Discussions](https://github.com/smitgol/wavhost/discussions)
397
+
398
+ ---
399
+
400
+ **Built for developers who want local, private, high-quality TTS.**