TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Help 466M people with hearing loss in 16LOC JavaScript

3 pointsby neon_mealmost 5 years ago
Lately, quite interesting hearing aid app pops in App store - it was Chatable app (chatableapps.com) which clears background noise from mic and plays it back via headphones. Which should help people with hearing loss. As a bone-conduction headphones developer I liked the concept and what surprises me the most is that current desktop&#x2F;mobile browsers support echoCancellation and noiseSuppression - so the idea is very very simple ...<p><pre><code> navigator.mediaDevices .getUserMedia({ video: false, audio: { echoCancellation: true, noiseSuppression: true, autoGainControl: false, }, }) .then((stream) =&gt; { var aCtx = new (window.AudioContext || window.webkitAudioContext)(); var analyser = aCtx.createAnalyser(); var microphone = aCtx.createMediaStreamSource(stream); microphone.connect(analyser); analyser.connect(aCtx.destination); }) .catch((e) =&gt; alert(e.name + &#x27;: &#x27; + e.message)); </code></pre> To make it more viable - here is the PWA - https:&#x2F;&#x2F;sentienhq.com&#x2F;hearplus&#x2F; - which runs offline (after &quot;add to homescreen&quot;) but i was not able to test it on different phones - sorry<p>full pwa src: https:&#x2F;&#x2F;github.com&#x2F;sentienhq&#x2F;Hearing-Aid

no comments

no comments