I've seen plenty of examples on how to drive motion of objects in Blender with audio, but I'm trying to do the opposite - drive audio properties based on the motion of objects.
More specifically, I'd like to tie the volume of an audio file to the rate of motion of an object in Blender (length of the displacement vector?) so that it adjusts "automatically".
So if the object is stationary the audio is quiet (or silent). As the object speeds up the volume of the audio would increase in tandem (to some limit of course), and as it slows down the volume would decrease again.
If this is possible, can it also be used to control playback rate as well to affect the pitch of the audio?
Note that, despite my previous question, I am definitely not trying to achieve a Doppler effect here (which would depend on rate of approach/retreat from the viewer).
Thanks!

I probably should have mentioned that at my current level of experience the main problem is that I'm not really sure how to start approaching the problem.
– adlaws Sep 15 '20 at 06:29