{"_id":"phonemizer","_rev":"3-1bee5435ad4e1b24d2495312cfa04353","name":"phonemizer","dist-tags":{"latest":"1.2.1"},"versions":{"1.0.0":{"name":"phonemizer","version":"1.0.0","keywords":["linguistics","espeak","phoneme","phonemization"],"author":{"name":"Xenova"},"license":"Apache-2.0","_id":"phonemizer@1.0.0","maintainers":[{"name":"xenova","email":"admin@xenova.com"}],"homepage":"https://github.com/xenova/phonemizer.js#readme","bugs":{"url":"https://github.com/xenova/phonemizer.js/issues"},"dist":{"shasum":"ce6d98b304b521e12502e1ccc22be132f7767801","tarball":"https://registry.npmjs.org/phonemizer/-/phonemizer-1.0.0.tgz","fileCount":7,"integrity":"sha512-IOCn3bDNLiI58Jgtd6l2pbXVeSdQD2Vxsg5g2B4XRVYQAlhpDTDTHbsNyHmHl9cHZhPpPIZ6b7ggr48AuqdNwg==","signatures":[{"sig":"MEYCIQCQX3hfdkWOm7c7F0vOzcqWvXT9vp6LlqERXJ31WAK+KQIhAOhh8mbdYd2RsnBMcLw/NoqI8jEFYGB8hTOlTwCWcCTE","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3112610},"exports":{"node":{"import":"./dist/phonemizer.mjs","require":"./dist/phonemizer.js"},"default":"./dist/phonemizer.web.js"},"gitHead":"2a953ce72c22a249f590e35da9d07d08b6cc7d5b","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf dist && rollup -c"},"_npmUser":{"name":"xenova","email":"admin@xenova.com"},"repository":{"url":"git+https://github.com/xenova/phonemizer.js.git","type":"git"},"_npmVersion":"10.8.2","description":"Simple text to phones converter using eSpeak NG","directories":{},"_nodeVersion":"20.18.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.30.1","prettier":"3.4.2","rollup-plugin-copy":"^3.5.0","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-replace":"^6.0.2","@rollup/plugin-commonjs":"^28.0.2"},"_npmOperationalInternal":{"tmp":"tmp/phonemizer_1.0.0_1736716361091_0.9875440370195634","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"phonemizer","version":"1.1.0","keywords":["linguistics","espeak","phoneme","phonemization"],"author":{"name":"Xenova"},"license":"Apache-2.0","_id":"phonemizer@1.1.0","maintainers":[{"name":"xenova","email":"admin@xenova.com"}],"homepage":"https://github.com/xenova/phonemizer.js#readme","bugs":{"url":"https://github.com/xenova/phonemizer.js/issues"},"dist":{"shasum":"d29cacc09dca02464cf6cf0d2b78548721b0611b","tarball":"https://registry.npmjs.org/phonemizer/-/phonemizer-1.1.0.tgz","fileCount":11,"integrity":"sha512-Z2K600p1296Fa/U5GLEXuuIUamNumbOChKtsbOerzC+G3L8WdYn2mBbml8xtng43sI0GNdrWS8Astz67SWxPRA==","signatures":[{"sig":"MEUCIFU8DyJaqGkZjWqrwT4XTvtHT4QMNNuC2s5jiV5kYditAiEA/a5lUzGTLqvjtqZ6+zoZD1nam1fD61o+B6/F0seUXyA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3116179},"exports":{"node":{"import":"./dist/phonemizer.mjs","require":"./dist/phonemizer.js"},"types":"./types/phonemizer.d.ts","default":"./dist/phonemizer.web.js"},"gitHead":"2c521777de6e90e62d3ac0dceaba9b39a2b110d8","scripts":{"test":"vitest","build":"rm -rf dist types && rollup -c && tsc","format":"prettier --write ."},"_npmUser":{"name":"xenova","email":"admin@xenova.com"},"repository":{"url":"git+https://github.com/xenova/phonemizer.js.git","type":"git"},"_npmVersion":"10.8.2","description":"Simple text to phones converter using eSpeak NG","directories":{},"_nodeVersion":"20.18.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.30.1","vitest":"^2.1.8","prettier":"3.4.2","typescript":"^5.7.3","rollup-plugin-copy":"^3.5.0","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-replace":"^6.0.2","@rollup/plugin-commonjs":"^28.0.2"},"_npmOperationalInternal":{"tmp":"tmp/phonemizer_1.1.0_1736792160388_0.20688984938290167","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"phonemizer","version":"1.2.0","keywords":["linguistics","espeak","phoneme","phonemization"],"author":{"name":"Xenova"},"license":"Apache-2.0","_id":"phonemizer@1.2.0","maintainers":[{"name":"xenova","email":"admin@xenova.com"}],"homepage":"https://github.com/xenova/phonemizer.js#readme","bugs":{"url":"https://github.com/xenova/phonemizer.js/issues"},"dist":{"shasum":"2480ff7eb33cee94c6f82ef5d00ad6f04a5209dc","tarball":"https://registry.npmjs.org/phonemizer/-/phonemizer-1.2.0.tgz","fileCount":9,"integrity":"sha512-S3rtSG796pWpogDWiy2vgl1ztOqMqEe1nHl2tlVUC2T/zwNj2te9rG8NiEd+Un/jtS1shtmf83LSw6n69VldZA==","signatures":[{"sig":"MEUCIAHJvnLvgs5lPkHGHtcFwLORfjr101AVg+8tgT0LNKABAiEAkgcVuLKa00fKgqm531+7+Wk7uaLxMxipQz4vcqcyDMA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2662121},"type":"module","unpkg":"./dist/phonemizer.js","exports":{"node":{"import":"./dist/phonemizer.js","require":"./dist/phonemizer.cjs"},"types":"./types/phonemizer.d.ts","default":"./dist/phonemizer.js"},"gitHead":"e0d62b6725cc59058ccc84c36208622e31b25d83","scripts":{"test":"vitest","build":"rm -rf dist types && rollup -c && tsc","format":"prettier --write ."},"_npmUser":{"name":"xenova","email":"admin@xenova.com"},"jsdelivr":"./dist/phonemizer.js","repository":{"url":"git+https://github.com/xenova/phonemizer.js.git","type":"git"},"_npmVersion":"10.8.2","description":"Simple text to phones converter using eSpeak NG","directories":{},"_nodeVersion":"20.18.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.30.1","vitest":"^2.1.8","prettier":"3.4.2","typescript":"^5.7.3","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-commonjs":"^28.0.2"},"_npmOperationalInternal":{"tmp":"tmp/phonemizer_1.2.0_1736892958272_0.7617111045146587","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"phonemizer","version":"1.2.1","description":"Simple text to phones converter using eSpeak NG","type":"module","exports":{"types":"./types/phonemizer.d.ts","node":{"import":"./dist/phonemizer.js","require":"./dist/phonemizer.cjs"},"default":"./dist/phonemizer.js"},"scripts":{"build":"rm -rf dist types && rollup -c && tsc","test":"vitest","format":"prettier --write ."},"repository":{"type":"git","url":"git+https://github.com/xenova/phonemizer.js.git"},"keywords":["linguistics","espeak","phoneme","phonemization"],"author":{"name":"Xenova"},"license":"Apache-2.0","bugs":{"url":"https://github.com/xenova/phonemizer.js/issues"},"homepage":"https://github.com/xenova/phonemizer.js#readme","devDependencies":{"@rollup/plugin-commonjs":"^28.0.2","@rollup/plugin-terser":"^0.4.4","prettier":"3.4.2","rollup":"^4.30.1","typescript":"^5.7.3","vitest":"^2.1.8"},"publishConfig":{"access":"public"},"jsdelivr":"./dist/phonemizer.js","unpkg":"./dist/phonemizer.js","_id":"phonemizer@1.2.1","gitHead":"6835144b7ee9043129222549c1ed2f6a27216278","_nodeVersion":"20.18.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-v0KJ4mi2T4Q7eJQ0W15Xd4G9k4kICSXE8bpDeJ8jisL4RyJhNWsweKTOi88QXFc4r4LZlz5jVL5lCHhkpdT71A==","shasum":"175aed7034b49b9169fc6adf13c16134374d238d","tarball":"https://registry.npmjs.org/phonemizer/-/phonemizer-1.2.1.tgz","fileCount":9,"unpackedSize":2661203,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDVXzf41Fe4RmfUChQsKDiBLVKo4icWzSllUJ9sxYkngAIhAMb6nTr5eKgXGvXarHhCWfatTBxq3kEMPR0ePssH6RVc"}]},"_npmUser":{"name":"xenova","email":"admin@xenova.com"},"directories":{},"maintainers":[{"name":"xenova","email":"admin@xenova.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/phonemizer_1.2.1_1736987444785_0.2596426682555857"},"_hasShrinkwrap":false}},"time":{"created":"2025-01-12T21:12:40.971Z","modified":"2025-01-16T00:30:45.279Z","1.0.0":"2025-01-12T21:12:41.421Z","1.1.0":"2025-01-13T18:16:00.698Z","1.2.0":"2025-01-14T22:15:58.532Z","1.2.1":"2025-01-16T00:30:45.090Z"},"bugs":{"url":"https://github.com/xenova/phonemizer.js/issues"},"author":{"name":"Xenova"},"license":"Apache-2.0","homepage":"https://github.com/xenova/phonemizer.js#readme","keywords":["linguistics","espeak","phoneme","phonemization"],"repository":{"type":"git","url":"git+https://github.com/xenova/phonemizer.js.git"},"description":"Simple text to phones converter using eSpeak NG","maintainers":[{"name":"xenova","email":"admin@xenova.com"}],"readme":"# Phonemizer.js\n\nSimple text to phones converter using eSpeak NG.\n\n## Basic usage\n\n```js\nimport { phonemize } from \"phonemizer\";\n\nconst phonemes = await phonemize(\"Hello world.\");\nconsole.log(phonemes); // ['həlˈəʊ wˈɜːld']\n```\n\nAlternatively, you can load the library from a CDN as follows:\n\n```html\n<script type=\"module\">\n  import { phonemize } from \"https://cdn.jsdelivr.net/npm/phonemizer\";\n\n  const phonemes = await phonemize(\"Hello world.\");\n  console.log(phonemes); // ['həlˈəʊ wˈɜːld']\n</script>\n```\n\n<details>\n\n```js\nconst { phonemize } = require(\"phonemizer\");\n\n(async () => {\n  const phonemes = await phonemize(\"Hello world.\");\n  console.log(phonemes); // ['həlˈəʊ wˈɜːld']\n})();\n```\n\n<summary>CommonJS usage</summary>\n\n</details>\n\n## Advanced Usage\n\n1. List supported voices\n\n   ```js\n   import { list_voices } from \"phonemizer\";\n   console.dir(await list_voices(), { depth: null });\n   ```\n\n   <details>\n\n   <summary>Example output</summary>\n\n   ```js\n   [\n     {\n       name: \"English (Caribbean)\",\n       identifier: \"gmw/en-029\",\n       languages: [\n         { priority: 5, name: \"en-029\" },\n         { priority: 10, name: \"en\" },\n       ],\n     },\n     {\n       name: \"English (Great Britain)\",\n       identifier: \"gmw/en\",\n       languages: [\n         { priority: 2, name: \"en-gb\" },\n         { priority: 2, name: \"en\" },\n       ],\n     },\n     {\n       name: \"English (Scotland)\",\n       identifier: \"gmw/en-GB-scotland\",\n       languages: [\n         { priority: 5, name: \"en-gb-scotland\" },\n         { priority: 4, name: \"en\" },\n       ],\n     },\n     {\n       name: \"English (Lancaster)\",\n       identifier: \"gmw/en-GB-x-gbclan\",\n       languages: [\n         { priority: 5, name: \"en-gb-x-gbclan\" },\n         { priority: 3, name: \"en-gb\" },\n         { priority: 5, name: \"en\" },\n       ],\n     },\n     {\n       name: \"English (West Midlands)\",\n       identifier: \"gmw/en-GB-x-gbcwmd\",\n       languages: [\n         { priority: 5, name: \"en-gb-x-gbcwmd\" },\n         { priority: 9, name: \"en-gb\" },\n         { priority: 9, name: \"en\" },\n       ],\n     },\n     {\n       name: \"English (Received Pronunciation)\",\n       identifier: \"gmw/en-GB-x-rp\",\n       languages: [\n         { priority: 5, name: \"en-gb-x-rp\" },\n         { priority: 4, name: \"en-gb\" },\n         { priority: 5, name: \"en\" },\n       ],\n     },\n     {\n       name: \"English (America)\",\n       identifier: \"gmw/en-US\",\n       languages: [\n         { priority: 2, name: \"en-us\" },\n         { priority: 3, name: \"en\" },\n       ],\n     },\n     {\n       name: \"English (America, New York City)\",\n       identifier: \"gmw/en-US-nyc\",\n       languages: [{ priority: 5, name: \"en-us-nyc\" }],\n     },\n   ];\n   ```\n\n   </details>\n\n2. Select different language/voice\n\n   ```js\n   import { phonemize } from \"phonemizer\";\n\n   const phonemes = await phonemize(\"Hello world.\", \"en-gb-scotland\");\n   console.log(phonemes); // [ 'həlˈoː wˈʌɹld' ]\n   ```\n","readmeFilename":"README.md"}