This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
".conda.zip": null, | |
".gitignore": ".conda/\n**/__pycache__/\nrecorded_ptt_audio.wav\nassets/\nstructure.json\nupdate.json\n.conda.zip\nnoise/\nextras/\nstructure.txt", | |
"assets/sounds/background.mp3": null, | |
"assets/sounds/end_beep (1).wav": null, | |
"assets/sounds/end_beep (2).wav": null, | |
"assets/sounds/start_beep_all.wav": null, | |
"audio/__init__.py": "", | |
"audio/mic_manager.py": "import sounddevice as sd\n\nclass MicManager:\n def __init__(self, samplerate=16000, channels=1):\n self.samplerate = samplerate\n self.channels = channels\n\n def stream(self, callback):\n return sd.InputStream(samplerate=self.samplerate, channels=self.channels, callback=callback)\n", | |
"audio/vad.py": "import webrtcvad\nimport collections\nimport sounddevice as sd\nimport numpy as np\nimport time\n\nclass VAD:\n def __init__(self, aggressiveness=2, samplerate=16000, frame_duration=30, silence_threshold=1.0):\n self.vad = webrtcvad.Vad(aggressiveness)\n self.samplerate = sampl |