Amazon has patented technology that could let Alexa analyze your voice to determine whether you are sick or depressed and sell you products based on your physical or emotional condition.

The patent, titled "Voice-based determination of physical and emotional characteristics of users," was issued on Tuesday this week; Amazon filed the patent application in March 2017.

The patent describes a voice assistant that can detect "abnormal" physical or emotional conditions. "For example, physical conditions such as sore throats and coughs may be determined based at least in part on a voice input from the user, and emotional conditions such as an excited emotional state or a sad emotional state may be determined based at least in part on voice input from a user," the patent says. "A cough or sniffle, or crying, may indicate that the user has a specific physical or emotional abnormality."

It's not clear what ads would be sent based on a user's emotional state, but someone who is sick might be asked if they want to buy cold medicine.

"A current physical and/or emotional condition of the user may facilitate the ability to provide highly targeted audio content, such as audio advertisements or promotions, to the user," the patent said.

If the Amazon voice assistant determines that you have a sore threat, the system would "communicate with the audio content server(s)" to select the appropriate ad. "For example, certain content, such as content related to cough drops or flu medicine, may be targeted towards users who have sore throats," the patent says.

Alexa might then ask, "would you like to order cough drops with 1 hour delivery?" After the order is made, the voice assistant "may append a message to the audible confirmation, such as well wishes, or 'feel better!'"

System could raise privacy concerns

Companies get patents all the time for technologies that never make it to market, so there is no guarantee this capability will be implemented in future versions of Alexa.

Amazon would have to consider the privacy implications of letting its voice assistant analyze the emotional and physical states of Amazon customers. Amazon and other tech companies last month were called to a Senate Commerce Committee hearing to testify about consumer data privacy, and senators are considering whether to write a new privacy law.