voxint 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 (175) hide show
  1. voxint-0.1.0/.dockerignore +21 -0
  2. voxint-0.1.0/.env.example +71 -0
  3. voxint-0.1.0/.github/workflows/ci.yml +61 -0
  4. voxint-0.1.0/.github/workflows/release.yml +61 -0
  5. voxint-0.1.0/.gitignore +28 -0
  6. voxint-0.1.0/.gitleaks.toml +35 -0
  7. voxint-0.1.0/CONTRIBUTING.md +34 -0
  8. voxint-0.1.0/Dockerfile +27 -0
  9. voxint-0.1.0/LICENSE +202 -0
  10. voxint-0.1.0/NOTICE +17 -0
  11. voxint-0.1.0/PKG-INFO +364 -0
  12. voxint-0.1.0/README.md +119 -0
  13. voxint-0.1.0/SECURITY.md +23 -0
  14. voxint-0.1.0/alembic/env.py +41 -0
  15. voxint-0.1.0/alembic/script.py.mako +24 -0
  16. voxint-0.1.0/alembic/versions/.gitkeep +0 -0
  17. voxint-0.1.0/alembic/versions/0001_baseline_schema.py +212 -0
  18. voxint-0.1.0/alembic/versions/0002_diarization_turns_and_suspect.py +67 -0
  19. voxint-0.1.0/alembic/versions/0003_speaker_assignment_proposed_name.py +52 -0
  20. voxint-0.1.0/alembic/versions/0004_review_claims_and_enrollment_provenance.py +80 -0
  21. voxint-0.1.0/alembic.ini +37 -0
  22. voxint-0.1.0/compose.build.yaml +27 -0
  23. voxint-0.1.0/compose.gpu.build.yaml +27 -0
  24. voxint-0.1.0/compose.gpu.yaml +75 -0
  25. voxint-0.1.0/compose.yaml +127 -0
  26. voxint-0.1.0/docs/README.md +10 -0
  27. voxint-0.1.0/docs/architecture.md +175 -0
  28. voxint-0.1.0/docs/gpu-contracts.md +266 -0
  29. voxint-0.1.0/docs/gpu-smoke.md +87 -0
  30. voxint-0.1.0/docs/harness.md +218 -0
  31. voxint-0.1.0/docs/images/review-queue.png +0 -0
  32. voxint-0.1.0/docs/images/slot-workbench.png +0 -0
  33. voxint-0.1.0/docs/operations.md +147 -0
  34. voxint-0.1.0/docs/quality-gates.md +123 -0
  35. voxint-0.1.0/examples/README.md +89 -0
  36. voxint-0.1.0/examples/agreement/enrollment-ecapa.json +19 -0
  37. voxint-0.1.0/examples/agreement/enrollment-titanet.json +19 -0
  38. voxint-0.1.0/examples/agreement/slots-ecapa.jsonl +5 -0
  39. voxint-0.1.0/examples/agreement/slots-titanet.jsonl +5 -0
  40. voxint-0.1.0/examples/agreement/thresholds.json +10 -0
  41. voxint-0.1.0/examples/name-accuracy/aliases.json +6 -0
  42. voxint-0.1.0/examples/name-accuracy/baseline.jsonl +6 -0
  43. voxint-0.1.0/examples/name-accuracy/items.jsonl +6 -0
  44. voxint-0.1.0/pyproject.toml +92 -0
  45. voxint-0.1.0/services/pyannote/Dockerfile +50 -0
  46. voxint-0.1.0/services/pyannote/README.md +48 -0
  47. voxint-0.1.0/services/pyannote/app/__init__.py +0 -0
  48. voxint-0.1.0/services/pyannote/app/diarizer.py +169 -0
  49. voxint-0.1.0/services/pyannote/app/errors.py +39 -0
  50. voxint-0.1.0/services/pyannote/app/main.py +137 -0
  51. voxint-0.1.0/services/pyannote/app/paths.py +33 -0
  52. voxint-0.1.0/services/pyannote/app/postprocess.py +84 -0
  53. voxint-0.1.0/services/pyannote/app/schemas.py +60 -0
  54. voxint-0.1.0/services/pyannote/requirements.txt +27 -0
  55. voxint-0.1.0/services/titanet/Dockerfile +62 -0
  56. voxint-0.1.0/services/titanet/README.md +39 -0
  57. voxint-0.1.0/services/titanet/app/__init__.py +0 -0
  58. voxint-0.1.0/services/titanet/app/embedding.py +189 -0
  59. voxint-0.1.0/services/titanet/app/errors.py +39 -0
  60. voxint-0.1.0/services/titanet/app/main.py +143 -0
  61. voxint-0.1.0/services/titanet/app/paths.py +33 -0
  62. voxint-0.1.0/services/titanet/app/schemas.py +86 -0
  63. voxint-0.1.0/services/titanet/requirements.txt +27 -0
  64. voxint-0.1.0/services/whisper/Dockerfile +76 -0
  65. voxint-0.1.0/services/whisper/README.md +41 -0
  66. voxint-0.1.0/services/whisper/app/__init__.py +0 -0
  67. voxint-0.1.0/services/whisper/app/errors.py +39 -0
  68. voxint-0.1.0/services/whisper/app/main.py +156 -0
  69. voxint-0.1.0/services/whisper/app/paths.py +33 -0
  70. voxint-0.1.0/services/whisper/app/schemas.py +65 -0
  71. voxint-0.1.0/services/whisper/app/transcription.py +364 -0
  72. voxint-0.1.0/services/whisper/requirements.txt +14 -0
  73. voxint-0.1.0/src/voxint/__init__.py +3 -0
  74. voxint-0.1.0/src/voxint/adjudication/__init__.py +0 -0
  75. voxint-0.1.0/src/voxint/adjudication/enrollment.py +152 -0
  76. voxint-0.1.0/src/voxint/adjudication/ledger.py +94 -0
  77. voxint-0.1.0/src/voxint/adjudication/resolver.py +210 -0
  78. voxint-0.1.0/src/voxint/adjudication/slots.py +135 -0
  79. voxint-0.1.0/src/voxint/api/__init__.py +0 -0
  80. voxint-0.1.0/src/voxint/api/app.py +428 -0
  81. voxint-0.1.0/src/voxint/api/auth.py +38 -0
  82. voxint-0.1.0/src/voxint/api/static/htmx.min.js +1 -0
  83. voxint-0.1.0/src/voxint/api/templates/base.html +33 -0
  84. voxint-0.1.0/src/voxint/api/templates/fragments/labels.html +83 -0
  85. voxint-0.1.0/src/voxint/api/templates/queue.html +30 -0
  86. voxint-0.1.0/src/voxint/api/templates/run.html +30 -0
  87. voxint-0.1.0/src/voxint/cli.py +187 -0
  88. voxint-0.1.0/src/voxint/clients/__init__.py +0 -0
  89. voxint-0.1.0/src/voxint/clients/_http.py +124 -0
  90. voxint-0.1.0/src/voxint/clients/asr.py +32 -0
  91. voxint-0.1.0/src/voxint/clients/base.py +108 -0
  92. voxint-0.1.0/src/voxint/clients/diarize.py +43 -0
  93. voxint-0.1.0/src/voxint/clients/embed.py +94 -0
  94. voxint-0.1.0/src/voxint/clients/errors.py +84 -0
  95. voxint-0.1.0/src/voxint/clients/llm.py +224 -0
  96. voxint-0.1.0/src/voxint/config.py +178 -0
  97. voxint-0.1.0/src/voxint/db/__init__.py +0 -0
  98. voxint-0.1.0/src/voxint/db/models.py +442 -0
  99. voxint-0.1.0/src/voxint/db/session.py +31 -0
  100. voxint-0.1.0/src/voxint/domain_packs/__init__.py +0 -0
  101. voxint-0.1.0/src/voxint/domain_packs/base.py +36 -0
  102. voxint-0.1.0/src/voxint/domain_packs/generic/manifest.yaml +12 -0
  103. voxint-0.1.0/src/voxint/harness/__init__.py +7 -0
  104. voxint-0.1.0/src/voxint/harness/agreement.py +346 -0
  105. voxint-0.1.0/src/voxint/harness/ensemble.py +107 -0
  106. voxint-0.1.0/src/voxint/harness/gate_metrics.py +165 -0
  107. voxint-0.1.0/src/voxint/harness/goldset_strata.py +116 -0
  108. voxint-0.1.0/src/voxint/harness/name_accuracy.py +491 -0
  109. voxint-0.1.0/src/voxint/harness/score_cli.py +673 -0
  110. voxint-0.1.0/src/voxint/harness/vectors.py +93 -0
  111. voxint-0.1.0/src/voxint/media/__init__.py +0 -0
  112. voxint-0.1.0/src/voxint/media/normalize.py +136 -0
  113. voxint-0.1.0/src/voxint/media/serving.py +145 -0
  114. voxint-0.1.0/src/voxint/pipeline/__init__.py +0 -0
  115. voxint-0.1.0/src/voxint/pipeline/engine.py +294 -0
  116. voxint-0.1.0/src/voxint/pipeline/stages/__init__.py +0 -0
  117. voxint-0.1.0/src/voxint/pipeline/stages/context.py +134 -0
  118. voxint-0.1.0/src/voxint/pipeline/stages/diarize_embed.py +95 -0
  119. voxint-0.1.0/src/voxint/pipeline/stages/enhance_match.py +181 -0
  120. voxint-0.1.0/src/voxint/pipeline/stages/finalize.py +16 -0
  121. voxint-0.1.0/src/voxint/pipeline/stages/prepare.py +69 -0
  122. voxint-0.1.0/src/voxint/pipeline/stages/transcribe.py +28 -0
  123. voxint-0.1.0/src/voxint/pipeline/transitions.py +152 -0
  124. voxint-0.1.0/src/voxint/py.typed +0 -0
  125. voxint-0.1.0/src/voxint/speakers/__init__.py +0 -0
  126. voxint-0.1.0/src/voxint/speakers/matching.py +346 -0
  127. voxint-0.1.0/src/voxint/worker/__init__.py +0 -0
  128. voxint-0.1.0/src/voxint/worker/app.py +29 -0
  129. voxint-0.1.0/src/voxint/worker/tasks.py +165 -0
  130. voxint-0.1.0/tests/__init__.py +0 -0
  131. voxint-0.1.0/tests/contracts/__init__.py +0 -0
  132. voxint-0.1.0/tests/contracts/conftest.py +81 -0
  133. voxint-0.1.0/tests/contracts/fixtures/pyannote_diarize.json +32 -0
  134. voxint-0.1.0/tests/contracts/fixtures/titanet_embed.json +18 -0
  135. voxint-0.1.0/tests/contracts/fixtures/whisper_transcribe.json +38 -0
  136. voxint-0.1.0/tests/contracts/test_client_compat.py +80 -0
  137. voxint-0.1.0/tests/contracts/test_paths.py +75 -0
  138. voxint-0.1.0/tests/contracts/test_routes.py +295 -0
  139. voxint-0.1.0/tests/contracts/test_schemas.py +126 -0
  140. voxint-0.1.0/tests/contracts/test_service_logic.py +142 -0
  141. voxint-0.1.0/tests/fakes.py +91 -0
  142. voxint-0.1.0/tests/integration/__init__.py +0 -0
  143. voxint-0.1.0/tests/integration/conftest.py +57 -0
  144. voxint-0.1.0/tests/integration/test_adjudication_ledger.py +106 -0
  145. voxint-0.1.0/tests/integration/test_adjudication_resolver.py +242 -0
  146. voxint-0.1.0/tests/integration/test_cas_and_restart.py +230 -0
  147. voxint-0.1.0/tests/integration/test_cli_commands.py +112 -0
  148. voxint-0.1.0/tests/integration/test_real_stages_e2e.py +297 -0
  149. voxint-0.1.0/tests/integration/test_review_api.py +342 -0
  150. voxint-0.1.0/tests/integration/test_review_slots.py +138 -0
  151. voxint-0.1.0/tests/integration/test_speaker_enrollment.py +277 -0
  152. voxint-0.1.0/tests/integration/test_speaker_matching.py +354 -0
  153. voxint-0.1.0/tests/integration/test_worker_requeue.py +227 -0
  154. voxint-0.1.0/tests/unit/__init__.py +0 -0
  155. voxint-0.1.0/tests/unit/test_api.py +10 -0
  156. voxint-0.1.0/tests/unit/test_cli.py +16 -0
  157. voxint-0.1.0/tests/unit/test_config.py +51 -0
  158. voxint-0.1.0/tests/unit/test_domain_packs.py +8 -0
  159. voxint-0.1.0/tests/unit/test_dominant_label.py +39 -0
  160. voxint-0.1.0/tests/unit/test_enhance_batching.py +137 -0
  161. voxint-0.1.0/tests/unit/test_harness_agreement.py +274 -0
  162. voxint-0.1.0/tests/unit/test_harness_ensemble.py +106 -0
  163. voxint-0.1.0/tests/unit/test_harness_gate_metrics.py +88 -0
  164. voxint-0.1.0/tests/unit/test_harness_goldset.py +91 -0
  165. voxint-0.1.0/tests/unit/test_harness_name_accuracy.py +287 -0
  166. voxint-0.1.0/tests/unit/test_harness_score_cli.py +647 -0
  167. voxint-0.1.0/tests/unit/test_harness_vectors.py +82 -0
  168. voxint-0.1.0/tests/unit/test_http_clients.py +323 -0
  169. voxint-0.1.0/tests/unit/test_llm_client.py +195 -0
  170. voxint-0.1.0/tests/unit/test_media_normalize.py +92 -0
  171. voxint-0.1.0/tests/unit/test_media_serving.py +161 -0
  172. voxint-0.1.0/tests/unit/test_review_auth.py +74 -0
  173. voxint-0.1.0/tests/unit/test_transitions.py +115 -0
  174. voxint-0.1.0/tests/unit/test_worker.py +32 -0
  175. voxint-0.1.0/uv.lock +2183 -0
