def write(self, chars, output):
data = self.generate(chars)<EOL>with open(output, '<STR_LIT:wb>') as f:<EOL><INDENT>return f.write(data)<EOL><DEDENT>
Generate and write audio CAPTCHA data to the output.

        :param chars: text to be generated.
        :param output: output destionation.