The software, developed by a company called Alphonso, even detects sounds from TV adverts and shows while stored in a pocket if the apps are running in the background (stock image)