From ddcb2310fd85ac9888a580b6101e31f8eb731e98 Mon Sep 17 00:00:00 2001 From: dohe0342 Date: Fri, 27 Jan 2023 16:39:53 +0900 Subject: [PATCH] from local --- .../ASR/local/.prepare_vox_text.py.swp | Bin 12288 -> 12288 bytes egs/librispeech/ASR/local/prepare_vox_text.py | 5 +++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/egs/librispeech/ASR/local/.prepare_vox_text.py.swp b/egs/librispeech/ASR/local/.prepare_vox_text.py.swp index b2ad3112c9ed0ff91989bffa3e4b72fc3e710538..02c9f5f91041a31eca06bc5334b9e685b76f45de 100644 GIT binary patch delta 224 zcmZojXh;xCG6?hZRj|}EU;qLE28P1=%gK9BY!v&&atP~bB^?_X{PhP6BpS=Gsc z3f6Jo`4|{(0r5>BUID}tfp`KC=K*m55c>nMHV_K~@jqS$hOa<;2Z%2K@h%|V3dFO4 zxB!T=fmjWQzX5GH4#aDDHY*A+^K5>g^PADQJh7};!B(L-zo;ZNMI${YKS>WnXrw7s n7grYRB^ITZMH|M}>TBr%RVry}GB7AlzN06@sJ!`y9tR@;fH)3_-GJB-h&6ziABdTO_$@C3!wVoj2gHkk mcpeZ(0XY*Q}-;9h5lW*(EZ2qCg!3Y2b<0HQS diff --git a/egs/librispeech/ASR/local/prepare_vox_text.py b/egs/librispeech/ASR/local/prepare_vox_text.py index 82590d28c..5afc61db7 100755 --- a/egs/librispeech/ASR/local/prepare_vox_text.py +++ b/egs/librispeech/ASR/local/prepare_vox_text.py @@ -11,9 +11,10 @@ save_dir = os.path.join(save_dir, outdir) if not os.path.exists(save_dir): os.makedirs(save_dir) -with open(metafile, 'r') as f: - strings = f.readlines() +#with open(metafile, 'r') as f: +# strings = f.readlines() +wavs = sorted(glob.glob(f"{sys.argv[1]}/*.wav")) for string in strings: # Split the string into parts