voice-synthesizer: factor out determining the file name