diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a551a155..6274bc1e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -53,6 +53,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 contain a combination of function calls, function call responses, system messages, or just messages. +- Additional DTMF frames + ### Fixed - Fixed an issue where `ElevenLabsTTSService` messages would return a 1009 diff --git a/src/pipecat/frames/frames.py b/src/pipecat/frames/frames.py index e1239a2f8..d9d19f3ee 100644 --- a/src/pipecat/frames/frames.py +++ b/src/pipecat/frames/frames.py @@ -397,12 +397,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 #