-
Notifications
You must be signed in to change notification settings - Fork 14
/
ability.go
65 lines (51 loc) · 1.42 KB
/
ability.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package ability
// Ability guide clients in adjusting all parameters.
type Ability struct {
Demo bool `json:"demo"`
LLM LLMAblt `json:"llm"`
TTS TTSAblt `json:"tts"`
STT STTAblt `json:"stt"`
}
// TTSAblt text to speech
type TTSAblt struct {
Available bool `json:"available"`
Google GoogleTTSAblt `json:"google"`
Elevenlabs ElevenlabsTTSAblt `json:"elevenlabs"`
}
type GoogleTTSAblt struct {
Available bool `json:"available"`
Voices []TaggedItem `json:"voices"`
}
type ElevenlabsTTSAblt struct {
Available bool `json:"available"`
Voices []TaggedItem `json:"voices"`
}
// STTAblt speech to text
type STTAblt struct {
Available bool `json:"available"`
Whisper WhisperSTTAb `json:"whisper"`
Google GoogleSTTAb `json:"google"`
}
type WhisperSTTAb struct {
Available bool `json:"available"`
Models []string `json:"models"`
}
type GoogleSTTAb struct {
Available bool `json:"available"`
Recognizers []TaggedItem `json:"recognizers"`
}
// LLMAblt
type LLMAblt struct {
Available bool `json:"available"`
ChatGPT ChatGPTAblt `json:"chatGPT"`
}
type ChatGPTAblt struct {
Available bool `json:"available"`
Models []string `json:"models"`
}
// other
type TaggedItem struct {
Id string `json:"id"` // used by TTSAblt client
Name string `json:"name"` // to display on UI
Tags []string `json:"tags"` // gender, accent, age, etc
}