I read this book back in the late 90s, early 2000s at my public library, although the book seemed a little worn, probably came out in the 80s or so. It was a Young Adult Sci-Fi action, if I remember correctly.
Our protagonist(s) either wake up on, or are sent to investigate a (space) ship. I believe it was one of 'ours', but it had suffered damage and was abandoned.
The most vivid thing I remember was there was an A.I coming over the speakers, who was happy they were there, it's memory had been pulled and it had lost automatic control over most of the ships functions. I remember they made the point that the speakers were really crackly, and that the voice sounded warped, like a warped tape or something.
The A.I was telling them how to re-activate life support and a few other essentials, as well as restore its control over the ship and its memories, so they could figure out what happened.
Near the end, they manage to 'fix' the A.I. and it regains control, and the crackly warped voice is replaced by a clear, soft voice. Of course, in true A.I. fashion, it remembers that it was homicidal, and that the original crew was trying to disable it to stop it from gassing them. They failed, but not before blowing out most of it's systems.
I can't remember what happens in the very end, but I'm pretty sure the protagonist makes it out alive.
I know, the last part sounds a lot like Portal, which is why I haven't been able to find any info on it. Portal seems to steal all the search results.