{"id":31669539,"url":"https://github.com/theresnotime/ipa-to-ssml","last_synced_at":"2025-10-08T01:51:03.197Z","repository":{"id":38234259,"uuid":"491938092","full_name":"theresnotime/ipa-to-ssml","owner":"theresnotime","description":"Node package for converting IPA to valid SSML elements","archived":false,"fork":false,"pushed_at":"2023-03-06T20:35:22.000Z","size":590,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-18T18:29:44.138Z","etag":null,"topics":["ipa","ssml"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@theresnotime/ipa-to-ssml","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/theresnotime.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-13T14:52:37.000Z","updated_at":"2022-05-13T18:02:28.000Z","dependencies_parsed_at":"2023-02-14T23:16:05.000Z","dependency_job_id":null,"html_url":"https://github.com/theresnotime/ipa-to-ssml","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/theresnotime/ipa-to-ssml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theresnotime%2Fipa-to-ssml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theresnotime%2Fipa-to-ssml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theresnotime%2Fipa-to-ssml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theresnotime%2Fipa-to-ssml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theresnotime","download_url":"https://codeload.github.com/theresnotime/ipa-to-ssml/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theresnotime%2Fipa-to-ssml/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278877088,"owners_count":26061380,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ipa","ssml"],"created_at":"2025-10-08T01:50:52.826Z","updated_at":"2025-10-08T01:51:03.192Z","avatar_url":"https://github.com/theresnotime.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node package for converting IPA to valid SSML elements\n[![Node.js CI](https://github.com/theresnotime/ipa-to-ssml/actions/workflows/node.js.yml/badge.svg)](https://github.com/theresnotime/ipa-to-ssml/actions/workflows/node.js.yml)\n[![CodeQL](https://github.com/theresnotime/ipa-to-ssml/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/theresnotime/ipa-to-ssml/actions/workflows/codeql-analysis.yml)\n[![install size](https://packagephobia.com/badge?p=@theresnotime/ipa-to-ssml)](https://packagephobia.com/result?p=@theresnotime/ipa-to-ssml)\n\nSometimes you just wish there was a Node.js package that did a *thing*, such as convert [IPA](https://en.wikipedia.org/wiki/International_Phonetic_Alphabet) to a valid [SSML](https://en.wikipedia.org/wiki/Speech_Synthesis_Markup_Language) element — sometimes you wish it ***so much*** you end up writing it. 😅\n\n## Installing\nGo grab it on [npmjs](https://www.npmjs.com/package/@theresnotime/ipa-to-ssml) via `npm i @theresnotime/ipa-to-ssml`\n\nYou'll then be all set to `require` it:\n```js\nconst ipaToSSML = require('@theresnotime/ipa-to-ssml');\n```\nSimples!\n\n## IPA goes in..\nWe pass the represented `word`, its `ipa` representation, and optionally a `variant` of SSML to generate:\n\n```js\nlet ssmlResult = await ipaToSSML.convertToSSML('hello', '/həˈləʊ/', 'default');\n```\n\n## ..and SSML comes out!\n```xml\n\u003c?xml version=\"1.0\"?\u003e\n\u003cspeak version=\"1.1\"\n    xmlns=\"http://www.w3.org/2001/10/synthesis\"\n    xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n    xsi:schemaLocation=\"http://www.w3.org/2001/10/synthesis\n        http://www.w3.org/TR/speech-synthesis11/synthesis.xsd\"\n    xml:lang=\"en-US\"\u003e\n    \u003cphoneme alphabet=\"ipa\" ph=\"/həˈləʊ/\"\u003ehello\u003c/phoneme\u003e\n\u003c/speak\u003e\n```\n*(don't blame **me** for how ugly that looks, blame [the w3c](https://www.w3.org/TR/speech-synthesis11/)...)*\n\n## Variants\n - `default` — this is valid SSML, and *should* be accepted by all (SSML accepting) TTS engines\n - `polly` — for now, just a copy of `default` 🤷‍♀️ works with [Amazon Polly](https://aws.amazon.com/polly/)\n - `larynx` — this larger SSML element is required for getting [rhasspy/larynx](https://github.com/rhasspy/larynx) (a *very* cool TTS engine..) to play ball\n\n## Contributing\nThis is the first module I've ever published to npmjs, *and* my first foray into Node modules, so there's bound to be things you spot and want to fix — I'd love to get your feedback and PRs!\n\n### Quick steps\n 1. [Fork n' clone](https://docs.github.com/en/get-started/quickstart/contributing-to-projects) this repo\n 2. Do a `npm install`\n 3. Run `npm test` because who knows, maybe its already broken\n 4. Hack!\n\n### Tests? For JavaScript!?\nIn writing this I discovered [Jest](https://jestjs.io/), a *\"delightful JavaScript Testing Framework with a focus on simplicity\"* — I dunno about that, as I've never written tests for JavaScript, but it was pretty painless :\u003e they live in [tests/](tests/) and the syntax for them is [super simple](https://jestjs.io/docs/getting-started).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheresnotime%2Fipa-to-ssml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheresnotime%2Fipa-to-ssml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheresnotime%2Fipa-to-ssml/lists"}