asahi417 commited on
Commit
734e52a
1 Parent(s): cfe1551
Files changed (1) hide show
  1. attach_speaker_embedding_s2s.py +2 -2
attach_speaker_embedding_s2s.py CHANGED
@@ -14,7 +14,7 @@ hf_dataset = f"seamless-align-{direction}"
14
  dataset = load_dataset(f"{hf_org}/{hf_dataset}", f"subset_{dataset_id}", split="train")
15
  audio_loader = Audio()
16
  se_model = os.getenv("SE_MODEL", "metavoice")
17
- max_seq_length = 10000000
18
  min_seq_length = 50000
19
 
20
  if se_model == "metavoice":
@@ -60,7 +60,7 @@ print(f"Num examples (after filtering): {len(dataset)}")
60
 
61
  def speaker_embedding(example):
62
  for side in sides:
63
- print(len(example[f"{side}.audio"]["array"]))
64
  embedding = speaker_embedder.get_speaker_embedding(
65
  example[f"{side}.audio"]["array"], example[f"{side}.audio"]["sampling_rate"]
66
  )
 
14
  dataset = load_dataset(f"{hf_org}/{hf_dataset}", f"subset_{dataset_id}", split="train")
15
  audio_loader = Audio()
16
  se_model = os.getenv("SE_MODEL", "metavoice")
17
+ max_seq_length = 1000000
18
  min_seq_length = 50000
19
 
20
  if se_model == "metavoice":
 
60
 
61
  def speaker_embedding(example):
62
  for side in sides:
63
+ # print(len(example[f"{side}.audio"]["array"]))
64
  embedding = speaker_embedder.get_speaker_embedding(
65
  example[f"{side}.audio"]["array"], example[f"{side}.audio"]["sampling_rate"]
66
  )