Fix : setup.py for browser requirement
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user