@simplexai/localmodels-linux-arm64 0.1.0-dev.107 → 0.1.0-dev.109

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 (55) hide show
  1. package/NOTICE +13 -6
  2. package/README.md +1 -1
  3. package/bootstrap.identity +1 -1
  4. package/bootstrap.sha256 +54 -50
  5. package/modules/localmodels/__init__.py +1 -1
  6. package/modules/localmodels/catalog.json +682 -67
  7. package/modules/localmodels/catalog.py +11 -1
  8. package/modules/localmodels/catalog_recipes.py +26 -3
  9. package/modules/localmodels/chat_template.py +6 -0
  10. package/modules/localmodels/chat_templates/qwen4-35b-a3b.jinja +223 -0
  11. package/modules/localmodels/debug_stub_server.py +1 -1
  12. package/modules/localmodels/download-mirrors.json +23 -34
  13. package/modules/localmodels/engine_adapters/llama_cpp.py +11 -5
  14. package/modules/localmodels/engine_adapters/strata_poly.py +1 -1
  15. package/modules/localmodels/engines-b12973.json +248 -0
  16. package/modules/localmodels/library_cli.py +68 -1
  17. package/modules/localmodels/library_direct.py +2 -0
  18. package/modules/localmodels/library_elastic.py +1 -1
  19. package/modules/localmodels/library_model.py +4 -0
  20. package/modules/localmodels/library_order.py +44 -1
  21. package/modules/localmodels/library_presentation.py +1 -0
  22. package/modules/localmodels/library_pricing.py +1 -2
  23. package/modules/localmodels/library_unload.py +274 -0
  24. package/modules/localmodels/probe.py +98 -7
  25. package/modules/localmodels/service_roots.py +148 -0
  26. package/modules/localmodels/service_upgrade.py +46 -1
  27. package/modules/localmodels/services_cli.py +8 -28
  28. package/modules/localmodels/speech_workers.py +4 -4
  29. package/modules/localmodels/stack_args.py +11 -4
  30. package/modules/localmodels/stack_down.py +368 -42
  31. package/modules/localmodels/stack_memory.py +1 -1
  32. package/modules/localmodels/stack_preflight.py +2 -2
  33. package/modules/localmodels/stack_view_llm.py +2 -2
  34. package/modules/localmodels/suite.py +4 -0
  35. package/modules/localmodels/tts-moss.txt +78 -53
  36. package/modules/localmodels/tts_backend_speechcpp.py +2 -2
  37. package/modules/localmodels/tts_catalog.py +2 -2
  38. package/modules/localmodels/tts_cli.py +3 -3
  39. package/modules/localmodels/tts_jobs.py +1 -3
  40. package/modules/localmodels/tts_model.py +3 -3
  41. package/modules/localmodels/tts_moss_presets.json +1 -1
  42. package/modules/localmodels/tts_sidecar.py +7 -3
  43. package/modules/localmodels/tts_state.py +15 -0
  44. package/modules/localmodels/tts_worker_kokoro.py +939 -255
  45. package/modules/localmodels/tts_worker_moss.py +25 -9
  46. package/modules/localmodels/tts_workers.py +17 -21
  47. package/modules/{simplex_localmodels-0.1.0.dev107.dist-info → simplex_localmodels-0.1.0.dev109.dist-info}/METADATA +1 -1
  48. package/modules/{simplex_localmodels-0.1.0.dev107.dist-info → simplex_localmodels-0.1.0.dev109.dist-info}/RECORD +49 -45
  49. package/modules/{simplex_localmodels-0.1.0.dev107.dist-info → simplex_localmodels-0.1.0.dev109.dist-info}/licenses/NOTICE +13 -6
  50. package/package.json +1 -1
  51. package/tool.json +1 -1
  52. /package/modules/{simplex_localmodels-0.1.0.dev107.dist-info → simplex_localmodels-0.1.0.dev109.dist-info}/WHEEL +0 -0
  53. /package/modules/{simplex_localmodels-0.1.0.dev107.dist-info → simplex_localmodels-0.1.0.dev109.dist-info}/entry_points.txt +0 -0
  54. /package/modules/{simplex_localmodels-0.1.0.dev107.dist-info → simplex_localmodels-0.1.0.dev109.dist-info}/licenses/LICENSE +0 -0
  55. /package/modules/{simplex_localmodels-0.1.0.dev107.dist-info → simplex_localmodels-0.1.0.dev109.dist-info}/licenses/localmodels/HERMES-LICENSE +0 -0
