mirror of
https://github.com/bitbaum/speechkit.git
synced 2026-12-03 23:28:03 +01:00
Extracted from Heidi's speaking practice, where it measures Zurich German learners. Language-agnostic: vowels, fillers, dialect markers and the grammar code are passed in; nothing here names a language. Four layers: signal (pauses and runs from raw samples — works on a dialect nothing transcribes), evidence (a translated transcript is never evidence about form), words (rate, where a long pause fell, did the recogniser answer in the variety spoken), grammar (your own LanguageTool, filtered to what a speaker is answerable for). No pronunciation score, and a test on the built package fails if an export starts to look like one. dist/ committed so `github:bitbaum/speechkit#v1.0.0` installs without a build; CI fails if it drifts from the source. npm publishing is wired (tag-driven, tokenless) but gated off until the one-time passkey bootstrap in the README. 90 unit tests on the source, 4 on dist/. Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
30 lines
987 B
JSON
30 lines
987 B
JSON
{
|
|
// Type-checks everything, tests included. `tsconfig.build.json` is the one
|
|
// that emits, and leaves the tests out of dist/.
|
|
"compilerOptions": {
|
|
"target": "ES2022",
|
|
"lib": ["ES2022"],
|
|
"types": ["node"],
|
|
"module": "NodeNext",
|
|
"moduleResolution": "NodeNext",
|
|
"strict": true,
|
|
// Sources import each other as `./x.ts` so `node --test` can run them
|
|
// directly with type stripping; the emitted JS says `./x.js`.
|
|
"allowImportingTsExtensions": true,
|
|
"rewriteRelativeImportExtensions": true,
|
|
// Only syntax Node can strip — no enums, namespaces or parameter
|
|
// properties — because the tests run the source, not the build.
|
|
"erasableSyntaxOnly": true,
|
|
"verbatimModuleSyntax": true,
|
|
"declaration": true,
|
|
"declarationMap": true,
|
|
"sourceMap": true,
|
|
"outDir": "dist",
|
|
"rootDir": "src",
|
|
"forceConsistentCasingInFileNames": true,
|
|
"skipLibCheck": true,
|
|
"noEmit": true
|
|
},
|
|
"include": ["src/**/*"]
|
|
}
|