Documentation ¶
Index ¶
- type AccentPhrases
- type 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
- type DictWord
- type Mora
- type Preset
- type Query
- type Speaker
- type SpeakerInfo
- type Style
- type StyleInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccentPhrases ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AddUserDictWord ¶
func (c *Client) AddUserDictWord(surface string, pronunciation string, accentType int, wordType *string, priority *int) (uuid string, err error)
その他 > Add User Dict Word https://voicevox.github.io/voicevox_engine/api/#tag/%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC%E8%BE%9E%E6%9B%B8/operation/add_user_dict_word_user_dict_word_post
func (*Client) CreateQuery ¶
クエリ作成 > 音声合成用のクエリを作成する https://voicevox.github.io/voicevox_engine/api/#tag/%E3%82%AF%E3%82%A8%E3%83%AA%E4%BD%9C%E6%88%90/operation/audio_query_audio_query_post
func (*Client) CreateQueryWithPreset ¶
クエリ作成 > 音声合成用のクエリをプリセットを用いて作成する https://voicevox.github.io/voicevox_engine/api/#tag/%E3%82%AF%E3%82%A8%E3%83%AA%E4%BD%9C%E6%88%90/operation/audio_query_from_preset_audio_query_from_preset_post
func (*Client) CreateVoice ¶
func (c *Client) CreateVoice(speaker int, enableInterrogativeUpspeak bool, query *Query) (wav []byte, err error)
音声合成 > 音声合成する https://voicevox.github.io/voicevox_engine/api/#tag/%E9%9F%B3%E5%A3%B0%E5%90%88%E6%88%90/operation/synthesis_synthesis_post
func (*Client) CreateVoiceMorphing ¶
func (c *Client) CreateVoiceMorphing(base int, target int, rate float64, query *Query) (wav []byte, err error)
音声合成 > 2人の話者でモーフィングした音声を合成する https://voicevox.github.io/voicevox_engine/api/#tag/%E9%9F%B3%E5%A3%B0%E5%90%88%E6%88%90/operation/_synthesis_morphing_synthesis_morphing_post
func (*Client) CreateVoiceMulti ¶
音声合成 > 複数まとめて音声合成する https://voicevox.github.io/voicevox_engine/api/#tag/%E9%9F%B3%E5%A3%B0%E5%90%88%E6%88%90/operation/multi_synthesis_multi_synthesis_post
func (*Client) DeleteUserDictWord ¶
その他 > Delete User Dict Word https://voicevox.github.io/voicevox_engine/api/#tag/%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC%E8%BE%9E%E6%9B%B8/operation/delete_user_dict_word_user_dict_word__word_uuid__delete
func (*Client) GetAccentPhrases ¶
クエリ編集 > テキストからアクセント句を得る https://voicevox.github.io/voicevox_engine/api/#tag/%E3%82%AF%E3%82%A8%E3%83%AA%E7%B7%A8%E9%9B%86/operation/accent_phrases_accent_phrases_post
func (*Client) GetPhonemeLength ¶
func (c *Client) GetPhonemeLength(speaker int, accentPhrases *[]AccentPhrases) (*[]AccentPhrases, error)
クエリ編集 > アクセント句から音素長を得る https://voicevox.github.io/voicevox_engine/api/#tag/%E3%82%AF%E3%82%A8%E3%83%AA%E7%B7%A8%E9%9B%86/operation/mora_length_mora_length_post
func (*Client) GetPitch ¶
func (c *Client) GetPitch(speaker int, accentPhrases *[]AccentPhrases) (*[]AccentPhrases, error)
クエリ編集 > アクセント句から音高を得る https://voicevox.github.io/voicevox_engine/api/#tag/%E3%82%AF%E3%82%A8%E3%83%AA%E7%B7%A8%E9%9B%86/operation/mora_pitch_mora_pitch_post
func (*Client) GetPitchAndPhonemeLength ¶
func (c *Client) GetPitchAndPhonemeLength(speaker int, accentPhrases *[]AccentPhrases) (*[]AccentPhrases, error)
クエリ編集 > アクセント句から音高・音素長を得る https://voicevox.github.io/voicevox_engine/api/#tag/%E3%82%AF%E3%82%A8%E3%83%AA%E7%B7%A8%E9%9B%86/operation/mora_data_mora_data_post
func (*Client) GetPresets ¶
その他 > Get Presets https://voicevox.github.io/voicevox_engine/api/#tag/%E3%81%9D%E3%81%AE%E4%BB%96/operation/get_presets_presets_get
func (*Client) GetSpeakerInfo ¶
func (c *Client) GetSpeakerInfo(uuid string) (info SpeakerInfo, err error)
その他 > Speaker Info https://voicevox.github.io/voicevox_engine/api/#tag/%E3%81%9D%E3%81%AE%E4%BB%96/operation/speaker_info_speaker_info_get
func (*Client) GetSpeakers ¶
その他 > Speakers https://voicevox.github.io/voicevox_engine/api/#tag/%E3%81%9D%E3%81%AE%E4%BB%96/operation/speakers_speakers_get
func (*Client) GetUserDict ¶
その他 > Get User Dict Words https://voicevox.github.io/voicevox_engine/api/#tag/%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC%E8%BE%9E%E6%9B%B8/operation/get_user_dict_words_user_dict_get
func (*Client) GetVersion ¶
その他 > Version https://voicevox.github.io/voicevox_engine/api/#tag/%E3%81%9D%E3%81%AE%E4%BB%96/operation/version_version_get
func (*Client) ImportUserDict ¶
その他 > Import User Dict Words https://voicevox.github.io/voicevox_engine/api/#tag/%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC%E8%BE%9E%E6%9B%B8/operation/import_user_dict_words_import_user_dict_post
func (*Client) MargeWav ¶
その他 > base64エンコードされた複数のwavデータを一つに結合する https://voicevox.github.io/voicevox_engine/api/#tag/%E3%81%9D%E3%81%AE%E4%BB%96/operation/connect_waves_connect_waves_post
func (*Client) RewriteUserDictWord ¶
func (c *Client) RewriteUserDictWord(uuid string, surface string, pronunciation string, accentType int, wordType *string, priority *int) (err error)
その他 > Rewrite User Dict Word https://voicevox.github.io/voicevox_engine/api/#tag/%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC%E8%BE%9E%E6%9B%B8/operation/rewrite_user_dict_word_user_dict_word__word_uuid__put
type DictWord ¶
type DictWord struct { Surface string `json:"surface"` Priority int `json:"priority"` ContextId *int `json:"context_id"` PartOfSpeech string `json:"part_of_speech"` PartOfSpeechDetail1 string `json:"part_of_speech_detail_1"` PartOfSpeechDetail2 string `json:"part_of_speech_detail_2"` PartOfSpeechDetail3 string `json:"part_of_speech_detail_3"` InflectionalType string `json:"inflectional_type"` InflectionalForm string `json:"inflectional_form"` Stem string `json:"stem"` Yomi string `json:"yomi"` Pronunciation string `json:"pronunciation"` AccentType int `json:"accent_type"` MoraCount *int `json:"mora_count"` AccentAssociativeRule string `json:"accent_associative_rule"` }
type Preset ¶
type Preset struct { Id int `json:"id"` Name string `json:"name"` SpeakerUuid string `json:"speaker_uuid"` StyleId int `json:"style_id"` SpeedScale float64 `json:"speedScale"` PitchScale float64 `json:"pitchScale"` IntonationScale float64 `json:"intonationScale"` VolumeScale float64 `json:"volumeScale"` PrePhonemeLength float64 `json:"prePhonemeLength"` PostPhonemeLength float64 `json:"postPhonemeLength"` }
type Query ¶
type Query struct { AccentPhrases []AccentPhrases `json:"accent_phrases"` SpeedScale float64 `json:"speedScale"` PitchScale float64 `json:"pitchScale"` IntonationScale float64 `json:"intonationScale"` VolumeScale float64 `json:"volumeScale"` PrePhonemeLength float64 `json:"prePhonemeLength"` PostPhonemeLength float64 `json:"postPhonemeLength"` OutputSamplingRate int `json:"outputSamplingRate"` OutputStereo bool `json:"outputStereo"` Kana *string `json:"kana"` }