What is possible using App Inventor Blocks is described in this documentation SoundRecorder
See this discussion of similar requests and the answer