{"id":7467,"date":"2025-10-20T22:15:38","date_gmt":"2025-10-21T03:15:38","guid":{"rendered":"https:\/\/frontendmasters.com\/blog\/?p=7467"},"modified":"2025-10-20T22:15:40","modified_gmt":"2025-10-21T03:15:40","slug":"browser-speech-input-output-buttons","status":"publish","type":"post","link":"https:\/\/frontendmasters.com\/blog\/browser-speech-input-output-buttons\/","title":{"rendered":"Browser Speech Input &amp; Output Buttons"},"content":{"rendered":"\n<p>All sorts of inputs have little microphone buttons within them that you can press to talk instead of type. Honestly, I worry my daughter will never learn to type because of them. But I get it from a UX perspective, it&#8217;s convenient. We can put those in our web apps, too. <a href=\"https:\/\/blog.pamelafox.org\/2024\/12\/add-browser-speech-inputoutput-to-your.html\">Pamela Fox has an article about all this.<\/a><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>There are two approaches we can use to add speech capabilites to our apps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Use the built-in browser APIs<\/strong>: the\u00a0<a href=\"https:\/\/developer.mozilla.org\/docs\/Web\/API\/SpeechRecognition\" target=\"_blank\" rel=\"noreferrer noopener\">SpeechRecognition API<\/a>\u00a0and\u00a0<a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/SpeechSynthesis\" target=\"_blank\" rel=\"noreferrer noopener\">SpeechSynthesis API<\/a>.<\/li>\n\n\n\n<li><strong>Use a cloud-based service<\/strong>, like the\u00a0<a href=\"https:\/\/learn.microsoft.com\/azure\/ai-services\/speech-service\/\" target=\"_blank\" rel=\"noreferrer noopener\">Azure Speech API<\/a>.<\/li>\n<\/ol>\n\n\n\n<p>Which one to use? The great thing about the browser APIs is that they&#8217;re free and available in most modern browsers and operating systems. The drawback of the APIs is that they&#8217;re often not as powerful and flexible as cloud-based services, and the speech output often sounds much more robotic.<\/p>\n<\/blockquote>\n\n\n\n<p>I like that she whipped it up into a Web Component.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>All sorts of inputs have little microphone buttons within them that you can press to talk instead of type. Honestly, I worry my daughter will never learn to type because of them. But I get it from a UX perspective, it&#8217;s convenient. We can put those in our web apps, too. Pamela Fox has an [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":7468,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"sig_custom_text":"","sig_image_type":"featured-image","sig_custom_image":0,"sig_is_disabled":false,"inline_featured_image":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[29],"tags":[3,412,413],"class_list":["post-7467","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-the-beat","tag-javascript","tag-speechrecognition","tag-speechsythesis"],"acf":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/frontendmasters.com\/blog\/wp-content\/uploads\/2025\/10\/cHJpdmF0ZS9zdGF0aWMvaW1hZ2Uvd2Vic2l0ZS8yMDIyLTA0L2xyL3B4NzQzNTUwLWltYWdlLWt3dnhodGdsLmpwZw.webp?fit=1024%2C683&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts\/7467","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/comments?post=7467"}],"version-history":[{"count":1,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts\/7467\/revisions"}],"predecessor-version":[{"id":7469,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts\/7467\/revisions\/7469"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/media\/7468"}],"wp:attachment":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/media?parent=7467"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/categories?post=7467"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/tags?post=7467"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}