My memory of this story is extremely vague. I don't think I ever read/listened to the whole story either. I would have had it as a child in maybe 1995-6. What I do remember is that it was both a book and a cassette, and the book has illustrations.
If I remember right it was quite serious and a bit dark. It was set on a different planet and there were large robots or machines. I can't remember if they were autonomous or if the people in the (possibly a mining?) colony controlled them. Part of the plot involved swarms of small creatures (maybe robots too?) that could eat metal.
The art was quite epic if I remember right, and the cassette had sound effects and acting as opposed to just being read out.