Acoustic Ray Tracing for Unity does not make any sound
I should have done everything I should do, but my test project does not make any sound with Acoustic Ray Tracing of Meta XR Audio SDK. What are the likely solutions? The project makes sounds normally when I disable Acoustic Ray Tracing. My environment - Windows 11 - Unity 2022.3.36f1 - Visual Studio 2022 - My Unity project is a simple non-XR 3D maze What I did: (1) Installed Meta XR Audio SDK Plugin for Unity tarball into my Unity project, following "Method 2: Download via the Meta Quest Developer Center" in [1]. (2) Set up my Unity project to enable Meta XR Audio SDK, following "Unity Project Setup" in [1]. The project settings is [2]. (3) The sounds are imported into Unity by forcing them to mono [3]. (4) Enable spatialization on my AudioSource components as per "Implementation" in [4]. The resulting setting is [5]. Attached the script MetaXRAudioSource.cs to the Audio Source’s GameObject. The optional MetaXRAudioSourceExperimentalFeatures.cs is not attached. (5) Attached the sample SpatializerMixer, which is included in Meta XR Audio SDK, to the output of AudioSource components, following "Setup the Audio Mixer" in [6]. The resulting setting is [5]. (6) Added Acoustic Geometry as per [7]. Specifically, attached an MetaXRAcousticGeometry component to the parent GameObject that have various geometries like walls, floor, and ceiling as its children. "Include Child Meshes" is enabled. The resulting setting is [8]. Then baked the acoustic geometry. The baked data is generated in the file StreamingAssets/Acoustics/<scene name>/<parent GameObject name>.xrageo. (7) Added a new GameObject and attached the MetaXRAcousticMap component to it, as per [9]. The resulting setting is [10]. Then baked the acoustic map. The Unity Editor's Inspector shows the acoustic map as READY. The baked data is generated in the file StreamingAssets/Acoustics/<scene name>.xramap. (8) Played the scene in the Unity Editor, but I can hear no sound from spatialized audio. On the other hand, non-spatialized audio make sounds. However, the Unity console shows that the acoustic geometry and map are loaded successfully as follows: Found data in default location: StreamingAssets/Acoustics/Level 1.xramap ... Applying Acoustic Propagation Settings: [acoustic model = Automatic], [diffraction = True], ... Setting spatial voice limit: 64 ... Loading Geometry Maze1 from StreamingAssets C:/Unity/projects/amaze3d/Assets/StreamingAssets/Acoustics\Level 1\Maze1.xrageo ... No Meta XR Audio Room found, setting default room ... Fallback handler could not load library C:/Program Files/Unity/Hub/Editor/2022.3.36f1/Editor/Data/MonoBleedingEdge/lib/MetaXRAudioWwise ... Fallback handler could not load library C:/Program Files/Unity/Hub/Editor/2022.3.36f1/Editor/Data/MonoBleedingEdge/lib/libMetaXRAudioFMOD Meta XR Audio Native Interface initialized with Unity plugin ... Geometry Maze1, read time = 0.02320397 ... Sucessfully loaded Geometry Maze1, load time = 0.06603026 ... Simplified mesh with 3563 vertices ... References [1] Meta XR Audio SDK Plugin for Unity - Requirements and Setup https://developer.oculus.com/documentation/unity/meta-xr-audio-sdk-unity-req-setup/ [2] ProjectSettings/AudioManager.asset ... m_Volume: 1 Rolloff Scale: 1 Doppler Factor: 1 Default Speaker Mode: 2 m_SampleRate: 0 m_DSPBufferSize: 256 m_VirtualVoiceCount: 512 m_RealVoiceCount: 32 m_EnableOutputSuspension: 1 m_SpatializerPlugin: Meta XR Audio m_AmbisonicDecoderPlugin: Meta XR Audio m_DisableAudio: 0 m_VirtualizeEffects: 1 m_RequestedDSPBufferSize: 256 [3] <sound file name>.mp3.meta ... forceToMono: 1 ... ambisonic: 0 3D: 1 ... [4] Apply Spatialization in Unity https://developer.oculus.com/documentation/unity/meta-xr-audio-sdk-unity-spatialize/ [5] FPSController.prefab ... --- !u!82 &8200000 AudioSource: ... m_Enabled: 1 serializedVersion: 4 m_PlayOnAwake: 1 m_Volume: 1 m_Pitch: 1 Loop: 0 Mute: 0 Spatialize: 1 SpatializePostEffects: 0 Priority: 128 DopplerLevel: 0 MinDistance: 1 MaxDistance: 100 Pan2D: 0 rolloffMode: 2 BypassEffects: 0 BypassListenerEffects: 0 BypassReverbZones: 0 ... --- !u!114 &8500000 MonoBehaviour: ... m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: a07f270ac36c49789466c75ceb88424c, type: 3} ... enableSpatialization: 1 gainBoostDb: 10 enableAcoustics: 1 reverbSendDb: 0 [6] Apply Room Acoustics in Unity https://developer.oculus.com/documentation/unity/meta-xr-audio-sdk-unity-room-acoustics/ [7] Acoustic Geometry in Acoustic Ray Tracing for Unity https://developer.oculus.com/documentation/unity/meta-xr-acoustic-ray-tracing-unity-geometry/ [8] Level1.unity ... --- !u!114 &2007814857 MonoBehaviour: ... m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 46bc5ac24d7ec0348bb607bf4ed1f00d, type: 3} ... IncludeChildMeshes: 1 relativeFilePath: StreamingAssets/Acoustics/Level 1/Maze1.xrageo [9] Acoustic Maps in Acoustic Ray Tracing for Unity https://developer.oculus.com/documentation/unity/meta-xr-acoustic-ray-tracing-unity-map/ [10] Level1.unity ... --- !u!1 &2008814857 GameObject: m_ObjectHideFlags: 0 ... m_Component: - component: {fileID: 2008814859} - component: {fileID: 2008814858} m_Layer: 0 m_Name: Test Acoustic Map m_TagString: Untagged ... m_StaticEditorFlags: 0 m_IsActive: 1 --- !u!4 &2008814859 Transform: m_ObjectHideFlags: 0 ... m_GameObject: {fileID: 2008814857} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!114 &2008814858 MonoBehaviour: m_ObjectHideFlags: 0 ... m_GameObject: {fileID: 2008814857} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: a96b764f28a53ab488bd80d19c0c167a, type: 3} ...1.8KViews0likes12CommentsAcoustics on device with Meta Audio SDK
Has anybody gotten acoustics to work with the latest Meta Audio SDK (v56.0) on device? I've followed the configuration guide carefully and things work on Windows in the editor, but in a build on Quest 2 or Quest pro, the reverb produces a crackling sound (just the reverb, not the spatialization). I've played with all kinds of setting, tuning gain, volume, room properties etc. and nothing seems to help. Any help/pointers are appreciated.1.6KViews0likes2CommentsQuest 3 PCVR with audio out to speaker array?
I'm looking at building a PCVR app for Quest 3 that outputs the app's audio to an array of 8 speakers. Does anyone know if this is possible? And if so, what options do I have to set it up? I'm looking to have the audio play such that it doesn't change as the user's head turns (so not spatial audio like in headset), but the audio is created from a certain speaker as if it actually occurred in that speaker's physical location.424Views0likes1CommentExtremely slow performance from "GetSpectrumData" of an AudioSource on Quest3 (likely 2 as well)
I'm developing a music visualizer and have been seeing some odd behavior when accessing the spectrum data from a playing audio source on a Quest3. As a test, I have some cubes reacting to each of the audio bands coming in from GetSpectrumData (in this case, 512). In the unity editor on PC it works great and matches the framerate perfectly. On-Device though, the application seems to be running at a smooth 90hz, however the spectrum data is only updating at what looks like 5-10hz, possibly less. I have manually set the audio sample rate of the application to 48000hz but that doesn't seem to help. Has anyone else run into this or have any advice on what I can try to address this issue? EDIT: Doubling the rate to 96000hz helps a bit but it's still choppier than i'd like, and i'm a little worried that the onboard DSP isn't going to be too happy running running at that rate for a long time. EDIT2: I set the application's framerate to 120hz as a test and i am seeing the same results. The application is running at a locked and incredibly smooth 120hz (verified with graphy) while the audio data is refreshing only a handful of times per second. 96000hz appears to be the highest that unity will let me set (fmod starts to complain if you go higher) and while that is.....fine.....it's still nowhere near as smooth as it is when running in the editor. So, this doesn't appear to be a performance limitation since the app is staying at 120hz, but a limitation somewhere else. I'm open to any suggestions that anyone has.698Views1like0Commentsv56 Firmware = Garbled Mic Audio
App records microphone input and sends it to a Speech To Text service. On the v55 Firmware this works fine with no issues. On headsets with the v56 Firmware, the microphone now provides nothing but garbled input (rushed and chopped up). I'm using the OVR Meta SDK and Vivox. Vivox is recording fine. Removing Vivox from the app still results in garbled input. Has anyone run into this? I can't imagine I'm the only one affected.Solved1.4KViews0likes1CommentUnity: Oculus Spatializer still appears under settings after dll files have been deleted
Recently I have imported the new Meta XR Audio plugin into my project to use as the spatializer and tried to delete the old legacy Oculus Spatializer however Oculus Spatializer still appears under Project Settings > Audio > Spatializer Plugin after dll files have been deleted. Nothing is in the project that should be linked to it so I am confused as to why it is still showing.880Views0likes0CommentsVoiceMod in Quest 2
I have questions about using VoiceMod for the current Oculus Integration V50. I'm using Quest 2 and after downloading the Unity Package from the Unity Assets Store, I couldn't see the VoiceMod package included in the current release. The last version I could find information about it in the "OVRVoiceMod for Unity Integration Guide, Version 1.0.0". I think the DLL is not working properly for Quest 2. Does anyone know if exists a DLL compatible with Quest 2? Or an alternative? Thanks! Have a nice day!1.3KViews1like0CommentsIncorrect Ambisonic Audio Playback
(Using Unity 2019.3.0b11) Testing in my own scenes as well as the included yellow ball test scene the Oculus Spatializer will not treat ambisonic audio properly. No matter what I do it positions the audio at the source and spatializes it as any other mono sound source would behave. Even when placing my head in the middle of the source object and turning around there is no directional imaging apparent. I swapped in google resonance audio briefly and the ambisonics played back as expected. However there are other problems with resonance audio that push me to stay with the Oculus Spatializer instead. Is anyone successfully using the ONSP Ambisonics Native?1.2KViews0likes1CommentOculus Quest 2 Control EQ Sliders in Game
Hi everyone, Myself and one other person are developing an immersive music application for the Quest 2 using Unity and have run into an interesting problem. Currently we are building in Unity 2019.17.4 We have a canvas and set of sliders linked to EQ parameters on our master mixer (the idea is for people to be able to EQ the music within the environment). The problem we are running into is that when we test the application in play mode on PC we are able to hear the effects of the sliders and EQ. When the application is built as an apk and put on the Quest 2 you can barely hear any change in signal processing, almost as if it isn't working. This includes using the speakers built into the Quest 2 and when using headphones. I'm open to any suggestions if anyone has an idea of why it would not be working. Thanks everyone!971Views0likes0CommentsRecord audio from microphone - issues accessing microphone in Oculus Quest
Hi! I am trying to record audio from the Quest's microphone, save that audio, and then play it back at a later time in the game. That being said, I'm having issues accessing audio from the Quest's microphone. I've looked at this discussion which suggests looking at the OVRLipSyncMicInput script from Oculus SDK. I've tried that and got a version working in Unity that records audio and plays it back right away, but once I load it onto my Oculus Quest I get issues. The issue in the Quest seems to be that the Android microphone seems to be turning on automatically and I don't know what is turning it on in this script. I've also attached my Android Manifest if there could be an issue with that. If anyone had any experience working with the Quest's microphone in Unity, that would be great if you could shed some light on this situation :) Here's my MicManager script (altered from OVRLipSyncMicInput): drive.google.com/open?id=1pU3eHvSrmBEm9TpTL39wF6ee-MzaNVD9 And here's my Android Manifest XML: drive.google.com/open?id=1pU3eHvSrmBEm9TpTL39wF6ee-MzaNVD9 Links to Google Drive :) Thank you!1KViews0likes0Comments