Outils pour utilisateurs

Outils du site


projets:esgourde

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
projets:esgourde [2018/05/23 19:17] – [Partie enregistrement audio] gepetoprojets:esgourde [2024/02/09 16:56] (Version actuelle) – modification externe 127.0.0.1
Ligne 135: Ligne 135:
   * http://www.eca.cx/ecasound/Documentation/ecasound_manpage.html   * http://www.eca.cx/ecasound/Documentation/ecasound_manpage.html
 Pistes plutot python: Pistes plutot python:
-  * http://www.psychopy.org/about/index.html 
   * https://stackoverflow.com/questions/892199/detect-record-audio-in-python/6743593#6743593   * https://stackoverflow.com/questions/892199/detect-record-audio-in-python/6743593#6743593
   * https://github.com/tyiannak/pyAudioAnalysis   * https://github.com/tyiannak/pyAudioAnalysis
Ligne 168: Ligne 167:
 <code> <code>
 echo " echo "
 +/usr/bin/tvservice -o
 #su root -c alsactl -f alsactl_conf.ok restore # faire store avant #su root -c alsactl -f alsactl_conf.ok restore # faire store avant
 su pi -c /usr/local/bin/boucle_enregistre 2>&1 > /tmp/boucle.log & su pi -c /usr/local/bin/boucle_enregistre 2>&1 > /tmp/boucle.log &
 ">>/etc/rc.local ">>/etc/rc.local
-cat <<EOF > /usr/local/bin/boucle_enregistre+</code> 
 + 
 +fichier : /usr/local/bin/boucle_enregistre 
 +<code>
 #!/bin/bash #!/bin/bash
 mkdir -p /home/pi/enregistrements mkdir -p /home/pi/enregistrements
Ligne 184: Ligne 187:
 NOMFIC='/home/pi/enregistrements/'`date "+%Y%m%d_%H%M%S"`'.wav' NOMFIC='/home/pi/enregistrements/'`date "+%Y%m%d_%H%M%S"`'.wav'
 export PS1='${debian_chroot:+($debian_chroot)}\u@record:\w\$' export PS1='${debian_chroot:+($debian_chroot)}\u@record:\w\$'
 +if [ -f $NOMFIC ] ; then 
 +        NOMFIC=${NOMFIC%.*}X.wav 
 +fi
 ecasound -t:3600 -f:16,1,44100 -efh:100 -efl:15000 -i alsahw,0, -o $NOMFIC  ecasound -t:3600 -f:16,1,44100 -efh:100 -efl:15000 -i alsahw,0, -o $NOMFIC 
  
 sleep 10 sleep 10
 done done
-EOF 
-chmod 755 /usr/local/bin/boucle_enregistre 
 </code> </code>
 +
 +  chmod 755 /usr/local/bin/boucle_enregistre
 +
 /etc/fstab ajout : /etc/fstab ajout :
   /dev/mmcblk0p3 /home/pi/enregistrements vfat defaults,noatime,user,umask=0000 0 1   /dev/mmcblk0p3 /home/pi/enregistrements vfat defaults,noatime,user,umask=0000 0 1
projets/esgourde.1527095824.txt.gz · Dernière modification : 2024/02/09 16:55 (modification externe)