Fix : setup.py for browser requirement

This commit is contained in:
martin legrand
2025-03-13 14:48:02 +01:00
parent 6b2c773ebb
commit 0315d8e67f
4 changed files with 17 additions and 6 deletions
+2 -2
View File
@@ -1,5 +1,4 @@
from colorama import Fore
import pyaudio
import queue
import threading
import numpy as np
@@ -15,7 +14,8 @@ class AudioRecorder:
"""
AudioRecorder is a class that records audio from the microphone and adds it to the audio queue.
"""
def __init__(self, format: int = pyaudio.paInt16, channels: int = 1, rate: int = 4096, chunk: int = 8192, record_seconds: int = 5, verbose: bool = False):
def __init__(self, format: int, channels: int = 1, rate: int = 4096, chunk: int = 8192, record_seconds: int = 5, verbose: bool = False):
import pyaudio
self.format = format
self.channels = channels
self.rate = rate