Documentation ¶
Index ¶
- func AquestalkList() map[string]string
- func CreateAquestalkWav(speech Speech) (string, error)
- func CreateVoiceVoxWav(speech Speech) (string, error)
- func CreateVoiceroidWav(speech Speech) (string, error)
- func CreateWav(speech Speech) (string, error)
- func GenerateAudioQuery(speech Speech) (model.AudioQuery, error)
- func IsAquesTalk(name string) bool
- func IsVoiceRoid(name string) bool
- func IsVoiceVox(name string) bool
- func LocalVoiceList() map[string]string
- func VoiceList() []string
- func VoiceRoidList() map[string]string
- func Voices() map[string]string
- func VoicevoxList() map[string]string
- type Speech
- type SpeechSignal
- type VoiceInstance
- func (v *VoiceInstance) PlayQueue(speech Speech)
- func (v *VoiceInstance) QueueAdd(speech Speech)
- func (v *VoiceInstance) QueueClean()
- func (v *VoiceInstance) QueueGetSpeech() (speech Speech)
- func (v *VoiceInstance) QueueRemoveFisrt()
- func (v *VoiceInstance) StopTalking()
- func (v *VoiceInstance) Talk(speech Speech) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AquestalkList ¶
func CreateAquestalkWav ¶
func CreateVoiceVoxWav ¶
func CreateVoiceroidWav ¶
func GenerateAudioQuery ¶
func GenerateAudioQuery(speech Speech) (model.AudioQuery, error)
func IsAquesTalk ¶
func IsVoiceRoid ¶
func IsVoiceVox ¶
func LocalVoiceList ¶
func VoiceRoidList ¶
func VoicevoxList ¶
Types ¶
type SpeechSignal ¶
type SpeechSignal struct { Data Speech V *VoiceInstance }
type VoiceInstance ¶
type VoiceInstance struct { sync.Mutex Voice *discordgo.VoiceConnection Session *discordgo.Session QueueMutex sync.Mutex VoiceMutex sync.Mutex NowTalking Speech Queue []Speech Recv []int16 GuildID string ChannelID string Speaking bool Stop chan bool }
func (*VoiceInstance) PlayQueue ¶
func (v *VoiceInstance) PlayQueue(speech Speech)
func (*VoiceInstance) QueueGetSpeech ¶
func (v *VoiceInstance) QueueGetSpeech() (speech Speech)
QueueGetSong
func (*VoiceInstance) QueueRemoveFisrt ¶
func (v *VoiceInstance) QueueRemoveFisrt()
QueueRemoveFirst
func (*VoiceInstance) StopTalking ¶
func (v *VoiceInstance) StopTalking()
func (*VoiceInstance) Talk ¶
func (v *VoiceInstance) Talk(speech Speech) error
Click to show internal directories.
Click to hide internal directories.