debug
This commit is contained in:
@@ -60,6 +60,8 @@ class Audio:
|
|||||||
wf.close()
|
wf.close()
|
||||||
|
|
||||||
def _playFrames(self):
|
def _playFrames(self):
|
||||||
|
print("* playing recorded audio")
|
||||||
|
|
||||||
playbackStream = self.pyaudio.open(
|
playbackStream = self.pyaudio.open(
|
||||||
format=self.pyaudio.get_format_from_width(RESPEAKER_WIDTH),
|
format=self.pyaudio.get_format_from_width(RESPEAKER_WIDTH),
|
||||||
channels=RESPEAKER_CHANNELS,
|
channels=RESPEAKER_CHANNELS,
|
||||||
@@ -69,6 +71,7 @@ class Audio:
|
|||||||
|
|
||||||
# loop through self.frames and play audio
|
# loop through self.frames and play audio
|
||||||
for frame in self.frames:
|
for frame in self.frames:
|
||||||
|
print("playing a frame")
|
||||||
playbackStream.write(frame)
|
playbackStream.write(frame)
|
||||||
|
|
||||||
# cleanup stuff
|
# cleanup stuff
|
||||||
|
|||||||
Reference in New Issue
Block a user