{"id":20573183,"url":"https://github.com/ashmadev/babbler.js","last_synced_at":"2025-09-13T12:08:22.231Z","repository":{"id":150037659,"uuid":"496488148","full_name":"AshmaDev/babbler.js","owner":"AshmaDev","description":"Web Speech API Implementation","archived":false,"fork":false,"pushed_at":"2022-05-27T16:09:01.000Z","size":102,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-16T21:18:28.801Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/AshmaDev.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-26T05:07:24.000Z","updated_at":"2022-05-27T16:34:22.000Z","dependencies_parsed_at":"2023-04-05T05:59:33.295Z","dependency_job_id":null,"html_url":"https://github.com/AshmaDev/babbler.js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AshmaDev%2Fbabbler.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AshmaDev%2Fbabbler.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AshmaDev%2Fbabbler.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AshmaDev%2Fbabbler.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AshmaDev","download_url":"https://codeload.github.com/AshmaDev/babbler.js/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242189084,"owners_count":20086510,"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":[],"created_at":"2024-11-16T05:25:57.299Z","updated_at":"2025-03-06T10:23:58.512Z","avatar_url":"https://github.com/AshmaDev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![babbler_logo](public/logo.png)\n\nSimple programmable Web Speech API implementation.\n\n### Usage\n\nThis is a really simple implementation of the Web Speech API.\n\n```js\n\nconst babbler = new Babbler({\n  lang: 'en', // language\n  voice: 'Microsoft George - English (United Kingdom)' // voice name\n});\n\n```\n\nTo say something, use:\n\n```js\n\nbabbler.Speak(\"Hello World!\");\n\nbabbler.Speak(\"Hello!\").then(()=\u003e{\n  // do something\n  babbler.Speak(\"How are you today?\");\n});\n\n```\n\nTo listen, use:\n\n```js\nconst callbacks = {\n  start: () =\u003e console.log(\"Babbler listener has started\"),\n  end: () =\u003e console.log(\"Babbler listener has started\"),\n  error: (e) =\u003e console.error(\"Babbler error\", e),\n  result: (r) =\u003e console.log(\"Babbler result\", r),\n};\n\nbabbler.Listen(callbacks);\n\nconst doSomethingWithResult = (r) =\u003e {\n  const result = event.results[0][0].transcript;\n  // do something with your result here\n}\n\nbabbler.Listen({\n  result: doSomethingWithResult\n});\n\n```\n\nYou can easily extend Babbler with your own functionalities.\n\n```js\n\nBabbler.prototype.customBabblerFunction = () =\u003e {\n  console.log(\"This is my custom functionality!\");\n}\n\nconst babbler = new Babbler(/* config */);\n\nbabbler.customBabblerFunction();\n\n```\n\nYou can also read more about Web Speech API in the [docs](https://developer.mozilla.org/en-US/docs/Web/API/Web_Speech_API).\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashmadev%2Fbabbler.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashmadev%2Fbabbler.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashmadev%2Fbabbler.js/lists"}