Skip to content

Commit 924687b

Browse files
committed
直播功能优化更新,一大波模型更新升级
1 parent b1e613c commit 924687b

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

changelog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
##
1+
## v0.14.0 直播功能优化更新,一大波模型更新升级
22

33
- 新增:直播视频内容增加开关,默认关闭
4+
- 新增:直播用户重复进入重复忽略可设置
45
- 优化:程序退出模型运行检测提示优化
56
- 优化:音色选择组件支持播放互斥,关闭弹窗自动停止播放
67
- 优化:视频合成界面显示对齐方式

src/store/modules/live.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ export const liveStore = defineStore("live", {
109109
[key: string]: any
110110
},
111111
eventDefaultUsername: '宝子',
112+
eventEnterIgnoreSecond: 120,
112113
liveMonitorType: 'douyin',
113114
liveMonitorUrl: '',
114115
}
@@ -140,6 +141,7 @@ export const liveStore = defineStore("live", {
140141
this.localConfig.config.ttsProviderParam = localConfig.config?.ttsProviderParam || this.localConfig.config.ttsProviderParam
141142
this.localConfig.config.ttsProviderSetting = localConfig.config?.ttsProviderSetting || this.localConfig.config.ttsProviderSetting
142143
this.localConfig.config.eventDefaultUsername = localConfig.config?.eventDefaultUsername || this.localConfig.config.eventDefaultUsername
144+
this.localConfig.config.eventEnterIgnoreSecond = localConfig.config?.eventEnterIgnoreSecond || this.localConfig.config.eventEnterIgnoreSecond
143145
this.localConfig.config.liveMonitorType = localConfig.config?.liveMonitorType || this.localConfig.config.liveMonitorType
144146
this.localConfig.config.liveMonitorUrl = localConfig.config?.liveMonitorUrl || this.localConfig.config.liveMonitorUrl
145147
await this.statusUpdate()
@@ -319,14 +321,13 @@ export const liveStore = defineStore("live", {
319321
s.content.replies = s.content.replies.map(r => {
320322
return {
321323
value: r.value,
322-
sound: r.sound || '',
323324
}
324325
})
325326
flowTalks.push({
326327
id: 'FlowTalk' + s.id,
327328
title: s.title,
328329
talks: [
329-
{value: s.content.reply, sound: '',},
330+
{value: s.content.reply,},
330331
...s.content.replies
331332
],
332333
video: s.content.url,
@@ -342,15 +343,14 @@ export const liveStore = defineStore("live", {
342343
s.content.replies = s.content.replies.map(r => {
343344
return {
344345
value: r.value,
345-
sound: r.sound || '',
346346
}
347347
})
348348
if (s.content.type === 'user') {
349349
users.push({
350350
id: 'User' + s.id,
351351
title: s.title,
352352
talks: [
353-
{value: s.content.reply, sound: ''},
353+
{value: s.content.reply,},
354354
...s.content.replies
355355
],
356356
keywords: s.content.keywords,
@@ -361,7 +361,7 @@ export const liveStore = defineStore("live", {
361361
id: 'System' + s.id,
362362
title: s.title,
363363
talks: [
364-
{value: s.content.reply, sound: ''},
364+
{value: s.content.reply,},
365365
...s.content.replies
366366
],
367367
systemType: s.content.systemType,
@@ -418,6 +418,7 @@ export const liveStore = defineStore("live", {
418418
ttsProviderParam: this.localConfig.config.ttsProviderParam,
419419
ttsProviderSetting: this.localConfig.config.ttsProviderSetting,
420420
eventDefaultUsername: this.localConfig.config.eventDefaultUsername,
421+
eventEnterIgnoreSecond: this.localConfig.config.eventEnterIgnoreSecond,
421422
},
422423
data: await this.buildData()
423424
}

0 commit comments

Comments
 (0)