The Following 38 Users Say Thank You to Encypruon For This Useful Post: | ||
anthonie, arcean, Boemien, chill, Copernicus, DA5, endsormeans, Estel, foobar, fw190, gianko, Half-Life_4_Life, Hurrian, int_ua, juiceme, justmemory, lal, lexik, Mentalist Traceur, mlwane, myname24, ndhikaa, nikname, nokiabot, OVK, phap, pichlo, rcolistete, reinob, roflmaoo, rotoflex, SHARP66, sLumPia, Sohil876, taixzo, Vento, whayong, Wikiwide |
![]() |
2014-07-11
, 13:10
|
|
Posts: 1,974 |
Thanked: 1,834 times |
Joined on Mar 2013
@ india
|
#2
|
![]() |
2014-07-11
, 13:11
|
|
Posts: 3,141 |
Thanked: 8,164 times |
Joined on Feb 2013
@ From my Gabriola Island hermitage, near the Edge of the World
|
#3
|
![]() |
2014-07-11
, 14:21
|
|
Posts: 40 |
Thanked: 48 times |
Joined on Jul 2013
@ Pondokgede, Indonesia
|
#4
|
![]() |
2014-07-11
, 16:22
|
Posts: 445 |
Thanked: 367 times |
Joined on Nov 2010
@ Italy
|
#5
|
![]() |
2014-07-11
, 18:05
|
|
Posts: 1,974 |
Thanked: 1,834 times |
Joined on Mar 2013
@ india
|
#6
|
The Following User Says Thank You to nokiabot For This Useful Post: | ||
![]() |
2014-07-11
, 18:15
|
|
Posts: 3,141 |
Thanked: 8,164 times |
Joined on Feb 2013
@ From my Gabriola Island hermitage, near the Edge of the World
|
#7
|
The Following User Says Thank You to endsormeans For This Useful Post: | ||
![]() |
2014-07-11
, 18:47
|
|
Posts: 1,974 |
Thanked: 1,834 times |
Joined on Mar 2013
@ india
|
#8
|
The Following User Says Thank You to nokiabot For This Useful Post: | ||
![]() |
2014-07-11
, 19:49
|
Posts: 178 |
Thanked: 91 times |
Joined on May 2011
@ Mira (Venice) - Italy
|
#9
|
The Following User Says Thank You to Vento For This Useful Post: | ||
![]() |
2014-07-11
, 20:33
|
|
Posts: 5,028 |
Thanked: 8,613 times |
Joined on Mar 2011
|
#10
|
I hope this is the right place to post this
EDIT: It seems like Python is not always taking care of the two subprocesses this script is spawning. The right solution might be wrapping the whole thing in a try-catch-block and cleaning up yourself. I prefer the lazy solution: Starting it with "python echo.py; killall arecord; killall aplay;" If the subprocess module doesn't do it's job properly, killall can take care of it
EDIT2: As Vento suggested, I've added "Script" to the title.
Please tell me if there's a way to embed the video that I've missed. Just in case
Demo Video
The script on pastebin
Last edited by Encypruon; 2014-07-12 at 11:00.