/ internal / types / interface.go
interface.go
 1  package types
 2  
 3  type ChatCompleter interface {
 4  	ChatCompletion(query string) (string, error)
 5  }
 6  
 7  type Transcriber interface {
 8  	Transcription(audioFile, language, wordDir string) (*TranscriptionData, error)
 9  }
10  
11  type Ttser interface {
12  	Text2Speech(text string, voice string, outputFile string) error
13  }