Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
translation-server
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
qinmingyuan
translation-server
Commits
e8fa3847
Commit
e8fa3847
authored
Jan 16, 2025
by
mingyard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:打印合成结果
parent
67d4a95b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
textToSpeechReq.dto.ts
src/controller/translate/dto/req/textToSpeechReq.dto.ts
+0
-1
translate.service.ts
src/controller/translate/translate.service.ts
+2
-0
No files found.
src/controller/translate/dto/req/textToSpeechReq.dto.ts
View file @
e8fa3847
...
...
@@ -30,7 +30,6 @@ export class TextToSpeechReqDto {
default
:
5
,
example
:
5
,
})
@
Expose
()
@
IsOptional
()
@
IsNumber
()
speed
?:
number
=
5
;
...
...
src/controller/translate/translate.service.ts
View file @
e8fa3847
...
...
@@ -129,6 +129,8 @@ export class TranslateService {
},
);
console
.
log
(
'result'
,
result
);
if
(
!
result
?.
data
)
{
throw
BadRequestError
.
default
(
'翻译失败'
);
}
...
...
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