Skip to main content

A Lightweight Python API for the AES69-2015 Spatially Oriented Format for Acoustics (SOFA) File Format

Project description

Python License

SOFASonix is an advanced Python API for the Spatially-Oriented Format for Acoustics (SOFA Format) as defined by AES69-2015 -

SOFASonix was initially developed as a supplementary tool for usage alongside an undergraduate project at Southampton University's Institute of Sound and Vibration Research (ISVR). The enhanced and refined version of this is now the official SOFASonix API.


  • Support for the majority of standardised and stable SOFA conventions.
  • Reading/Writing of SOFA Files for each of the supported conventions.
  • Built-in convention-specific validation to ensure correct file format for export!
  • Powered by the lightweight and powerful SQLite3, providing support for different versions of each convention.
  • Simple syntax for quickly generating / reading SOFA files.


SOFASonix can be installed as a PyPI package using

pip install sofasonix

Supported Conventions

The following conventions are currently supported by SOFASonix for reading and writing, as per the SOFAConventions website:

Convention Version SOFAConventionsVersion
GeneralFIR 1.0 1.0
GeneralTF 1.0 1.0
0.5 0.1
SimpleFreeFieldHRIR 1.0 1.0
0.6 0.4
0.5 0.3
GeneralFIRE 1.0 1.0
0.6 0.1
MultiSpeakerBRIR 1.0 0.3
0.6 0.2
0.6 0.1
SimpleHeadphoneIR 1.0 0.2
0.6 0.1
0.5 0.1
SimpleFreeFieldTF 1.0 1.0
0.6 0.4
SimpleFreeFieldSOS 1.0 1.0
SingleRoomDRIR 1.0 0.3
0.5 0.1
MusicalInstrumentDirectivity 1.0 1.0
FreeFieldDirectivityTF 1.0 0.1

Note: While some of these versions are deprecated according to SOFAConventions, they have been included to maintain backwards compatibility for both older SOFA files and older applications that may be using them. It is always recommended to use the latest versions for generating files for storage.


SOFASonix documentation and example usage is available over at the SOFASonix Wiki page.


SOFASonix supports templates for each convention for easily creating SOFA files. These templates are autogenerated with the provided TemplateGenerator. The TemplateGenerator may be used to create python templates for any convention (and version combinations) supported by SOFASonix. To learn more, refer to the SOFASonix WIKI page.


You may contribute any improvements and fixes via regular pull-requests. These will be reviewed as per standard procedure before integration.


SOFASonix is licensed under BSD-3 - see the file for details. Alternatively you may visit


I.G Laghidze (Founder) -

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

SOFASonix-1.0.7.tar.gz (36.3 kB view hashes)

Uploaded source

Built Distribution

SOFASonix-1.0.7-py3-none-any.whl (37.9 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page