Hello Guest, Welcome to Apnea Board !
As a guest, you are limited to certain areas of the board and there are some features you can't use.
To post a message, you must create a free account using a valid email address.

or Create an Account


New Posts   Today's Posts

[Feature Request] Flow Rate graph to Audio File?
#1
[Feature Request] Flow Rate graph to Audio File?
Hi all. Thanks for the great work on OSCAR.

After going over many flow rate graphs, I had the idea that being able to HEAR what the graph is showing (even if the audio is computer generated) would make it a lot easier to interpret/compare to your actual experience of sleeping that night.

I'm no developer so I don't know how complicated or easy this would be, but I feel like it would be a valuable feature for anyone who isn't a sleep analysis expert.

Example use case:

I know what my breathing sounds like when I'm awake, but it would be nice to also be able from oscar to hear what it sounds like when I'm asleep. It would help me identify where I'm actually asleep/waking up on the flow rate chart without having to memorize patterns and zoom to incredibly close intervals to tell them apart. Or it would help me understand what the body is doing when I see a big spike upwards/downwards in flow rate, and see if I can remember doing that in the night.

etc

Thoughs?
Post Reply Post Reply
#2
Cool 
RE: [Feature Request] Flow Rate graph to Audio File?
One way to get that would be to use the flow data as an envelope to modulate the volume level of a pseudo-breathing sound (eg pink noise). That could be done in code but (as I only just now discovered), it is more easily/accessibly achievable via the free audio editing app Audacity.

I tried it first using a generated sine wave (1 Hz) modulating a generated pink-noise signal.
However, to achieve your goal...

The rough steps are:
* From your CPAP / OSCAR / flow data app, export the relevant data (eg as CSV)
* Using eg a spreadsheet if needed, ensure the data is in the expected format (only one column, no header-row, no rubbish values, normalised to be in the range -1.0 to +1.0)
* In Audacity...
* File > Import Raw Data) --> a new mono audio track (but don't bother trying to play it).
* In that track's header (at its left side), balance-control adjust it to full-left.
* Generate pink noise (say) to a new track (below it), balance-control adjust that to full-right.
* Combine the two tracks into one stereo track.
* Apply the in-built Vocoder effect.

Vocoder effect lets the left-channel signal (eg flow data) modulate the right-channel signal (eg pink noise)
(it actually multiplies the left and right channels by each other, so really it is egalitarian)
The result (modulated pink noise) appears in both the left and right channels.

YT Tutorial Vidos:
* Vocoder Effect - Quick Demo - https://www.youtube.com/watch?v=Mp5XI_jqDHE
* Vocoder Effect - Documentation - https://manual.audacityteam.org/man/vocoder.html

PS (Geek-Mode):
If you really want to hear beyond/below human hearing range data (eg the modulating flow data by itself) then you'll need to use something like Audacity's Change Speed... Effect (which is like changing speed of a tape recorder or gramophone record)

When I did that for my pulse rate data, it gave a tone (which I guess is the sampling rate) and some scratchy sounds (which I guess is the pulse rate variation). Not useful, just had to be tried!
Post Reply Post Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  [Improv. Req] Standardize File Interface Windows gizmotech 0 359 12-04-2024, 06:33 PM
Last Post: gizmotech
  BMC GII SD Card English Language file phenomejohn 32 6,479 11-14-2024, 02:21 AM
Last Post: Norrie570
  Feature request bernardc 4 370 10-27-2024, 12:47 PM
Last Post: bernardc
  Where to upload zip file for a new model Resmed? stevenospam 18 1,281 10-14-2024, 01:08 PM
Last Post: CaptainDave
  How to open .pdat file BB37 4 842 10-11-2024, 01:14 AM
Last Post: Glen Moray
  Oscar question - flow rate graph not showing kkjacks 9 1,161 09-01-2024, 07:58 PM
Last Post: soyjer
  Wellue Viatom File Import Pogo007 3 492 08-05-2024, 07:11 AM
Last Post: since1984


New Posts   Today's Posts


About Apnea Board

Apnea Board is an educational web site designed to empower Sleep Apnea patients.