Listen: John Mayer and Katy Perry duet on "Who You Love"

John Mayer and Katy Perry attend the Friars Foundation Honors Don Rickles event in New York on June 24, 2013.
David Alan Kogut/Friars Club

Katy Perry recently said she and John Mayer are doing "a lot of collaborating," and that apparently includes making music together.

The now-on-again couple has recorded a new duet, titled "Who You Love," for Mayer's new album, "Paradise Valley."

Mayer, 35, and Perry, 28, trade verses throughout the track. At the end of the song, she can be heard giggling.

"My girl, she ain't the one that I saw coming/Sometimes I don't know which way to go/And I tried to run before but I'm not running anymore/Cuz I fought against it hard enough to know/That you love who you love who you love/You can't make yourself stop dreaming of who you're dreaming of/If it's who you love, then it's who you love," Mayer sings.

Perry responds with: "My boy, he ain't the one that I saw coming/And some have said his heart's too hard to hold/And it takes a little time, but you should see him when he shines/'Cause you never want to let that feeling go/When you love who you love who you love."

This is the second musical release of the week for Perry. On Monday, she debuted a lyric video for her new single "Roar." Her new album, "Prism," is due out Oct. 22.

Mayer's "Paradise Valley" will be released Aug. 20.

Listen to the song below: