NEW YORK — Spotify is making a bigger bet on podcasts as it looks to bring a Netflix-like model of original programs to the audio world. The music-streaming pioneer gobbled up two podcasting companies, Gimlet and Anchor, on Wednesday.

Although streaming is becoming an increasingly popular way to listen to music, Spotify and other services such as Pandora have struggled to make money because of the royalties and other fees that they have to pay recording labels, songwriters and performers.

The acquisitions are about “expanding our mission from just being about music to being about all of audio and being the world’s leading audio platform,” CEO Daniel Ek said Wednesday on CNBC. The company didn’t disclose terms of its podcasting deal.

Spotify, which is based in Stockholm and went public in April 2018 , charges $10 a month for its premium ad-free music service. It also offers a free ad-supported service.

Apple has become Spotify’s primary rival since the tech giant launched its own music streaming service in 2015. But although it has been outgunned financially, Spotify has been able to stay a step ahead of Apple in terms of subscribers. It counted 96 million subscribers in the fourth quarter, up 36 percent from a year ago.

Meanwhile, Apple’s music-streaming service has more than 50 million subscribers, according to CEO Tim Cook.

Pandora, YouTube, iHeartRadio, Google, Amazon and others also offer music streaming and podcasts.

In a blog post Wednesday, Ek said that Spotify has become the second-biggest podcasting platform in less than two years.

There are many ways to listen to most podcasts — among them, streaming services, downloads and podcast-specific apps like Castbox and Stitcher for Podcasts. It wasn’t clear if Spotify will distribute its new podcasts exclusively, make them widely available, or choose some intermediate step such as allowing other services to distribute them following a window of Spotify exclusivity. Spotify did not return a request for comment.

Spotify is seeking ways to become sustainably profitable. The company reported a surprise fourth-quarter profit Wednesday, boosted by a strong holiday season and a promotion with Google Home. But it forecast a loss for 2019 even as it continues to invest in original content.

Spotify has produced some original podcasts, including one series with comedian Amy Schumer and another with rapper and broadcaster Joe Budden.

Spotify is hoping to emulate Netflix, which has poured billions into developing original shows and movies. That strategy has produced some hits such as the series “Stranger Things” and the thriller “Bird Box.”

The podcast industry is much smaller but growing. Podcasts broke into the mainstream with the success of “Serial,” a 2014 investigative journalism series about a murder that became a cultural phenomenon, yielding not just tens of millions of downloads, but eventually also a new trial for the convicted killer.

U.S. podcast ad revenue jumped 86 percent in 2017 to $314 million, according to research from the Interactive Ad Bureau and PriceWaterhouseCoopers. That’s dwarfed by digital video ad spending, which totaled $11.9 billion in 2017.

An estimated 73 million people tune in to some form of podcast on a monthly basis, according to Edison Research. They’re particularly popular with the coveted millennial demographic.

Gimlet Media has a podcast studio with dedicated intellectual-property development, production and advertising capabilities. Gimlet is known for producing the podcast “Homecoming,” a fictional thriller, which was made into an Amazon series starring Julia Roberts. Anchor has a platform of tools for podcast creators as well as an established and rapidly growing creator base.