Args: duration (int): Duration of the recording (seconds) sample_rate (int): Sample rate of the recording (Hz)