File size: 1,046 Bytes
53ea588
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: BSD 2-Clause License

"""Transcript frames."""

from dataclasses import dataclass

from pipecat.frames.frames import SystemFrame

from nvidia_pipecat.frames.action import ActionFrame


@dataclass
class UserUpdatedSpeakingTranscriptFrame(SystemFrame, ActionFrame):
    """A frame that contains user's partial transcript.

    Args:
        transcript: The user speech transcript
    """

    transcript: str


@dataclass
class UserStoppedSpeakingTranscriptFrame(SystemFrame, ActionFrame):
    """A frame that contains the final user transcript.

    This frame usually comes after UserStoppedSpeakingFrame.

    Args:
        transcript: The user speech transcript
    """

    transcript: str


@dataclass
class BotUpdatedSpeakingTranscriptFrame(SystemFrame, ActionFrame):
    """A frame that contains bot's partial transcript.

    Args:
        transcript: The bot speech transcript.
    """

    transcript: str