Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-fe
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poc
poc-fe
Commits
304ba5fc
Commit
304ba5fc
authored
Dec 04, 2024
by
nick zheng
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'beta' into 'master'
fix(语音播放): 转换音频异常时若在播放中停止播放 See merge request
!101
parents
97cc3d2a
c0570603
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
footer-input.vue
...ts/agent-config/agent-preview/components/footer-input.vue
+1
-1
footer-input.vue
src/views/share/components/footer-input.vue
+1
-1
No files found.
src/views/personal-space/personal-app-setting/components/agent-config/agent-preview/components/footer-input.vue
View file @
304ba5fc
...
@@ -369,7 +369,7 @@ function ttsSocketSendText(text: string, audioUrlSerialNo: number, messageId: st
...
@@ -369,7 +369,7 @@ function ttsSocketSendText(text: string, audioUrlSerialNo: number, messageId: st
ttsSocketCtl
.
onMessageError
=
()
=>
{
ttsSocketCtl
.
onMessageError
=
()
=>
{
emit
(
'updateSpecifyMessageItem'
,
messageId
,
{
isVoiceLoading
:
false
,
voiceFragmentUrlList
:
[]
})
emit
(
'updateSpecifyMessageItem'
,
messageId
,
{
isVoiceLoading
:
false
,
voiceFragmentUrlList
:
[]
})
emit
(
'audioPause'
)
props
.
messageList
.
get
(
messageId
)?.
isVoicePlaying
&&
emit
(
'audioPause'
)
sentenceSpeechException
.
value
=
true
sentenceSpeechException
.
value
=
true
messageAudioLoading
.
value
=
false
messageAudioLoading
.
value
=
false
window
.
$message
.
error
(
t
(
'common_module.unplayable_tip'
))
window
.
$message
.
error
(
t
(
'common_module.unplayable_tip'
))
...
...
src/views/share/components/footer-input.vue
View file @
304ba5fc
...
@@ -348,7 +348,7 @@ function ttsSocketSendText(text: string, audioUrlSerialNo: number, messageId: st
...
@@ -348,7 +348,7 @@ function ttsSocketSendText(text: string, audioUrlSerialNo: number, messageId: st
ttsSocketCtl
.
onMessageError
=
()
=>
{
ttsSocketCtl
.
onMessageError
=
()
=>
{
emit
(
'updateSpecifyMessageItem'
,
messageId
,
{
isVoiceLoading
:
false
,
voiceFragmentUrlList
:
[]
})
emit
(
'updateSpecifyMessageItem'
,
messageId
,
{
isVoiceLoading
:
false
,
voiceFragmentUrlList
:
[]
})
emit
(
'audioPause'
)
props
.
messageList
.
get
(
messageId
)?.
isVoicePlaying
&&
emit
(
'audioPause'
)
sentenceSpeechException
.
value
=
true
sentenceSpeechException
.
value
=
true
messageAudioLoading
.
value
=
false
messageAudioLoading
.
value
=
false
window
.
$message
.
error
(
t
(
'common_module.unplayable_tip'
))
window
.
$message
.
error
(
t
(
'common_module.unplayable_tip'
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment