Skip to content

Commit

Permalink
avoid using pyaudio if not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
aconchillo committed Mar 20, 2024
1 parent 520cee2 commit 61b961f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/dailyai/services/base_transport_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import itertools
import logging
import numpy as np
import pyaudio
import torch
import queue
import threading
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 61b961f

Please sign in to comment.