What word is used to describe speech patterns?

I figured out the word by looking for the video that was talking about how the director studied the dialect. The word I was thinking of was “vernacular.” I found that the way I was describing it was more along the lines of “phonetics.”