[SOLVED] Add sound to the character


#1

Hello guys! Can anybody help me with adding sounds. I have an avatar and i need to attach the sound so when animation plays (currently avatar talking). How do I do that? thank you


#2

You just need to use the sound component:

https://developer.playcanvas.com/en/user-manual/packs/components/sound/

And potentially the audiolistener component (if you want positional audio):

https://developer.playcanvas.com/en/user-manual/packs/components/audiolistener/


#3

thank you for the response