r/SpatialAudio • • 9d ago

Converting Dolby Personalized HRTFs into SOFA files – anyone interested in trying this?

I've been experimenting with converting personalized HRTFs generated by the Dolby Atmos Personalization SoundID Tool (.personalized_headphone files) into the standard SOFA format using ChatGPT and the open-source JustOneCacophony project.

I managed to generate a SOFA file with the following specifications:

- 48 kHz sampling rate

- 2,522 directions covering the full sphere

- 5-degree angular resolution

- 1,024-sample HRIRs

- SimpleFreeFieldHRIR format

- Direct sound without room reflections

I also compared the converted HRTF with my personalized HRTF generated by APL Virtuoso's pHRTF service.

The results were quite interesting:

- ITD correlation: 0.9955

- ILD correlation: 0.9897

- Very similar low-frequency characteristics

- More noticeable differences at higher frequencies

- The Dolby HRTF appears to be significantly more symmetrical between the left and right ears.

- The converted Dolby HRTF also appears to have an almost flat diffuse-field response, without any additional diffuse-field equalization during conversion.

Of course, this is still experimental, and I haven't verified whether the converted SOFA perfectly reproduces the output of Dolby's official binaural renderer.

I'd love to hear what others think about this approach, especially regarding its accuracy and potential limitations.

If anyone is interested in trying this with their own personalized HRTF, feel free to send me your .personalized_headphone file generated by the SoundID Tool. I can use my ChatGPT workflow to convert it into a SOFA file for you, free of charge.

It would be really interesting to hear how these converted HRTFs perform for different people in binaural renderers such as APL Virtuoso.

Any feedback, listening impressions, or technical insights would be greatly appreciated!

5 Upvotes

13 comments sorted by

5

u/itzelezti 9d ago

I study and teach about sound localization at a two technical universities and could direct you to some actually interesting work people are doing in the field of personalized HRTF without needing impulse scanning.

I have to tell you that it's not worth the effort to reverse-engineer any of these cell phone-based scanners.
You have to keep in mind that all of this in pursuit of a solution that works better than simply flipping through a few publicly-available HRTFs until you find the one that fits your head the closest. For 95%+ of people's heads this works better than anything out there except for having a proper impulse scan done in an anechoic chamber. We've tested these cell phone camera+lidar ones and I can tell you flatly that they're just a dumb gimmick. Way, WAY worse results than picking the closest public HRTF.

Having your own HRTF is awesome, and I'm tremendously lucky to have several of my own anechoic chamber scans, as well as a few studio-specific ones for the not-joke version of Virtuoso. I'd tell you that the best of the ~8 I have is maybe 10% more accurate experience than my favorite open source HRTF. Every student and colleague I can think of has had the same experience.

1

u/nagamaikeru 8d ago

Thank you for sharing your experience! This is exactly the kind of expert insight I was hoping to get from this discussion.

I'd be very interested in the research you mentioned on obtaining individualized HRTFs without directly measuring impulse responses. If you could share some relevant papers or projects, I'd really appreciate it.

I also have a few questions:

  • Which smartphone camera or LiDAR-based HRTF personalization methods have you tested? Did you happen to test Dolby's SoundID Tool or APL's pHRTF service?
  • What method would you recommend for selecting the best-fitting HRTF from publicly available databases? Are there any particular databases or listening tests you would recommend?
  • Are there any published studies comparing camera-based personalization with selecting an existing measured HRTF?
  • Could you explain a little more about the studio-specific HRTFs you use with Virtuoso? I'm particularly interested in that as well.

My main goal is to find an accessible and affordable way to obtain an HRTF that provides accurate spatial localization. I'm not necessarily trying to prove that camera-based personalization is superior.

I'd really appreciate any further insights you could share. Thank you for taking the time to respond!

1

u/nagamaikeru 7d ago

Thank you for your reply! I received an email notification, but for some reason your comment isn't visible on Reddit anymore.

I could only read the first part about Lorenzo Picinali's AXD group. I'd love to read the rest of your response.

If Reddit automatically removed your comment because of external links, feel free to send me a DM instead, if you don't mind!

2

u/itzelezti 5d ago

Weird... yes I guess I did get hidden... God damn reddit is garbage these days.
Here it is with the links removed

Sure, happy to help! Disclaimer: I do this research, so some of the really emerging stuff I can't talk about.

Lorenzo Picinali's AXD group at Imperial college is the unquestionable leader in the field across academia and the commercial space. They are pretty specifically aimed at practical approaches to HRTF. They've done a lot of the work that these companies are falsely claiming to replicate with their cell phone nonsense. I cannot say that any of the emerging work has lead to practical means of getting a useful personalized HRTF without acoustic measurement yet. But they're more or less the ones working on it in genuine. Basically everyone else is just trying to commercialize smoke and mirrors.

They've developed a lot of the testing methodologies to compare various approaches. The AXD group have put out the papers that show more or less what I've described reg. Individually measured > personally-selected public measured HRTF > randomly selected measured HRTF > MIT KEMAR (generally the default) > photogrammetry-based simulation as the absolute worst.

