In American English, commas and periods always go inside quotation marks; in British English, placement depends on sentence sense.
Direct speech quotes the verbatim words of a speaker. Indirect speech paraphrases what was said and takes no quotation marks.
""The results," remarked the lead scientist, "exceed all baseline expectations.""
Commas and periods reside safely inside the quotation marks under American style.
Do not place quotation marks around indirect reported speech.
Journalism, academic citations, literary dialogue, and legal depositions.