Records for a specified duration of time.
- iOS 3.0+
- macOS 10.7+
- Mac Catalyst 13.0+
- watchOS 4.0+
The maximum duration, in seconds, for the recording.
YES if successful, otherwise
The recorder stops when the duration of recorded audio reaches the value in the
Calling this method implicitly calls
prepare, which creates (or erases) an audio file and prepares the system for recording.