mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 01:18:05 +08:00
21 lines
733 B
TypeScript
21 lines
733 B
TypeScript
// This file is auto-generated by @hey-api/openapi-ts
|
|
|
|
import { z } from 'zod'
|
|
|
|
import { zAudioToTextData, zAudioToTextResponse } from '../../zod/api/audio-to-text'
|
|
import { base } from '../common'
|
|
|
|
/**
|
|
* Speech to Text
|
|
*
|
|
* Convert audio file to text. Supported formats: mp3, mp4, mpeg, mpga, m4a, wav, webm. File size limit: 15MB.
|
|
*/
|
|
export const audioToTextContract = base.route({
|
|
method: 'POST',
|
|
path: '/audio-to-text',
|
|
operationId: 'audioToText',
|
|
summary: 'Speech to Text',
|
|
description: 'Convert audio file to text. Supported formats: mp3, mp4, mpeg, mpga, m4a, wav, webm. File size limit: 15MB.',
|
|
tags: ['TTS'],
|
|
}).input(zAudioToTextData).output(z.object({ body: zAudioToTextResponse, status: z.literal(200) }))
|