DAR ES SALAAM, Tanzania — President Barack Obama says protests in Egypt so far haven't included the level of violence many had feared. But he says the potential for such violence remains.

Obama says the U.S. is committed to democracy in Egypt, not any particular leader. He says Islamist President Mohammed Morsi was democratically elected. He says now Morsi's government must respect its opposition and minority groups.

He's calling for all sides to refrain from violence.

Obama says he's concerned about women being assaulted in protests. He's telling protesters that assaulting women doesn't count as peaceful protest.

Millions of Egyptians are taking to the streets in Cairo to demand Morsi leave office. More than a dozen have been killed, including one American.

Obama spoke at a news conference with Tanzanian President Jakaya Kikwete (jah-KAH'-yah kee-KWEH'-teh).