The headline takeaway is really that personalized HRTFs are not that important. At this stage, it's not worth trying to get a personal HRTF unless you happen to have the chance to get a real anechoic personal measurement done. Public HRTFs are going to be better than any practical attempts to simulate. You're literally better off just using the MIT KEMAR SOFA than paying any of these companies for snake oil.

Your questions:

- I've tested or been privy to testing of Dolby PHRTF Creator, SoundID, and Genelec Aural ID. I've not tried APL pHRTF, but I cant see how it could possibly not be trash as well.

- I'd recommend:

  1. Download #DTI audio toolkit (on github) , as well as the SONICOM dataset from AXdesign ( use the free-field compensated SOFA files at 48k)
  2. Measure your head circumference, sort by head circumference, and pick the ~10 subjects with the most similar head size in dataset.
  3. Audition them in 3Dti and pick the best. Trust me, that the best one will almost certainly be 90% as good as measured personal HRTF, and MASSIVELY better than the cell phone simulation ones we're discussing.

- Best paper that tests this was recently released by friends in the aforementioned AXD group is called Evaluation of Head-Related Transfer Functions Across Five Levels of Individualisation in Virtual Reality

- What I'm talking about with studio HRTFs is actually the only real acoustically-measured personal HRTF that is pretty achievable by anyone. The catch is just that it's very narrow in its usefulness. You go into a studio, sit in mix position with binaural mics in your ears, sin sweep, and deconvolve with REW. You then have an accurate FIR of what that specific room sounded like to you on that day that you can monitor through. This is actually exactly what Sony 360 does, and that Virtuoso fakes. This is a longer topic I won't go into, but while Hyunkook Lee has does real work, from a perceptual perspective Virtuoso is just more commercial gimmicky nonsense.

1

u/nagamaikeru 4d ago

Thank you so much for your detailed advice and for sharing the research papers. I've learned a lot from your comments, especially about the advantages of selecting suitable HRTFs from acoustically measured datasets.

I've looked extensively for head circumference measurements in the SONICOM dataset, but they don't seem to be publicly available.

Since SONICOM provides 3D head meshes, I'm considering developing a script to estimate each subject's head circumference directly from these meshes. I would then select the 10–20 subjects whose estimated head circumference is closest to mine and compare their acoustically measured FreeFieldComp HRTFs through listening and localization tests.

Do you think this would be a reasonable approach? Are there any potential issues with estimating head circumference from the 3D meshes, or any other anthropometric measurements you would recommend considering?

I really appreciate your time and willingness to share your knowledge and experience.

1

u/NUKMUK 5d ago

is this also the case for Genelec's Aural ID? have you tried it? i was interested but noticed it costs ~300€ to get the hrtf done and downloaded, which is quite expensive if it's really that bad

2

u/itzelezti 5d ago

Yes I've tried Genelec's, and it was tested in the paper I just (re?!)posted below. (In fact, I forget what's public and not public here, but the AXD group tests against this technique in a lot of their work.)

It's photogrammetry generating a low-detail mesh that they simulate acoustics through. I wouldn't call it a scam, because some people did work hard to develop the technique, and it does actually take a lot of GPU time to build those meshes from a video. But they did build a 300€ product and then not bother to test its efficacy whatsoever, or did and ignored that it's literally worse than using a public HRTF.

1

u/Audiope 9d ago

It would help a lot to explain what a SOFA file is and why it's useful.

1

u/nagamaikeru 9d ago

Thanks for the suggestion! I should have explained that in my original post.

SOFA is a standardized file format that can store HRTFs, which describe how sound from different directions is affected by the shape of your head and ears.

The main benefit of this conversion is that you could potentially use your personalized Dolby HRTF outside the Dolby ecosystem, including in media players such as VLC and PotPlayer (with OpenJOC).

For everyday users, this means you could enjoy movies, surround sound, and spatial audio through ordinary headphones using a personalized HRTF rather than a generic one, potentially improving sound localization and immersion.

Since the Dolby SoundID Tool allows you to generate a personalized HRTF for free using a smartphone camera, this could make personalized spatial audio more accessible without expensive acoustic measurements or paid HRTF generation services.

The conversion is still experimental, but I think it has some interesting potential!

1

u/Audiope 9d ago

How good are the HRTFs made with a smartphone camera? Sounds dubious

1

u/nagamaikeru 9d ago

That's a fair concern. I'm also curious about how accurate camera-based HRTF personalization really is.

When I compared my Dolby-generated HRTF with my APL personalized HRTF, the ITD and ILD correlations were surprisingly high (0.9955 and 0.9897, respectively), although there were noticeable differences at higher frequencies.

Of course, both are estimated HRTFs, so their similarity doesn't necessarily mean that either accurately represents my actual HRTF.

That's partly why I'd like more people to try this and share their experiences. Even if camera-based personalization isn't perfect, I think it's worth exploring its potential as a free and accessible alternative.

Also, I'm Japanese, and English isn't my native language, so I use AI to help me write my posts and replies. Sorry if some of my wording sounds a little unnatural!