1
0
mirror of https://github.com/ManyakRus/starter.git synced 2025-11-25 23:02:22 +02:00

сделал CreateFromStdTime

This commit is contained in:
Nikitin Aleksandr
2023-12-25 13:30:55 +03:00
parent 2c25ce7ae7
commit 0c5ee45514
567 changed files with 33952 additions and 9761 deletions

View File

@@ -10,8 +10,9 @@ import (
type SpeechModel string
const (
TTSModel1 SpeechModel = "tts-1"
TTsModel1HD SpeechModel = "tts-1-hd"
TTSModel1 SpeechModel = "tts-1"
TTSModel1HD SpeechModel = "tts-1-hd"
TTSModelCanary SpeechModel = "canary-tts"
)
type SpeechVoice string
@@ -57,7 +58,7 @@ func contains[T comparable](s []T, e T) bool {
}
func isValidSpeechModel(model SpeechModel) bool {
return contains([]SpeechModel{TTSModel1, TTsModel1HD}, model)
return contains([]SpeechModel{TTSModel1, TTSModel1HD, TTSModelCanary}, model)
}
func isValidVoice(voice SpeechVoice) bool {