Google has escalated a battle with Sonos Inc. over the wireless home-speaker market, filing a lawsuit that alleges patent infringement.

The conflict between the two companies, which had been collaborating on incorporating some Google features in Sonos’s speakers, erupted in January when Sonos sued Google for infringing its patents.

The speaker-maker is facing increased competition from technology giants such as Google and Amazon.com Inc. that are expanding into selling internet-connected home gadgets, including less expensive wireless speakers.