We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a130cfe commit f879095Copy full SHA for f879095
speech.go
@@ -10,8 +10,9 @@ import (
10
type SpeechModel string
11
12
const (
13
- TTSModel1 SpeechModel = "tts-1"
14
- TTsModel1HD SpeechModel = "tts-1-hd"
+ TTSModel1 SpeechModel = "tts-1"
+ TTSModel1HD SpeechModel = "tts-1-hd"
15
+ TTSModelCanary SpeechModel = "canary-tts"
16
)
17
18
type SpeechVoice string
@@ -57,7 +58,7 @@ func contains[T comparable](s []T, e T) bool {
57
58
}
59
60
func isValidSpeechModel(model SpeechModel) bool {
- return contains([]SpeechModel{TTSModel1, TTsModel1HD}, model)
61
+ return contains([]SpeechModel{TTSModel1, TTSModel1HD, TTSModelCanary}, model)
62
63
64
func isValidVoice(voice SpeechVoice) bool {
0 commit comments