update
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user