# Listen to audio packets

**URL:** <https://community.wowza.com/t/listen-to-audio-packets/35268>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [March 24, 2014, 6:49am UTC](https://community.wowza.com/t/listen-to-audio-packets/35268 "2014-03-24T06:49:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jon\_Achai](https://avatars.discourse-cdn.com/v4/letter/j/f0a364/32.png) [@Jon\_Achai](https://community.wowza.com/u/Jon_Achai)\
**Post date:** [March 24, 2014, 6:49am UTC](https://community.wowza.com/t/listen-to-audio-packets/35268/1 "2014-03-24T06:49:33Z")

</div>

Hi,

I would like to be able to put a listener on audio packets similar on how I can do so with h264 video packets with:

IMediaStreamH264SEINotify.onVideoH264Packet

Is this possible?

If so how?

Thanks,

Jonathan

---

<div class="post-metadata">

**Author:** ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)\
**Post date:** [April 3, 2014, 6:13am UTC](https://community.wowza.com/t/listen-to-audio-packets/35268/2 "2014-04-03T06:13:34Z")

</div>

Hello Jonathan,

In version 4, You could try IMediaStreamLivePacketNotify and check to see if its an audio packet:

```auto
	public void onLivePacket(IMediaStream stream, AMFPacket packet)
	{
		// TODO Auto-generated method stub
		if(packet.isAudio()){
			getLogger().info(" **** Audio packet...");
		}
		
	}

```

You can invoke this via onStreamCreate.

Thanks,

Matt
