Hendrik Schroeter commited on
Commit
cb580a1
·
unverified ·
1 Parent(s): 2721e55

add none sample

Browse files
Files changed (2) hide show
  1. app.py +4 -3
  2. samples/none.wav +3 -0
app.py CHANGED
@@ -53,7 +53,8 @@ def mix_and_denoise(speech, speech_alt, noise, snr):
53
  noise = "samples/dkitchen.wav"
54
  if speech is None or speech == "":
55
  speech = "samples/p232_013_clean.wav"
56
- if speech_alt is not None:
 
57
  speech = speech_alt
58
  print(speech, noise, snr)
59
  sr = config("sr", 48000, int, section="df")
@@ -200,13 +201,13 @@ inputs = [
200
  examples = [
201
  [
202
  "samples/p232_013_clean.wav",
203
- "samples/p232_013_clean.wav",
204
  "samples/dkitchen.wav",
205
  10,
206
  ],
207
  [
208
  "samples/p232_013_clean.wav",
209
- "samples/p232_019_clean.wav",
210
  "samples/dliving.wav",
211
  10,
212
  ],
 
53
  noise = "samples/dkitchen.wav"
54
  if speech is None or speech == "":
55
  speech = "samples/p232_013_clean.wav"
56
+ if speech_alt is not None and "none.wav" not in speech_alt:
57
+ print("using speech_alt")
58
  speech = speech_alt
59
  print(speech, noise, snr)
60
  sr = config("sr", 48000, int, section="df")
 
201
  examples = [
202
  [
203
  "samples/p232_013_clean.wav",
204
+ "samples/none.wav",
205
  "samples/dkitchen.wav",
206
  10,
207
  ],
208
  [
209
  "samples/p232_013_clean.wav",
210
+ "samples/none.wav",
211
  "samples/dliving.wav",
212
  10,
213
  ],
samples/none.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:531cd597b25052b4845ef2f3887dec2183240802a93b6e044960de8ba017caa0
3
+ size 44