Read (decode) and process an aac stream with python
<p>I have an Axis camera that provides an audio stream that is aac encoded. I would like to find a possibility to decode that stream in Python to further process the raw audio data. Does anybody have suggestions how that could be done?</p>

<p>Thanks!</p>

<p>You can use <a href="https://github.com/jiaaro/pydub" rel="nofollow">pydub</a> to convert an <code>aac</code> audio to datasegment and then process it further.</p>

<pre><code>from pydub import AudioSegment
from pydub.playback import play

#convert audio to datasegment
sound = AudioSegment.from_file("your/path/to/audio.aiff", "aac") 
play(sound)  #play sound
</code></pre>

<p>Lots of other data manipulation using <code>pydub</code> is available <a href="https://github.com/jiaaro/pydub" rel="nofollow">here</a> </p>

python audio decode aac