echoact 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 (133) hide show
  1. echoact-0.1.0/.gitignore +225 -0
  2. echoact-0.1.0/.python-version +1 -0
  3. echoact-0.1.0/CLAUDE.md +95 -0
  4. echoact-0.1.0/LICENSE +21 -0
  5. echoact-0.1.0/PKG-INFO +162 -0
  6. echoact-0.1.0/README.md +111 -0
  7. echoact-0.1.0/docs/design.md +611 -0
  8. echoact-0.1.0/echoact/__init__.py +3 -0
  9. echoact-0.1.0/echoact/__main__.py +117 -0
  10. echoact-0.1.0/echoact/app.py +315 -0
  11. echoact-0.1.0/echoact/audio/__init__.py +0 -0
  12. echoact-0.1.0/echoact/audio/devices.py +192 -0
  13. echoact-0.1.0/echoact/audio/player.py +611 -0
  14. echoact-0.1.0/echoact/audio/wav.py +854 -0
  15. echoact-0.1.0/echoact/config/__init__.py +0 -0
  16. echoact-0.1.0/echoact/config/budget.py +370 -0
  17. echoact-0.1.0/echoact/config/settings.py +1244 -0
  18. echoact-0.1.0/echoact/db/__init__.py +0 -0
  19. echoact-0.1.0/echoact/db/backup.py +2429 -0
  20. echoact-0.1.0/echoact/db/migrations.py +434 -0
  21. echoact-0.1.0/echoact/db/schema.sql +214 -0
  22. echoact-0.1.0/echoact/db/store.py +2062 -0
  23. echoact-0.1.0/echoact/diagnostics.py +902 -0
  24. echoact-0.1.0/echoact/domain.py +487 -0
  25. echoact-0.1.0/echoact/engine/__init__.py +0 -0
  26. echoact-0.1.0/echoact/engine/container.py +843 -0
  27. echoact-0.1.0/echoact/engine/protocol.py +241 -0
  28. echoact-0.1.0/echoact/engine/runtime.py +324 -0
  29. echoact-0.1.0/echoact/engine/supervisor.py +961 -0
  30. echoact-0.1.0/echoact/engine/worker.py +659 -0
  31. echoact-0.1.0/echoact/errors.py +281 -0
  32. echoact-0.1.0/echoact/instance.py +172 -0
  33. echoact-0.1.0/echoact/jobs/__init__.py +0 -0
  34. echoact-0.1.0/echoact/jobs/engine.py +776 -0
  35. echoact-0.1.0/echoact/jobs/request.py +300 -0
  36. echoact-0.1.0/echoact/mcp/__init__.py +0 -0
  37. echoact-0.1.0/echoact/mcp/__main__.py +50 -0
  38. echoact-0.1.0/echoact/mcp/client.py +202 -0
  39. echoact-0.1.0/echoact/mcp/config.py +112 -0
  40. echoact-0.1.0/echoact/mcp/server.py +340 -0
  41. echoact-0.1.0/echoact/models/__init__.py +0 -0
  42. echoact-0.1.0/echoact/models/catalog.py +273 -0
  43. echoact-0.1.0/echoact/models/manifest.py +278 -0
  44. echoact-0.1.0/echoact/models/registry.py +1551 -0
  45. echoact-0.1.0/echoact/paths.py +93 -0
  46. echoact-0.1.0/echoact/policy.py +189 -0
  47. echoact-0.1.0/echoact/security/__init__.py +0 -0
  48. echoact-0.1.0/echoact/security/credentials.py +930 -0
  49. echoact-0.1.0/echoact/security/ratelimit.py +534 -0
  50. echoact-0.1.0/echoact/service/__init__.py +20 -0
  51. echoact-0.1.0/echoact/service/app.py +182 -0
  52. echoact-0.1.0/echoact/service/deps.py +563 -0
  53. echoact-0.1.0/echoact/service/errors.py +241 -0
  54. echoact-0.1.0/echoact/service/routes.py +1125 -0
  55. echoact-0.1.0/echoact/service/schemas.py +509 -0
  56. echoact-0.1.0/echoact/service/server.py +270 -0
  57. echoact-0.1.0/echoact/text/__init__.py +0 -0
  58. echoact-0.1.0/echoact/text/language.py +44 -0
  59. echoact-0.1.0/echoact/text/loader.py +577 -0
  60. echoact-0.1.0/echoact/text/normalize.py +924 -0
  61. echoact-0.1.0/echoact/text/segment.py +499 -0
  62. echoact-0.1.0/echoact/text/sniff.py +1202 -0
  63. echoact-0.1.0/echoact/ui/__init__.py +0 -0
  64. echoact-0.1.0/echoact/ui/bridge.py +50 -0
  65. echoact-0.1.0/echoact/ui/controls.py +360 -0
  66. echoact-0.1.0/echoact/ui/credential_dialog.py +131 -0
  67. echoact-0.1.0/echoact/ui/fonts.py +94 -0
  68. echoact-0.1.0/echoact/ui/i18n.py +260 -0
  69. echoact-0.1.0/echoact/ui/icons.py +440 -0
  70. echoact-0.1.0/echoact/ui/library.py +1642 -0
  71. echoact-0.1.0/echoact/ui/licence.py +162 -0
  72. echoact-0.1.0/echoact/ui/main_window.py +1202 -0
  73. echoact-0.1.0/echoact/ui/mcp_setup.py +494 -0
  74. echoact-0.1.0/echoact/ui/models_view.py +1142 -0
  75. echoact-0.1.0/echoact/ui/notifications.py +202 -0
  76. echoact-0.1.0/echoact/ui/reading.py +494 -0
  77. echoact-0.1.0/echoact/ui/settings_view.py +2258 -0
  78. echoact-0.1.0/echoact/ui/status_view.py +1193 -0
  79. echoact-0.1.0/echoact/ui/theme.py +579 -0
  80. echoact-0.1.0/echoact/util/__init__.py +0 -0
  81. echoact-0.1.0/echoact/util/ids.py +62 -0
  82. echoact-0.1.0/echoact/util/logging.py +127 -0
  83. echoact-0.1.0/main.py +6 -0
  84. echoact-0.1.0/packaging/README.md +135 -0
  85. echoact-0.1.0/packaging/entry.py +42 -0
  86. echoact-0.1.0/pyproject.toml +75 -0
  87. echoact-0.1.0/scripts/fetch_fonts.py +81 -0
  88. echoact-0.1.0/spikes/engine_conformance.py +136 -0
  89. echoact-0.1.0/spikes/outline_emphasis.py +243 -0
  90. echoact-0.1.0/spikes/tts_feasibility.py +216 -0
  91. echoact-0.1.0/spikes/voice_review.py +313 -0
  92. echoact-0.1.0/tests/__init__.py +0 -0
  93. echoact-0.1.0/tests/test_backup.py +1533 -0
  94. echoact-0.1.0/tests/test_budget.py +344 -0
  95. echoact-0.1.0/tests/test_container.py +353 -0
  96. echoact-0.1.0/tests/test_credentials.py +547 -0
  97. echoact-0.1.0/tests/test_diagnostics.py +511 -0
  98. echoact-0.1.0/tests/test_end_to_end.py +259 -0
  99. echoact-0.1.0/tests/test_instance.py +91 -0
  100. echoact-0.1.0/tests/test_job_engine.py +555 -0
  101. echoact-0.1.0/tests/test_language.py +66 -0
  102. echoact-0.1.0/tests/test_loader.py +473 -0
  103. echoact-0.1.0/tests/test_main_window.py +193 -0
  104. echoact-0.1.0/tests/test_manifest.py +335 -0
  105. echoact-0.1.0/tests/test_mcp.py +344 -0
  106. echoact-0.1.0/tests/test_mcp_setup.py +197 -0
  107. echoact-0.1.0/tests/test_migrations.py +299 -0
  108. echoact-0.1.0/tests/test_navigation.py +81 -0
  109. echoact-0.1.0/tests/test_normalize.py +434 -0
  110. echoact-0.1.0/tests/test_notifications.py +89 -0
  111. echoact-0.1.0/tests/test_packaging.py +85 -0
  112. echoact-0.1.0/tests/test_player.py +354 -0
  113. echoact-0.1.0/tests/test_ratelimit.py +361 -0
  114. echoact-0.1.0/tests/test_reading_surface.py +335 -0
  115. echoact-0.1.0/tests/test_registry.py +808 -0
  116. echoact-0.1.0/tests/test_restore_gate.py +139 -0
  117. echoact-0.1.0/tests/test_runtime.py +188 -0
  118. echoact-0.1.0/tests/test_segment.py +465 -0
  119. echoact-0.1.0/tests/test_service.py +1798 -0
  120. echoact-0.1.0/tests/test_service_codes.py +135 -0
  121. echoact-0.1.0/tests/test_service_mcp.py +221 -0
  122. echoact-0.1.0/tests/test_settings.py +835 -0
  123. echoact-0.1.0/tests/test_settings_actions.py +158 -0
  124. echoact-0.1.0/tests/test_sniff.py +494 -0
  125. echoact-0.1.0/tests/test_store.py +883 -0
  126. echoact-0.1.0/tests/test_supervisor.py +816 -0
  127. echoact-0.1.0/tests/test_ui_library.py +1194 -0
  128. echoact-0.1.0/tests/test_ui_models.py +963 -0
  129. echoact-0.1.0/tests/test_ui_settings.py +1307 -0
  130. echoact-0.1.0/tests/test_ui_status.py +713 -0
  131. echoact-0.1.0/tests/test_wav.py +703 -0
  132. echoact-0.1.0/tests/test_worker.py +802 -0
  133. echoact-0.1.0/uv.lock +1527 -0
