{"id":16551543,"url":"https://github.com/kimfucious/polly-is-a-cracker","last_synced_at":"2026-01-20T11:33:02.413Z","repository":{"id":38710612,"uuid":"203395880","full_name":"kimfucious/polly-is-a-cracker","owner":"kimfucious","description":"🦜 Amazon Polly does dad jokes... 😂","archived":false,"fork":false,"pushed_at":"2023-01-07T08:52:55.000Z","size":2687,"stargazers_count":2,"open_issues_count":28,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T22:47:25.279Z","etag":null,"topics":["amazon-polly","angular","polly"],"latest_commit_sha":null,"homepage":"https://polly.abts.io/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kimfucious.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-20T14:42:58.000Z","updated_at":"2021-12-01T15:26:27.000Z","dependencies_parsed_at":"2023-02-06T17:31:09.593Z","dependency_job_id":null,"html_url":"https://github.com/kimfucious/polly-is-a-cracker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kimfucious/polly-is-a-cracker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimfucious%2Fpolly-is-a-cracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimfucious%2Fpolly-is-a-cracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimfucious%2Fpolly-is-a-cracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimfucious%2Fpolly-is-a-cracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kimfucious","download_url":"https://codeload.github.com/kimfucious/polly-is-a-cracker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimfucious%2Fpolly-is-a-cracker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28602463,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T10:46:13.255Z","status":"ssl_error","status_checked_at":"2026-01-20T10:42:51.865Z","response_time":117,"last_error":"SSL_read: 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-polly","angular","polly"],"created_at":"2024-10-11T19:37:39.886Z","updated_at":"2026-01-20T11:33:02.395Z","avatar_url":"https://github.com/kimfucious.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🦜 Polly is a Cracker [![Netlify Status](https://api.netlify.com/api/v1/badges/15921d6a-1bbb-4df5-b638-7ba0337b860a/deploy-status)](https://app.netlify.com/sites/serene-haibt-4aed40/deploys)\n\n## About\n\n- This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.0\n- Audio handled by [howler.js](https://www.npmjs.com/package/howler)\n- Base Polly code example started from [here](https://docs.aws.amazon.com/code-samples/latest/catalog/javascript-browserstart-polly.html.html)\n- Humour provided by the groan-worthy, [icanhazdadjoke](https://icanhazdadjoke.com/api) API\n- Voices are made possible by [Amazon Polly](https://aws.amazon.com/polly/)\n\n## Notes\n\n### The aws-sdk does not seem to work out of the box with Angular.\n\nTo get this working:\n\n1. Add the following line to `polyfills.ts`:\n\n```js\n(window as any).global = window;\n```\n\n2. add @types/node package (via npm or yarn)\n3. change the following line in `tsconfig.app.json`\n\nfrom this:\n\n```js\n\"types\": []\n```\n\nto this:\n\n```js\n\"types\": [\"node\"]\n```\n\n_Your mileage may vary_\n\n### Change detection in callbacks needs a tick in the pants\n\n💡 I learned that change detection in Angular needs an [app.tick()](https://angular.io/api/core/ApplicationRef#tick) when the change occurs within a callback function.\n\n### Unneeded/unwanted arguments from base code example\n\n😑 Working from the Polly base code example [here](https://docs.aws.amazon.com/code-samples/latest/catalog/javascript-browserstart-polly.html.html), I found that the following lines where throwing errors in my angular app:\n\n```js\nvar polly = new AWS.Polly({ apiVersion: \"2016-06-10\" });\nvar signer = new AWS.Polly.Presigner(speechParams, polly);\n```\n\nI wound up removing the first line and the all of the arguments on the `signer` to get things working without errors.\n\n```js\nconst signer = new AWS.Polly.Presigner();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkimfucious%2Fpolly-is-a-cracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkimfucious%2Fpolly-is-a-cracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkimfucious%2Fpolly-is-a-cracker/lists"}