Commit e8fa3847 authored by mingyard's avatar mingyard

feat:打印合成结果

parent 67d4a95b
...@@ -30,7 +30,6 @@ export class TextToSpeechReqDto { ...@@ -30,7 +30,6 @@ export class TextToSpeechReqDto {
default: 5, default: 5,
example: 5, example: 5,
}) })
@Expose()
@IsOptional() @IsOptional()
@IsNumber() @IsNumber()
speed?: number = 5; speed?: number = 5;
......
...@@ -129,6 +129,8 @@ export class TranslateService { ...@@ -129,6 +129,8 @@ export class TranslateService {
}, },
); );
console.log('result', result);
if (!result?.data) { if (!result?.data) {
throw BadRequestError.default('翻译失败'); throw BadRequestError.default('翻译失败');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment