Allow config.auto_voice to be a function.

This allows the patter to be changed when a translation is
being used, for example.