Play and pause audio on click of material

To play/pause audio on an object click you can add the Audio extension with the Object type as the trigger Type.

If you want to perform two actions at once, the extensions won’t suit this use case. You’d need to write custom JavaScript code to control the audio playback using the browser API directly, as described in this forum post: 2 action on one click possible? - #21 by jan, and to use the switchView Shapespark API function: GitHub - shapespark/shapespark-viewer-api: JavaScript API for interacting with the Shapespark 3D scene. to switch the view.