voice-synthesizer: factor out prosody creation into a helper function