解析 LIUM 扬声器分类输出 [英] Parsing LIUM Speaker Diarization Output

查看:32
本文介绍了解析 LIUM 扬声器分类输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用 LIUM Speaker Diarization 工具包知道哪个扬声器说话了多长时间?

How can I know which speaker spoke for how much time by using LIUM Speaker Diarization toolkit?

例如,这是我的 .seg 文件.

For example, this is my .seg file.

;; cluster S0 [ score:FS = -33.93166562542459 ] [ score:FT = 
-34.24966646974656 ] [ score:MS = -34.05223781565528 ] [ score:MT = 
-34.32834794609819 ] 
Seq06 1 0 237 F S U S0
Seq06 1 2960 278 F S U S0
;; cluster S1 [ score:FS = -33.33289449700619 ] [ score:FT = 
-33.64489165914674 ] [ score:MS = -32.71833169822944 ] [ score:MT = 
-33.380835069917275 ] 
Seq06 1 238 594 M S U S1
Seq06 1 1327 415 M S U S1
Seq06 1 2311 649 M S U S1
;; cluster S2 [ score:FS = -33.354874450638064 ] [ score:FT = 
-33.46618707052516 ] [ score:MS = -32.70702429201772 ] [ score:MT = 
-33.042146088874844 ] 
Seq06 1 832 495 M S U S2
Seq06 1 1742 569 M S U S2

如何从该文件中提取时间?

How can I extract the times from this file?

推荐答案

在这一行

Seq06 1 2960 278 F S U S0

你有

field 1: Seq06 = the show name
field 2: 1 = the channel number
field 3: 2960 = the start of the segment (in features)
field 4: 278 = the length of the segment (in features)
field 5: F = the speaker gender (U=unknown, F=female, M=Male)
field 6: S = the type of band (T=telephone, S=studio)
field 7: U = the type of environment (music, speech only, …)
field 8: S0 = the speaker label

时间在特征中,所以 2960 是 29.60 秒(除以 100 以从特征秒转换).长度也在特征中,因此您的片段长度为 2.78 秒.

Times are in features, so 2960 is 29.60 seconds (divide by 100 to convert from features seconds). Length is also in features, so your segment length is 2.78 seconds.

记录在 LIUM WIKI

这篇关于解析 LIUM 扬声器分类输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