I’m trying to get a recording from Pepper’s microphones over a period of time.
What I’m trying is basically this:
<code>audio_service = session.service("ALAudioDevice")
audio_service.startMicrophonesRecording('/data/home/nao/test.wav')
time.sleep(5)
audio_service.stopMicrophonesRecording()
print "Audio obtained"
</code>
<code>audio_service = session.service("ALAudioDevice")
audio_service.startMicrophonesRecording('/data/home/nao/test.wav')
time.sleep(5)
audio_service.stopMicrophonesRecording()
print "Audio obtained"
</code>
audio_service = session.service("ALAudioDevice")
audio_service.startMicrophonesRecording('/data/home/nao/test.wav')
time.sleep(5)
audio_service.stopMicrophonesRecording()
print "Audio obtained"
It correctly connects to NaoQi and there are no errors upon execution, but when I look for test.wav
it’s not created. I’ve checked the documentation and the example but it doesn’t really work.
I’m quite new to robot programming so any help would be appreciated!
New contributor
voidonaut is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.