Bitrate mode metadata not available from script

I would like to know whether a given audio file is encoded in MP3 with constant bit rate (CBR) or variable bit rate (VBR), but I can't find any column that provides this information when using the AudioMeta object to access a file's audio metadata. However, when the column mp3bitrate is shown in a Lister, there is a hint indicating that VBR was used:

Ex. CBR: 320 kbps
Ex. VBR: ~ 228 kbps

Am I missing something?

Use Item.metadata.audio_text rather than Item.metadata.audio. Then you can simply check the first character of the mp3bitrate string to see if it starts with ~.

Ok, I hadn't noticed that audio_text is also an AudioMeta object. I'll do as you say.

Thank you.