mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
from local
This commit is contained in:
parent
271f512b6e
commit
ec622b5dd2
Binary file not shown.
@ -16,7 +16,13 @@ if not os.path.exists(save_dir):
|
||||
|
||||
wavs = sorted(glob.glob(f"{sys.argv[1]}/*.wav"))
|
||||
|
||||
for string in wavs:
|
||||
for wav in wavs:
|
||||
filename = wav.split('/')[-1].reaplce('.wav', '')
|
||||
filename = os.path.join(save_dir, filename)
|
||||
with open(f"{filename}.txt", "w") as file:
|
||||
file.write('TBD')
|
||||
|
||||
'''
|
||||
|
||||
# Split the string into parts
|
||||
parts = string.split("|")
|
||||
@ -36,3 +42,4 @@ for string in wavs:
|
||||
filename = os.path.join(save_dir, filename)
|
||||
with open(f"{filename}.txt", "w") as file:
|
||||
file.write(text2)
|
||||
'''
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user