voice-synthesizer: fail if no durations are given

When using the text-to-phoneme logic for an input document, the
duration model is checked and will fail if none is given.

This check is now done when using phonemes as input to make it
easier for the user to figure out what is wrong.