voice-synthesizer: support documents as input

When a document is specified as input, use |createProsodyReader|
to generate the prosody from text events.

Using this operation mode, voice-synthesizer operates as a
Text-to-Speech engine. The main differences are that it is using
a lower-level API and the user has to pass more option parameters.