Explanation
"She's been known to sing beautifully", commented Ali.
Quotation marks are used to enclose the exact words spoken, which are: She's been known to sing beautifully.
The speaker (Ali) comes after the quote, so the quotation marks begin and end around the spoken words.