When inspiration dwindles, what the hell are you doijng trying to make music?
Stop, go do something else, today is not the day to make music, accept it.
Don`t make music just for the sake of it, don`t try to force it, and if you are randomnly hitting shit to try to get something good, ugh.
Sometimes it is simply much better for everyone to just walk away.
Otherwise, you can invest loads of time into a heap of crap, and then because of the time you have invested in it, you will treat it as valid.
Writers, painters, all artists have this discussion, and pretty much the conclusion all of them (I read a lot of biographies and interviews with artists from all areas, being a pretencious arty type myself) comes down to "Just walk away"
Go smoke a joint, have a drink, read a book, watch a movie, play some really loud music (not techno), go out, go have a conversation, watch some porn, but don`t just make music for the sake of it.