Skip to content

Commit f879095

Browse files
pjuhaszjuhaszp-uhu
andauthored
Add canary-tts to speech models (#603)
Co-authored-by: Peter Juhasz <[email protected]>
1 parent a130cfe commit f879095

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

speech.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ import (
1010
type SpeechModel string
1111

1212
const (
13-
TTSModel1 SpeechModel = "tts-1"
14-
TTsModel1HD SpeechModel = "tts-1-hd"
13+
TTSModel1 SpeechModel = "tts-1"
14+
TTSModel1HD SpeechModel = "tts-1-hd"
15+
TTSModelCanary SpeechModel = "canary-tts"
1516
)
1617

1718
type SpeechVoice string
@@ -57,7 +58,7 @@ func contains[T comparable](s []T, e T) bool {
5758
}
5859

5960
func isValidSpeechModel(model SpeechModel) bool {
60-
return contains([]SpeechModel{TTSModel1, TTsModel1HD}, model)
61+
return contains([]SpeechModel{TTSModel1, TTSModel1HD, TTSModelCanary}, model)
6162
}
6263

6364
func isValidVoice(voice SpeechVoice) bool {

0 commit comments

Comments
 (0)