from typing import Dict


def read_wav_scp(wav_scp_path: str) -> Dict[str, str]:
  """read wav.scp and turn it into dict of filename <-> command"""
  with open(wav_scp_path, 'r', encoding='utf-8') as wav_scp:
    wav_scp_lines = wav_scp.readlines()
    
    wav = {}
    
    for wav_scp_line in wav_scp_lines:
      wav_scp_line = wav_scp_line.strip().split()
      filename = wav_scp_line[0]
      command = ' '.join(wav_scp_line[1:])
      wav[filename] = command

  return wav