chompionsawelo commited on
Commit
1c1c8cf
·
1 Parent(s): e9417bc

minor fixes

Browse files
Files changed (1) hide show
  1. adjust.py +4 -0
adjust.py CHANGED
@@ -19,6 +19,8 @@ sample_groups, _ = load_groups_json()
19
  def get_current():
20
  global speaker_to_name
21
  global speaker_to_sample
 
 
22
 
23
  name = list(speaker_to_name.values())[current_pos]
24
  sample = list(speaker_to_sample.values())[current_pos]
@@ -64,6 +66,8 @@ def get_speakers():
64
  audio_segment[:10 * 1000].export(temp_file_name, format="wav")
65
  speaker_to_sample[speaker] = temp_file_name
66
  speaker_to_name[speaker] = speaker
 
 
67
  return get_current()
68
 
69
 
 
19
  def get_current():
20
  global speaker_to_name
21
  global speaker_to_sample
22
+ print(f"GET CURRENT speaker_to_name: {speaker_to_name}")
23
+ print(f"GET CURRENT speaker_to_sample: {speaker_to_sample}")
24
 
25
  name = list(speaker_to_name.values())[current_pos]
26
  sample = list(speaker_to_sample.values())[current_pos]
 
66
  audio_segment[:10 * 1000].export(temp_file_name, format="wav")
67
  speaker_to_sample[speaker] = temp_file_name
68
  speaker_to_name[speaker] = speaker
69
+ print(f"speaker_to_name: {speaker_to_name}")
70
+ print(f"speaker_to_sample: {speaker_to_sample}")
71
  return get_current()
72
 
73