Voice PE - accessing raw sound in/out

I’ve experimented with voice assistant and feel like it would be very useful to be able to access the raw audio that is being received or sent to the device (voice PE or otherwise). This would probably help a lot in understanding why some phrases are not understood, since I suspect that some of the issues are to do with audio such as echos.

Is there an easy way to achieve this? Have I missed something obvious?

Not sure if this would help you but you can use Developer Tools > Assist to enter the phrase that you’re using to get an idea of how it would be parsed.

I’d also love to get the sent raw data mid stream as the audiophile in me has some ideas on how to make it sound better, but that’s off topic.

Take a look at @wmaker’s post here - does this show what you’re after?
Log of commands carried out by Voice PE and others - Configuration / Voice Assistant - Home Assistant Community