Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问生成训练数据txt的程序有提供吗,以及测出来的pesq大概可以达到多少 #5

Open
wbjnpu opened this issue Nov 27, 2019 · 2 comments

Comments

@wbjnpu
Copy link

wbjnpu commented Nov 27, 2019

No description provided.

@Ahuei
Copy link

Ahuei commented Sep 20, 2020

--coding: utf-8--

import os

path1 = 'testset_noisy/' # 带噪语音路径
path2 = 'testset_clean/' # 干净语音路径

path_write = 'testset.txt' # txt文件写入路径(包含txt文件名)

files1 = os.listdir(path1)
files2 = os.listdir(path2)
print(files1)
print(files2)

with open(path_write, 'w+') as txt:
for i in range(len(files1)):
string = path1 + files1[i] + ' ' + path2 + files2[i]
print('string', string)
txt.write(string + '\n')

txt.close()

@Ahuei
Copy link

Ahuei commented Sep 20, 2020

如上,这是自己写的生成训练数据txt的程序。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants