I slow down as much as possible and get as close to the pedestrians as possible, then gently say (in a calm, conversational voice) "passing on your left." Like the bike bell described above, this seems to startle and/or offend people a lot less than the usual holler.