respeaker / respeaker_python_library

To build voice enabled objects/applications with Python and ReSpeaker
Apache License 2.0
149 stars 74 forks source link

mic.record() is incomplete #47

Open xaviliz opened 5 years ago

xaviliz commented 5 years ago

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

xiongyihui commented 5 years ago

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

xiongyihui commented 5 years ago

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

xaviliz commented 5 years ago

@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.