generate pcm wav file: add duration configuration and define file name