mirror of
https://github.com/linux-do/new-api.git
synced 2025-10-20 22:33:42 +08:00
feat: 初步重构完成
This commit is contained in:
13
dto/audio.go
Normal file
13
dto/audio.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package dto
|
||||
|
||||
type TextToSpeechRequest struct {
|
||||
Model string `json:"model" binding:"required"`
|
||||
Input string `json:"input" binding:"required"`
|
||||
Voice string `json:"voice" binding:"required"`
|
||||
Speed float64 `json:"speed"`
|
||||
ResponseFormat string `json:"response_format"`
|
||||
}
|
||||
|
||||
type AudioResponse struct {
|
||||
Text string `json:"text"`
|
||||
}
|
||||
Reference in New Issue
Block a user