| | |
| | | return s.cfg.SoundFeedback |
| | | } |
| | | |
| | | // SetHotkeyMode sets the voice input interaction mode. |
| | | func (s *ConfigService) SetHotkeyMode(mode string) { |
| | | s.cfg.HotkeyMode = config.NormalizeHotkeyMode(mode) |
| | | config.Save(s.cfg) |
| | | } |
| | | |
| | | // GetHotkeyMode returns the voice input interaction mode. |
| | | func (s *ConfigService) GetHotkeyMode() string { |
| | | s.cfg.HotkeyMode = config.NormalizeHotkeyMode(s.cfg.HotkeyMode) |
| | | return s.cfg.HotkeyMode |
| | | } |
| | | |
| | | // SetCopyToClipboard sets whether recognized text remains in the clipboard after input. |
| | | func (s *ConfigService) SetCopyToClipboard(enabled bool) { |
| | | s.cfg.CopyToClipboard = enabled |