Jump to content

hear sound of recorded with orange pi at another PC


hatahata

Recommended Posts

it is heard to consist of remote speaker with   paprefs and pavucontrol for me  and controll is difficult so orange pi sometomes  lose sound .

so i give up .

 

i seek for more easy way .

 

my situation is

orange pi---------------------------------------> DELL PC

(record sound )                                          (hear sound )

 

 

1) at orange pi

shell script

-----------------

arecord --device hw:0 -r 44100 -f S16_LE /home/orange/1.mp3 &
while true
do
scp         /home/orange/1.mp3 yuma@192.168.10.230:/home/yuma      
sleep 180
done
 

 

and

2) at DELL PC

mplayer  /home/yuma/1.mp3

 

 

surely i can hear sound at DELL PC .

but synclonization is poor .

i want to hear almost now sound ( 30 sec late or so is OK) .<- baby sitting

 

1.mp3 becames bigger and bigger , so scp take more times .

more better script can be .

are there any ideas ?

 

i do 'arecord' twice , then 'arecord: main:722: audio open error: Device or resource busy' appear .

sound is more difficult than image , so i think .

 

--------

regards

Link to comment
Share on other sites

icecast is also difficult for me .

i adopt nfs .

 

the chart is

orange pi(record sounds ) ---> debiandog(nfs server,192.168.100.105)

 

 

at debiandog

/etc/exports

---------------
/srv/homes 192.168.100.*(rw,sync,fsid=0,crossmnt,no_subtree_check)

 

 

at orange pi

shell script as root

-------------------

mount.nfs 192.168.100.105:/srv/homes  /mnt

rm /mnt/1.mp3
pkill -9 arecord

arecord --device hw:0 -f S16_LE /mnt/1.mp3 &

 

 

then

at debiandog

mplayer /srv/homes/1.mp3

 

 

it is strange that /srv/homes/1.mp3 apears after 30 sec or so after recording  .

name ly there is time lag .

in mplayer    push right allow then sound is near to now .

 

but

Recording WAVE '/mnt/1.mp3' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono
overrun!!! (at least 228.306 ms long)
overrun!!! (at least 37.292 ms long)
overrun!!! (at least 67.655 ms long)
overrun!!! (at least 115.382 ms long)
appear after sometime.

something is wrong .

 

 

but reverse direction

orange pi(record sounds in pi's disk & nfs server ) <--- debiandog(nfs client , play pi's mp3 file )

is stable .

 

 

if you combinate with cheese over vnc , you can make video monitoring in another PC nevertheless sound is several seconds late .

vnc.jpg

---

regards

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines