HOUSTON  President Obama’s plan to deliver a speech to public school students on Tuesday has set off a revolt among conservative parents, who have accused the president of trying to indoctrinate their children with socialist ideas and are asking school officials to excuse the children from listening.

The uproar over the speech, in which Mr. Obama intends to urge students to work hard and stay in school, has been particularly acute in Texas, where several major school districts, under pressure from parents, have laid plans to let children opt out of lending the president an ear.

Some parents said they were concerned because the speech had not been screened for political content. Nor, they said, had it been reviewed by the State Board of Education and local school boards, which, under state law, must approve the curriculum.

“The thing that concerned me most about it was it seemed like a direct channel from the president of the United States into the classroom, to my child,” said Brett Curtis, an engineer from Pearland, Tex., who said he would keep his three children home.