JusperLee / SonicSim

http://cslikai.cn/SonicSim/
Creative Commons Attribution Share Alike 4.0 International
197 stars 25 forks source link

How to set a directional sound source? #1

Open szhang-hub opened 3 months ago

szhang-hub commented 3 months ago

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!

JusperLee commented 3 months ago

The audio sensor only supports omnidirectional sound sources; directional sound sources are not supported.

szhang-hub commented 3 months ago

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: @.***>