sound_config

package
v0.260511.1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: CC0-1.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// RU: Если true, то звук отключен.
	// EN: If true, the sound is disabled.
	Disabled bool `hcl:"disabled,optional"`
	// RU: Громкость звука в процентах. 100 - это 100%, 50 - это 50% и т.д.
	// EN: Sound volume in percent. 100 is 100%, 50 is 50%, etc.
	DefaultVolume int16 `hcl:"default_volume,optional"`
	// RU: Директрория с аудио файлами. Файлы должны быть в формате MP3, 16 бит, 22050 Гц, моно.
	// EN: Directory with audio files. Files must be in MP3 format, 16 bit, 22050 Hz, mono.
	Folder string `hcl:"folder,optional"`
	// RU: файл для звука при нажатии кнопки.
	// EN: File for sound when a button is pressed.
	KeyBeep string `hcl:"keyBeep,optional"`
	// RU: файл для звука при внесении денег.
	// EN: File for sound when money is inserted.
	MoneyIn string `hcl:"moneyIn,optional"`
	// RU: Команда для генерации TTS звука. текст для озвучивания.
	// EN: Command for generating TTS sound. Text To Sound.
	// Example: ["/home/vmc/vender-db/audio/tts/piper", "--model", "/home/vmc/vender-db/audio/tts/ruslan/voice.onnx", "--config", "/home/vmc/vender-db/audio/tts/ruslan/voice.json"]
	TTSExec []string `hcl:"tts_exec,optional"`
}

sound volume use fixed point. 12 = 1.2

Jump to

Keyboard shortcuts

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