Set STT default to oneshot; add pending_finalize and env model

This commit is contained in:
RingOfStorms (Joshua Bell) 2026-01-14 08:30:55 -06:00
parent acee131f72
commit f67c18fc9e
7 changed files with 157 additions and 32 deletions

View file

@ -39,4 +39,4 @@ set_target_properties(stt PROPERTIES PREFIX "")
# Install targets - use standard paths, Nix postInstall will handle fcitx5 paths
install(TARGETS stt DESTINATION lib/fcitx5)
install(FILES data/stt.conf DESTINATION share/fcitx5/addon)
install(FILES data/stt-im.conf DESTINATION share/fcitx5/inputmethod)
install(FILES data/stt-inputmethod.conf DESTINATION share/fcitx5/inputmethod RENAME stt.conf)

View file

@ -159,7 +159,7 @@ private:
std::string readBuffer_;
// Mode
SttMode mode_ = SttMode::Manual;
SttMode mode_ = SttMode::Oneshot;
// Current state
bool ready_ = false;