{"id":16383964,"url":"https://github.com/terrillo/pollymolly","last_synced_at":"2025-03-23T03:33:31.768Z","repository":{"id":57326974,"uuid":"95250052","full_name":"terrillo/PollyMolly","owner":"terrillo","description":"PollyMolly is a AWS Polly node.js wrapper with a better speech synthesis algorithm to provided a more natural sounding voice. ","archived":false,"fork":false,"pushed_at":"2017-06-28T19:04:29.000Z","size":20,"stargazers_count":11,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T17:40:11.874Z","etag":null,"topics":["aws","aws-polly","speech-synthesis"],"latest_commit_sha":null,"homepage":"","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/terrillo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-23T19:26:47.000Z","updated_at":"2024-05-16T19:00:18.000Z","dependencies_parsed_at":"2022-09-13T18:53:48.041Z","dependency_job_id":null,"html_url":"https://github.com/terrillo/PollyMolly","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terrillo%2FPollyMolly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terrillo%2FPollyMolly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terrillo%2FPollyMolly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terrillo%2FPollyMolly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/terrillo","download_url":"https://codeload.github.com/terrillo/PollyMolly/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245052645,"owners_count":20553162,"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","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":["aws","aws-polly","speech-synthesis"],"created_at":"2024-10-11T04:10:10.619Z","updated_at":"2025-03-23T03:33:31.492Z","avatar_url":"https://github.com/terrillo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PollyMolly\nPollyMolly is a AWS Polly node.js wrapper with a better speech synthesis algorithm to provided a more natural sounding voice. The base of the project uses the Speech Synthesis Markup Language (SSML). [https://www.w3.org/TR/speech-synthesis/](https://www.w3.org/TR/speech-synthesis/)\n\n## Install\n`npm install pollymolly`\n\n## Features\n- Convert Text to SSML\n- Convert SSML to Text\n- Download mp3 from AWS Polly\n\n## Other docs\n- [Natural Language Rules](docs/natural-rules.md)\n\n## Todo\n- [x] Download mp3s from AWS Polly\n  - [ ] Large file download\n- [ ] \"Natural Pause\" Algorithm\n- [ ] Improved Pronunciation  \n- [x] Change Voice\n- [ ] Change region\n\n## Usage\n```\nconst PollyMolly = require('pollymolly')\n```\n\n### Text -\u003e SSML `text2ssml()`\nConvert a plain text string to the Speech Synthesis Markup Language\n```\nPollyMolly.text2ssml('Hello World')\n\u003e \u003cspeak\u003eHello World\u003c/speak\u003e\n```\n\n### SSML -\u003e Text `ssml2text()`\nConvert Speech Synthesis Markup Language to plain text\n```\nPollyMolly.ssml2text('\u003cspeak\u003eHello World\u003c/speak\u003e')\n\u003e Hello World\n```\n\n### is SSML `isSSML()`\nCheck to see if string is SSML\n```\nPollyMolly.isSSML('\u003cspeak\u003eHello World\u003c/speak\u003e')\n\u003e true\n```\n\n### is Text `isText()`\nCheck to see if string is not SSML\n```\nPollyMolly.isSSML('\u003cspeak\u003eHello World\u003c/speak\u003e')\n\u003e false\n```\n\n### Natural `natural()`\nConvert a string to a more natural speaking SSML\n```\nPollyMolly.natural('The curator painted the dinosaur orange - a color hated by everyone.')\n\u003e \u003cspeak\u003eThe curator painted the dinosaur orange \u003cbreak time=\"200ms\"/\u003e a color hated by everyone.\u003c/speak\u003e\n```\n\n### Download File `download()`\nDownload .mp3 from AWS Polly\n```\nPollyMolly.download({ 'Text': 'Hello World' }, 'sound.mp3', function() {\n  console.log('DONE')\n})\n```\n\n## Changelog\n**0.1v**\n- `text2ssml()`\n- `ssml2text()`\n- `download()`\n\n**0.2v**\n- `isSSML()`\n- `isText()`\n- `natural()`\n- `download()` now supports the full AWS download params. [http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/Polly.html](http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/Polly.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterrillo%2Fpollymolly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterrillo%2Fpollymolly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterrillo%2Fpollymolly/lists"}