@@ -1,18 +1,27 @@
1
- # Zero-PyTorch ONNX Runtime CPU environment for MOSS-TTS-Nano-100M
2
- # (localmodels/tts_worker_moss.py): onnxruntime, numpy, and sentencepiece only
3
- # (zero torch, transformers, or torchaudio). Installed by localmodels/frontend.py into
4
- # <base_dir>/frontends/tts-moss with --require-hashes --no-deps and CN PyPI mirror support.
1
+ # Zero-PyTorch ONNX Runtime CPU environment for Kokoro v1.0 INT8 and MOSS-TTS-Nano-100M
2
+ # (localmodels/tts_worker_kokoro.py, localmodels/tts_worker_moss.py): onnxruntime, numpy,
3
+ # and sentencepiece only (zero torch, transformers, or torchaudio). Installed by
4
+ # localmodels/frontend.py into <base_dir>/frontends/tts-moss with --require-hashes --no-deps
5
+ # and CN PyPI mirror support.
6
+ # macOS pins onnxruntime==1.23.2 (prebuilt cp310-cp313 wheels for macosx_13_0_x86_64 and
7
+ # macosx_13_0_arm64); Linux and Windows on Python 3.11+ pin onnxruntime==1.32.0.
8
+ # sentencepiece==0.2.2 ships prebuilt cp310-cp314 wheels for all 5 platforms including darwin-x64.
5
9
  # Regenerate with:
6
- # uv pip compile --universal --python-version 3.10 --generate-hashes --no-header --no-annotate - <<< $'onnxruntime\nnumpy\nsentencepiece'
7
- coloredlogs==15.0.1 ; python_full_version < '3.11' \
10
+ # uv pip compile --universal --python-version 3.10 --generate-hashes --no-header --no-annotate - <<'EOF'
11
+ # onnxruntime==1.23.2 ; sys_platform == 'darwin' or python_full_version < '3.11'
12
+ # onnxruntime==1.32.0 ; sys_platform != 'darwin' and python_full_version >= '3.11'
13
+ # numpy
14
+ # sentencepiece==0.2.2
15
+ # EOF
16
+ coloredlogs==15.0.1 ; python_full_version < '3.11' or sys_platform == 'darwin' \
8
17
  --hash=sha256:612ee75c546f53e92e70049c9dbfcc18c935a2b9a53b66085ce9ef6a6e5c0934 \
9
18
  --hash=sha256:7c991aa71a4577af2f82600d8f8f3a89f936baeaf9b50a9c197da014e5bf16b0
10
19
  flatbuffers==25.12.19 \
11
20
  --hash=sha256:7634f50c427838bb021c2d66a3d1168e9d199b0607e6329399f04846d42e20b4
12
- humanfriendly==10.0 ; python_full_version < '3.11' \
21
+ humanfriendly==10.0 ; python_full_version < '3.11' or sys_platform == 'darwin' \
13
22
  --hash=sha256:1697e1a8a8f550fd43c2865cd84542fc175a61dcb779b6fee18cf6b6ccba1477 \
14
23
  --hash=sha256:6b0b831ce8f15f7300721aa49829fc4e83921a9a301cc7f606be6686a2288ddc
15
- mpmath==1.3.0 ; python_full_version < '3.11' \
24
+ mpmath==1.3.0 ; python_full_version < '3.11' or sys_platform == 'darwin' \
16
25
  --hash=sha256:7a28eb2a9774d00c7bc92411c19a89209d5da7c4c9a9e227be8330a23a25b91f \
