Record sound: Difference between revisions

Content deleted Content added
{{header|GUISS}}
alphabetical order of the examples
Line 6:
 
=={{header|C}}==
 
Read/write raw device <code>/dev/dsp</code>. On Linux you need access to said device, meaning probably you should be in audio user group.
 
<lang c>#include <stdlib.h>
#include <unistd.h>
Line 37 ⟶ 39:
return 0;
}</lang>
 
=={{header|PythonGUISS}}==
 
Here we activate the Microsoft Windows '95 Sound Recorder:
 
<lang guiss>Start,Programs,Accessories,Sound Recorder,Button:Record</lang>
 
=={{header|PicoLisp}}==
 
<lang PicoLisp>(in '(rec -q -c1 -tu16 - trim 0 2) # Record 2 seconds
(make
(while (rd 2)
(link @) ) ) )</lang>
 
Output:
<pre>-> (16767 19071 17279 ... 5503 9343 14719) # 96000 numbers</pre>
 
=={{header|GUISSPython}}==
 
Here we activate the Microsoft Windows '95 Sound Recorder:
 
<lang guiss>Start,Programs,Accessories,Sound Recorder,Button:Record</lang>
 
=={{header|Python}}==
<lang python>import pyaudio
 
Line 72 ⟶ 78:
=={{header|Tcl}}==
{{libheader|Snack}}
 
<lang tcl>package require sound