This commit is contained in:
2026-08-28 19:51:36 -06:00
parent de1880d0dd
commit 9d3f79f863
5 changed files with 34 additions and 0 deletions
Executable
+1
View File
@@ -0,0 +1 @@
qpwgraph
+30
View File
@@ -0,0 +1,30 @@
import pyaudio
p = pyaudio.PyAudio()
# List devices to find the correct index for your AUX port
for i in range(p.get_device_count()):
dev_info = p.get_device_info_by_index(i)
print(f"Index: {i}, Name: {dev_info['name']}, Input Channels: {dev_info['maxInputChannels']}")
## Open stream with the specific device index
#device_index = 1 # Replace with your AUX port's index
#stream = p.open(
# format=pyaudio.paInt16,
# channels=1,
# rate=44100,
# input=True,
# input_device_index=device_index,
# frames_per_buffer=1024
#)
#
#print("Recording...")
#frames = []
#for _ in range(0, int(44100 / 1024 * 5)): # Record for 5 seconds
# data = stream.read(1024)
# frames.append(data)
#
#stream.stop_stream()
#stream.close()
#p.terminate()
#print("Recording finished.")
BIN
View File
Binary file not shown.
Executable
+2
View File
@@ -0,0 +1,2 @@
ffmpeg -f alsa -i default output.wav
Executable
+1
View File
@@ -0,0 +1 @@
ffmpeg -f alsa -i hw:1,0 output.wav