respeaker_python_library icon indicating copy to clipboard operation
respeaker_python_library copied to clipboard

mic.record() is incomplete

Open xaviliz opened this issue 6 years ago • 3 comments

Hi all,

first of all, thanks for your dedication.

I have tried to use mic.record() but I have realize record function is incomplete or at least I cannot see wave.writeframes(data). Can you confirm it?

Thanks a lot, XL

xaviliz avatar Dec 20 '18 12:12 xaviliz

You are right. The record() is not implemented. I will try to get it work

xiongyihui avatar Dec 21 '18 03:12 xiongyihui

Just add some code to implement the function. It should work. See https://github.com/respeaker/respeaker_python_library/blob/master/respeaker/microphone.py#L340

xiongyihui avatar Dec 21 '18 03:12 xiongyihui

@xiongyihui thanks for your reply. To start with some test I have implemented an offline recorder. If I fix record() function for real-time, I will try to commit it. However I have tried to run some example with respeakerd but I have some issue with PulseAudio, I will open a new issue for that.

xaviliz avatar Dec 24 '18 10:12 xaviliz