Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
C
CharIP-Electron
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
ali
CharIP-Electron
Commits
491194bc
Commit
491194bc
authored
Dec 06, 2023
by
ali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 打包产生
parent
2a5e9aa6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
ShowPhoto.vue
src/renderer/screens/ShowPhoto.vue
+2
-2
ShowVideo.vue
src/renderer/screens/ShowVideo.vue
+2
-3
No files found.
src/renderer/screens/ShowPhoto.vue
View file @
491194bc
...
...
@@ -370,9 +370,9 @@ async function onAsr(question: string) {
isTime
&&
console
.
time
(
'sliceAnswer'
)
isTime
=
false
const
textArr
=
text
.
split
(
''
)
;
const
textArr
=
text
.
split
(
''
)
for
(
let
i
=
0
;
i
<
textArr
.
length
;
i
++
)
{
const
t
=
textArr
[
i
]
;
const
t
=
textArr
[
i
]
sliceAnswer
+=
t
if
(
/
[
。,?!;,.?!;
]
/
.
test
(
t
)
&&
sliceAnswer
.
length
>=
settings
.
llmToTTSSliceLength
)
{
console
.
timeEnd
(
'sliceAnswer'
)
...
...
src/renderer/screens/ShowVideo.vue
View file @
491194bc
...
...
@@ -328,9 +328,9 @@ async function onAsr(question: string) {
isTime
&&
console
.
time
(
'sliceAnswer'
)
isTime
=
false
const
textArr
=
text
.
split
(
''
)
;
const
textArr
=
text
.
split
(
''
)
for
(
let
i
=
0
;
i
<
textArr
.
length
;
i
++
)
{
const
t
=
textArr
[
i
]
;
const
t
=
textArr
[
i
]
sliceAnswer
+=
t
if
(
/
[
。,?!;,.?!;
]
/
.
test
(
t
)
&&
sliceAnswer
.
length
>=
settings
.
llmToTTSSliceLength
)
{
console
.
timeEnd
(
'sliceAnswer'
)
...
...
@@ -340,7 +340,6 @@ async function onAsr(question: string) {
isTime
=
true
}
}
}
catch
(
error
)
{
console
.
log
(
'返回答案错误 -----> '
+
JSON
.
stringify
(
error
))
microphoneState
.
value
=
'input'
...
...
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