mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 00:48:04 +08:00
21 lines
587 B
TypeScript
21 lines
587 B
TypeScript
// This file is auto-generated by @hey-api/openapi-ts
|
|
|
|
import { z } from 'zod'
|
|
|
|
import { zTextToAudioChatData, zTextToAudioChatResponse } from '../../zod/api/text-to-audio'
|
|
import { base } from '../common'
|
|
|
|
/**
|
|
* Text to Audio
|
|
*
|
|
* Convert text to speech.
|
|
*/
|
|
export const textToAudioChatContract = base.route({
|
|
path: '/text-to-audio',
|
|
method: 'POST',
|
|
operationId: 'textToAudioChat',
|
|
summary: 'Text to Audio',
|
|
description: 'Convert text to speech.',
|
|
tags: ['TTS'],
|
|
}).input(zTextToAudioChatData).output(z.object({ body: zTextToAudioChatResponse, status: z.literal(200) }))
|