yeyupiaoling / VoiceprintRecognition-Tensorflow

使用Tensorflow实现声纹识别

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

the specific mean of line['speaker'] about “line 26 : speaker = line['speaker']”

Mnanazi opened this issue · comments

   我之前在执行create_data.py时在出现json.loads(lines)报错,出现期待将键名用双引号括起来的错误信息。
   现在我打算自己编写一个新的create_data.py以实现你所言的功能,目前我知道您的def get_data_list(infodata_path, list_path, zhvoice_path)函数主要实现保存基本元素为(音频地址路径,speaker_label),

我的主要问题是有些疑惑您的speaker_label到底是什么?若是这样理解的:speaker_label -> len( line['speaker'] ) ,这里的line已经成功执行了line = json.loads(line.replace('\n', '')) 为dict,所以我很好奇line['speaker'] 是啥? 因为加载的dataset_info.json中每个语料数据中并没有'speaker'这样的标签。
对了,我还想问下 duration_ms = line['duration_ms'] 中的 line['duration_ms'] 是什么?预料数据中也没有'duration_ms'这样的key值,我只能先假设您想用的key 为 "duration_H"。
要是您能及时回复,我会十分感谢的!!!