Indiana is a "one party consent" state. That means only one party has to have knowledge of the recording. The detective can legally record any conversation he is participating in. He can not, however, record the conversation between two others without one having knowledge.
The detective is not required to identify himself unless he is taking official action.
The detective is not required to identify himself unless he is taking official action.