@@ -0,0 +1,21 @@
1
+ .git
2
+ .venv
3
+ .env
4
+ .env.*
5
+ !.env.example
6
+ __pycache__
7
+ *.py[cod]
8
+ .pytest_cache
9
+ .mypy_cache
10
+ .ruff_cache
11
+ .coverage
12
+ htmlcov
13
+ dist
14
+ build
15
+ media
16
+ tests
17
+ docs
18
+ services
19
+ compose*.yaml
20
+ .github
21
+ .gitleaks.toml
@@ -0,0 +1,71 @@
1
+ # Voxint configuration — copy to .env and edit. All values here are safe defaults/examples.
2
+
3
+ # --- Core services ---
4
+ DATABASE_URL=postgresql+psycopg://voxint:voxint@localhost:5432/voxint
5
+ REDIS_URL=redis://localhost:6379/0
6
+ # Host ports the compose stack publishes on 127.0.0.1 (change if something
7
+ # already listens there; container-internal ports are fixed).
8
+ # POSTGRES_PORT=5432
9
+ # REDIS_PORT=6379
10
+ # Release image tag the compose stack runs (see compose.yaml; the default is
11
+ # pinned to the release this checkout documents). Build-from-source instead:
12
+ # layer compose.build.yaml / compose.gpu.build.yaml (docs/operations.md).
13
+ # VOXINT_IMAGE_TAG=0.1.0
14
+
15
+ # --- Media ---
16
+ # Root directory that ingested media lives under.
17
+ # Compose: the HOST directory mounted into every container at /data/media
18
+ # (the in-container path is pinned; leave this relative or absolute as you
19
+ # like). Bare-host: the path the pipeline reads directly (relative paths
20
+ # resolve against the working directory).
21
+ MEDIA_ROOT=./media
22
+
23
+ # --- API / review UI ---
24
+ API_HOST=127.0.0.1
25
+ # Bare-host: the port the API binds. Compose: the HOST port the stack
26
+ # publishes (the container bind stays 8080 internally).
27
+ API_PORT=8080
28
+ # Single-user credential for the API + review UI (basic auth). Startup REFUSES
29
+ # a default/empty password whenever API_HOST is not loopback — which includes
30
+ # every container run (the image binds 0.0.0.0), so pick a real one.
31
+ VOXINT_USER=admin
32
+ VOXINT_PASSWORD=
33
+
34
+ # --- GPU model services (see compose.gpu.yaml) ---
35
+ ASR_URL=http://localhost:8022
36
+ DIARIZER_URL=http://localhost:8024
37
+ EMBEDDER_URL=http://localhost:8021
38
+
39
+ # --- Hugging Face (required by the pyannote service to download gated weights) ---
40
+ HF_TOKEN=
41
+
42
+ # --- LLM transcript enhancement (optional; any OpenAI-compatible endpoint) ---
43
+ # Best-effort: failures leave enhanced_text NULL and never fail a run.
44
+ LLM_ENABLED=false
45
+ LLM_BASE_URL=https://api.openai.com/v1
46
+ LLM_MODEL=gpt-4o-mini
47
+ LLM_API_KEY=
48
+ # LLM_TIMEOUT_SECONDS=90
49
+ # LLM_ATTEMPTS_PER_BATCH=2
50
+ # LLM_BATCH_MAX_SEGMENTS=32
51
+ # LLM_BATCH_MAX_CHARS=12000
52
+ # LLM_RUN_BUDGET_SECONDS=14400
53
+ # LLM_CONSECUTIVE_FAILURE_LIMIT=3
54
+
55
+ # --- Speaker matching gates (docs/quality-gates.md; defaults are conservative) ---
56
+ # Stored confidence is (cosine + 1) / 2 — transformed similarity, not probability.
57
+ # MATCH_MAX_OVERLAP_RATIO=0.20
58
+ # MATCH_TURN_WEIGHT_CAP_SECONDS=10
59
+ # MATCH_MIN_TURNS=2
60
+ # MATCH_MIN_SECONDS=6
61
+ # MATCH_MIN_COSINE=0.60
62
+ # MATCH_MIN_MARGIN=0.05
63
+ # MATCH_MIN_VOTE_AGREEMENT=0.60
64
+ # GROUNDED_MIN_TURNS=3
65
+ # GROUNDED_MIN_SECONDS=10
66
+ # GROUNDED_MIN_COSINE=0.70
67
+ # GROUNDED_MIN_MARGIN=0.08
68
+ # GROUNDED_MIN_VOTE_AGREEMENT=0.67
69
+
70
+ # --- Domain pack (optional; defaults to the bundled generic pack) ---
71
+ # DOMAIN_PACK_PATH=/path/to/your/domain-pack
@@ -0,0 +1,61 @@
1
+ # Runs on GitHub Actions and Forgejo Actions (both read .github/workflows).
2
+ # Gitleaks is invoked as a pinned CLI (not gitleaks-action) so the same step works on both platforms.
3
+ name: ci
4
+
5
+ on:
6
+ push:
7
+ branches: [main]
8
+ pull_request:
9
+
10
+ env:
11
+ GITLEAKS_VERSION: "8.24.3"
12
+
13
+ jobs:
14
+ lint-test:
15
+ runs-on: ubuntu-latest
16
+ services:
17
+ postgres:
18
+ image: pgvector/pgvector:pg17
19
+ env:
20
+ POSTGRES_USER: voxint
21
+ POSTGRES_PASSWORD: voxint
22
+ POSTGRES_DB: voxint_test
23
+ ports:
24
+ - 5432:5432
25
+ options: >-
26
+ --health-cmd "pg_isready -U voxint"
27
+ --health-interval 5s
28
+ --health-timeout 3s
29
+ --health-retries 10
30
+ steps:
31
+ - uses: actions/checkout@v4
32
+ - uses: astral-sh/setup-uv@v5
33
+ with:
34
+ python-version: "3.12"
35
+ - name: Install
36
+ run: uv sync --frozen --extra dev
37
+ - name: Install ffmpeg (normalize-stage tests)
38
+ run: sudo apt-get update -qq && sudo apt-get install -y --no-install-recommends ffmpeg
39
+ - name: Ruff
40
+ run: uv run ruff check .
41
+ - name: Mypy
42
+ run: uv run mypy
43
+ - name: Pytest (unit + integration)
44
+ env:
45
+ VOXINT_TEST_DATABASE_URL: postgresql+psycopg://voxint:voxint@localhost:5432/voxint_test
46
+ run: uv run pytest tests --cov
47
+
48
+ secrets-scan:
49
+ runs-on: ubuntu-latest
50
+ steps:
51
+ - uses: actions/checkout@v4
52
+ with:
53
+ fetch-depth: 0
54
+ - name: Install gitleaks
55
+ run: |
56
+ curl -sSfL "https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}/gitleaks_${GITLEAKS_VERSION}_linux_x64.tar.gz" \
57
+ | tar -xz -C /usr/local/bin gitleaks
58
+ - name: Gitleaks (history + worktree)
59
+ run: |
60
+ gitleaks git --config .gitleaks.toml --redact --verbose .
61
+ gitleaks dir --config .gitleaks.toml --redact --verbose .
@@ -0,0 +1,61 @@
1
+ # Publishes prebuilt images to GHCR on version tags (v0.1.0, ...).
2
+ # Runs only on the GitHub mirror: the server_url guard below skips every job
3
+ # elsewhere, so if the Forgejo instance happens to parse .github/workflows it
4
+ # stays a no-op there (Forgejo has no GHCR credentials and never needs them).
5
+ # Auth is the workflow-scoped GITHUB_TOKEN (packages: write); no extra secrets.
6
+ name: release
7
+
8
+ on:
9
+ push:
10
+ tags: ["v*"]
11
+
12
+ jobs:
13
+ publish-images:
14
+ if: github.server_url == 'https://github.com'
15
+ runs-on: ubuntu-latest
16
+ permissions:
17
+ contents: read
18
+ packages: write
19
+ strategy:
20
+ # A release cut should publish every image it can; one failing build
21
+ # must not cancel the siblings mid-push.
22
+ fail-fast: false
23
+ matrix:
24
+ include:
25
+ - image: voxint # api + worker share this image
26
+ context: .
27
+ - image: voxint-whisper
28
+ context: services/whisper
29
+ - image: voxint-pyannote
30
+ context: services/pyannote
31
+ - image: voxint-titanet
32
+ context: services/titanet
33
+ steps:
34
+ - uses: actions/checkout@v4
35
+ # The CUDA-based model-service images are large; reclaim runner disk
36
+ # before building so the GPU matrix entries don't fail on space.
37
+ - name: Free runner disk
38
+ run: |
39
+ sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL
40
+ df -h /
41
+ - uses: docker/setup-buildx-action@v3
42
+ - uses: docker/login-action@v3
43
+ with:
44
+ registry: ghcr.io
45
+ username: ${{ github.actor }}
46
+ password: ${{ secrets.GITHUB_TOKEN }}
47
+ - uses: docker/metadata-action@v5
48
+ id: meta
49
+ with:
50
+ images: ghcr.io/${{ github.repository_owner }}/${{ matrix.image }}
51
+ tags: |
52
+ type=semver,pattern={{version}}
53
+ type=semver,pattern={{major}}.{{minor}}
54
+ - uses: docker/build-push-action@v6
55
+ with:
56
+ context: ${{ matrix.context }}
57
+ push: true
58
+ tags: ${{ steps.meta.outputs.tags }}
59
+ labels: ${{ steps.meta.outputs.labels }}
60
+ cache-from: type=gha,scope=${{ matrix.image }}
61
+ cache-to: type=gha,scope=${{ matrix.image }},mode=max
@@ -0,0 +1,28 @@
1
+ # Environments / secrets
2
+ .env
3
+ .env.*
4
+ !.env.example
5
+
6
+ # Python
7
+ __pycache__/
8
+ *.py[cod]
9
+ *.egg-info/
10
+ .venv/
11
+ dist/
12
+ build/
13
+
14
+ # Tooling caches
15
+ .pytest_cache/
16
+ .mypy_cache/
17
+ .ruff_cache/
18
+ .coverage
19
+ htmlcov/
20
+
21
+ # Local data (repo-root media dir only — not src/voxint/media)
22
+ /media/
23
+ *.wav
24
+ *.mp3
25
+ *.mp4
26
+ *.mkv
27
+ *.flac
28
+ *.m4a
@@ -0,0 +1,35 @@
1
+ # Voxint secret + clean-room provenance scanning.
2
+ # Extends the gitleaks default ruleset with rules that enforce the copy-discipline for code
3
+ # transplanted from the private upstream monorepo: no private IPs, internal hostnames,
4
+ # NAS paths, or upstream-domain strings may land in this repository.
5
+ [extend]
6
+ useDefault = true
7
+
8
+ [[rules]]
9
+ id = "voxint-rfc1918-address"
10
+ description = "Private RFC1918 IP address (internal infrastructure leak)"
11
+ regex = '''\b(10\.\d{1,3}\.\d{1,3}\.\d{1,3}|192\.168\.\d{1,3}\.\d{1,3}|172\.(1[6-9]|2\d|3[01])\.\d{1,3}\.\d{1,3})\b'''
12
+
13
+ [[rules]]
14
+ id = "voxint-internal-hostname"
15
+ description = "Internal hostname or service DNS from the private upstream environment"
16
+ regex = '''(?i)\b(thinktank|darkboi|smolboi|worker-node-beast|gpu-workstation-1|ben-control-plane|tealmaker|compendium[-_](core|av|ai|classification|scrapers)|\.svc\.cluster\.local)\b'''
17
+
18
+ [[rules]]
19
+ id = "voxint-nas-path"
20
+ description = "Private NAS / node filesystem path"
21
+ regex = '''(/mnt/nas2?/|/mnt/audio-ssd|/volume[0-9]/app_data)'''
22
+
23
+ [[rules]]
24
+ id = "voxint-upstream-domain-strings"
25
+ description = "Upstream private-domain strings (project identity / IP leak)"
26
+ regex = '''(?i)\b(hvac|fullstackhvac|compendium)\b'''
27
+ [rules.allowlist]
28
+ paths = ['''^\.gitleaks\.toml$''']
29
+
30
+ [allowlist]
31
+ description = "Repo-level allowlist"
32
+ paths = [
33
+ '''^\.gitleaks\.toml$''',
34
+ '''(^|/)uv\.lock$''',
35
+ ]
@@ -0,0 +1,34 @@
1
+ # Contributing to Voxint
2
+
3
+ Thanks for your interest! Voxint is pre-alpha; expect churn through the 0.x series.
4
+
5
+ ## Development setup
6
+
7
+ ```bash
8
+ uv sync --extra dev # install everything (Python >= 3.11)
9
+ uv run ruff check . # lint
10
+ uv run mypy # strict type-checking
11
+ uv run pytest tests/unit # unit tests
12
+ uv run pytest tests/contracts # GPU-service contract tests (CPU-only, no GPU deps)
13
+ ```
14
+
15
+ Integration tests need the compose stack: `docker compose up -d postgres redis`.
16
+
17
+ The contract tests exercise the GPU services' schemas, path containment, error
18
+ mapping, and route behavior without torch or model weights — they load each
19
+ service's torch-free modules straight from `services/*/app/`. The main package
20
+ targets Python >= 3.11; the service images pin their own interpreters
21
+ independently (currently Python 3.10, dictated by the CUDA base images).
22
+
23
+ ## Ground rules
24
+
25
+ - Type hints are mandatory; `mypy` runs in strict mode.
26
+ - New code needs unit tests (CI enforces 85% coverage).
27
+ - No hardcoded endpoints, paths, or credentials — everything enters via `voxint.config.Settings`.
28
+ - Secrets never land in the repo; CI runs gitleaks with repo-specific rules (`.gitleaks.toml`).
29
+ - Model weights are never vendored — they download at build/run time under the user's own
30
+ credentials (see NOTICE).
31
+
32
+ ## License
33
+
34
+ By contributing you agree your contributions are licensed under Apache-2.0.
@@ -0,0 +1,27 @@
1
+ # Voxint api/worker image (CPU). GPU model services have their own images under services/.
2
+ FROM python:3.12-slim AS base
3
+
4
+ RUN apt-get update && apt-get install -y --no-install-recommends ffmpeg \
5
+ && rm -rf /var/lib/apt/lists/*
6
+
7
+ COPY --from=ghcr.io/astral-sh/uv:0.8 /uv /usr/local/bin/uv
8
+
9
+ WORKDIR /app
10
+ COPY pyproject.toml uv.lock README.md LICENSE ./
11
+ COPY src ./src
12
+ COPY alembic.ini ./
13
+ COPY alembic ./alembic
14
+
15
+ # Honor the committed lockfile exactly; no dev deps, no editable install.
16
+ RUN uv sync --frozen --no-dev --no-editable --no-cache
17
+ ENV PATH="/app/.venv/bin:$PATH"
18
+
19
+ RUN useradd --create-home voxint
20
+ USER voxint
21
+
22
+ EXPOSE 8080
23
+ # `voxint serve` binds from settings, so the password validator sees the real
24
+ # bind address. The image default stays loopback (unpublishable but safe);
25
+ # a deployment that wants the port published sets API_HOST=0.0.0.0 AND a real
26
+ # VOXINT_PASSWORD — compose.yaml does exactly that for the api service.
27
+ CMD ["voxint", "serve"]
voxint-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.
voxint-0.1.0/NOTICE ADDED
@@ -0,0 +1,17 @@
1
+ Voxint
2
+ Copyright 2026 Voxint contributors
3
+
4
+ This product includes software developed as part of the Voxint project
5
+ (Apache License 2.0).
6
+
7
+ Voxint orchestrates third-party models and libraries that are licensed
8
+ separately and are NOT distributed with this repository:
9
+
10
+ - faster-whisper / OpenAI Whisper weights (MIT) — downloaded at build/run time
11
+ - pyannote.audio and its speaker-diarization pipeline weights — gated on
12
+ Hugging Face; users must accept the model terms and supply their own
13
+ HF token. Voxint never vendors or redistributes these weights.
14
+ - NVIDIA NeMo TitaNet-Large (CC-BY-4.0 model license) — downloaded at
15
+ build/run time
16
+
17
+ Consult each upstream project for its exact license terms.