This PR adds support for keyword-based interrupts in the vocode-python repository. Currently, the bot gets interrupted when the human starts speaking. With this change, users will be able to specify a wake-up word that should be used to interrupt the bot. This allows for more control over when the bot gets interrupted.
Summary of Changes
Added a new configuration parameter wake_up_word in the AgentConfig class in vocode/streaming/models/agent.py. This parameter is optional and defaults to None.
Modified the process method in the TranscriptionsWorker class in vocode/streaming/streaming_conversation.py to check if the transcribed text contains the wake-up word before broadcasting an interrupt. If the wake-up word is not specified or if the transcribed text contains the wake-up word, an interrupt is sent to the bot.
Please review and merge this PR. Thank you!
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 when the human starts speaking. With this change, users will be able to specify a wake-up word that should be used to interrupt the bot. This allows for more control over when the bot gets interrupted.Summary of Changes
wake_up_word
in theAgentConfig
class invocode/streaming/models/agent.py
. This parameter is optional and defaults toNone
.process
method in theTranscriptionsWorker
class invocode/streaming/streaming_conversation.py
to check if the transcribed text contains the wake-up word before broadcasting an interrupt. If the wake-up word is not specified or if the transcribed text contains the wake-up word, an interrupt is sent to the bot.Please review and merge this PR. Thank you!
Fixes #3.
To checkout this PR branch, run the following command in your terminal: