How to export waveform into a file

I’m working on a small AI project, and I wonder if it’s possible to export the waveform preview as a .csv or text file, sort of like the export function of the plot spectrum feature. If not, is there any software that can? I’m using the most recent version of Audacity.

[u]Sample Data Export[/u].

But beware, you can end-up with a HUGE file!