Skip to content

Commit

Permalink
Fix field
Browse files Browse the repository at this point in the history
  • Loading branch information
ringsaturn committed Dec 5, 2023
1 parent 7519105 commit e7d6a36
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion speak.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,19 @@ type ExpressAs struct {
Style Style `xml:"style,attr"`
Styledegree string `xml:"styledegree,attr"`
Prosody Prosody `xml:"prosody"`
Role Role `xml:"role,attr"`
Role Role `xml:"role,attr,omitempty"`
}

type Voice struct {
// Text string `xml:",chardata"`
Name VoiceName `xml:"name,attr"`
ExpressAs ExpressAs `xml:"mstts:express-as"`
Effect Effect `xml:"effect,omitempty"`
}

// Speak is the root element of the SSML document.
//
// https://learn.microsoft.com/en-us/azure/ai-services/speech-service/speech-synthesis-markup-structure
type Speak struct {
XMLName xml.Name `xml:"speak"`
// Text string `xml:",chardata"`
Expand Down

0 comments on commit e7d6a36

Please sign in to comment.