api

package
v1.0.1-0...-47dc74e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Api

func Api()

Api sets up the Gin router and defines the API routes.

func STTApi

func STTApi(g *gin.Context)

STTApi handles the Speech-to-Text API (currently commented out).

func SaveRecordingHandler

func SaveRecordingHandler(c *gin.Context)

实时录音realtime

func SaveRecordingHandler1

func SaveRecordingHandler1(c *gin.Context)

多国语言"%s-%s.wav", Languages, time.Now().Format("2006-03-04 15:04")

func TTSApi

func TTSApi(g *gin.Context)

TTSApi handlesthe Text-to-Speech API.

func Upload

func Upload(g *gin.Context)

Upload handles file uploads.

Types

type RequestSTT

type RequestSTT struct {
	Path string `json:"path"` // Use correct JSON tag

}

RequestSTT is a struct to represent the JSON request for TTS API.

type RequestTTS

type RequestTTS struct {
	Text string `json:"text"` // Use correct JSON tag
}

RequestTTS is a struct to represent the JSON request for TTS API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL