added handling of multi speakers

It now properly handles when there are multiple speakers.