How to get an MP3 bit rate in SWIFT
<p>I am searching for a way of getting an mp3 bitrate like <code>128kbps</code> or <code>320kbps</code> for mp3 audio from url link.</p>

<p>I have a <code>UITableView</code> that loads a list of files from url list, and I would like to display an audio quality.
I have tried using <code>AVAudioPlayer</code> and <code>AVPlayer</code> but no luck.
Please help, how can I achieve this? </p>

<pre><code> do{
       let audioPlayer = try AVAudioPlayer(contentsOf:audioURL)
       print(audioPlayer.settings)
       if #available(iOS 10.0, *) {
                print(audioPlayer.format)
            } else {
                // Fallback on earlier versions
            }
        }catch {
            print("Error getting the audio file")
        }
</code></pre>