<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def total_duration(self):
 """ Return the total amount of audio summed over all utterances in the corpus in seconds. """

        duration = 0

        for utterance in self.utterances.values():
            duration += utterance.duration

        return duration