17
26
  --hash=sha256:a0b2b9fe80bbcd81a6647ff13108738cfb482d481d826cc0e02f5b35e5c88d2c
18
27
  numpy==2.2.6 ; python_full_version < '3.11' \
@@ -211,7 +220,7 @@ numpy==2.5.5 ; python_full_version >= '3.12' \
211
220
  --hash=sha256:f82a7567c590ff266f8c18fd527a0662edde074de11be256541a656e274f2b05 \
212
221
  --hash=sha256:fd47c92e0d1e53f9498b1a30305072434fbae6b5a305cbcab514f959e9ce0fab \
213
222
  --hash=sha256:ff5c1ab54a637c0adcdbb69ad10e5c4f1c4dedba69c0d1de383249b70c36908f
214
- onnxruntime==1.23.2 ; python_full_version < '3.11' \
223
+ onnxruntime==1.23.2 ; python_full_version < '3.11' or sys_platform == 'darwin' \
215
224
  --hash=sha256:0be6a37a45e6719db5120e9986fcd30ea205ac8103fd1fb74b6c33348327a0cc \
216
225
  --hash=sha256:0f9b4ae77f8e3c9bee50c27bc1beede83f786fe1d52e99ac85aa8d65a01e9b77 \
217
226
  --hash=sha256:162f4ca894ec3de1a6fd53589e511e06ecdc3ff646849b62a9da7489dee9ce95 \
@@ -234,7 +243,7 @@ onnxruntime==1.23.2 ; python_full_version < '3.11' \
234
243
  --hash=sha256:bbfd2fca76c855317568c1b36a885ddea2272c13cb0e395002c402f2360429a6 \
235
244
  --hash=sha256:da44b99206e77734c5819aa2142c69e64f3b46edc3bd314f6a45a932defc0b3e \
236
245
  --hash=sha256:e2b9233c4947907fd1818d0e581c049c41ccc39b2856cc942ff6d26317cee145
237
- onnxruntime==1.32.0 ; python_full_version >= '3.11' \
246
+ onnxruntime==1.32.0 ; python_full_version >= '3.11' and sys_platform != 'darwin' \
238
247
  --hash=sha256:02ea12a28c069ea8510093d95a7f6ff8126bfd9fc5c0d3381c03b80fb2b424ba \
239
248
  --hash=sha256:2303372a85299b6757b0e11e1cbf13e410ddf7e10c37f4b37e99d1c90e7daf7c \
240
249
  --hash=sha256:23361cdf98afac352d10aa7d9e0a10ceaeb02d38430fb693c6eff370196db62d \
@@ -274,48 +283,64 @@ protobuf==7.36.2 \
274
283
  pyreadline3==3.5.6 ; python_full_version < '3.11' and sys_platform == 'win32' \
275
284
  --hash=sha256:61e53218b99656091ddb077df9e71f25850e72e030b6183b39c9b7e6e4f4a9bf \
276
285
  --hash=sha256:8449b734232e42a5dcd74048e39b60db2839a4c38cf3ae2bf7707d58b5389c0d
