This commit is contained in:
2025-12-29 23:09:06 +08:00
parent df6db9d88b
commit 7370f649c4
5 changed files with 184 additions and 8 deletions

View File

@@ -2,7 +2,9 @@ import { app } from '@/app.ts'
import { asr } from './modules/index.ts'
app.route({
path: 'asr',
key: 'text'
key: 'text',
middleware: ['auth'],
description: '语音转文字将base64的音频数据转换为文字, 参数: base64Audio 为base64编码的音频数据',
}).define(async (ctx) => {
const base64Audio = ctx.query.base64Audio as string
if (!base64Audio) {