localruntime

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2026 License: MIT Imports: 20 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ActionDownload       = "download"
	ActionDelete         = "delete"
	ActionInstallRuntime = "install-runtime"
	ActionDeleteRuntime  = "delete-runtime"
	ActionStart          = "start"
	ActionStop           = "stop"

	RuntimeUnavailable    = "unavailable"
	RuntimeNotImplemented = "not_implemented"
	RuntimeRunning        = "running"
	RuntimeStopped        = "stopped"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Runtime

type Runtime struct {
	// contains filtered or unexported fields
}

func New

func New(root string) *Runtime

func (*Runtime) ApplyBrowserAction added in v0.1.15

func (*Runtime) ApplyVoiceAction

func (r *Runtime) ApplyVoiceAction(ctx context.Context, moduleID string, provider setup.VoiceProviderOption, request setup.VoiceProviderActionRequest) (setup.VoiceProviderOption, error)

func (*Runtime) DecorateBrowserModule added in v0.1.15

func (r *Runtime) DecorateBrowserModule(module setup.BrowserModuleDescriptor) setup.BrowserModuleDescriptor

func (*Runtime) DecorateBrowserProvider added in v0.1.15

func (r *Runtime) DecorateBrowserProvider(provider setup.BrowserProviderOption) setup.BrowserProviderOption

func (*Runtime) DecorateVoiceModules

func (r *Runtime) DecorateVoiceModules(modules []setup.VoiceModuleDescriptor) []setup.VoiceModuleDescriptor

func (*Runtime) DecorateVoiceProvider

func (r *Runtime) DecorateVoiceProvider(moduleID string, provider setup.VoiceProviderOption) setup.VoiceProviderOption

func (*Runtime) ManagedPlaywrightMCPBinaryPathForTest added in v0.1.15

func (r *Runtime) ManagedPlaywrightMCPBinaryPathForTest() string

func (*Runtime) ManagedPlaywrightMCPBrowsersJSONPathForTest added in v0.1.15

func (r *Runtime) ManagedPlaywrightMCPBrowsersJSONPathForTest() string

func (*Runtime) ManagedVoiceBinaryPath added in v0.1.10

func (r *Runtime) ManagedVoiceBinaryPath(provider setup.VoiceProviderOption) (string, error)

func (*Runtime) PiperTextToSpeech

func (r *Runtime) PiperTextToSpeech(ctx context.Context, provider setup.VoiceProviderOption, text string) ([]byte, error)

func (*Runtime) PlaywrightBrowsersDirForTest added in v0.1.15

func (r *Runtime) PlaywrightBrowsersDirForTest() string

func (*Runtime) PlaywrightMCPServerConfig added in v0.1.15

func (r *Runtime) PlaywrightMCPServerConfig(provider setup.BrowserProviderOption) (setup.MCPServerConfig, bool)

func (*Runtime) SupertonicTextToSpeech added in v0.1.10

func (r *Runtime) SupertonicTextToSpeech(ctx context.Context, provider setup.VoiceProviderOption, text string) ([]byte, error)

func (*Runtime) VoiceBinaryPath

func (r *Runtime) VoiceBinaryPath(provider setup.VoiceProviderOption) (string, error)

func (*Runtime) VoiceModelInstalled

func (r *Runtime) VoiceModelInstalled(moduleID string, provider setup.VoiceProviderOption) (bool, string)

func (*Runtime) VoiceModelInstalledForID

func (r *Runtime) VoiceModelInstalledForID(moduleID string, provider setup.VoiceProviderOption, modelID string) (bool, string)

func (*Runtime) VoiceModelPath

func (r *Runtime) VoiceModelPath(moduleID string, provider setup.VoiceProviderOption) string

func (*Runtime) VoiceModelPathForID

func (r *Runtime) VoiceModelPathForID(moduleID string, provider setup.VoiceProviderOption, modelID string) string

func (*Runtime) VoiceRuntimeRSSBytes

func (r *Runtime) VoiceRuntimeRSSBytes(provider setup.VoiceProviderOption) uint64

func (*Runtime) WhisperCLIPath

func (r *Runtime) WhisperCLIPath(provider setup.VoiceProviderOption) (string, error)

func (*Runtime) WhisperServerPath

func (r *Runtime) WhisperServerPath(provider setup.VoiceProviderOption) (string, error)

func (*Runtime) WhisperSpeechToText

func (r *Runtime) WhisperSpeechToText(ctx context.Context, provider setup.VoiceProviderOption, input WhisperSpeechInput) (string, error)

type WhisperSpeechInput

type WhisperSpeechInput struct {
	Content  []byte
	FileName string
	MIMEType string
	Language string
}

Jump to

Keyboard shortcuts

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