Amplitude array from wav file

How do I get an array of amplitude values ​​from a wav file?

A second of casual googling turned up this:

No documentation and examples :frowning: