try to make it work for rpi speakers

This commit is contained in:
talksik
2023-04-29 10:36:54 -07:00
parent ac82f083b0
commit b856d9370c
+4 -3
View File
@@ -107,10 +107,11 @@ class Audio:
# open stream based on the wave object which has been input.
stream = p.open(
format=p.get_format_from_width(wf.getsampwidth()),
channels=wf.getnchannels(),
rate=wf.getframerate(),
format=p.get_format_from_width(RESPEAKER_WIDTH),
channels=RESPEAKER_CHANNELS,
rate=RESPEAKER_RATE,
output=True,
output_device_index=RESPEAKER_INDEX,
)
# read data (based on the chunk size)