{"id":40573596,"url":"https://github.com/baxtree/wiki2ssml","last_synced_at":"2026-01-21T01:39:07.743Z","repository":{"id":39917566,"uuid":"167803387","full_name":"baxtree/wiki2ssml","owner":"baxtree","description":"Wiki2SSML provides the WikiVoice markup language used for fine-tuning synthesised voice.","archived":false,"fork":false,"pushed_at":"2025-05-05T12:18:04.000Z","size":371,"stargazers_count":35,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-12T07:56:29.551Z","etag":null,"topics":["amazon-alexa","google-assistant","ibm-watson-speech","microsoft-azure","speech-synthesis","ssml","ssml-builder","wikivoice-markups"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/baxtree.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-01-27T11:56:13.000Z","updated_at":"2025-05-05T12:11:19.000Z","dependencies_parsed_at":"2023-11-06T11:49:46.383Z","dependency_job_id":"f131b8ad-8677-48f6-bd8d-261a3b81f99c","html_url":"https://github.com/baxtree/wiki2ssml","commit_stats":{"total_commits":57,"total_committers":3,"mean_commits":19.0,"dds":0.1578947368421053,"last_synced_commit":"5542ad557152978a774d065f2aebbb6959d130b1"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/baxtree/wiki2ssml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baxtree%2Fwiki2ssml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baxtree%2Fwiki2ssml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baxtree%2Fwiki2ssml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baxtree%2Fwiki2ssml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baxtree","download_url":"https://codeload.github.com/baxtree/wiki2ssml/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baxtree%2Fwiki2ssml/sbom","scorecard":{"id":227458,"data":{"date":"2025-08-11","repo":{"name":"github.com/baxtree/wiki2ssml","commit":"6cf59208a0953be8cd0d755c04dbca1f1d676fbc"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/15 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci-pipeline.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":4,"reason":"dependency not pinned by hash detected -- score normalized to 4","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-pipeline.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/baxtree/wiki2ssml/ci-pipeline.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-pipeline.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/baxtree/wiki2ssml/ci-pipeline.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci-pipeline.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/baxtree/wiki2ssml/ci-pipeline.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   1 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 22 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T04:05:51.483Z","repository_id":39917566,"created_at":"2025-08-17T04:05:51.483Z","updated_at":"2025-08-17T04:05:51.483Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28622030,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T23:49:58.628Z","status":"ssl_error","status_checked_at":"2026-01-20T23:47:29.996Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["amazon-alexa","google-assistant","ibm-watson-speech","microsoft-azure","speech-synthesis","ssml","ssml-builder","wikivoice-markups"],"created_at":"2026-01-21T01:39:07.118Z","updated_at":"2026-01-21T01:39:07.726Z","avatar_url":"https://github.com/baxtree.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://github.com/baxtree/wiki2ssml/actions/workflows/ci-pipeline.yml/badge.svg?branch=master)](https://github.com/baxtree/wiki2ssml/actions/workflows/ci-pipeline.yml?query=branch%3Amaster) ![Codecov](https://img.shields.io/codecov/c/github/baxtree/wiki2ssml) ![Node](https://img.shields.io/static/v1?label=node.js\u0026message=\u0026#8805;16.0.0\u0026color=green) [![GitHub license](https://img.shields.io/github/license/baxtree/wiki2ssml)](https://github.com/baxtree/wiki2ssml/blob/master/LICENSE)\n\n\n# Wiki2SSML\n\n`wiki2ssml` can transform the `WikiVoice` markups into the W3C SSML widely supported by various text-to-speech services as an interchange format for synthesised voice tuning.\n\n# Install\n```sh\n$ npm install wiki2ssml\n```\nor\n```sh\n$ yarn add wiki2ssml\n```\n\n# Introduction\n`wiki2ssml` eases the burden of editors preparing scripts in SSML, widely understood by modern speech synthesisers including but not limited to Amazon Polly, Google TTS, IBM Watson TTS and Microsoft Azure TTS. It has been developed in Vanilla JavaScript and powered by `WikiVoice` which provides an unobtrusive solution of blending voice-tuning markups with free texts and creates seamless experiences of editing scripts and voices in one go.\n#\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"./figures/wikivoice.png\" alt=\"WikiVoice\"/\u003e\n\u003c/p\u003e\n\n# Format\n```\n[[attribute(:value)?(,attribute:value)*(|target)?]]\n```\n# Supported Markups\n| Expressions        | Operations|\n| ------------- |-------------|\n| [[volume:SCALE\u0026#124;TEXT]] | Speaking volume |\n| [[speed:SCALE\u0026#124;TEXT]] | Speaking rate |\n| [[pitch:SCALE\u0026#124;TEXT]] | Speaking pitch |\n| [[silence:DURATION,strength:STRENGTH]] | Pause with duration and strength |\n| [[emphasis:LEVEL\u0026#124;TEXT]] | Emphasis with LEVEL |\n| [[audio:AUDIO_URI]] | Audio embedded into speech|\n| [[lang:LANGUAGE\u0026#124;TEXT]] | Language indicator |\n| [[paragraph\u0026#124;TEXT]] | Paragraph indicator |\n| [[sentence\u0026#124;TEXT]] | Sentence indicator |\n| [[type:TYPE\u0026#124;TEXT]] | Type it should be said as |\n| [[voice:NAME\u0026#124;TEXT]] | Voice name it should be said with |\n| [[pos:POS\u0026#124;TEXT]] | Part of speech it should be prounouced as |\n| [[substitute:TEXT1\u0026#124;TEXT2]] | Replace TEXT2 with TEXT1 as substitution |\n| [[alphabet:ALPHABET,pronunciation:PRONUNCIATION\u0026#124;TEXT]] | Phonetic pronunciation |\n| [[volume:SCALE,speed:SCALE,pitch:SCALE\u0026#124;TEXT]] | Speaking volume, rate and pitch |\n| [[type:TYPE,format:FORMAT,detail:DETAIL\u0026#124;TEXT]] | Type it should be said as |\n| [[mark:NAME]] | Mark referencing a location |\n| [[seeAlso:URI] | URI providing additional information about marked-up content]\n| [[cacheControl:no-cache]] | No caching on marked-up content |\n| [[lexicon:URI,type:TEXT]] | Location of the lexicon document and its media type |\n| \u0026#42;[[...]][[...]]...[[...]]\u0026#42; | \u0026#60;par\u0026#62; time container with one or more markups|\n| \u0026#35;[[...]][[...]]...[[...]]\u0026#35; | \u0026#60;seq\u0026#62; time container with one or more markups|\n\n# Vendor-Specific Markups\n| Expressions        | Operations|\n| ------------- |-------------|\n| [[amzWhispered\u0026#124;TEXT]] | Whispering |\n| [[amzPhonation:PHONATION\u0026#124;TEXT]] | Speaking Softly |\n| [[amzTimbre:SCALE\u0026#124;TEXT]] | Controlling Timbre |\n| [[amzDRC\u0026#124;TEXT]] | Dynamic Range Compression |\n| [[amzBreathDuration:SCALE,amzBreathVolume:SCALE]] | Breathing based on the manual model |\n| [[amzDefaultBreath]] | Default breathing based on the manual model |\n| [[amzAutoBreathsVolume:SCALE,amzAutoBreathsFrequency:SCALE,amzAutoBreathsDuration:SCALE\u0026#124;TEXT]] | Breathing based on the automated model |\n| [[amzDefaultAutoBreaths]] | Default breathing based on the automated model |\n| [[amzSpeakingStyle:STYLE\u0026#124;TEXT]] | Speaking style |\n| [[amzEmotion:EMOTION,amzIntensity:SCALE\u0026#124;TEXT]] | Speaking emotionally |\n| [[amzMaxDuration:DURATION#124;TEXT]] | Maximum Speech duration |\n| [[gglMediaSpeak\u0026#124;TEXT]] | Media container for speech |\n| [[gglMediaSpeakEnd:DURATION\u0026#124;TEXT]] | Media container for speech with the ending time |\n| [[gglMediaSpeakFadeIn:DURATION,gglMediaSpeakFadeOut:DURATION\u0026#124;TEXT]] | Media container for speach with fade |\n| [[gglMediaAudio:URI]] | Media container for audio |\n| [[gglMediaAudioFadeIn:DURATION,gglMediaAudioFadeOut:DURATION,gglMediaAudio:URI]] | Media container for audio with fade |\n| [[ibmExprType:TYPE\u0026#124;TEXT]] | Expressiveness type |\n| [[ibmTransType:TYPE,ibmTransStrength:SCALE\u0026#124;TEXT]] | Voice transformation |\n| [[ibmTransBreathiness:SCALE,ibmTransPitchRange:SCALE,ibmTransTimbre:SCALE\u0026#124;TEXT]] | Voice custom transformation |\n| [[voice:NAME\u0026#124;[[mstExprType:TYPE\u0026#124;TEXT]]]] | Voice-specific speaking style |\n| [[mstBackgroundAudio:URI,mstBackgroundAudioVolume:SCALE]] | Background audio and its volume |\n| [[mstBackgroundAudio:URI,mstBackgroundAudioFadeIn:SCALE,mstBackgroundAudioFadeOut:SCALE]] | Background audio with fade-in and fade-out |\n| [[mstExprStyle:STYLE,mstExprDegree:SCALE\u0026#124;TEXT]] | Speaking style and its intensity |\n\nMore details on canonical attribute values can be found at [Speech Synthesis Markup Language (SSML)](https://www.w3.org/TR/speech-synthesis/). For ranges of vendor-specific values please refer to their online documents. Each attribute name in camel case can be rewritten in kebab case (e.g., firstSecondThird \u003c=\u003e first-second-third). Non-vendor-specific attributes can be abbreviated into their first three letters.\n\n# parseToSsml(input, languageCode, options)\n- input `\u003cstring\u003e` (required)\n- languageCode `\u003cstring\u003e` (required: [RFC 1766](https://tools.ietf.org/html/rfc1766))\n- options `\u003cobject\u003e` (optional)\n  - version `\u003cstring\u003e` (default: \"1.1\")\n  - pretty `\u003cboolean\u003e` (default: false)\n  - encoding `\u003cstring\u003e` (default: \"UTF-8\")\n\n# Example\n```js\nvar parser = require(\"wiki2ssml\");\ntry {\n    var input = \"[[volume:+2dB,speed:50%|Speak this with the volume increased by 2dB at half the default speech rate.]]\";\n    var ssml = parser.parseToSsml(input, \"en-GB\", {pretty: true});\n    console.log(ssml);\n} catch (e) {\n    if (e instanceof parser.SyntaxError) {\n        // The input does not have valid WikiVoice markups\n    } else if (e instanceof parser.ArgumentError) {\n        // Either the input or the language code is missing\n    } else {\n        // Handle any unspecified exceptions\n    }\n}\n```\nwill print out:\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003cspeak version=\"1.1\" xmlns=\"http://www.w3.org/2001/10/synthesis\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://www.w3.org/2001/10/synthesis http://www.w3.org/TR/speech-synthesis/synthesis.xsd\" xml:lang=\"en-GB\"\u003e\n  \u003cprosody rate=\"50%\" volume=\"+2dB\"\u003eSpeak this with the volume increased by 2dB at half the default speech rate.\u003c/prosody\u003e\n\u003c/speak\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaxtree%2Fwiki2ssml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaxtree%2Fwiki2ssml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaxtree%2Fwiki2ssml/lists"}