Indirect to Direct Speech
Rules to convert the indirect speech to direct speech are as follows:
- Make use of the reporting verb, "say" or "said to" in their correct tense.
- Remove the conjuctions "that, to, if or whether etc".
- Insert a comma before the statement.
- Insert quotation marks, question mark, exclamation and fullstop at their appropriate position.
- Write the first word of the statement with capital letter.
- Change the tense of reporting verb from past to present.
- Convert the past perfect either into past tense or present perfect.
For example,

Shivi asked Sanvi to go with her. (Indirect speech)
Shivi said to Sanvi, “Come with me." (Direct speech)
Shivi said to Sanvi, “Come with me." (Direct speech)

Sachin asked the boy why he was late. (Indirect speech)
Sachin said to the boy, “Why are you late?” (Direct speech)