Skip to content

Commit

Permalink
list interface works with activation word
Browse files Browse the repository at this point in the history
  • Loading branch information
fractalego committed May 7, 2024
1 parent 5a973a5 commit 9ac2019
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions wafl/interface/list_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ def deactivate(self):
for interface in self._interfaces_list:
interface.deactivate()
super().deactivate()
self._synchronize_interfaces()


def add_hotwords(self, hotwords):
for interface in self._interfaces_list:
Expand Down
3 changes: 1 addition & 2 deletions wafl/interface/voice_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
import re

from wafl.events.utils import remove_text_between_brackets
from wafl.simple_text_processing.deixis import from_bot_to_user
from wafl.interface.base_interface import BaseInterface
from wafl.interface.utils import get_most_common_words, not_good_enough
from wafl.interface.utils import not_good_enough
from wafl.listener.whisper_listener import WhisperListener
from wafl.speaker.fairseq_speaker import FairSeqSpeaker
from wafl.speaker.soundfile_speaker import SoundFileSpeaker
Expand Down
3 changes: 1 addition & 2 deletions wafl/runners/run_web_and_audio_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ def create_scheduler_and_webserver_loop(conversation_id):
interface,
conversation_events,
_logger,
activation_word="", #config.get_value("waking_up_word"),
max_misses=-1,
activation_word=config.get_value("waking_up_word"),
)
web_loop = WebLoop(interface, conversation_id, conversation_events)
return {
Expand Down

0 comments on commit 9ac2019

Please sign in to comment.