Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
digitalPerson-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
digitalPerson
digitalPerson-fe
Commits
2be333bf
Commit
2be333bf
authored
Sep 30, 2024
by
nick zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 数字人对话声音配置
parent
dae24d24
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
digital-audio-card.vue
...dialogue-detail/components/digital/digital-audio-card.vue
+5
-5
digital-audio.vue
...iews/dialogue-detail/components/digital/digital-audio.vue
+1
-1
No files found.
src/views/dialogue-detail/components/digital/digital-audio-card.vue
View file @
2be333bf
...
...
@@ -26,18 +26,18 @@ const timebreId = computed(() => digitalHumanDialogueStore.humanInfo.timebreId)
<
template
>
<div
class=
"relative mb-4 flex items-center gap-2 rounded-2xl border
p-2
hover:shadow"
class=
"relative mb-4 flex items-center gap-2 rounded-2xl border hover:shadow"
:class=
"!showToggle && dialogueTimbreItem?.timebreId === timebreId ? 'border-blue' : 'border-gray-200'"
@
click=
"emit('click', dialogueTimbreItem!.timebreId)"
>
<div
class=
"h-16 w-16 rounded-lg bg-[length:100%_100%]"
class=
"
m-2 mr-0
h-16 w-16 rounded-lg bg-[length:100%_100%]"
:style=
"
{
backgroundImage: `url(${dialogueTimbreItem?.iconUrl || 'https://digital-human-js-cdn.cdn.bcebos.com/web_base/20240926112018/digital-human-web-new-base/img/boy.png'})`,
}"
/>
<div
class=
"
flex-1 overflow-hidden
"
>
<div
class=
"mb-
3
flex items-center gap-2"
>
<div
class=
"
mt-2 flex-1 overflow-hidden pr-2
"
>
<div
class=
"mb-
[11px]
flex items-center gap-2"
>
<div
class=
"max-w-32 truncate"
>
{{
dialogueTimbreItem
?.
name
}}
</div>
<CustomIcon
class=
"cursor-pointer text-lg"
...
...
@@ -45,7 +45,7 @@ const timebreId = computed(() => digitalHumanDialogueStore.humanInfo.timebreId)
@
click
.
stop
.
prevent=
"emit('play', dialogueTimbreItem!.audioUrl)"
/>
</div>
<NScrollbar
x-scrollable
>
<NScrollbar
x-scrollable
class=
"pb-2"
>
<div
class=
"flex gap-2"
>
<NTag
v-for=
"(style, index) in dialogueTimbreItem?.style"
:key=
"index"
type=
"warning"
round
>
{{
style
}}
...
...
src/views/dialogue-detail/components/digital/digital-audio.vue
View file @
2be333bf
...
...
@@ -60,7 +60,7 @@ watch(
)
onMounted
(()
=>
{
currentSelectedAudioType
.
value
=
digitalHumanDialogueStore
.
humanInfo
.
timebreId
?
'mandarin'
:
'cantonese
'
currentSelectedAudioType
.
value
=
digitalHumanDialogueStore
.
humanInfo
.
timebreId
===
'101019'
?
'cantonese'
:
'mandarin
'
getDigitalTimbreList
()
})
...
...
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