def write_transcription(output_directory, text):
    'Write transcription to file\n    Args:\n        text: Processed recognition as string\n        output_directory: Output directory for the file\n    Returns:\n        Writes output to file\n    '
    if (not os.path.exists(f'{output_directory}/transcriptions.txt')):
        transfile = codecs.open(f'{output_directory}/transcriptions.txt', 'w', encoding='utf-8-sig')
        transfile.close()
        logging.warning(f'[INFO] - Created transcript file with utf-8 bom encoding.')
    with open(f'{output_directory}/transcriptions.txt', 'a', encoding='utf-8-sig') as transfile:
        transfile.write(f'''{text}
''')
        transfile.close()
Write transcription to file
Args:
    text: Processed recognition as string
    output_directory: Output directory for the file
Returns:
    Writes output to file
def write_transcription(output_directory, text):
    'Write transcription to file\n    Args:\n        text: Processed recognition as string\n        output_directory: Output directory for the file\n    Returns:\n        Writes output to file\n    '
    if (not os.path.exists(f'{output_directory}/transcriptions.txt')):
        transfile = codecs.open(f'{output_directory}/transcriptions.txt', 'w', encoding='utf-8-sig')
        transfile.close()
        logging.warning(f'[INFO] - Created transcript file with utf-8 bom encoding.')
    with open(f'{output_directory}/transcriptions.txt', 'a', encoding='utf-8-sig') as transfile:
        transfile.write(f'{text}
')
        transfile.close()