kiritan_handler

package module
v0.0.0-...-4b9a6cd Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: MIT Imports: 9 Imported by: 0

README

KIRITAN Handler

概要

東北きりたんのGUIの一部をGoから制御するライブラリ。

仕組み

Win32APIで適当にGUIを操作しているだけ。

Usage

import "github.com/TKMAX777/kiritan_handler"

func main() {
    kiritan, err := kiritan_handler.New()
    if err != nil {
        panic(err)
    }

    kiritan.SetText("ほげほげ")
    kiritan.Play()
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func New

func New() (*Handler, error)

func (Handler) Pause

func (h Handler) Pause() error

func (Handler) Play

func (h Handler) Play() error

func (Handler) Save

func (h Handler) Save(FilePath string) error

Save saves the audio and text file to the specified location

This method will overwrite files if they already exist.

func (Handler) SetText

func (h Handler) SetText(text string) error

func (Handler) Stop

func (h Handler) Stop()

func (Handler) TimeMessage

func (h Handler) TimeMessage()

Jump to

Keyboard shortcuts

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