Skip to content

Can't override emit when inheriting ReplyOnPause #366

@Infrared1029

Description

@Infrared1029

I'm trying to add my custom emit logic after inheriting from ReplyOnPause, but I'm unable to override emit's default behviour.

minimal example:

from fastrtc import Stream, ReplyOnPause

class CustomeReplyOnPause(ReplyOnPause):
    def emit(self):
        return None

def echo_response(audio):
    yield audio

stream = Stream(CustomeReplyOnPause(echo_response), modality="audio", mode="send-receive")

stream.ui.launch()

Even though emit is always returning None, im stilling getting my voice echoed back

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions