recording value keeps slideing to 0

every time I try to record line in its starts and 5 to 20 seconds later it shuts off the sound goes to a flat line what ame I doing wrong mike