Tuesday, July 16, 2013

7/8 - 7/14 work summary

This week I worked primarily on adding multi-soundsource support for SPREAD framework.

The original SPREAD framework has 3 propagation mode for the TLM method: CPU, plugin and GPU. GPU mode is not implemented and all the work done and demos made are based on plugin mode, where a C++ plugin is used to maintain relavant data structures and provide propagation methods. For CPU mode, similar data structures are maintained at C# side and all methods are written in C# too. This is MUCH slower than the plugin mode, achiving at most a quarter of the FPS in plugin mode. Besides, it uses a simplified version of the Transmission Line Matrix method, where additional merge step is executed after emitting at each time step. This step merges all amplitudes from all frequency bands together, destroying any sound feature of the original sound in favor of the speed. With merge step disabled, the Unity scene runs at less than 1 FPS, which is intolerable.

One advantage of the CPU mode is that it provides support for multiple sound sources. In emit method, every sound source will write its own sound data to the grid cell it occupies, and in scatter and collect step, sound frames from all sources are propagated and collected appropriately. However, the ability to emit from multiple sound sources is not provided for the plugin. Mimicing the data structures and data flows on the C# side, I was able to reproduce the same procedure on the C++ side. Also, several interface methods have to be modified too, because additional parameters are needed to refer to different sound sources.

The multi-source scheme was tested on Monday, 7/15 and unsurprisingly, it causes quite a confusion or failure to understanding for the perceptors. Some agents did not recoginize any sound while some agents recognize the wrong sound (or word). One reasonable observation is that agents tend to recognize sounds emitted from a closer sound source rather than a distant one.

Further work includes cooperating with Max to author a PBT for cocktail party/ market place scene where perception of environment sounds or spoken words are regarded as events that drive the Behavior Tree. Details need to be discussed with Mubbasir and Max. Also, the desired cocktail party effect is difficult to achive since current SPREAD framework simply adds up the amplitudes from the same frequency band if two sound packets meet at the same grid cell. This would make it hard to recover any individual packet. Norm proposed to keep every sound that is being propagated without summation. This would work theoretically, but significant performance drop is expected. Another suggestion was ignoring the low amplitude packets.

No comments:

Post a Comment