What is the voice of a sentence related to?

A)The length of the sentence

B)Who is speaking

C)The arrangement of its subject, verb and object

D)Whether the subject is plural or singular