csukuangfj commited on
Commit
83de68d
·
1 Parent(s): 4dbff49

minor fixes

Browse files
Files changed (2) hide show
  1. app.py +1 -0
  2. model.py +1 -1
app.py CHANGED
@@ -148,6 +148,7 @@ def process(
148
  )
149
 
150
  audio = read_wave(filename)[0]
 
151
  segments = sd.process(audio).sort_by_start_time()
152
  s = ""
153
  for seg in segments:
 
148
  )
149
 
150
  audio = read_wave(filename)[0]
151
+ print("audio", audio.shape, audio.shape / sd.sample_rate)
152
  segments = sd.process(audio).sort_by_start_time()
153
  s = ""
154
  for seg in segments:
model.py CHANGED
@@ -110,8 +110,8 @@ def get_speaker_diarization(
110
  "Please check your config and make sure all required files exist"
111
  )
112
 
 
113
  return sherpa_onnx.OfflineSpeakerDiarization(config)
114
- pass
115
 
116
 
117
  speaker_segmentation_models = ["pyannote/segmentation-3.0"]
 
110
  "Please check your config and make sure all required files exist"
111
  )
112
 
113
+ print(config)
114
  return sherpa_onnx.OfflineSpeakerDiarization(config)
 
115
 
116
 
117
  speaker_segmentation_models = ["pyannote/segmentation-3.0"]