{"id":22345562,"url":"https://github.com/gerhynes/speech-detection","last_synced_at":"2026-04-14T06:33:16.367Z","repository":{"id":106048012,"uuid":"108321886","full_name":"gerhynes/speech-detection","owner":"gerhynes","description":"A page to practice speech detection. Built for Wes Bos' JavaScript 30 course. ","archived":false,"fork":false,"pushed_at":"2018-01-31T22:55:13.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-19T15:54:55.917Z","etag":null,"topics":["javascript","javascript30"],"latest_commit_sha":null,"homepage":"https://gk-hynes.github.io/speech-detection/","language":"CSS","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/gerhynes.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":"2017-10-25T20:22:50.000Z","updated_at":"2018-01-23T22:04:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"7f0d490d-7f68-453d-9e2f-1afe1ff5d938","html_url":"https://github.com/gerhynes/speech-detection","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gerhynes/speech-detection","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerhynes%2Fspeech-detection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerhynes%2Fspeech-detection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerhynes%2Fspeech-detection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerhynes%2Fspeech-detection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gerhynes","download_url":"https://codeload.github.com/gerhynes/speech-detection/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gerhynes%2Fspeech-detection/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31785677,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"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":["javascript","javascript30"],"created_at":"2024-12-04T09:18:06.623Z","updated_at":"2026-04-14T06:33:16.349Z","avatar_url":"https://github.com/gerhynes.png","language":"CSS","readme":"# Speech Detection\n\nA page to practice speech detection. Built for Wes Bos' [JavaScript 30](https://javascript30.com/) course.\n\n## Notes\n\nLike with the webcam project, this must be run through a server.\n\n`SpeechRecognition` is a global variable that lives in the browser.\n\nYou need to create a new instance of `SpeechRecognition`, set the `interimResults` to `true` (so that it populates the element _while_ you are speaking), and create a parapgraph.\n\nSelect the `words` div and append the child `p`.\n\nAdd an event listener to `speechRecognition` and listen for a `result`.\n\nCall `start` on `speechRecognition`. Now when you speak you should see `SpeechRecognitionEvent` results.\n\nInside the `results` there will be a list, not an array.\n\nNested within this is a `transcript`, `SpeechRecognition`'s `confidence` in its transcription, and an `isFinal` Boolean.\n\nConvert the `results` into an array and `map` over it.\n\nReturn `result[0]` to get the results, then `map` over it again, return `result.transcript` and `join` the pieces.`\n\nIt you stop speaking, the `result` event is over and the event listener will unbind. So add a second event listener to listen for `end` and call `recognition.start` again.\n\nNow set `transcript` as the `textContent` of `p`.\n\nRight now new results will overwrite older results.\n\nCheck if `e.results[0].isFinal`. If it is, create a new `p` and put it inside the `words` div.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgerhynes%2Fspeech-detection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgerhynes%2Fspeech-detection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgerhynes%2Fspeech-detection/lists"}