mirror of
https://github.com/tcsenpai/agenticSeek.git
synced 2025-06-06 11:05:26 +00:00
fix : error pyaudio import
This commit is contained in:
parent
751212db47
commit
0397183f2a
@ -5,6 +5,8 @@ import numpy as np
|
|||||||
import torch
|
import torch
|
||||||
import time
|
import time
|
||||||
from transformers import AutoModelForSpeechSeq2Seq, AutoProcessor, pipeline
|
from transformers import AutoModelForSpeechSeq2Seq, AutoProcessor, pipeline
|
||||||
|
import librosa
|
||||||
|
import pyaudio
|
||||||
|
|
||||||
audio_queue = queue.Queue()
|
audio_queue = queue.Queue()
|
||||||
done = False
|
done = False
|
||||||
@ -14,8 +16,6 @@ class AudioRecorder:
|
|||||||
AudioRecorder is a class that records audio from the microphone and adds it to the audio queue.
|
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 = pyaudio.paInt16, channels: int = 1, rate: int = 4096, chunk: int = 8192, record_seconds: int = 5, verbose: bool = False):
|
||||||
import librosa
|
|
||||||
import pyaudio
|
|
||||||
self.format = format
|
self.format = format
|
||||||
self.channels = channels
|
self.channels = channels
|
||||||
self.rate = rate
|
self.rate = rate
|
||||||
|
Loading…
x
Reference in New Issue
Block a user