277
- sentencepiece==0.2.3 \
278
- --hash=sha256:016218e381da4c492323f2d7959012338795a2fb2dfccf14a2bc421c1b040612 \
279
- --hash=sha256:01e62cf99d3af7950cff04986c7e58dd4cd376fcf2367cd1c5314182d5f4adc5 \
280
- --hash=sha256:0d1235ccd36c3e8c2021355258b47866c694a55003a89f00701c513eac1aef06 \
281
- --hash=sha256:0ef20da5e56faff98bfcd1eb78c9abedc10253035051ab34e0c4be22734390ef \
282
- --hash=sha256:141dc0bef1e28a5cf7e41c8354ad6cc14525758278045286dcb5429b9906d39f \
283
- --hash=sha256:21618ad31f0453a1ebf5ec58defed99758d54af0b670546ecac639ddd8b86fbd \
284
- --hash=sha256:21cb90585b2d9a1cf78c5e889af0a12b35536dc65e2f0ba2daf540c60d431c87 \
285
- --hash=sha256:22dce81a65b8a1819eef9fef4970d6581ea0cbde7f58fbbbb42521535eba15e2 \
286
- --hash=sha256:2b79f0bbd03ca46ae117595c830eef17bc31a00c566f3b7be3b5f03d51efda3a \
287
- --hash=sha256:2e39d12eead4e417a6a2e852305f890fd7f09bf48b2577a4e336285ae24439ab \
288
- --hash=sha256:39ce776c5564192c4361085f10cfe3f1bcc0749feab314060b2bbb4244266dec \
289
- --hash=sha256:4d82f2a0f704f5d0cf027bc8cc5ad49e23c11a9cc0b5bd08ca51985917963bf5 \
290
- --hash=sha256:51ae35f32ddc832b8ff5f57dd69dae5a814ab6b6e027c83e6f5632335bf21e98 \
291
- --hash=sha256:5b280042f92596dbbfeae01759578897b49fdf1ac1a24ec8ddd6a3de1f6a996d \
292
- --hash=sha256:5ea5e9c9b40bb7e9ff64151071ab04365890da2e1edaa1d7e1a131ffdb735509 \
293
- --hash=sha256:61993a60493c44f8c99a773d2b0f1162cbbab319989ce3fe04ef4130b740397a \
294
- --hash=sha256:65f26939063414c5f57a46a625789e9b32f952a800490d5cce6d4c4ad0094fff \
295
- --hash=sha256:6b94ccd8554338970e1d73959a7e3ed4d110a60dab95d459990b30a508fa0998 \
296
- --hash=sha256:7e9cd3b7229da250c8988e46dc29ae339147d463ab50e1fb697bc59d02880cc1 \
297
- --hash=sha256:80fe42d6ecd3860ee43327de31687f222af8e93f7d66e248d241cf9a0466eb73 \
298
- --hash=sha256:821cd46446d0791df174e7f9e463aa3fc5a923286b98f3509f79bda9992e51cb \
299
- --hash=sha256:84e9def430ca8cc848b84adb304ffb77bff151cfc7dc66eb881f0385258f536b \
300
- --hash=sha256:855b047e02fb9c7aae2f673f5c1adbd42a4a0e8ce77e5090d14ff26f9282749d \
301
- --hash=sha256:901f38530a93e14505bfa3279c8a4705158f30af406bc2721cf3ffd7175170c2 \
302
- --hash=sha256:972af959c63cde446210a8935524806820c253afa4b0a97d83c206b857085f44 \
303
- --hash=sha256:9b39b16b889c9d3be4f00f1a0a4283ee81ad8af745d48023e5ab18c724019c08 \
304
- --hash=sha256:9f77802993eb51a08e856278f73894615b9a6cc3244857fcf962bc657578f591 \
305
- --hash=sha256:a01e76cf49a0c1abc527c4e5fd6d3a87a3139a1d3ad2d5761567179a70805cce \
306
- --hash=sha256:a0a75095caa5d4ac208dd8d1c051dd78fa7dbdb3b62d2aae86986b678324f759 \
307
- --hash=sha256:a6b735a8027b998c163e540fdde66ac0bb95fc471f6f4165c8df35fb45385116 \
308
- --hash=sha256:b3dcda6a6eaa297db9e595d1d59a0ca4127ff01af573a24f2665a938c14b9e2a \
309
- --hash=sha256:ba4dfdbb2972e42d01ad32fe03788717e94d92830f981b7895835e65bfe92b2c \
310
- --hash=sha256:cc3189b79c1ffda767f71b04238c27ac746f3b7abc263eab9a41c4cf46aee49e \
311
- --hash=sha256:ceaf9a73f7e1672990547e8efe5bb79ea61884a8fe24600662d12e3a8aaf1a5b \
312
- --hash=sha256:d8dd43abf868aa70508d463709812250266aa3f2e4bd4c3d524a5f7d8c18856e \
313
- --hash=sha256:dc4d17ad8728f47062496a7c03e000bb37de9c6741f8423b822d51e4f2f86fcf \
314
- --hash=sha256:deba7b85448bf4cfabf2e097f3d42e51a45ba5d531421f28fefecf542e0aa9d5 \
315
- --hash=sha256:dfc31f9f133a2712d396efa94d666c2ad83d5611ce34f11339429c6831253014 \
316
- --hash=sha256:e55cea81a9e68ee3bd119ca530225cbf1f4ac46bf35604c8aa677bfd5055bc7c \
317
- --hash=sha256:e64c49a30001245702035aba15ff3833895d3598228dd9f980df3d146dc4fd33 \
318
- --hash=sha256:ec5c6a53f9f7adfe6e7f62b12696280632c0da2352a696b436ae4152f72ff706
319
- sympy==1.14.0 ; python_full_version < '3.11' \
286
+ sentencepiece==0.2.2 \
287
+ --hash=sha256:046b15ea22d8042e2e173561d464ec3b64a9c2081324df70ebce7bf7ebb3e497 \
288
+ --hash=sha256:0e2aae42960392d6dcb9a72d8e1e65a97294c965071b43c7b3429a42f350250e \
289
+ --hash=sha256:1120e0791540615e650b2e9bea835bf38a7362455d8ab62dee7968219c2d79a0 \
290
+ --hash=sha256:1402d8ee36f0d851cea8eee4dbb85fea14643b7503cf4d00d102eec0fe3ca719 \
291
+ --hash=sha256:1416b92f2f010333786fe6306ed2631121d5ea492219b0841e967b6765e64107 \
292
+ --hash=sha256:16c84ddef8d3084a8af37208acd365b08092ca089080f1a71fbfdd911adda9b3 \
293
+ --hash=sha256:1edb10e520e4bddf74d85b0f5ae74cc2d60c2b448885080bfb618bc2b3a49f6b \
294
+ --hash=sha256:201a8e0f55501a76e08dbf2c54bc45f4642b379271e89c667d517bfbc2191f2a \
295
+ --hash=sha256:252908153eeec06c3ca3a32077e64a49d572e3d89881475b4e0f02d99d9fcc7c \
296
+ --hash=sha256:38111ed1f79268f399c505028023d5eaaf0ab4e5eafceb709468b0d3323e7838 \
297
+ --hash=sha256:3ab3f1ae98970b5590e2209341522718900ba19bcc2c207ffaa6bd417ad960c5 \
298
+ --hash=sha256:3d2b5e824b5622038dc7b490897efe05ebbbb9e7350fc142f3ecc8789ef9bdf6 \
299
+ --hash=sha256:3ec27c152a1f1b24bc9168b55a5880f3c16e2334e697da6f55a1046a22405a3d \
300
+ --hash=sha256:3f5851441ab1ef8634963a5100b733a8bbeefe623e0c5c005b1f1f3880e574cf \
301
+ --hash=sha256:3fd9ce2ab4460c713cfdeb4aca693ca6732a11538e05fb332d5af42e3d7fde25 \
302
+ --hash=sha256:44284adc6fbe9d5bdd480541431a3d93f674fa44736714d3ad4bcee8283ace7d \
303
+ --hash=sha256:443ac618c7a2a1377cf5c82581fbb849591d14e656d5e5a3e4682d4e36a34e4e \
304
+ --hash=sha256:46ba07b543add034de0ff47ac5f907e9a06682f91d85121a972764628933be6b \
305
+ --hash=sha256:4f0603267cd15b92b68c2c0e852a441507614b70dc7773659baa6b8c214a91fd \
306
+ --hash=sha256:524e2a85c028a0d2f9935191fa751e5ef9d9bcc39616f70ab14b28d0369c9936 \
307
+ --hash=sha256:54a83df9260a89c1734256e620fe1f1a6bfedd7547139d4dc1384efac11a3a85 \
308
+ --hash=sha256:59d6588712101ccfcae9b03692be3aaae1514c2078666d7b05f15ba3a702e41b \
309
+ --hash=sha256:63250cfab8b80a1ef82a614eb2b3cadfec2c405f870cedc139d08e2f063eb708 \
310
+ --hash=sha256:64b656f025355cf8c51abe9fbe3848540756c6d7ca5e6791b1afa664bc24c7cb \
311
+ --hash=sha256:65d84ec36888de4a848eee5f910e67fbc79b064685ef1e10a502e14520ead9c9 \
312
+ --hash=sha256:69e9dc8078e128286ed3b975e37c837ba96e215a50c3ef9f3f8b7ab9e5a832a0 \
313
+ --hash=sha256:6dd76f3e5c8b2eb8a3a3efee787bbf5b9a66e52a048fe09cab85eca33fec6790 \
314
+ --hash=sha256:70d4ca6f4d06df7f0ccab6fe4f49c8a712c8c8b6847b4f0af9a0e1dbb0e0337e \
315
+ --hash=sha256:72b7825b331b1b7e7c45be2e674b3e3c65af608fa376bad2d851b20aaf0cdc78 \
316
+ --hash=sha256:741b4b367140e9b5c36b5a14c72179f2c946d991ea9a7c031a2a1ee6ad097b99 \
317
+ --hash=sha256:74f0ee601047c0c12a783088b51be4e6214a62ecd9e02278c477433cd16e0ed9 \
318
+ --hash=sha256:76ff5814db72e7462dece042d7593cdf102b8ec82c2b1cc201a2add34ee3050d \
319
+ --hash=sha256:77c3ce990b23441e5ecfa5bce181fd6f408b564aeb6d7e1d1e7de9c5612501c8 \
320
+ --hash=sha256:79bac5a251f23a7341e28fda9ce0d5319edf45328239ce037c0682936f137906 \
321
+ --hash=sha256:7c6e7bf684dc12145bfa685d3060beaea55139134ba848289bee514ed42e7383 \
322
+ --hash=sha256:7fc14c1585139fa6b68775e616a6b90cf622ebf219f9558c0aeaf5d253ee6c9b \
323
+ --hash=sha256:89625fb43765cccaa1443b9adb61f283e5fe4cb1536728205d06bada730caa53 \
324
+ --hash=sha256:8b2db2056c97224e122054fd794543cde5d24b7cae28424f6e3eb79bbe08e42b \
325
+ --hash=sha256:8d44b20234905ff022b7d535f79d1f823ad7670c9851cc4f03cdc34787cdb3ab \
326
+ --hash=sha256:8eed98514bffe5ecac37f493f91869c351fbb05629328bfdbc08502c6c094dc0 \
327
+ --hash=sha256:8f1f61592e7cabd45d49ce8cc0ef42ca655c091e037153754fb3fa59725b5914 \
328
+ --hash=sha256:b23fe17779834d3c27aaf2edac9486d04cca1a7deb8f5facda35150ac6263a91 \
329
+ --hash=sha256:bc7b0b1da20f856bfac5f84b2673fe534b167e41980b27442ca8f78c2b7eb77e \
330
+ --hash=sha256:c62bd361cec1f5b556eb8210264ecfff37486cd990c3386cc00310f26c54090a \
331
+ --hash=sha256:c76c9b3324efd79029eeb0fd2ced1964bdbeca7d45e030b46fa3ef3cf74f8032 \
332
+ --hash=sha256:c798f0b327bac10dc95cdac77b9a197ab2bd7dd1e60ebd7586a12d918d4be711 \
333
+ --hash=sha256:c8a168b040bc61681293f79a949b5d911c8e25086f4260285b8d97ab5f1195da \
334
+ --hash=sha256:caad9566e2ef0e5640d36032c69b0edc7ac6028277b93d93815898804fac450c \
335
+ --hash=sha256:cbce24284f51f71d10a42b7b9c964dcb9048b28f1c8e5db40bcbcb6f428cba6a \
336
+ --hash=sha256:cd810878180a52950e5a61f25ada5248a453bbdbafe474f89514135fbc1f633d \
337
+ --hash=sha256:d254c98ca6387655400b3959c33c83efd807f5edeb608e3aca45800ceaa77151 \
338
+ --hash=sha256:d795c4ac689a57f9d4ba2288126ec7901d389ad5827d2f8b8533c883974fe563 \
339
+ --hash=sha256:df88b0c34f2fa909d322f7b06b1398e1e81af4b2f42a7b8e3556f928b25d1811 \
340
+ --hash=sha256:eb8da9d9a9b418422c21a07fd19b9d9228692b7a7468a45eec6b11642d3c808b \
341
+ --hash=sha256:f7c06c751c19d923435a54bff4f7e66e728fad160e8da28254f133abc9725820 \
342
+ --hash=sha256:fa9f5ef0e2a82233dd0b8b32ea3f5710e0c44afbc07ed3620219f32601e56090 \
343
+ --hash=sha256:fd523c4992041faa5c2b3cde62253d11a96c30d73a34afe48a486e8e2254cd1c
344
+ sympy==1.14.0 ; python_full_version < '3.11' or sys_platform == 'darwin' \
320
345
  --hash=sha256:d3d3fe8df1e5a0b42f0e7bdf50541697dbe7d23746e894990c030e2b05e72517 \
