-1

I'm trying to get a recording from Pepper's microphones over a period of time.

What I'm trying is basically this:

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!

3
  • The first hint for this usage is to know the file "/data/home/nao/test.wav" won't be created on your computer harddrive but on the robot harddrive. Use ssh to check its existence then scp or ftp (eg filezilla client) to retrieve it. Commented Jun 19 at 22:35
  • Is this really about Python 2.7? It's been deprecated since 2020. There are not even security updates any more. If so, you should switch to a maintained version of Python as soon as possible. If not, please remove the [python-2.7] tag.
    – Friedrich
    Commented Jun 20 at 12:34
  • @Friedrich: I think it could be impossible for the OP to switch the python version, if it is the python on the robot itself... Commented Jun 20 at 12:40

0

Browse other questions tagged or ask your own question.