Hendrik Schroeter commited on
Commit
ba5932c
·
unverified ·
1 Parent(s): a3a97ef
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -8,6 +8,7 @@ import markdown
8
  import matplotlib.pyplot as plt
9
  import numpy as np
10
  import torch
 
11
  from loguru import logger
12
 
13
  from df import config
@@ -72,6 +73,7 @@ def mix_and_denoise(speech_rec, speech_upl, noise, snr):
72
  sp_kwargs = {"frame_offset": 4800}
73
  meta = None
74
  try:
 
75
  speech, meta = load_audio(speech_file, sr, **sp_kwargs)
76
  except RuntimeError as e:
77
  if meta is not None:
 
8
  import matplotlib.pyplot as plt
9
  import numpy as np
10
  import torch
11
+ import torchaudio as ta
12
  from loguru import logger
13
 
14
  from df import config
 
73
  sp_kwargs = {"frame_offset": 4800}
74
  meta = None
75
  try:
76
+ print(ta.info(speech_file))
77
  speech, meta = load_audio(speech_file, sr, **sp_kwargs)
78
  except RuntimeError as e:
79
  if meta is not None: