They are both okay. The first says it's not loud enough to be heard over the background noise. The second says that the background noise is the cause of your not being able to hear anything.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.