修正对话列表的第一个参数获取
This commit is contained in:
parent
af604a45e5
commit
3b62a0294d
|
|
@ -252,13 +252,13 @@ function getAudioRecData(res: any) {
|
||||||
|
|
||||||
const conversationList: [number, string, string, string][] = []
|
const conversationList: [number, string, string, string][] = []
|
||||||
|
|
||||||
sentences.forEach((sentence: Sentence, index: number) => {
|
sentences.forEach((sentence: Sentence) => {
|
||||||
const mins = Math.floor(sentence.begin_time / 60)
|
const mins = Math.floor(sentence.begin_time / 60)
|
||||||
const secs = Math.floor(sentence.begin_time % 60)
|
const secs = Math.floor(sentence.begin_time % 60)
|
||||||
const timeStr = `${mins.toString().padStart(2, '0')}:${secs.toString().padStart(2, '0')}`
|
const timeStr = `${mins}:${secs.toString().padStart(2, '0')}`
|
||||||
|
|
||||||
conversationList.push([
|
conversationList.push([
|
||||||
index,
|
sentence.begin_time,
|
||||||
timeStr,
|
timeStr,
|
||||||
sentence.speaker,
|
sentence.speaker,
|
||||||
sentence.text,
|
sentence.text,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue