When a writer uses different speech patterns to distinguish characters in a story to make his fiction narrative more convincing, the literary device that the writer is using is dialect. I hope that this is the answer you were looking for and the answer has come to your help.