# HLA for Audio waveform please

**URL:** <https://discuss.saleae.com/t/hla-for-audio-waveform-please/2765>\
**Category:** Uncategorized\
**Created:** [March 4, 2024, 10:57pm UTC](https://discuss.saleae.com/t/hla-for-audio-waveform-please/2765 "2024-03-04T22:57:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![janny-bb](https://avatars.discourse-cdn.com/v4/letter/j/e9c0ed/32.png) [@janny-bb](https://discuss.saleae.com/u/janny-bb)\
**Post date:** [March 4, 2024, 10:57pm UTC](https://discuss.saleae.com/t/hla-for-audio-waveform-please/2765/1 "2024-03-04T22:57:42Z")

</div>

would be super if we could plot data like an audio-waveform within a HLA

really missing the ability to take I2S to a visual form like you had in the old xmos development tools  
this would obviously also suggest being able to listen back to it

related question:

- is it possible to stream the captured i2s data via a socket on the same machine to say another python process that would pipe it to coeraudio/portaudio and such…!?

---

<div class="post-metadata">

**Author:** ![timreyes](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.saleae.com/timreyes/32/108_2.png) [@timreyes](https://discuss.saleae.com/u/timreyes)\
**Post date:** [March 6, 2024, 12:26am UTC](https://discuss.saleae.com/t/hla-for-audio-waveform-please/2765/2 "2024-03-06T00:26:56Z")

</div>

@janny-bb Thanks for the request. I added a comment for you in the idea post we are tracking for this feature below.

> [@Create HLA to plot analog graphs](https://discuss.saleae.com/t/create-hla-to-plot-analog-graphs/1539):
>
> Hi, I’d like to create a custom extension+hla to convert data from say an UART or I2C log to something that is visualised the same way as the analog channels would do. I might have missed this in the docs, but if it doesn’t exist, I’d really like to see this feature: HLA option to show as analog waveform simple config to define the scale etc bonus being able to inject markers on the fly thanks david

Having said that, we’re also tracking a separate feature request for providing the ability to implement custom export options like below.

> **[Custom Export Options via Extensions - Logic 2 - Ideas and Feature Requests -...](https://ideas.saleae.com/b/feature-requests/custom-export-options-via-extensions/)**
>
> Allow custom capture export options for custom protocol analyzer exports.
> 
> This was supported in Logic 1.x, but somehow disappeared in Logic 2.x.

You can export your I2S data after a capture is complete via exporting the analyzer results manually, or via using our Automation API. I’ve provided some links below.

> **[Exporting Data](https://support.saleae.com/user-guide/using-logic/exporting-data)**

[https://saleae.github.io/logic2-automation/](https://saleae.github.io/logic2-automation/)

As an alternative option, you could write to an external file from within a Python HLA that sits on top of the I2S analyzer. This is not something we’ve tested nor have examples to share, but some details of a potential implementation can be found below:

> [@Continuous saving of analyzer data while measuring?](https://discuss.saleae.com/t/continuous-saving-of-analyzer-data-while-measuring/928/4):
>
> @P.Jaquiery You could potentially write to an external file from within your Python HLA source. Since HLAs are running in real time during captures, then this could theoretically be possible. We don’t have any examples to share, nor have I tested it, but you bring up a good point. Let me double check with the software team.

---

<div class="post-metadata">

**Author:** ![chriskeeser](https://avatars.discourse-cdn.com/v4/letter/c/848f3c/32.png) [@chriskeeser](https://discuss.saleae.com/u/chriskeeser)\
**Post date:** [April 9, 2024, 5:47pm UTC](https://discuss.saleae.com/t/hla-for-audio-waveform-please/2765/3 "2024-04-09T17:47:58Z")

</div>

This TDM / I2S analyzer allows you to export the data as a .wav file:

> **[GitHub - bitswype/saleae\_tdm\_analyer: TDM analyzer for Saleae logic 2](https://github.com/bitswype/saleae_tdm_analyer)**
>
> TDM analyzer for Saleae logic 2. Contribute to bitswype/saleae\_tdm\_analyer development by creating an account on GitHub.

Not exactly what you are asking for, but it does get you some of the way there.
