Open szhang-hub opened 1 month ago
The audio sensor only supports omnidirectional sound sources; directional sound sources are not supported.
Thanks a lot!
---Original--- From: "Kai Li @.> Date: Wed, Aug 7, 2024 12:45 PM To: @.>; Cc: @.**@.>; Subject: Re: [JusperLee/LibriSpace] How to set a directional sound source? (Issue #1)
The audio sensor only supports omnidirectional sound sources; directional sound sources are not supported.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
Thanks for your excellent work! I set my sound source as shown below,
source=np.array([0.0,4.0,1.7]) audio_sensor = sim.get_agent(0)._sensors["audio_sensor"] audio_sensor.setAudioSourceTransform(source) audio_sensor.setAudioMaterialsJSON("data/mp3d_material_config.json")
I wonder whether the sound source is omnidirectional or directional? If it is directional, how to change the direction of the sound source?Thanks for your answer!