According to US law, when are the Miranda rights required to be read to someone?

A.
before a citizen talks to any police officials

B.
before a person testifies in a court case

C.
before an investigator collects evidence from someone’s home

D.
before a suspect in custody is questioned