model

package
v0.0.0-...-dbd7530 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccentPhrase

type AccentPhrase struct {
	Moras  []Mora `json:"moras"`
	Accent int    `json:"accent"`
}

type Aquestalk

type Aquestalk struct {
	Name string
}

type AquestalkConfig

type AquestalkConfig struct {
	Aquestalk struct {
		ExePath string      `mapstructure:"exePath"`
		Voice   []Aquestalk `mapstructure:"voice"`
	} `mapstructure:"aquestalk"`
}

type AudioQuery

type AudioQuery struct {
	AccentPhrases      []AccentPhrase `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"`
}

type Mora

type Mora struct {
	Text            string  `json:"text,omitempty"`
	Consonant       string  `json:"consonant,omitempty"`
	ConsonantLength float64 `json:"consonant_length,omitempty"`
	Vowel           string  `json:"vowel,omitempty"`
	VowelLength     float64 `json:"vowel_length,omitempty"`
	Pitch           float64 `json:"pitch"`
}

type Options

type Options struct {
	Discord struct {
		Token    string `mapstructure:"token"`
		Status   string `mapstructure:"status"`
		Prefix   string `mapstructure:"prefix"`
		NumShard int    `mapstructure:"shardCount"`
		ShardID  int    `mapstructure:"shardID"`
		Debug    bool   `mapstructure:"debug"`
		Secret   string `mapstructure:"secret"`
	} `mapstructure:"discord"`
	Greeting map[string]string `mapstructure:"greeting"`
	ErrorMsg map[string]string `mapstructure:"errorMsg"`
}

Options gomatalk option

type UserInfo

type UserInfo struct {
	Voice     string
	Speed     float64
	Tone      float64
	Intone    float64
	Threshold float64
	AllPass   float64
	Volume    float64
}

UserInfo user information for talk

type VoiceRoid

type VoiceRoid struct {
	Name string
}

type VoiceRoidConfig

type VoiceRoidConfig struct {
	Voiceroid struct {
		BaseURL string      `mapstructure:"baseURL"`
		Voice   []VoiceRoid `mapstructure:"voice"`
	} `mapstructure:"voiceroid"`
}

type VoiceVox

type VoiceVox struct {
	Name string
	Id   int
}

type VoicevoxConfig

type VoicevoxConfig struct {
	Voicevox struct {
		BaseURL string     `mapstructure:"baseURL"`
		Voice   []VoiceVox `mapstructure:"voice"`
	} `mapstructure:"voicevox"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL