from typing import List
from typing import Dict


def get_annotation(annotations: List[Dict[str, str]], filename: str):
    """
    Get annotation for an audio file by looking up filename match in the spreadsheet json
    :param annotations: data from input spreadsheet in JSON format
    :param filename: name of WAV file to get annotation for
    :return: annotation retrieved from the spreadsheet data matching the WAV filename
    """
    annotation = ''
    for record in annotations:
        if record["File name"] == filename:
            annotation = record["Transcription"]
            break
    return annotation