phonemize
Version:
Fast phonemizer with rule-based G2P prediction. Pure JavaScript implementation.
128 lines (127 loc) • 3.41 kB
JSON
{
"name": "phonemize",
"version": "2.0.0",
"description": "Fast phonemizer with rule-based G2P prediction. Pure JavaScript implementation.",
"main": "dist/index.cjs",
"types": "dist/index.d.ts",
"module": "dist/index.mjs",
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
},
"./core": {
"import": "./dist/core.mjs",
"require": "./dist/core.cjs",
"types": "./dist/core.d.ts"
},
"./zh": {
"import": "./dist/zh.mjs",
"require": "./dist/zh.cjs",
"types": "./dist/zh.d.ts"
},
"./all": {
"import": "./dist/all.mjs",
"require": "./dist/all.cjs",
"types": "./dist/all.d.ts"
},
"./zh-g2p": {
"import": "./dist/zh-g2p.mjs",
"require": "./dist/zh-g2p.cjs",
"types": "./dist/zh-g2p.d.ts"
},
"./ja-g2p": {
"import": "./dist/ja-g2p.mjs",
"require": "./dist/ja-g2p.cjs",
"types": "./dist/ja-g2p.d.ts"
},
"./ko-g2p": {
"import": "./dist/ko-g2p.mjs",
"require": "./dist/ko-g2p.cjs",
"types": "./dist/ko-g2p.d.ts"
},
"./ru-g2p": {
"import": "./dist/ru-g2p.mjs",
"require": "./dist/ru-g2p.cjs",
"types": "./dist/ru-g2p.d.ts"
},
"./en-g2p": {
"import": "./dist/en-g2p.mjs",
"require": "./dist/en-g2p.cjs",
"types": "./dist/en-g2p.d.ts"
}
},
"scripts": {
"test": "jest",
"test:coverage": "nyc --reporter=text --reporter=html --reporter=lcov yarn test",
"test:eval": "tsx scripts/evaluate.ts",
"trace": "tsx scripts/trace.ts",
"test:ai-eval": "tsx scripts/eval-with-ai.ts",
"typecheck": "tsc -b",
"build": "rollup -c",
"build:watch": "rollup -c --watch",
"build-dict": "tsx scripts/build-pipeline.ts",
"prebuild": "yarn build-dict",
"dev": "tsx src/index.ts",
"release": "release-it",
"pretty": "prettier -w src",
"build-eval-set": "tsx scripts/build-eval-set.ts"
},
"files": [
"dist/"
],
"repository": {
"type": "git",
"url": "git+https://github.com/hans00/phonemize.git"
},
"keywords": [
"nlp",
"phoneme",
"multilingual",
"g2p",
"tts",
"fast",
"typescript"
],
"author": "Hans <me@hans00.me>",
"license": "MIT",
"bugs": {
"url": "https://github.com/hans00/phonemize/issues"
},
"homepage": "https://github.com/hans00/phonemize#readme",
"devDependencies": {
"@commitlint/cli": "^19.8.1",
"@commitlint/config-conventional": "^19.8.1",
"@release-it/conventional-changelog": "^10.0.1",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-typescript": "^12.1.4",
"@types/chai": "^5.2.2",
"@types/fast-levenshtein": "^0.0.4",
"@types/jest": "^30.0.0",
"@types/node": "^20.12.12",
"fast-levenshtein": "^3.0.0",
"husky": "^9.1.7",
"jest": "^30.0.5",
"json5": "^2.2.3",
"nyc": "^17.1.0",
"openai": "^5.7.0",
"prettier": "^3.8.3",
"release-it": "^19.0.3",
"rollup": "^4.46.3",
"rollup-plugin-cleanup": "^3.2.1",
"ts-jest": "^29.4.1",
"ts-node": "^10.9.2",
"tsx": "^4.6.0",
"typescript": "^5.3.0",
"unplugin-oxc": "^0.5.1"
},
"dependencies": {
"number-to-words": "^1.2.4",
"pinyin-pro": "^3.26.0"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org"
}
}