@@ -0,0 +1,225 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py.cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ # Pipfile.lock
96
+
97
+ # UV
98
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # uv.lock
102
+
103
+ # poetry
104
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108
+ # poetry.lock
109
+ # poetry.toml
110
+
111
+ # pdm
112
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
114
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
115
+ # pdm.lock
116
+ # pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # pixi
121
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
122
+ # pixi.lock
123
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
124
+ # in the .venv directory. It is recommended not to include this directory in version control.
125
+ .pixi
126
+
127
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
128
+ __pypackages__/
129
+
130
+ # Celery stuff
131
+ celerybeat-schedule
132
+ celerybeat.pid
133
+
134
+ # Redis
135
+ *.rdb
136
+ *.aof
137
+ *.pid
138
+
139
+ # RabbitMQ
140
+ mnesia/
141
+ rabbitmq/
142
+ rabbitmq-data/
143
+
144
+ # ActiveMQ
145
+ activemq-data/
146
+
147
+ # SageMath parsed files
148
+ *.sage.py
149
+
150
+ # Environments
151
+ .env
152
+ .envrc
153
+ .venv
154
+ env/
155
+ venv/
156
+ ENV/
157
+ env.bak/
158
+ venv.bak/
159
+
160
+ # Spyder project settings
161
+ .spyderproject
162
+ .spyproject
163
+
164
+ # Rope project settings
165
+ .ropeproject
166
+
167
+ # mkdocs documentation
168
+ /site
169
+
170
+ # mypy
171
+ .mypy_cache/
172
+ .dmypy.json
173
+ dmypy.json
174
+
175
+ # Pyre type checker
176
+ .pyre/
177
+
178
+ # pytype static type analyzer
179
+ .pytype/
180
+
181
+ # Cython debug symbols
182
+ cython_debug/
183
+
184
+ # PyCharm
185
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
186
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
187
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
188
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
189
+ # .idea/
190
+
191
+ # Abstra
192
+ # Abstra is an AI-powered process automation framework.
193
+ # Ignore directories containing user credentials, local state, and settings.
194
+ # Learn more at https://abstra.io/docs
195
+ .abstra/
196
+
197
+ # Visual Studio Code
198
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
199
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
200
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
201
+ # you could uncomment the following to ignore the entire vscode folder
202
+ # .vscode/
203
+ # Temporary file for partial code execution
204
+ tempCodeRunnerFile.py
205
+
206
+ # Ruff stuff:
207
+ .ruff_cache/
208
+
209
+ # PyPI configuration file
210
+ .pypirc
211
+
212
+ # Marimo
213
+ marimo/_static/
214
+ marimo/_lsp/
215
+ __marimo__/
216
+
217
+ # Streamlit
218
+ .streamlit/secrets.toml
219
+
220
+ # Spike render output
221
+ spikes/_out/
222
+
223
+ # Fetched by scripts/fetch_fonts.py, not committed: a checkout should not
224
+ # acquire a third-party licence obligation as a side effect of cloning.
225
+ echoact/assets/fonts/
@@ -0,0 +1 @@
1
+ 3.12
@@ -0,0 +1,95 @@
1
+ # EchoAct — working notes for contributors
2
+
3
+ EchoAct generates Korean and English speech from text, entirely on the user's
4
+ PC. `docs/design.md` is the requirements baseline and the only authority: every
5
+ behaviour traces to an `F-`, `N-`, or `A-` identifier there. Appendix A is a
6
+ non-normative planning note; A.2 records the chosen stack and build order, A.3
7
+ records decisions that must not be reopened, A.5 records what was measured.
8
+
9
+ ## Where things live
10
+
11
+ ```
12
+ echoact/
13
+ errors.py Code enum + EchoActError. The ONLY exception crossing a module boundary.
14
+ policy.py Every number Section 4 fixes. Never hard-code a limit elsewhere.
15
+ domain.py Job/Segment/Result/Document, states, VoiceSettings, Budget, TextRange.
16
+ paths.py Every on-disk location, plus redact() for logs.
17
+ config/ Persisted settings (F-24), resource budget resolution (F-20/21/23, N-04).
18
+ models/ F-84 manifest, download/verify/repair (F-63..F-65).
19
+ text/ F-81 segmentation, F-27 normalisation-with-alignment, file sniffing (F-32..F-35).
20
+ engine/ F-87 runtime pinning, worker child process, OS resource container (N-03).
21
+ jobs/ Single-slot job engine (F-47), dedup keys (F-49), estimates (F-88).
22
+ audio/ F-82 WAV, PortAudio player with a frame clock (N-12), devices (F-67).
23
+ db/ SQLite WAL store, backup/restore (F-44, N-27).
24
+ security/ Credentials (F-71), scopes (F-61), rate limits (4.1).
25
+ service/ FastAPI, the 12 endpoints in Section 2.10.
26
+ mcp/ FastMCP stdio server — a REST client, nothing more (F-58).
27
+ ui/ PySide6 widgets.
28
+ tests/ pytest. Mirror the package layout: tests/text/test_segment.py etc.
29
+ ```
30
+
31
+ ## Rules that are not negotiable
32
+
33
+ 1. **No number without a home.** Limits, timeouts, defaults, and sizes come
34
+ from `echoact.policy`. If a value is missing there, add it there.
35
+ 2. **Text offsets are Unicode code points**, half-open, into the job's *source*
36
+ text — never into normalised text, never UTF-16. Qt counts UTF-16; convert
37
+ at the widget boundary and nowhere else (4.2, F-27).
38
+ 3. **One exception type.** Raise `EchoActError(Code.X, ...)` outward. Do not
39
+ let `sqlite3.Error`, `OSError`, or an engine exception escape a module.
40
+ 4. **The engine never sees a path or a URL from a client** (N-18). Text a user
41
+ or client supplies is data; it can never reach a style, a voice, or a
42
+ provider selection.
43
+ 5. **Local CPU only, by allow-list** (F-87, N-01). The installed ONNX Runtime
44
+ offers `AzureExecutionProvider` — this is measured, not hypothetical. Assert
45
+ the session's providers after construction and refuse otherwise.
46
+ 6. **No body text, audio, or credential in a log** (N-20). Log a job id, a
47
+ stage, a code, and a redacted path.
48
+ 7. **Never block the Qt main thread.** The engine, the database, and the
49
+ service run off it; the GUI touches widgets only from the main thread.
50
+ 8. **A retryable error carries a retry-after hint; a permanent one must not**
51
+ (F-57, N-23).
52
+
53
+ ## Style
54
+
55
+ - Python 3.12, `from __future__ import annotations`, full type hints, `ruff`
56
+ clean at line-length 100.
57
+ - Prefer `dataclass(frozen=True, slots=True)` for values, plain classes for
58
+ things with a lifecycle.
59
+ - Docstrings say *which requirement* the code answers and *why the obvious
60
+ alternative is wrong*, when that is not evident. Do not restate the code.
61
+ - Comments are sparse and load-bearing. No section banners in short files, no
62
+ "# increment counter".
63
+ - Tests are named for the behaviour, not the function:
64
+ `test_first_segment_is_capped_so_playback_starts_sooner`.
65
+
66
+ ## Running things
67
+
68
+ ```
69
+ uv run python -m echoact # the app
70
+ uv run pytest -q # tests
71
+ uv run ruff check echoact tests # lint
72
+ ```
73
+
74
+ The Supertonic 3 weights are already cached at `~/.cache/supertonic3`
75
+ (revision `724fb5abbf5502583fb520898d45929e62f02c0b`, 385 MB). Tests that need
76
+ the real engine must be marked `@pytest.mark.engine` and skipped when the
77
+ weights are absent; everything else runs without them.
78
+
79
+ ## Engine facts worth knowing before you touch `engine/`
80
+
81
+ Measured in `spikes/`, recorded in A.5:
82
+
83
+ - Supertonic 3: 44,100 Hz mono, ten voices `M1`–`M5` / `F1`–`F5`, warm load
84
+ 0.8 s, real-time factor 0.18–0.21 at two threads.
85
+ - **More threads is slower.** Twenty threads ran ~2× slower than two.
86
+ - `synthesize(silence_duration=...)` does nothing once we chunk text ourselves.
87
+ Inter-segment silence is the app's own to insert (F-82). Pass a large
88
+ `max_chunk_length` so one of our segments is exactly one engine call —
89
+ otherwise the engine re-chunks Korean at 120 characters and our segment time
90
+ ranges stop being exactly known.
91
+ - Identical settings do **not** reproduce identical audio (max sample delta
92
+ 0.47 on a ±1.0 signal). Nothing may assume a regenerated result matches a
93
+ stored one (F-41).
94
+ - The engine vocalises emoji (three emoji → 1.32 s of audio). A.3 decided they
95
+ are not sent for synthesis; their source ranges attach to a neighbour.
echoact-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Huijae Lee
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
echoact-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,162 @@
1
+ Metadata-Version: 2.5
2
+ Name: echoact
3
+ Version: 0.1.0
4
+ Summary: Local Korean/English speech generation for the desktop
5
+ Project-URL: Homepage, https://github.com/ZeroAct/echo-act
6
+ Project-URL: Issues, https://github.com/ZeroAct/echo-act/issues
7
+ Author-email: "Huijae Lee (ZeroAct)" <lhj56822@gmail.com>
8
+ License: MIT License
9
+
10
+ Copyright (c) 2026 Huijae Lee
11
+
12
+ Permission is hereby granted, free of charge, to any person obtaining a copy
13
+ of this software and associated documentation files (the "Software"), to deal
14
+ in the Software without restriction, including without limitation the rights
15
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
+ copies of the Software, and to permit persons to whom the Software is
17
+ furnished to do so, subject to the following conditions:
18
+
19
+ The above copyright notice and this permission notice shall be included in all
20
+ copies or substantial portions of the Software.
21
+
22
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
+ SOFTWARE.
29
+ License-File: LICENSE
30
+ Keywords: english,korean,local,offline,speech,text-to-speech,tts
31
+ Classifier: Development Status :: 4 - Beta
32
+ Classifier: Environment :: MacOS X
33
+ Classifier: Environment :: Win32 (MS Windows)
34
+ Classifier: Topic :: Desktop Environment
35
+ Classifier: Topic :: Multimedia :: Sound/Audio :: Speech
36
+ Requires-Python: <3.13,>=3.12
37
+ Requires-Dist: fastapi>=0.115
38
+ Requires-Dist: fastmcp>=2.0
39
+ Requires-Dist: httpx>=0.27
40
+ Requires-Dist: numpy>=1.26
41
+ Requires-Dist: onnxruntime>=1.20
42
+ Requires-Dist: psutil>=6.0
43
+ Requires-Dist: pydantic>=2.9
44
+ Requires-Dist: pyside6>=6.8
45
+ Requires-Dist: python-multipart>=0.0.12
46
+ Requires-Dist: sounddevice>=0.5
47
+ Requires-Dist: soundfile>=0.12
48
+ Requires-Dist: supertonic==1.3.1
49
+ Requires-Dist: uvicorn>=0.32
50
+ Description-Content-Type: text/markdown
51
+
52
+ # EchoAct
53
+
54
+ EchoAct reads Korean and English text aloud on your own computer. Nothing you
55
+ type is sent anywhere: the model runs on your CPU, and once it is downloaded
56
+ the app works with no network connection at all.
57
+
58
+ - **Read a document, follow along.** The sentence being played is marked on
59
+ screen. The mark is drawn as an outline around the letters rather than as a
60
+ heavier weight, so the text never shifts under you while you read.
61
+ - **Playback starts before generation finishes.** The first sentence is spoken
62
+ as soon as it is ready, and the rest follows.
63
+ - **It stays out of the way.** You choose how much processor and memory the app
64
+ may use, and it stays inside that while you work on something else.
65
+ - **Automations can use it too.** A local HTTP service on the loopback address,
66
+ and an MCP server for tools that speak that protocol. Both are the same
67
+ engine, the same limits, and the same one job at a time.
68
+
69
+ Windows 11 and macOS 14 (Apple Silicon). No Python, Node, or database server
70
+ to install.
71
+
72
+ ## Run it with one command
73
+
74
+ With [uv](https://docs.astral.sh/uv/) installed, no checkout or venv needed:
75
+
76
+ ```
77
+ uvx echoact
78
+ ```
79
+
80
+ uv fetches EchoAct into an isolated environment and starts the app. The MCP
81
+ server is the same package: `uvx --from echoact echoact-mcp`.
82
+
83
+ ## Running it from a checkout
84
+
85
+ ```
86
+ uv sync
87
+ uv run python -m echoact
88
+ ```
89
+
90
+ The first launch offers to download the speech model (about 385 MB) and shows
91
+ its licence terms before it does. Generation works offline afterwards.
92
+
93
+ ## Local service
94
+
95
+ The service is on by default and listens only on `127.0.0.1:8765`. It always
96
+ requires a credential; one is created for you on first launch and is shown in
97
+ the app under Settings. It cannot be reached from another machine, and there
98
+ is no way to configure it to be.
99
+
100
+ Turn it off in Settings if you do not want it. The app, generation, playback
101
+ and the library all work exactly the same with it off.
102
+
103
+ | | |
104
+ | --- | --- |
105
+ | Base | `http://127.0.0.1:8765/api/v1` |
106
+ | Auth | `Authorization: Bearer <credential>` |
107
+ | Discovery | `GET /status`, `GET /models` |
108
+ | Before committing | `POST /estimate` — validates, counts segments, estimates length, says whether the slot is free |
109
+ | Generate | `POST /jobs` — needs a duplicate-prevention key; may ask to wait up to 10 s |
110
+ | Follow | `GET /jobs/{id}`, `GET /jobs/{id}/segments`, `POST /jobs/{id}/cancel` |
111
+ | Collect | `GET /jobs/{id}/audio`, `GET /jobs/{id}/result` |
112
+
113
+ One generation runs at a time across the app and every client, so a second
114
+ request is refused with a retry-after hint rather than queued.
115
+
116
+ ## MCP
117
+
118
+ Off by default; enable it in Settings. The MCP server is a small process your
119
+ MCP client starts, which talks to the local service over loopback with a
120
+ credential you issue for it. It adds nothing the HTTP service does not already
121
+ do, and its permissions are exactly that credential's.
122
+
123
+ **Connect an app** in the header writes the configuration for you: a tab each
124
+ for Claude Desktop, Claude Code, Codex CLI, VS Code and Cursor, with the right
125
+ key name and file path for each, the command this particular installation
126
+ actually uses, and a Copy button. Issue a credential from that screen and it
127
+ goes straight into the snippet — the only moment it can, since the app keeps
128
+ only a verifier.
129
+
130
+ Tools: `list_models`, `estimate_speech`, `create_speech`, `get_speech_job`,
131
+ `cancel_speech_job`, `list_speech_segments`, `get_speech_result`,
132
+ `list_speech_history`.
133
+
134
+ ## Your data
135
+
136
+ Documents and generation history are saved only when you ask. Results from a
137
+ one-off job are cleaned up when they are replaced or when the app exits, and a
138
+ result produced for an integration stays retrievable for an hour. Logs contain
139
+ no text and no audio. Nothing is uploaded, and there is no telemetry.
140
+
141
+ ## Repository
142
+
143
+ ```
144
+ docs/design.md The requirements baseline. Every behaviour traces to an
145
+ identifier in it; Appendix A records what was measured.
146
+ echoact/ The application.
147
+ spikes/ Standalone measurements that settled open questions.
148
+ tests/ pytest. `-m engine` needs the model; the rest does not.
149
+ ```
150
+
151
+ `CLAUDE.md` is the contributor's short version.
152
+
153
+ ## Author
154
+
155
+ Huijae Lee (ZeroAct) — lhj56822@gmail.com — [github.com/ZeroAct](https://github.com/ZeroAct)
156
+
157
+ ## Licence
158
+
159
+ The application code is MIT (see `LICENSE`). The speech model is downloaded
160
+ separately and carries its own licence with use restrictions, which the app
161
+ presents for acceptance before it prepares the model for the first time. Being
162
+ able to run it locally is not a right to redistribute it.
@@ -0,0 +1,111 @@
1
+ # EchoAct
2
+
3
+ EchoAct reads Korean and English text aloud on your own computer. Nothing you
4
+ type is sent anywhere: the model runs on your CPU, and once it is downloaded
5
+ the app works with no network connection at all.
6
+
7
+ - **Read a document, follow along.** The sentence being played is marked on
8
+ screen. The mark is drawn as an outline around the letters rather than as a
9
+ heavier weight, so the text never shifts under you while you read.
10
+ - **Playback starts before generation finishes.** The first sentence is spoken
11
+ as soon as it is ready, and the rest follows.
12
+ - **It stays out of the way.** You choose how much processor and memory the app
13
+ may use, and it stays inside that while you work on something else.
14
+ - **Automations can use it too.** A local HTTP service on the loopback address,
15
+ and an MCP server for tools that speak that protocol. Both are the same
16
+ engine, the same limits, and the same one job at a time.
17
+
18
+ Windows 11 and macOS 14 (Apple Silicon). No Python, Node, or database server
19
+ to install.
20
+
21
+ ## Run it with one command
22
+
23
+ With [uv](https://docs.astral.sh/uv/) installed, no checkout or venv needed:
24
+
25
+ ```
26
+ uvx echoact
27
+ ```
28
+
29
+ uv fetches EchoAct into an isolated environment and starts the app. The MCP
30
+ server is the same package: `uvx --from echoact echoact-mcp`.
31
+
32
+ ## Running it from a checkout
33
+
34
+ ```
35
+ uv sync
36
+ uv run python -m echoact
37
+ ```
38
+
39
+ The first launch offers to download the speech model (about 385 MB) and shows
40
+ its licence terms before it does. Generation works offline afterwards.
41
+
42
+ ## Local service
43
+
44
+ The service is on by default and listens only on `127.0.0.1:8765`. It always
45
+ requires a credential; one is created for you on first launch and is shown in
46
+ the app under Settings. It cannot be reached from another machine, and there
47
+ is no way to configure it to be.
48
+
49
+ Turn it off in Settings if you do not want it. The app, generation, playback
50
+ and the library all work exactly the same with it off.
51
+
52
+ | | |
53
+ | --- | --- |
54
+ | Base | `http://127.0.0.1:8765/api/v1` |
55
+ | Auth | `Authorization: Bearer <credential>` |
56
+ | Discovery | `GET /status`, `GET /models` |
57
+ | Before committing | `POST /estimate` — validates, counts segments, estimates length, says whether the slot is free |
58
+ | Generate | `POST /jobs` — needs a duplicate-prevention key; may ask to wait up to 10 s |
59
+ | Follow | `GET /jobs/{id}`, `GET /jobs/{id}/segments`, `POST /jobs/{id}/cancel` |
60
+ | Collect | `GET /jobs/{id}/audio`, `GET /jobs/{id}/result` |
61
+
62
+ One generation runs at a time across the app and every client, so a second
63
+ request is refused with a retry-after hint rather than queued.
64
+
65
+ ## MCP
66
+
67
+ Off by default; enable it in Settings. The MCP server is a small process your
68
+ MCP client starts, which talks to the local service over loopback with a
69
+ credential you issue for it. It adds nothing the HTTP service does not already
70
+ do, and its permissions are exactly that credential's.
71
+
72
+ **Connect an app** in the header writes the configuration for you: a tab each
73
+ for Claude Desktop, Claude Code, Codex CLI, VS Code and Cursor, with the right
74
+ key name and file path for each, the command this particular installation
75
+ actually uses, and a Copy button. Issue a credential from that screen and it
76
+ goes straight into the snippet — the only moment it can, since the app keeps
77
+ only a verifier.
78
+
79
+ Tools: `list_models`, `estimate_speech`, `create_speech`, `get_speech_job`,
80
+ `cancel_speech_job`, `list_speech_segments`, `get_speech_result`,
81
+ `list_speech_history`.
82
+
83
+ ## Your data
84
+
85
+ Documents and generation history are saved only when you ask. Results from a
86
+ one-off job are cleaned up when they are replaced or when the app exits, and a
87
+ result produced for an integration stays retrievable for an hour. Logs contain
88
+ no text and no audio. Nothing is uploaded, and there is no telemetry.
89
+
90
+ ## Repository
91
+
92
+ ```
93
+ docs/design.md The requirements baseline. Every behaviour traces to an
94
+ identifier in it; Appendix A records what was measured.
95
+ echoact/ The application.
96
+ spikes/ Standalone measurements that settled open questions.
97
+ tests/ pytest. `-m engine` needs the model; the rest does not.
98
+ ```
99
+
100
+ `CLAUDE.md` is the contributor's short version.
101
+
102
+ ## Author
103
+
104
+ Huijae Lee (ZeroAct) — lhj56822@gmail.com — [github.com/ZeroAct](https://github.com/ZeroAct)
105
+
106
+ ## Licence
107
+
108
+ The application code is MIT (see `LICENSE`). The speech model is downloaded
109
+ separately and carries its own licence with use restrictions, which the app
110
+ presents for acceptance before it prepares the model for the first time. Being
111
+ able to run it locally is not a right to redistribute it.