321
346
  --hash=sha256:e091cc3e99d2141a0ba2847328f5479b05d94a6635cb96148ccb3f34671bd8f5
@@ -29,7 +29,7 @@ from localmodels import (
29
29
  tts_model,
30
30
  tts_state,
31
31
  )
32
- from localmodels.probe import HostFacts
32
+ from localmodels.probe import HostFacts, logical_cores
33
33
  from localmodels.records import ReleaseEngine
34
34
  from localmodels.sidecar_http import SidecarWorkerError, wrap_pcm16_wav
35
35
  from localmodels.tts_admission import TtsDeviceDecision
@@ -439,7 +439,7 @@ class SpeechCppBackend:
439
439
  model_path = str(
440
440
  sidecar_downloads.model_file_dest(base_dir, "tts", spec.id, spec.files[0].path)
441
441
  )
442
- num_threads = min(SPEECHCPP_MAX_CPU_THREADS, max(1, os.cpu_count() or 1))
442
+ num_threads = min(SPEECHCPP_MAX_CPU_THREADS, max(1, logical_cores() or 1))
443
443
  argv = [
444
444
  str(binary),
445
445
  "serve",
@@ -22,7 +22,7 @@ from localmodels.tts_model import TtsEngine as TtsEngine
22
22
  TtsQualityRating = Literal["fast-bilingual", "lightweight-streaming", "high-expressive"]
23
23
 
24
24
  V1_TTS_MODEL_IDS: tuple[str, ...] = (
25
- "kokoro-v1.1-zh",
25
+ "kokoro-v1.0-int8",
26
26
  "moss-tts-nano-100m",
27
27
  "qwen3-tts-0.6b-customvoice",
28
28
  "qwen3-tts-1.7b-customvoice",
@@ -240,7 +240,7 @@ def static_voices(model_id: str, catalog_path: Path = CATALOG_PATH) -> list[TtsV
240
240
  """Return static voice metadata for ``model_id`` when no worker is running."""
241
241
  spec = tts_model(model_id, catalog_path)
242
242
  raw_list: list[dict[str, str]] | None = None
243
- if spec.id == "kokoro-v1.1-zh":
243
+ if spec.id == "kokoro-v1.0-int8":
244
244
  raw_list = tts_worker_kokoro.kokoro_voice_list()
245
245
  elif spec.id == "moss-tts-nano-100m":
246
246
  raw_list = tts_worker_moss.moss_voice_list()
@@ -21,7 +21,7 @@ from localmodels.tts_model import (
21
21
  )
22
22
 
23
23
  DESCRIPTION = (
24
- "Manage local text-to-speech models (Kokoro-82M v1.1-zh, MOSS-TTS-Nano-100M, Qwen3-TTS "
24
+ "Manage local text-to-speech models (Kokoro-82M v1.0 INT8, MOSS-TTS-Nano-100M, Qwen3-TTS "
25
25
  "CustomVoice via speech.cpp, and pluggable TTS backends): "
26
26
  "inspect status, list models, download with resumable verification, cancel, remove, configure "
27
27
  "preferences, control the standby-first sidecar, list voices, and synthesize audio. Every "
@@ -55,7 +55,7 @@ def _add_base_dir(parser: argparse.ArgumentParser) -> None:
55
55
 
56
56
 
57
57
  def _add_model_arg(parser: argparse.ArgumentParser) -> None:
58
- parser.add_argument("model", metavar="MODEL", help="TTS model id (e.g. kokoro-v1.1-zh)")
58
+ parser.add_argument("model", metavar="MODEL", help="TTS model id (e.g. kokoro-v1.0-int8)")
59
59
 
60
60
 
61
61
  def _add_json_flag(parser: argparse.ArgumentParser) -> None:
@@ -110,7 +110,7 @@ def _add_manage_parsers(verbs: argparse._SubParsersAction[argparse.ArgumentParse
110
110
  dl_p,
111
111
  "Download and SHA-256 verify a TTS model into <base-dir>/tts/<model>/ with resumable "
112
112
  "byte ranges and region-aware mirrors. Emits localmodels.tts-event/v1 JSONL.",
113
- examples=[("%(prog)s kokoro-v1.1-zh --jsonl", "")],
113
+ examples=[("%(prog)s kokoro-v1.0-int8 --jsonl", "")],
114
114
  )
115
115
 
116
116
  cancel_p = verbs.add_parser("cancel", help="cancel an active TTS download (JSON)")
@@ -139,9 +139,7 @@ def _resolve_backend_engine(
139
139
  include_gpu: bool,
140
140
  facts: HostFacts | None,
141
141
  ) -> ReleaseEngine | None:
142
- backend = tts_workers.BACKENDS.get(spec.engine)
143
- if backend is None:
144
- return None
142
+ backend = tts_workers.get_backend(spec.engine, spec.id)
145
143
  return backend.resolve_engine(spec, base_dir, include_gpu=include_gpu, facts=facts)
146
144
 
147
145
 
@@ -74,7 +74,7 @@ TtsEngine = Literal["sherpa-onnx", "onnxruntime", "speech.cpp"]
74
74
  TTS_ENGINES: tuple[TtsEngine, ...] = ("sherpa-onnx", "onnxruntime", "speech.cpp")
75
75
 
76
76
  CANONICAL_TTS_MODEL_IDS: tuple[str, ...] = (
77
- "kokoro-v1.1-zh",
77
+ "kokoro-v1.0-int8",
78
78
  "moss-tts-nano-100m",
79
79
  "qwen3-tts-0.6b-customvoice",
80
80
  "qwen3-tts-1.7b-customvoice",
@@ -113,8 +113,8 @@ FALLBACK_REASONS: tuple[FallbackReason, ...] = (
113
113
  "no_supported_gpu",
114
114
  )
115
115
 
116
- DEFAULT_MODEL_ID = "kokoro-v1.1-zh"
117
- DEFAULT_VOICE = "zf_001"
116
+ DEFAULT_MODEL_ID = "kokoro-v1.0-int8"
117
+ DEFAULT_VOICE = "zf_xiaoyi"
118
118
  DEFAULT_SPEED = 1.0
119
119
  MIN_SPEED = 0.5
120
120
  MAX_SPEED = 2.0