This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Microphone measurements together with other sensors
#2
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.
Reply


Messages In This Thread
RE: Microphone measurements together with other sensors - by Sebastian Staacks - 02-07-2020, 12:54 PM

Forum Jump: