From 261398509a8ba994ddd01842ed037cf9315d401a Mon Sep 17 00:00:00 2001 From: fzqxzhang Date: Tue, 25 Jul 2023 23:43:48 +0800 Subject: [PATCH] feat: model_id tag add omitempty (#3) --- client/types/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/types/types.go b/client/types/types.go index 85e90ac..4a34f2e 100644 --- a/client/types/types.go +++ b/client/types/types.go @@ -19,7 +19,7 @@ type Voice struct { Labels string `json:"labels,omitempty"` // Serialized labels dictionary for the voice. } type TTS struct { - ModelID string `json:"model_id"` + ModelID string `json:"model_id,omitempty"` Text string `json:"text"` // The text that will get converted into speech. Currently only English text is supported. VoiceSettings SynthesisOptions `json:"voice_settings,omitempty"` // Voice settings are applied only on the given TTS request. }