It refers to a sound or manner of speaking that suggests something bad is coming. In writing it can also describe a significant or loaded tone — one carrying weight beyond its surface meaning.
The precise sense really does depend on the sentence. Music described as ominous is usually unsettling or threatening, while dialogue delivered in an ominous tone is often quiet and deliberate rather than loud.