How long can a recording be?
You are limited by the amount of free space on your device. There is also a limit of 4 GB on the size of a single recording - at the highest quality, this is equivalent to about 12 hours of recording if using the uncompressed wav format, or multiple days if using the compressed m4a format.