Add ReplyOnStopWords (#35)

* add code

* fix dependencies

* add code:
This commit is contained in:
Freddy Boulton
2024-12-11 18:25:53 -08:00
committed by GitHub
parent b1e4326ae3
commit 6c983482b8
14 changed files with 368 additions and 18 deletions

View File

@@ -3,7 +3,7 @@ import fractions
import io
import logging
import tempfile
from typing import Any, Callable, Protocol, cast
from typing import Any, Callable, Protocol, TypedDict, cast
import av
import numpy as np
@@ -15,6 +15,11 @@ logger = logging.getLogger(__name__)
AUDIO_PTIME = 0.020
class AudioChunk(TypedDict):
start: int
end: int
class AdditionalOutputs:
def __init__(self, *args) -> None:
self.args = args