Tedium is the granddaughter of despondency, and the daughter of slothfulness. In order to drive it away, labor at your work, and do not be slothful in prayer. The tedium will pass, and zeal will come. And if to this you add patience and humility, then you will be rid of all misfortunes and evils.
The one who prays ought never to halt his movement of sublime ascent toward God. For just as we should understand the ascent 'from strength to strength' as the progress in the practice of the virtues, 'from glory to glory' (2 Cor. 3:18) as the advance in the spiritual knowledge of contemplation, and the transfer from the letter of sacred writing to its spirit, so in the same way the one who is settled in the place of prayer should lift his mind from human matters and the attention of the soul to more divine realities.
Unless humility and love, simplicity and goodness regulate our prayer, this prayer - or, rather, this pretence of prayer - cannot profit us at all. And this applies not only to prayer, but to every labor and hardship undertaken for the sake of virtue.
There is no venom more poisonous than that of the asp or cobra, and there is no evil greater than that of self-love. The winged children of self-love are self-praise, self-satisfaction, gluttony, unchastity, self-esteem, jealousy and the crown of all these, pride. Pride can drag down not men alone, but even angels from heaven, and surround them with darkness instead of light.
You describe how bitterly you regret the inefficacy of your prayers. Beware: to wish for consolation or revelation in prayer is a sure sign of pride. Pray humbly, in perfect simplicity, seeking salvation only through forgiveness, & having faith that God will extend to you His mercy - as He did to the publican.
When you are praying alone, and your spirit is dejected, and you are wearied and oppressed by your loneliness, remember then, as always, that God the Trinity looks upon you with eyes brighter than the sun; also all the angels, your own Guardian Angel, and all the Saints of God. Truly they do; for they are all one in God, and where God is, there are they also. Where the sun is, thither also are directed all its rays. Try to understand what this means.
Remember, O my soul, the terrible and frightful wonder: that your Creator for your sake became Man, and deigned to suffer for the sake of your salvation. His angels tremble, the Cherubim are terrified, the Seraphim are in fear, and all the heavenly powers ceaselessly give praise; and you, unfortunate soul, remain in laziness. At least from this time forth arise and do not put off, my beloved soul, holy repentance, contrition of heart and penance for your sins.