processor

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(speechPool SpeechPool, mp3Player Mp3Player, store SoundStore, keyConfig KeyConfiguration) (*processor, error)

Types

type ClipboardAccess

type ClipboardAccess interface {
	Clear(ctx context.Context)
	Watch(ctx context.Context, contentChan chan string)
}

type KeyConfiguration

type KeyConfiguration struct {
	HotKeyReading system.Hotkey

	AddonKeyPressing system.KeyPressing
}

type KeyPresser

type KeyPresser interface {
	PressCopy()
	Press(kp system.KeyPressing)
	PressRaw(ctrl, shift bool, keys ...int)
}

type Mp3Player

type Mp3Player interface {
	Play(ctx context.Context, mp3Stream io.ReadCloser) error
}

type SoundStore

type SoundStore interface {
	GetDescription(questId string, locale locale.Locale) io.ReadCloser
	GetProgress(questId string, locale locale.Locale) io.ReadCloser
	GetCompletion(questId string, locale locale.Locale) io.ReadCloser
	GetGossip(gId string, locale locale.Locale) io.ReadCloser

	GetFileLocationForDescription(questId string, locale locale.Locale) string
	GetFileLocationForProgress(questId string, locale locale.Locale) string
	GetFileLocationForCompletion(questId string, locale locale.Locale) string
	GetFileLocationForGossip(gId string, locale locale.Locale) string
}

type SpeechPool

type SpeechPool interface {
	SpeechGeneratorFor(locale locale.Locale) sound.SpeechGenerator
}

Jump to

Keyboard shortcuts

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