From 61b961faf327e22c4e60eec87c10915f749a6b21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Wed, 20 Mar 2024 15:12:22 -0700 Subject: [PATCH] avoid using pyaudio if not needed --- src/dailyai/services/base_transport_service.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/dailyai/services/base_transport_service.py b/src/dailyai/services/base_transport_service.py index c4d963007..4dda3ae89 100644 --- a/src/dailyai/services/base_transport_service.py +++ b/src/dailyai/services/base_transport_service.py @@ -3,7 +3,6 @@ import itertools import logging import numpy as np -import pyaudio import torch import queue import threading @@ -57,12 +56,7 @@ def int2float(sound): return sound -FORMAT = pyaudio.paInt16 -CHANNELS = 1 SAMPLE_RATE = 16000 -CHUNK = int(SAMPLE_RATE / 10) - -audio = pyaudio.PyAudio() class VADState(Enum):