We use cookies to try and give you a better experience in Freshdesk.
You can learn more about what kind of cookies we use, why, and how from our Privacy policy. If you hate cookies, or are just on a diet, you can disable them altogether too. Just note that the Freshdesk service is pretty big on some cookies (we love the choco-chip ones), and some portions of Freshdesk may not work properly if you disable cookies.
We’ll also assume you agree to the way we use cookies and are ok with it as described in our Privacy policy, unless you choose to disable them altogether through your browser.
Hi i'm a newbie NAO user and i don't understand C++. Can you explain me how to use ALRecorder using python for NAO6 with examples?
0 Votes
1 Comments
a.mignotte posted 9 months ago
Hello Régis,
Ce n'est pas forcément très compliqué de convertir du C++ en python et je vais essayer de répondre à ta question.
Le service ALRecorder n'existe pas. Mais je vais te donner les pistes et exemples, selon ton besoin, pour enregistrer le son et la vidéo de Nao.
- Pour le son, voici la documentation :
ALSoundRecorder
Comme tu peux le voir il y a 2 fonctions pour démarrer et arrêter l'enregistrement.
Du coup, il te faut dans un premier temps souscrire au service :
Ensuite tu démarres l'enregistrement en veillant à bien lire la documentation pour les paramètres (notamment les channels selon le type d'enregistrement) :
Et pour arrêter l'enregistrement il te suffit d'appeler la fonction :
soundRecorderProxy.stopMicrophonesRecording()
- Pour la vidéo, un très bon tutoriel en python est mis à ta disposition ici : Tutoriel
En t'appuyant sur la définition des fonctions tu devrais pouvoir t'en sortir : API
En espérant avoir pu t'aider et répondu à ta question.
Bon courage
Arnaud
0 Votes
Login or Sign up to post a comment