Re: [AUDITORY] Hearing Loss simulator for processing audio files (Alexander Brewer )


Subject: Re: [AUDITORY] Hearing Loss simulator for processing audio files
From:    Alexander Brewer  <afb8252@xxxxxxxx>
Date:    Sat, 8 Mar 2025 16:19:38 -0500

--000000000000b4c807062fdb4c63 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable This question has gone around a few times, and 3D Audio Toolkit is usually the answer. I personally used the toolkit for great visual modification of signals in realtime to represent various types of hearing loss and hearing aid treatment. If you're looking for something more programmatic, you can check out Clarity's NALR and Audiogram modules here: https://github.com/claritychallenge/clarity/blob/main/clarity/enhancer/nalr= .py and here: https://github.com/claritychallenge/clarity/blob/main/clarity/utils/audiogr= am.py I used these modules in my own study, but they were a bit tricky to utilize out of the box. If you're looking for implementation details, feel free to take a look at my implementation here: https://github.com/hyve9/samplifi/blob/main/samplifi.py#L475-L499 You can import this in your own project with: from samplifi import apply_audiogram (See here for using as a module: https://github.com/hyve9/samplifi?tab=3Dreadme-ov-file#using-as-a-module) HTH! Regards, Xander On Sat, Mar 8, 2025 at 3:51=E2=80=AFAM Picinali, Lorenzo <l.picinali@xxxxxxxx= al.ac.uk> wrote: > Hello Pragati, > > you can try the 3D Tune-In Toolkit, which implements a non-linear > attenuator (that can be calibrated from an audiogram), frequency smearing > (Baer&Moore) and jitter. It also has a hearing aid simulator, and a > binaural spatialiser. > > Here is a video demonstrating the hearing loss functions > > https://www.youtube.com/watch?v=3DjtEL__hwmq0 > <https://urldefense.proofpoint.com/v2/url?u=3Dhttps-3A__www.youtube.com_w= atch-3Fv-3DjtEL-5F-5Fhwmq0&d=3DDwMFAg&c=3DslrrB7dE8n7gBJbeO0g-IQ&r=3DYmee6o= c4fLxbraODGABabA&m=3DRzUXV55_r9EaKb5_mpwVZGQwcJIrrJHhyIM_Ln8EHkdbFR_HvNt8kx= zzi8a0naTy&s=3DhmObUeGVgw_c2iITmHTqjKRTkjQBgbcn6WYlw8e1dAY&e=3D> > > The Test Application (the one you see in the videos) is available for > MacOS, Windows and Linux at the following link: > > https://github.com/3DTune-In/3dti_AudioToolkit/releases/latest > <https://urldefense.proofpoint.com/v2/url?u=3Dhttps-3A__github.com_3DTune= -2DIn_3dti-5FAudioToolkit_releases_latest&d=3DDwMFAg&c=3DslrrB7dE8n7gBJbeO0= g-IQ&r=3DYmee6oc4fLxbraODGABabA&m=3DRzUXV55_r9EaKb5_mpwVZGQwcJIrrJHhyIM_Ln8= EHkdbFR_HvNt8kxzzi8a0naTy&s=3Dbh900IFuCuGh-g77BvXcqzrdBUiw9lUfKC239249pLg&e= =3D> > > At the link above, you can also download the VST plugin, both for MacOS > and Windows, as well as the Unity wrapper > > Best > Lorenzo > > -- > Lorenzo Picinali > Professor in Spatial Acoustics and Immersive Audio > Dyson School of Design Engineering > Imperial College London > Dyson Building > Imperial College Road > South Kensington, SW7 2DB, London > E: l.picinali@xxxxxxxx > > https://profiles.imperial.ac.uk/l.picinali > <https://urldefense.proofpoint.com/v2/url?u=3Dhttps-3A__profiles.imperial= .ac.uk_l.picinali&d=3DDwMFAg&c=3DslrrB7dE8n7gBJbeO0g-IQ&r=3DYmee6oc4fLxbraO= DGABabA&m=3DRzUXV55_r9EaKb5_mpwVZGQwcJIrrJHhyIM_Ln8EHkdbFR_HvNt8kxzzi8a0naT= y&s=3DD0diX1ZbSU6D6baI21LjbEA15cxK7PBFYhXZj5NlVG8&e=3D> > https://www.axdesign.co.uk/ > <https://urldefense.proofpoint.com/v2/url?u=3Dhttps-3A__www.axdesign.co.u= k_&d=3DDwMFAg&c=3DslrrB7dE8n7gBJbeO0g-IQ&r=3DYmee6oc4fLxbraODGABabA&m=3DRzU= XV55_r9EaKb5_mpwVZGQwcJIrrJHhyIM_Ln8EHkdbFR_HvNt8kxzzi8a0naTy&s=3DWSLlhD1kq= JfjpXeGNZnmGdbscQ3S6CSgVKpEZ6wMHTg&e=3D> > https://www.sonicom.eu/ > <https://urldefense.proofpoint.com/v2/url?u=3Dhttps-3A__www.sonicom.eu_&d= =3DDwMFAg&c=3DslrrB7dE8n7gBJbeO0g-IQ&r=3DYmee6oc4fLxbraODGABabA&m=3DRzUXV55= _r9EaKb5_mpwVZGQwcJIrrJHhyIM_Ln8EHkdbFR_HvNt8kxzzi8a0naTy&s=3DC6vr2AGVPOz9A= sq9uwPrXvXAa07BriJ1xQibvrb7sq8&e=3D> > ------------------------------ > *From:* AUDITORY - Research in Auditory Perception < > AUDITORY@xxxxxxxx> on behalf of Pragati Rao <pragatir@xxxxxxxx> > *Sent:* Friday, March 7, 2025 10:26 PM > *To:* AUDITORY@xxxxxxxx <AUDITORY@xxxxxxxx> > *Subject:* [AUDITORY] Hearing Loss simulator for processing audio files > > Dear Colleagues, > > I am looking for a hearing loss simulator that can simulate the impact of > IHC and OHC loss when a given audiogram is fed and then process audio fil= es > with that information. This is so that a more nuanced impact of various > degrees of hearing loss/shapes of audiogram on specific audio files can b= e > shown instead of using band-pass filtering. If you know of any such > tools or can recommend any articles/labs which have developed these, plea= se > let me know. > > Thanks, > Pragati > > --000000000000b4c807062fdb4c63 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>This question has gone around a few times, and 3D Aud= io Toolkit is usually the answer. I personally used the toolkit for great v= isual modification of signals in realtime to represent various types of hea= ring loss and hearing aid treatment. If you&#39;re looking for something mo= re programmatic, you can check out Clarity&#39;s NALR and Audiogram modules= here: <a href=3D"https://github.com/claritychallenge/clarity/blob/main/cla= rity/enhancer/nalr.py">https://github.com/claritychallenge/clarity/blob/mai= n/clarity/enhancer/nalr.py</a> and here: <a href=3D"https://github.com/clar= itychallenge/clarity/blob/main/clarity/utils/audiogram.py">https://github.c= om/claritychallenge/clarity/blob/main/clarity/utils/audiogram.py</a></div><= div><br></div><div>I used these modules in my own study, but they were a bi= t tricky to utilize out of the box. If you&#39;re looking for implementatio= n details, feel free to take a look at my implementation here:</div><div><a= href=3D"https://github.com/hyve9/samplifi/blob/main/samplifi.py#L475-L499"= >https://github.com/hyve9/samplifi/blob/main/samplifi.py#L475-L499</a></div= ><div><br></div><div>You can import this in your own project with:<br><br><= /div><div>from samplifi import apply_audiogram</div><div><br></div><div>(Se= e here for using as a module: <a href=3D"https://github.com/hyve9/samplifi?= tab=3Dreadme-ov-file#using-as-a-module">https://github.com/hyve9/samplifi?t= ab=3Dreadme-ov-file#using-as-a-module</a>)</div><div><br></div><div>HTH!<br= ><br></div><div>Regards,<br></div><div>Xander</div><div><br></div><div><br>= </div></div><br><div class=3D"gmail_quote gmail_quote_container"><div dir= =3D"ltr" class=3D"gmail_attr">On Sat, Mar 8, 2025 at 3:51=E2=80=AFAM Picina= li, Lorenzo &lt;<a href=3D"mailto:l.picinali@xxxxxxxx">l.picinali@xxxxxxxx= erial.ac.uk</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style= =3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding= -left:1ex"><div class=3D"msg5449869192091079351"> <div dir=3D"ltr"> <div>Hello Pragati,</div> <div><br> </div> <div>you can try the 3D Tune-In Toolkit, which implements a non-linear atte= nuator (that can be calibrated from an audiogram), frequency smearing (Baer= &amp;Moore) and jitter. It also has a hearing aid simulator, and a binaural= spatialiser.</div> <div><br> </div> <div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali= bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"> Here is a video demonstrating the hearing loss functions</div> <div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali= bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"> <br> </div> <div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali= bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"> <a href=3D"https://urldefense.proofpoint.com/v2/url?u=3Dhttps-3A__www.youtu= be.com_watch-3Fv-3DjtEL-5F-5Fhwmq0&amp;d=3DDwMFAg&amp;c=3DslrrB7dE8n7gBJbeO= 0g-IQ&amp;r=3DYmee6oc4fLxbraODGABabA&amp;m=3DRzUXV55_r9EaKb5_mpwVZGQwcJIrrJ= HhyIM_Ln8EHkdbFR_HvNt8kxzzi8a0naTy&amp;s=3DhmObUeGVgw_c2iITmHTqjKRTkjQBgbcn= 6WYlw8e1dAY&amp;e=3D" target=3D"_blank">https://www.youtube.com/watch?v=3Dj= tEL__hwmq0</a></div> <div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali= bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"> <br> </div> <div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali= bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"> The Test Application (the one you see in the videos) is available for MacOS= , Windows and Linux at the following link:</div> <div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali= bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"> <br> </div> <div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali= bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"> <a href=3D"https://urldefense.proofpoint.com/v2/url?u=3Dhttps-3A__github.co= m_3DTune-2DIn_3dti-5FAudioToolkit_releases_latest&amp;d=3DDwMFAg&amp;c=3Dsl= rrB7dE8n7gBJbeO0g-IQ&amp;r=3DYmee6oc4fLxbraODGABabA&amp;m=3DRzUXV55_r9EaKb5= _mpwVZGQwcJIrrJHhyIM_Ln8EHkdbFR_HvNt8kxzzi8a0naTy&amp;s=3Dbh900IFuCuGh-g77B= vXcqzrdBUiw9lUfKC239249pLg&amp;e=3D" target=3D"_blank">https://github.com/3= DTune-In/3dti_AudioToolkit/releases/latest</a></div> <div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali= bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"> <br> </div> <div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali= bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"> At the link above, you can also download the VST plugin, both for MacOS and= Windows, as well as the Unity wrapper</div> <div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali= bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"> <br> </div> <div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali= bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"> Best<br> Lorenzo</div> <div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali= bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"> <br> </div> <div id=3D"m_5449869192091079351Signature"> <div style=3D"font-family:Tahoma;font-size:10pt">--<br> Lorenzo Picinali<br> Professor in Spatial<span style=3D"color:rgb(0,0,0)">=C2=A0Acoustics and Im= mersive Audio</span><br> Dyson School of Design Engineering<br> Imperial College London<br> Dyson Building<br> Imperial College Road<br> South Kensington, SW7 2DB, London<br> E: <a href=3D"mailto:l.picinali@xxxxxxxx" target=3D"_blank">l.picinal= i@xxxxxxxx</a><br> <u><br> </u><span style=3D"color:rgb(0,0,0)"><a href=3D"https://urldefense.proofpoi= nt.com/v2/url?u=3Dhttps-3A__profiles.imperial.ac.uk_l.picinali&amp;d=3DDwMF= Ag&amp;c=3DslrrB7dE8n7gBJbeO0g-IQ&amp;r=3DYmee6oc4fLxbraODGABabA&amp;m=3DRz= UXV55_r9EaKb5_mpwVZGQwcJIrrJHhyIM_Ln8EHkdbFR_HvNt8kxzzi8a0naTy&amp;s=3DD0di= X1ZbSU6D6baI21LjbEA15cxK7PBFYhXZj5NlVG8&amp;e=3D" id=3D"m_54498691920910793= 51OWA0d133cee-5d85-4be0-c40f-e2b9ff35c69b" target=3D"_blank">https://profil= es.imperial.ac.uk/l.picinali</a></span><br> <a href=3D"https://urldefense.proofpoint.com/v2/url?u=3Dhttps-3A__www.axdes= ign.co.uk_&amp;d=3DDwMFAg&amp;c=3DslrrB7dE8n7gBJbeO0g-IQ&amp;r=3DYmee6oc4fL= xbraODGABabA&amp;m=3DRzUXV55_r9EaKb5_mpwVZGQwcJIrrJHhyIM_Ln8EHkdbFR_HvNt8kx= zzi8a0naTy&amp;s=3DWSLlhD1kqJfjpXeGNZnmGdbscQ3S6CSgVKpEZ6wMHTg&amp;e=3D" id= =3D"m_5449869192091079351OWA45523a2e-01d0-82d5-d3c1-0d79b14d9bc4" rel=3D"no= opener noreferrer" target=3D"_blank">https://www.axdesign.co.uk/</a></div> <div style=3D"font-family:Tahoma;font-size:10pt"><a href=3D"https://urldefe= nse.proofpoint.com/v2/url?u=3Dhttps-3A__www.sonicom.eu_&amp;d=3DDwMFAg&amp;= c=3DslrrB7dE8n7gBJbeO0g-IQ&amp;r=3DYmee6oc4fLxbraODGABabA&amp;m=3DRzUXV55_r= 9EaKb5_mpwVZGQwcJIrrJHhyIM_Ln8EHkdbFR_HvNt8kxzzi8a0naTy&amp;s=3DC6vr2AGVPOz= 9Asq9uwPrXvXAa07BriJ1xQibvrb7sq8&amp;e=3D" id=3D"m_5449869192091079351OWA43= 0e25e8-ef50-b48b-76dd-26fd2ba411dd" rel=3D"noopener noreferrer" target=3D"_= blank">https://www.sonicom.eu/</a></div> </div> <div id=3D"m_5449869192091079351appendonsend"></div> <hr style=3D"display:inline-block;width:98%"> <div id=3D"m_5449869192091079351divRplyFwdMsg" dir=3D"ltr"><font face=3D"Ca= libri, sans-serif" style=3D"font-size:11pt" color=3D"#000000"><b>From:</b> = AUDITORY - Research in Auditory Perception &lt;<a href=3D"mailto:AUDITORY@xxxxxxxx= ISTS.MCGILL.CA" target=3D"_blank">AUDITORY@xxxxxxxx</a>&gt; on behal= f of Pragati Rao &lt;<a href=3D"mailto:pragatir@xxxxxxxx" target=3D"_blank= ">pragatir@xxxxxxxx</a>&gt;<br> <b>Sent:</b> Friday, March 7, 2025 10:26 PM<br> <b>To:</b> <a href=3D"mailto:AUDITORY@xxxxxxxx" target=3D"_blank">AU= DITORY@xxxxxxxx</a> &lt;<a href=3D"mailto:AUDITORY@xxxxxxxx" = target=3D"_blank">AUDITORY@xxxxxxxx</a>&gt;<br> <b>Subject:</b> [AUDITORY] Hearing Loss simulator for processing audio file= s</font> <div>=C2=A0</div> </div> <div> <div dir=3D"ltr">Dear Colleagues,=C2=A0 <div><br> </div> <div>I am looking for a hearing loss simulator that can simulate the impact= of IHC and OHC loss when a given audiogram is fed and then process audio f= iles with=C2=A0that information. This is so that a more nuanced impact of v= arious degrees of hearing=C2=A0loss/shapes of audiogram on specific audio files can be shown instead of using band-pa= ss filtering. If you know of any such tools=C2=A0or can recommend any artic= les/labs which have developed these, please let me know.</div> <div><br> </div> <div>Thanks,</div> <div>Pragati</div> <div><br> </div> </div> </div> </div> </div></blockquote></div> --000000000000b4c807062fdb4c63--


This message came from the mail archive
postings/2025/
maintained by:
DAn Ellis <dpwe@ee.columbia.edu>
Electrical Engineering Dept., Columbia University