From b72504f1cbe87b1c21a04be93a35794ec639b31b Mon Sep 17 00:00:00 2001 From: Joe Garlick Date: Wed, 22 Jan 2025 13:47:23 +0000 Subject: [PATCH] Added: Additional DTMF frames --- CHANGELOG.md | 2 ++ src/pipecat/frames/frames.py | 14 ++++++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f6f5b2c42..8c4a7f25f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - It is now possible to specify the period of the `PipelineTask` heartbeat frames with `heartbeats_period_secs`. +- Additional DTMF frames + ### Fixed - Fixed a type error when using `voice_settings` in `ElevenLabsHttpTTSService`. diff --git a/src/pipecat/frames/frames.py b/src/pipecat/frames/frames.py index 695cc4c74..159672d30 100644 --- a/src/pipecat/frames/frames.py +++ b/src/pipecat/frames/frames.py @@ -394,12 +394,22 @@ class TransportMessageFrame(DataFrame): @dataclass -class InputDTMFFrame(DataFrame): - """A DTMF button input""" +class DTMFFrame(DataFrame): + """A DTMF button frame""" button: KeypadEntry +@dataclass +class InputDTMFFrame(DTMFFrame): + """A DTMF button input""" + + +@dataclass +class OuputDTMFFrame(DTMFFrame): + """A DTMF button output""" + + # # System frames #