bolo-speech 0.2.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 (219) hide show
  1. bolo_speech-0.2.0/.gitignore +61 -0
  2. bolo_speech-0.2.0/LICENSE +202 -0
  3. bolo_speech-0.2.0/NOTICE +150 -0
  4. bolo_speech-0.2.0/PKG-INFO +505 -0
  5. bolo_speech-0.2.0/README.md +421 -0
  6. bolo_speech-0.2.0/pyproject.toml +148 -0
  7. bolo_speech-0.2.0/src/bolo/__init__.py +5 -0
  8. bolo_speech-0.2.0/src/bolo/__main__.py +3 -0
  9. bolo_speech-0.2.0/src/bolo/_probe.py +46 -0
  10. bolo_speech-0.2.0/src/bolo/_ui/apple-touch-icon.png +0 -0
  11. bolo_speech-0.2.0/src/bolo/_ui/assets/__vite-browser-external-BSasRvcZ.js +1 -0
  12. bolo_speech-0.2.0/src/bolo/_ui/assets/alert-y-6lUFzu.js +1 -0
  13. bolo_speech-0.2.0/src/bolo/_ui/assets/bench-CXahGonE.js +4 -0
  14. bolo_speech-0.2.0/src/bolo/_ui/assets/benchmark-RcT7OOFg.js +1 -0
  15. bolo_speech-0.2.0/src/bolo/_ui/assets/capabilities-DpMMPQxp.js +1 -0
  16. bolo_speech-0.2.0/src/bolo/_ui/assets/chart-DRTUqEVi.js +39 -0
  17. bolo_speech-0.2.0/src/bolo/_ui/assets/chart-kit-mr_qOori.js +1 -0
  18. bolo_speech-0.2.0/src/bolo/_ui/assets/checkbox-Bi4Sxs1u.js +1 -0
  19. bolo_speech-0.2.0/src/bolo/_ui/assets/circle-dashed-C69JWix9.js +1 -0
  20. bolo_speech-0.2.0/src/bolo/_ui/assets/command-palette-B2KssZUw.js +1 -0
  21. bolo_speech-0.2.0/src/bolo/_ui/assets/component-install-BwyIMwZl.js +1 -0
  22. bolo_speech-0.2.0/src/bolo/_ui/assets/components-BEXD5Elv.js +1 -0
  23. bolo_speech-0.2.0/src/bolo/_ui/assets/connect-Clm8-W3X.js +62 -0
  24. bolo_speech-0.2.0/src/bolo/_ui/assets/conversation-BNxIedQ8.js +1 -0
  25. bolo_speech-0.2.0/src/bolo/_ui/assets/diagnostics-panel-DtQM9wcJ.js +5 -0
  26. bolo_speech-0.2.0/src/bolo/_ui/assets/engine-BBt21Gim.js +1 -0
  27. bolo_speech-0.2.0/src/bolo/_ui/assets/index-CT0tCA22.css +2 -0
  28. bolo_speech-0.2.0/src/bolo/_ui/assets/index-D3MZkqFc.js +53 -0
  29. bolo_speech-0.2.0/src/bolo/_ui/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
  30. bolo_speech-0.2.0/src/bolo/_ui/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
  31. bolo_speech-0.2.0/src/bolo/_ui/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
  32. bolo_speech-0.2.0/src/bolo/_ui/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
  33. bolo_speech-0.2.0/src/bolo/_ui/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
  34. bolo_speech-0.2.0/src/bolo/_ui/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
  35. bolo_speech-0.2.0/src/bolo/_ui/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
  36. bolo_speech-0.2.0/src/bolo/_ui/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2 +0 -0
  37. bolo_speech-0.2.0/src/bolo/_ui/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2 +0 -0
  38. bolo_speech-0.2.0/src/bolo/_ui/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
  39. bolo_speech-0.2.0/src/bolo/_ui/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
  40. bolo_speech-0.2.0/src/bolo/_ui/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2 +0 -0
  41. bolo_speech-0.2.0/src/bolo/_ui/assets/latency-6nIM0TzI.js +1 -0
  42. bolo_speech-0.2.0/src/bolo/_ui/assets/mic-help-BCNXE1u9.js +1 -0
  43. bolo_speech-0.2.0/src/bolo/_ui/assets/mic-help-DWI9T5LW.js +1 -0
  44. bolo_speech-0.2.0/src/bolo/_ui/assets/model-bits-BQ6IN8hE.js +1 -0
  45. bolo_speech-0.2.0/src/bolo/_ui/assets/model-picker-CvHhnt-R.js +1 -0
  46. bolo_speech-0.2.0/src/bolo/_ui/assets/models-BZlzXSJo.js +1 -0
  47. bolo_speech-0.2.0/src/bolo/_ui/assets/noto-naskh-arabic-arabic-wght-normal-DIN-4rtF.woff2 +0 -0
  48. bolo_speech-0.2.0/src/bolo/_ui/assets/noto-sans-bengali-bengali-wght-normal-DeF8kf4m.woff2 +0 -0
  49. bolo_speech-0.2.0/src/bolo/_ui/assets/noto-sans-devanagari-devanagari-wght-normal-DWI_L5Cu.woff2 +0 -0
  50. bolo_speech-0.2.0/src/bolo/_ui/assets/noto-sans-gujarati-gujarati-wght-normal-Clz9kKLg.woff2 +0 -0
  51. bolo_speech-0.2.0/src/bolo/_ui/assets/noto-sans-gurmukhi-gurmukhi-wght-normal-HnZqhN5g.woff2 +0 -0
  52. bolo_speech-0.2.0/src/bolo/_ui/assets/noto-sans-kannada-kannada-wght-normal-DuwB-P8d.woff2 +0 -0
  53. bolo_speech-0.2.0/src/bolo/_ui/assets/noto-sans-malayalam-malayalam-wght-normal-C3telsSh.woff2 +0 -0
  54. bolo_speech-0.2.0/src/bolo/_ui/assets/noto-sans-oriya-oriya-wght-normal-JNDXqas0.woff2 +0 -0
  55. bolo_speech-0.2.0/src/bolo/_ui/assets/noto-sans-tamil-tamil-wght-normal-iihgzMBi.woff2 +0 -0
  56. bolo_speech-0.2.0/src/bolo/_ui/assets/noto-sans-telugu-telugu-wght-normal-DoLU0sI2.woff2 +0 -0
  57. bolo_speech-0.2.0/src/bolo/_ui/assets/override-text-Bc61tRXI.js +2 -0
  58. bolo_speech-0.2.0/src/bolo/_ui/assets/panel-BOw-dJi0.js +1 -0
  59. bolo_speech-0.2.0/src/bolo/_ui/assets/pcm-CalXEOke.js +1 -0
  60. bolo_speech-0.2.0/src/bolo/_ui/assets/phases-CzeIuT4q.js +1 -0
  61. bolo_speech-0.2.0/src/bolo/_ui/assets/play-Dqd68TKN.js +1 -0
  62. bolo_speech-0.2.0/src/bolo/_ui/assets/player-CfRYFkCd.js +1 -0
  63. bolo_speech-0.2.0/src/bolo/_ui/assets/popover-COkCDp7k.js +1 -0
  64. bolo_speech-0.2.0/src/bolo/_ui/assets/progress-BComADHS.js +6 -0
  65. bolo_speech-0.2.0/src/bolo/_ui/assets/save-6C0ZNYFi.js +1 -0
  66. bolo_speech-0.2.0/src/bolo/_ui/assets/select-Ck7UCXuF.js +1 -0
  67. bolo_speech-0.2.0/src/bolo/_ui/assets/square-DZNyf3XQ.js +1 -0
  68. bolo_speech-0.2.0/src/bolo/_ui/assets/stats-DrD9fvoe.js +1 -0
  69. bolo_speech-0.2.0/src/bolo/_ui/assets/stt-irLffRRk.js +1 -0
  70. bolo_speech-0.2.0/src/bolo/_ui/assets/support-Bs5mvCB-.js +1 -0
  71. bolo_speech-0.2.0/src/bolo/_ui/assets/table-nZl6qBmo.js +1 -0
  72. bolo_speech-0.2.0/src/bolo/_ui/assets/textarea-suSe5u83.js +1 -0
  73. bolo_speech-0.2.0/src/bolo/_ui/assets/toggle-group-D2I8RWGl.js +1 -0
  74. bolo_speech-0.2.0/src/bolo/_ui/assets/trash-PPSB5uoo.js +1 -0
  75. bolo_speech-0.2.0/src/bolo/_ui/assets/tts-BnZ715Yz.js +1 -0
  76. bolo_speech-0.2.0/src/bolo/_ui/assets/uccharan-t0Qlhkc9.js +1 -0
  77. bolo_speech-0.2.0/src/bolo/_ui/assets/uccharan_wasm_bg-N3GqjhT8.wasm +0 -0
  78. bolo_speech-0.2.0/src/bolo/_ui/assets/use-api-FEiHCTKE.js +2 -0
  79. bolo_speech-0.2.0/src/bolo/_ui/assets/use-support-C39-orRL.js +1 -0
  80. bolo_speech-0.2.0/src/bolo/_ui/assets/wav-D2r1V-VA.js +1 -0
  81. bolo_speech-0.2.0/src/bolo/_ui/assets/wordlist-select-d1jwiaFv.js +1 -0
  82. bolo_speech-0.2.0/src/bolo/_ui/assets/wordlists-C7isQm94.js +3 -0
  83. bolo_speech-0.2.0/src/bolo/_ui/assets/worker-C83FPhzz.js +12 -0
  84. bolo_speech-0.2.0/src/bolo/_ui/assets/worker-DccfG_ez.js +49 -0
  85. bolo_speech-0.2.0/src/bolo/_ui/favicon.svg +4 -0
  86. bolo_speech-0.2.0/src/bolo/_ui/icon-192.png +0 -0
  87. bolo_speech-0.2.0/src/bolo/_ui/icon-512.png +0 -0
  88. bolo_speech-0.2.0/src/bolo/_ui/index.html +44 -0
  89. bolo_speech-0.2.0/src/bolo/_ui/og.png +0 -0
  90. bolo_speech-0.2.0/src/bolo/_ui/site.webmanifest +13 -0
  91. bolo_speech-0.2.0/src/bolo/agents.py +100 -0
  92. bolo_speech-0.2.0/src/bolo/api/__init__.py +5 -0
  93. bolo_speech-0.2.0/src/bolo/api/app.py +122 -0
  94. bolo_speech-0.2.0/src/bolo/api/chat.py +315 -0
  95. bolo_speech-0.2.0/src/bolo/api/common.py +78 -0
  96. bolo_speech-0.2.0/src/bolo/api/native.py +389 -0
  97. bolo_speech-0.2.0/src/bolo/api/openai.py +686 -0
  98. bolo_speech-0.2.0/src/bolo/api/realtime.py +185 -0
  99. bolo_speech-0.2.0/src/bolo/api/speaches.py +165 -0
  100. bolo_speech-0.2.0/src/bolo/api/static.py +115 -0
  101. bolo_speech-0.2.0/src/bolo/api/wordlists.py +140 -0
  102. bolo_speech-0.2.0/src/bolo/api/ws.py +347 -0
  103. bolo_speech-0.2.0/src/bolo/audio/__init__.py +29 -0
  104. bolo_speech-0.2.0/src/bolo/audio/codecs.py +209 -0
  105. bolo_speech-0.2.0/src/bolo/audio/decode.py +175 -0
  106. bolo_speech-0.2.0/src/bolo/audio/encode.py +391 -0
  107. bolo_speech-0.2.0/src/bolo/audio/features.py +160 -0
  108. bolo_speech-0.2.0/src/bolo/audio/resample.py +81 -0
  109. bolo_speech-0.2.0/src/bolo/bench.py +237 -0
  110. bolo_speech-0.2.0/src/bolo/catalog/__init__.py +383 -0
  111. bolo_speech-0.2.0/src/bolo/catalog/diarization.yaml +188 -0
  112. bolo_speech-0.2.0/src/bolo/catalog/plugin-torch.yaml +698 -0
  113. bolo_speech-0.2.0/src/bolo/catalog/separation.yaml +42 -0
  114. bolo_speech-0.2.0/src/bolo/catalog/stt-faster-whisper.yaml +1291 -0
  115. bolo_speech-0.2.0/src/bolo/catalog/stt-onnxruntime.yaml +34 -0
  116. bolo_speech-0.2.0/src/bolo/catalog/stt-sherpa.yaml +3841 -0
  117. bolo_speech-0.2.0/src/bolo/catalog/tts-mms.yaml +749 -0
  118. bolo_speech-0.2.0/src/bolo/catalog/tts-orpheus.yaml +413 -0
  119. bolo_speech-0.2.0/src/bolo/catalog/tts-piper.yaml +3970 -0
  120. bolo_speech-0.2.0/src/bolo/catalog/tts-server.yaml +1958 -0
  121. bolo_speech-0.2.0/src/bolo/catalog/tts.yaml +1900 -0
  122. bolo_speech-0.2.0/src/bolo/catalog/turn.yaml +23 -0
  123. bolo_speech-0.2.0/src/bolo/catalog/vad.yaml +88 -0
  124. bolo_speech-0.2.0/src/bolo/cli.py +717 -0
  125. bolo_speech-0.2.0/src/bolo/components.py +566 -0
  126. bolo_speech-0.2.0/src/bolo/config.py +321 -0
  127. bolo_speech-0.2.0/src/bolo/core.py +1296 -0
  128. bolo_speech-0.2.0/src/bolo/custom.py +265 -0
  129. bolo_speech-0.2.0/src/bolo/diarize.py +520 -0
  130. bolo_speech-0.2.0/src/bolo/engines/__init__.py +120 -0
  131. bolo_speech-0.2.0/src/bolo/engines/base.py +403 -0
  132. bolo_speech-0.2.0/src/bolo/engines/dicow_onnx.py +610 -0
  133. bolo_speech-0.2.0/src/bolo/engines/fake.py +478 -0
  134. bolo_speech-0.2.0/src/bolo/engines/faster_whisper.py +182 -0
  135. bolo_speech-0.2.0/src/bolo/engines/kokoro_onnx.py +83 -0
  136. bolo_speech-0.2.0/src/bolo/engines/moonshine.py +64 -0
  137. bolo_speech-0.2.0/src/bolo/engines/nemotron.py +387 -0
  138. bolo_speech-0.2.0/src/bolo/engines/onnx_turn.py +83 -0
  139. bolo_speech-0.2.0/src/bolo/engines/orpheus_llamacpp.py +530 -0
  140. bolo_speech-0.2.0/src/bolo/engines/sherpa.py +882 -0
  141. bolo_speech-0.2.0/src/bolo/engines/tts_server.py +678 -0
  142. bolo_speech-0.2.0/src/bolo/engines/whispercpp.py +65 -0
  143. bolo_speech-0.2.0/src/bolo/errors.py +120 -0
  144. bolo_speech-0.2.0/src/bolo/jobs.py +67 -0
  145. bolo_speech-0.2.0/src/bolo/lifecycle.py +372 -0
  146. bolo_speech-0.2.0/src/bolo/llm.py +177 -0
  147. bolo_speech-0.2.0/src/bolo/obs/__init__.py +1 -0
  148. bolo_speech-0.2.0/src/bolo/obs/events.py +70 -0
  149. bolo_speech-0.2.0/src/bolo/obs/metrics.py +127 -0
  150. bolo_speech-0.2.0/src/bolo/obs/sketch.py +89 -0
  151. bolo_speech-0.2.0/src/bolo/obs/trace.py +291 -0
  152. bolo_speech-0.2.0/src/bolo/piper.py +157 -0
  153. bolo_speech-0.2.0/src/bolo/plugin/__init__.py +6 -0
  154. bolo_speech-0.2.0/src/bolo/plugin/host.py +569 -0
  155. bolo_speech-0.2.0/src/bolo/plugin/protocol.py +126 -0
  156. bolo_speech-0.2.0/src/bolo/plugin/reference.py +60 -0
  157. bolo_speech-0.2.0/src/bolo/plugin/sdk.py +241 -0
  158. bolo_speech-0.2.0/src/bolo/py.typed +0 -0
  159. bolo_speech-0.2.0/src/bolo/realtime.py +1327 -0
  160. bolo_speech-0.2.0/src/bolo/s2s.py +495 -0
  161. bolo_speech-0.2.0/src/bolo/samples/__init__.py +94 -0
  162. bolo_speech-0.2.0/src/bolo/samples/en-long.wav +0 -0
  163. bolo_speech-0.2.0/src/bolo/samples/en-short.wav +0 -0
  164. bolo_speech-0.2.0/src/bolo/samples/hi-short.wav +0 -0
  165. bolo_speech-0.2.0/src/bolo/samples/index.json +83 -0
  166. bolo_speech-0.2.0/src/bolo/scheduler.py +281 -0
  167. bolo_speech-0.2.0/src/bolo/separate.py +584 -0
  168. bolo_speech-0.2.0/src/bolo/store.py +623 -0
  169. bolo_speech-0.2.0/src/bolo/streaming/__init__.py +1 -0
  170. bolo_speech-0.2.0/src/bolo/streaming/agreement.py +82 -0
  171. bolo_speech-0.2.0/src/bolo/streaming/session.py +637 -0
  172. bolo_speech-0.2.0/src/bolo/streaming/vad.py +235 -0
  173. bolo_speech-0.2.0/src/bolo/text/__init__.py +1 -0
  174. bolo_speech-0.2.0/src/bolo/text/formats.py +47 -0
  175. bolo_speech-0.2.0/src/bolo/text/normalize.py +433 -0
  176. bolo_speech-0.2.0/src/bolo/text/phonemize.py +508 -0
  177. bolo_speech-0.2.0/src/bolo/text/prepare.py +300 -0
  178. bolo_speech-0.2.0/src/bolo/text/segment.py +168 -0
  179. bolo_speech-0.2.0/src/bolo/text/ssml.py +133 -0
  180. bolo_speech-0.2.0/src/bolo/text/wordlists.py +207 -0
  181. bolo_speech-0.2.0/src/bolo/tts_runtimes.py +328 -0
  182. bolo_speech-0.2.0/src/bolo/webrtc.py +295 -0
  183. bolo_speech-0.2.0/src/bolo/wyoming_server.py +287 -0
  184. bolo_speech-0.2.0/tests/conftest.py +160 -0
  185. bolo_speech-0.2.0/tests/fake_llm.py +152 -0
  186. bolo_speech-0.2.0/tests/fake_orpheus_server.py +183 -0
  187. bolo_speech-0.2.0/tests/fake_realtime_server.py +201 -0
  188. bolo_speech-0.2.0/tests/fake_tts_server.py +204 -0
  189. bolo_speech-0.2.0/tests/test_api_native.py +344 -0
  190. bolo_speech-0.2.0/tests/test_api_openai.py +300 -0
  191. bolo_speech-0.2.0/tests/test_audio.py +266 -0
  192. bolo_speech-0.2.0/tests/test_chat.py +217 -0
  193. bolo_speech-0.2.0/tests/test_components.py +327 -0
  194. bolo_speech-0.2.0/tests/test_conditioned.py +274 -0
  195. bolo_speech-0.2.0/tests/test_config_cli.py +146 -0
  196. bolo_speech-0.2.0/tests/test_core.py +199 -0
  197. bolo_speech-0.2.0/tests/test_diarization.py +395 -0
  198. bolo_speech-0.2.0/tests/test_dicow_onnx.py +338 -0
  199. bolo_speech-0.2.0/tests/test_lifecycle.py +168 -0
  200. bolo_speech-0.2.0/tests/test_nemotron.py +320 -0
  201. bolo_speech-0.2.0/tests/test_obs.py +147 -0
  202. bolo_speech-0.2.0/tests/test_orpheus_llamacpp.py +423 -0
  203. bolo_speech-0.2.0/tests/test_plugins.py +207 -0
  204. bolo_speech-0.2.0/tests/test_real.py +806 -0
  205. bolo_speech-0.2.0/tests/test_realtime.py +415 -0
  206. bolo_speech-0.2.0/tests/test_s2s.py +302 -0
  207. bolo_speech-0.2.0/tests/test_scheduler.py +196 -0
  208. bolo_speech-0.2.0/tests/test_separation.py +489 -0
  209. bolo_speech-0.2.0/tests/test_speaches_compat.py +87 -0
  210. bolo_speech-0.2.0/tests/test_store_catalog.py +433 -0
  211. bolo_speech-0.2.0/tests/test_text.py +235 -0
  212. bolo_speech-0.2.0/tests/test_timing.py +221 -0
  213. bolo_speech-0.2.0/tests/test_tts_server.py +425 -0
  214. bolo_speech-0.2.0/tests/test_voice_tools.py +152 -0
  215. bolo_speech-0.2.0/tests/test_voices_and_turns.py +382 -0
  216. bolo_speech-0.2.0/tests/test_webrtc.py +255 -0
  217. bolo_speech-0.2.0/tests/test_wordlists.py +271 -0
  218. bolo_speech-0.2.0/tests/test_ws.py +266 -0
  219. bolo_speech-0.2.0/tests/test_wyoming.py +120 -0
@@ -0,0 +1,61 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *.egg-info/
5
+ .eggs/
6
+ build/
7
+ dist/
8
+ .venv/
9
+ venv/
10
+ .venvs/
11
+ .mypy_cache/
12
+ .ruff_cache/
13
+ .pytest_cache/
14
+ .coverage
15
+ htmlcov/
16
+ .tox/
17
+
18
+ # Node / web console sources (the built bundle in server/src/bolo/_ui/ IS committed)
19
+ node_modules/
20
+ ui/dist/
21
+ ui/.vite/
22
+ ui/coverage/
23
+ ui/playwright-report/
24
+ ui/test-results/
25
+ *.tsbuildinfo
26
+ npm-debug.log*
27
+
28
+ # Models, caches and data
29
+ /.bolo-cache/
30
+ /.cache/
31
+ /models/
32
+ *.onnx
33
+ *.ort
34
+ *.bin
35
+ *.gguf
36
+ *.safetensors
37
+ *.part
38
+
39
+ # Editors and OS
40
+ .idea/
41
+ .vscode/
42
+ *.swp
43
+ .DS_Store
44
+
45
+ # Local configuration and secrets
46
+ bolo.toml
47
+ .env
48
+ .env.*
49
+
50
+ # Working notes that are not part of the project
51
+ CONTRACT.md
52
+ SERVER_STATUS.md
53
+
54
+ # internal working notes
55
+ docs/_*
56
+
57
+ # vendored WebAssembly build of uccharan (needed to build the console)
58
+ !ui/src/vendor/uccharan/dist/
59
+
60
+ # wheels for local Docker builds (deploy/wheels/README.md)
61
+ deploy/wheels/*.whl
@@ -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,150 @@
1
+ bolo
2
+ Copyright 2026 The bolo Authors
3
+
4
+ This product is licensed under the Apache License, Version 2.0 (see LICENSE).
5
+
6
+ bolo's own source code contains no third-party source code, except the copy
7
+ of uccharan in ui/src/vendor/uccharan (see "Web console: speech synthesis in
8
+ the browser" below). It talks to the
9
+ following components, which are installed separately as Python dependencies
10
+ or optional extras and keep their own licences:
11
+
12
+ Runtime dependencies
13
+ FastAPI (MIT), Starlette (BSD-3-Clause), Uvicorn (BSD-3-Clause),
14
+ python-multipart (Apache-2.0), NumPy (BSD-3-Clause), httpx (BSD-3-Clause),
15
+ PyYAML (MIT), psutil (BSD-3-Clause),
16
+ soundfile (BSD-3-Clause; its wheels bundle libsndfile, LGPL-2.1-or-later,
17
+ with libFLAC, libogg, libvorbis, libopus (BSD-style), mpg123 (LGPL-2.1)
18
+ and LAME (LGPL-2.0-or-later)),
19
+ soxr (the Python binding and libsoxr are LGPL-2.1-or-later).
20
+
21
+ Optional inference engines
22
+ sherpa-onnx (Apache-2.0) https://github.com/k2-fsa/sherpa-onnx
23
+ ONNX Runtime (MIT), bundled in the sherpa-onnx wheel
24
+ faster-whisper (MIT) https://github.com/SYSTRAN/faster-whisper
25
+ CTranslate2 (MIT) https://github.com/OpenNMT/CTranslate2
26
+ useful-moonshine-onnx (MIT), pywhispercpp / whisper.cpp (MIT)
27
+ kokoro-onnx (MIT; depends on phonemizer, GPL-3.0-or-later; not part of
28
+ the "all" extra)
29
+
30
+ Phonemiser
31
+ uccharan (Apache-2.0; English data derived from CMUdict, BSD-2-Clause;
32
+ Kokoro English dictionaries from misaki, Apache-2.0)
33
+ https://github.com/cb-Sigma/uccharan
34
+ optional "uccharan" extra, part of "all"
35
+
36
+ Optional protocol and codec libraries
37
+ wyoming (MIT) https://github.com/OHF-Voice/wyoming
38
+ PyAV (BSD-3-Clause; its wheels bundle FFmpeg libraries, LGPL-2.1-or-later)
39
+
40
+ Speaker diarization uses the pyannote segmentation-3.0 model (MIT) in its
41
+ ONNX export and a 3D-Speaker ERes2Net speaker-embedding model (Apache-2.0),
42
+ both run by sherpa-onnx. Model files are downloaded by the user, not
43
+ distributed with bolo.
44
+
45
+ The optional diarization model "nemotron-3-diarization" is NVIDIA
46
+ Nemotron-3-Diarization (https://huggingface.co/nvidia/Nemotron-3-Diarization),
47
+ licensed under the OpenMDW License Agreement, version 1.1
48
+ (https://openmdw.ai/license/1-1/), in the int8 ONNX conversion published
49
+ by the onnx-community organisation on Hugging Face
50
+ (https://huggingface.co/onnx-community/Nemotron-3-Diarization-ONNX). It is
51
+ downloaded by the user on request, run by ONNX Runtime (MIT), and not
52
+ distributed with bolo. Whoever redistributes the model files (for example
53
+ inside a container image) must, under OpenMDW-1.1, include a copy of that
54
+ agreement and keep the copyright and origin notices that come with the
55
+ model. OpenMDW-1.1 also ends the licence of anyone who sues claiming that
56
+ the model infringes a patent or copyright. bolo's NumPy implementation of
57
+ the model's chunked inference (server/src/bolo/engines/nemotron.py: the
58
+ speaker cache and chunk loop) follows the reference implementation in
59
+ Hugging Face transformers (models/nemotron3_diarization, Apache-2.0,
60
+ Copyright 2026 The HuggingFace Inc. team); its log-mel front-end
61
+ (server/src/bolo/audio/features.py) is bolo's own implementation of NeMo's
62
+ published preprocessing.
63
+
64
+ eSpeak NG (GPL-3.0-or-later, https://github.com/espeak-ng/espeak-ng) is an
65
+ OPTIONAL component. It is NOT bundled with bolo, not linked into it, not a
66
+ dependency of the "all" extra and not in the default container images. It
67
+ is installed only when the operator asks for it (the console, "bolo
68
+ components install espeak-ng", the "espeak" extra, which pulls the
69
+ third-party espeakng-loader wheel, or the system package manager) and
70
+ after accepting its licence. Piper-format voices, KittenTTS, Matcha-TTS
71
+ (English) and the non-English Kokoro voices need it; the default voice
72
+ (Kokoro, English) does not. See docs/models.md, "Licences and the
73
+ espeak-ng question".
74
+
75
+ API compatibility
76
+ The routes under "speaches-compatible" mirror the HTTP interface of
77
+ speaches (https://github.com/speaches-ai/speaches, MIT licence,
78
+ Copyright (c) 2024 Fedir Zadniprovskyi) so that its clients keep
79
+ working. The interface was re-implemented from its route definitions;
80
+ no speaches source code is included.
81
+
82
+ Models
83
+ Models are not distributed with bolo. They are downloaded on request
84
+ from their publishers, under the licences recorded for each entry in
85
+ the catalog (server/src/bolo/catalog/*.yaml).
86
+
87
+ Fonts
88
+ The web console bundles Inter and JetBrains Mono, and Noto Sans
89
+ (Devanagari, Bengali, Tamil, Telugu, Gujarati, Kannada, Malayalam,
90
+ Gurmukhi, Oriya) and Noto Naskh Arabic for text in those scripts, all
91
+ under the SIL Open Font License 1.1, from the @fontsource packages.
92
+ The word "बोलो" in the logo is outlined from Hind SemiBold
93
+ (Copyright (c) 2014 Indian Type Foundry, SIL Open Font License 1.1);
94
+ the font itself is not distributed.
95
+
96
+ Voices converted by this project
97
+ The archives published as assets of the "voices-v1" release of this
98
+ repository are format conversions (PyTorch checkpoint to ONNX, made
99
+ with tools/voices/export_syspin.py) of the VITS voices published by
100
+ the SYSPIN project, SPIRE Lab, Indian Institute of Science (IISc),
101
+ Bengaluru (https://huggingface.co/SYSPIN). The model weights are under
102
+ the MIT licence; they were trained on the SYSPIN text-to-speech
103
+ corpus, licensed CC-BY-4.0. Each archive contains LICENSE and
104
+ ATTRIBUTION files naming the source repository and revision. The
105
+ archives are not part of the bolo package.
106
+
107
+ The same release (and, when published there, Hugging Face repositories
108
+ under codebucketsolutions/) may also carry format conversions of Meta's
109
+ MMS-TTS voices (https://huggingface.co/facebook/mms-tts, made with
110
+ tools/voices/export_mms.py and MMS's VITS inference code, MIT, Copyright
111
+ (c) 2021 Jaehyeon Kim). Those weights are licensed CC-BY-NC-4.0:
112
+ NON-COMMERCIAL use only. Each archive contains the licence text and the
113
+ attribution.
114
+
115
+ The optional end-of-turn model is Smart Turn v3 by the Pipecat project
116
+ (https://huggingface.co/pipecat-ai/smart-turn-v3, BSD-2-Clause),
117
+ downloaded on request like any other model. bolo's Whisper-style
118
+ feature computation (server/src/bolo/audio/features.py) is its own
119
+ implementation of the published algorithm.
120
+
121
+ Web console: speech synthesis in the browser
122
+ The console (and the live demo) can run text-to-speech voices in the
123
+ page with ONNX Runtime Web (MIT, https://github.com/microsoft/onnxruntime),
124
+ loaded from jsDelivr at run time, not bundled.
125
+
126
+ ui/src/vendor/uccharan is a copy of the WebAssembly build of uccharan
127
+ 0.1.0, a text-to-phoneme library (Apache-2.0, Copyright 2026 Abhinav
128
+ Gautam and the uccharan contributors, https://github.com/cb-Sigma/uccharan),
129
+ with its LICENSE, NOTICE and DATA_LICENSES.md. Its English data file
130
+ (en-us.ucd) is derived from the CMU Pronouncing Dictionary, Copyright (C)
131
+ 1993-2015 Carnegie Mellon University, BSD-2-Clause-style licence; the full
132
+ text is in ui/src/vendor/uccharan/NOTICE. uccharan contains no eSpeak NG
133
+ code or data; no GPL component is used for speech synthesis in the browser.
134
+
135
+ The live demo serves, next to the page (under voices/), copies of these
136
+ voices with their weights stored at reduced precision (8-bit and 16-bit;
137
+ not retrained), made by ui/scripts/voices/build.py:
138
+ - SYSPIN VITS voices (Hindi, Maithili, Bhojpuri, Marathi, Kannada and
139
+ Indian English) by the SYSPIN project, SPIRE Lab, Indian Institute of
140
+ Science, Bengaluru: weights MIT, training data the SYSPIN corpus,
141
+ CC-BY-4.0 (see "Voices converted by this project" above);
142
+ - the Piper voice en_US "amy" (low) from rhasspy/piper-voices (MIT),
143
+ trained on the Amy dataset of Mycroft's mimic3-voices.
144
+ Each voice directory carries its licence and attribution files. The
145
+ voices are not part of the bolo package or of the git repository.
146
+
147
+ Built-in audio samples
148
+ The files in server/src/bolo/samples/*.wav were synthesised with bolo
149
+ using the models named in server/src/bolo/samples/index.json. The live
150
+ demo bundles a copy of hi-short.wav.