How to attach sound to an object?

I’m trying to get soundtracks attached to objects on the stage of my levels while they exist. It’s basically as if the monsters in Ghosts vs Monsters made noises while the are still in the scene. I’m using media.playSound( “audio/monster01.mp3” , true) but don’t know where it would go so that it shuts down once the monster has been destroyed. [import]uid: 14032 topic_id: 8733 reply_id: 308733[/import]

I’m using this to pull in the monsters from a separate module:

[applescript]
for key,data in pairs(leveldata.monsters) do

local obj =sprite.newSpriteSheetFromData( data.src, require(data.page).getSpriteSheetData() )

local spriteSet = sprite.newSpriteSet(obj,1,data.frames)

sprite.add(spriteSet,data.sprites,1,data.frames,1000,0)
local obj = sprite.newSprite(spriteSet)
obj:play()
obj.x = data.x
obj.y = data.y
obj.myName = data.myName
physics.addBody(obj, data.bodyType, {density=properties[data.density], bounce=data.bounce, friction = data.friction, shape=properties[data.shape]})
levelGroup:insert(obj)

if(obj.myName==“monster”) then

obj.isHit=false
obj.postCollision = onMonsterPostCollision
obj:addEventListener(“postCollision”,obj)

monsterCount = monsterCount + 1

end[/applescript]

It brings in something like this (there are a few different monsters):

[applescript]
leveldata.monsters =
{

monster01 =
{
id = “monster01”,
src = “animations/monster-01.png”,
page = “animations/monster-01”,
sprites = “monster-01”,
frames = 29,
x = 718,
y = 98,
myName = “monster”,
bodyType = “dynamic”,
density = “monsterDensity”,
bounce=0,
friction=0.5,
shape=“monsterShape”
},
}[/applescript]

Could I stick a media.playSound( “audio/Monster01.mp3” , true) in there somewhere? [import]uid: 14032 topic_id: 8733 reply_id: 31825[/import]