Versions in this module Expand all Collapse all v1 v1.0.0 Aug 14, 2022 Changes in this version + type AccentPhrases struct + Accent int + IsInterrogative *bool + Moras []Mora + PauseMora *Mora + type Client struct + func NewClient(scheme string, host string) *Client + func (c *Client) AddUserDictWord(surface string, pronunciation string, accentType int, wordType *string, ...) (uuid string, err error) + func (c *Client) CreateQuery(speaker int, text string) (*Query, error) + func (c *Client) CreateQueryWithPreset(preset int, text string) (*Query, error) + func (c *Client) CreateVoice(speaker int, enableInterrogativeUpspeak bool, query *Query) (wav []byte, err error) + func (c *Client) CreateVoiceMorphing(base int, target int, rate float64, query *Query) (wav []byte, err error) + func (c *Client) CreateVoiceMulti(speaker int, query *Query) (zip []byte, err error) + func (c *Client) DeleteUserDictWord(uuid string) (err error) + func (c *Client) GetAccentPhrases(speaker int, text string, isKana bool) (*[]AccentPhrases, error) + func (c *Client) GetPhonemeLength(speaker int, accentPhrases *[]AccentPhrases) (*[]AccentPhrases, error) + func (c *Client) GetPitch(speaker int, accentPhrases *[]AccentPhrases) (*[]AccentPhrases, error) + func (c *Client) GetPitchAndPhonemeLength(speaker int, accentPhrases *[]AccentPhrases) (*[]AccentPhrases, error) + func (c *Client) GetPresets() (presets []Preset, err error) + func (c *Client) GetSpeakerInfo(uuid string) (info SpeakerInfo, err error) + func (c *Client) GetSpeakers() (speakers []Speaker, err error) + func (c *Client) GetUserDict() (dict Dict, err error) + func (c *Client) GetVersion() (version string, err error) + func (c *Client) ImportUserDict(dict Dict, override bool) (err error) + func (c *Client) MargeWav(wavs []string) (wav []byte, err error) + func (c *Client) RewriteUserDictWord(uuid string, surface string, pronunciation string, accentType int, ...) (err error) + type Dict map[string]DictWord + type DictWord struct + AccentAssociativeRule string + AccentType int + ContextId *int + InflectionalForm string + InflectionalType string + MoraCount *int + PartOfSpeech string + PartOfSpeechDetail1 string + PartOfSpeechDetail2 string + PartOfSpeechDetail3 string + Priority int + Pronunciation string + Stem string + Surface string + Yomi string + type Mora struct + Consonant *string + ConsonantLength *float64 + Pitch float64 + Text string + Vowel string + VowelLength float64 + type Preset struct + Id int + IntonationScale float64 + Name string + PitchScale float64 + PostPhonemeLength float64 + PrePhonemeLength float64 + SpeakerUuid string + SpeedScale float64 + StyleId int + VolumeScale float64 + type Query struct + AccentPhrases []AccentPhrases + IntonationScale float64 + Kana *string + OutputSamplingRate int + OutputStereo bool + PitchScale float64 + PostPhonemeLength float64 + PrePhonemeLength float64 + SpeedScale float64 + VolumeScale float64 + type Speaker struct + Name string + SpeakerUuid string + Styles []Style + Version *string + type SpeakerInfo struct + Policy string + Portrait string + StyleInfos []StyleInfo + type Style struct + Id int + Name string + type StyleInfo struct + Icon string + Id int + VoiceSample []string