This PR adds support for keyword-based interrupts in the vocode-python repository. Currently, the bot gets interrupted whenever the human starts speaking. With this PR, we introduce a new configuration parameter for the wake-up word, allowing users to specify a specific word that triggers an interrupt. This is useful in cases where interruptions should only occur based on a wake-up word, similar to how "Alexa" works.
Summary of Changes
Added a new configuration parameter wake_up_word in the AgentConfig class in vocode/streaming/agent/base_agent.py.
Modified the process method of the TranscriptionsWorker class in vocode/streaming/streaming_conversation.py to check for the wake-up word before broadcasting an interrupt.
Please review and merge this PR to enable keyword-based interrupts in the vocode-python repository.
Fixes #3.
To checkout this PR branch, run the following command in your terminal:
Description
This PR adds support for keyword-based interrupts in the
vocode-python
repository. Currently, the bot gets interrupted whenever the human starts speaking. With this PR, we introduce a new configuration parameter for the wake-up word, allowing users to specify a specific word that triggers an interrupt. This is useful in cases where interruptions should only occur based on a wake-up word, similar to how "Alexa" works.Summary of Changes
wake_up_word
in theAgentConfig
class invocode/streaming/agent/base_agent.py
.process
method of theTranscriptionsWorker
class invocode/streaming/streaming_conversation.py
to check for the wake-up word before broadcasting an interrupt.Please review and merge this PR to enable keyword-based interrupts in the
vocode-python
repository.Fixes #3.
To checkout this PR branch, run the following command in your terminal: