Apply different audio music on different space

Hi, may I’m know currently shapespark able to apply different audio music at different space ? Meaning that when i’m at the living area is playing music A and I’m walk through to master bedroom then it will play another audio music B.

The user can play different audio files with triggers, but it requires a user to click such a trigger, it won’t happen automatically when a room is entered.

These are interesting ideas with changing the intensity of sound in space.
I think it would be welcome in some scenes.

https://threejs.org/examples/#webaudio_orientation

1 Like

do you have examples. how can we do @Vladan

I saw this post, our team also is struggling how to apply different audio at different scene, do we have a script to do this, this very helpful cause we are doing acoustic simulation.

If you want a different Audio extensions to play in different parts of your scene, try using the Camera volume trigger type. Such a trigger allows you to activate/deactivate an extension when the camera enters/exits a certain volume (box) in the scene.

1 Like

can possible able to apply different audio music at different scene? for example when click 1 scene the 1st audio will automatically play and when you switch to the 2 scene the 2nd audio will play automatically and stop the 1st audio.

Are these views in different, ideally disjoint, parts of your scene. If so, the Camera volume trigger type could work well for this use case. You’d need to set up Audio extensions for the views with camera volume triggers corresponding to the views. Then, switching the camera from view A to view B would cause the camera exit the volume for view A’s audio extension, deactivating audio A, and enter the volume for view B’s audio extensions, activating audio B.

1 Like

no, all view located in one close room(small room 20sqm), the image above is reference

Problem occurs, camera volume trigger crushed when try to set this the trigger in different areas please refer to the detail below

It looks like the editor crashed. Please make a screenshot and report tosupport@shapespark.comwith steps you took just before the crash happened.

TypeError: Cannot create proxy with a non-object as target or handler at xq.createItemUpdater (http://127.0.0.1:5000/assets/built/editor.js:115:137847) at n.value (http://127.0.0.1:5000/assets/built/editor.js:91:522647) at Jr (http://127.0.0.1:5000/assets/built/editor.js:19:70035) at Hr (http://127.0.0.1:5000/assets/built/editor.js:19:69831) at va (http://127.0.0.1:5000/assets/built/editor.js:19:105372) at ws (http://127.0.0.1:5000/assets/built/editor.js:19:96854) at ys (http://127.0.0.1:5000/assets/built/editor.js:19:96779) at Cs (http://127.0.0.1:5000/assets/built/editor.js:19:93812) at http://127.0.0.1:5000/assets/built/editor.js:19:45513 at e.unstable_runWithPriority (http://127.0.0.1:5000/assets/built/editor.js:60:3844) in n in div in n in div in div in div in div in i in i in div in div in div in PanelContent in n in CSSMotion in div in n in Unknown in div in n in Unknown in article in DE in bT in div in RE in vT in div in div in ForwardRef in div in ForwardRef in div in ForwardRef in i in div in ForwardRef in div in pO in div in i in Connect(i) in K

If you have experience with JavaScript, you can try using out viewer API, in particular the onViewSwitchStarted/onViewSwitchDone callbacks, combined with own <audio> elements to play different audio tracks in different views.