Skip to content

Commit

Permalink
add tag and clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
C-Loftus committed Feb 15, 2024
1 parent 5805add commit 72c254e
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 41 deletions.
23 changes: 0 additions & 23 deletions application-integration/gpt-utils.py

This file was deleted.

15 changes: 0 additions & 15 deletions application-integration/gpt-utils.talon

This file was deleted.

6 changes: 3 additions & 3 deletions core/core-agnostic.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
and are agnostic to the tts voice being used or the operating system
"""

from typing import Optional
from typing import Optional, Callable
from talon import Module, actions, Context, settings, app

mod = Module()
Expand All @@ -19,11 +19,11 @@ def initialize_settings():
# initialize the settings only after the user settings have been loaded
app.register('ready', initialize_settings)

speaker_cancel_callback: Optional[callable] = None
speaker_cancel_callback: Optional[Callable] = None

@mod.action_class
class Actions:
def set_cancel_callback(callback: callable):
def set_cancel_callback(callback: Callable):
"""
Sets the callback to call when the current speaker is cancelled. Only
necessary to set if the tts is coming from a subprocess where we need to store a handle
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,10 @@
default=False
)

mod.tag(
"sightFreeTalonInstalled",
desc="Tag to indicate that you can use TTS"
)

# mod.mode("strict_dictation", desc="Dictation mode with only a subset of dictation commands")
# mod.mode('strict_command', desc='Command mode with only a subset of command commands')
2 changes: 2 additions & 0 deletions sight-free-global.talon
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Global TTS commands that are OS independent
# See each folder for specific contextual commands

tag(): user.sightFreeTalonInstalled

toggle echo:
user.toggle_echo()

Expand Down

0 comments on commit 72c254e

Please sign in to comment.