from typing import List
from pathlib import Path


def get_files(path: str, extension: str = '.wav') -> List[Path]:
    """
    Recursively retrieves all files with a given extension from a folder.

    Args:
      path (str): Path to the folder to retrieve files from.
      extension (str): Extension of files to be retrieved (Default value = '.wav').

    Returns:
        List[Path]: List of paths to the found files.
    """

    return list(Path(path).expanduser().resolve().rglob(f'*{extension}'))