Twitter Inc. considered buying German music-streaming service SoundCloud Ltd., but it has backed out of the talks, according to a person familiar with the matter.

The short-messaging service chose to let the deadline for exclusivity on talks pass without coming to an agreement because "the numbers didn't add up," the person said, without offering specifics. It is unclear which party initiated the talks.

SoundCloud,...