02-07-2020, 12:54 PM
Unfortunately, recording raw microphone data is not well supported in phyphox. You might have noticed that our "Audio oscilloscope" is limited to 500ms. This is because phyphox internally treats all data the same, meaning it converts everything to double precision floating point numbers. This format is great for precise calculations and for accelerometer data at up to 500 Hz, but for audio data at 48.000 Hz, this is quite excessive and inefficient. Regular "audio recorder" apps use 16bit integer format (or similar) instead, which only takes up 2 bytes per sample, while phyphox wastes 8 bytes. This alone would not be much of a problem, but phyphox also keeps everything in memory and organizes data in a way that allows for efficient and interactive plotting. In other words, phyphox tries to allow you to zoom into any data at any time, which is something you will not find in an audio recorder app - if such app even shows the waveform, you will notice that it usually does not allow zooming and simply creates the waveform by only recreating the newest data.
All this means, that phyphox is rather bad at handling longer audio recordings. It might work fine for 10 seconds or maybe a minute, but a minute of audio data in phyphox already means roughly 3 million data points that are treated just like any data (and possibly be exported in a massive Excel sheet).
With this being said, the answer is in fact that it is already possible to record the microphone and acceleration at the same time (for example by using our editor at https://phyphox.org/editor), but you will most likely run out of memory, having trouble to plot the data and/or not being able to export your data.
Can you tell us what you want to do? Maybe this works for you as you only need short periods or maybe we can find a different approach that minimized the data that is actually stored.
All this means, that phyphox is rather bad at handling longer audio recordings. It might work fine for 10 seconds or maybe a minute, but a minute of audio data in phyphox already means roughly 3 million data points that are treated just like any data (and possibly be exported in a massive Excel sheet).
With this being said, the answer is in fact that it is already possible to record the microphone and acceleration at the same time (for example by using our editor at https://phyphox.org/editor), but you will most likely run out of memory, having trouble to plot the data and/or not being able to export your data.
Can you tell us what you want to do? Maybe this works for you as you only need short periods or maybe we can find a different approach that minimized the data that is actually stored.