Record sound: Difference between revisions

Content deleted Content added
m →‎{{header|Diego}}: added Diego entry
Line 343: Line 343:


=={{header|Diego}}==
=={{header|Diego}}==
This <code>instruct</code>ion understands that the found <code>thing</code> has a microphone, so will have microphone-related knowledge. If the caller does not have microphone knowledge, the callee will train the caller on first request.
This <code>instruct</code>ion understands that the found <code>thing</code> has a microphone, so will have microphone knowledge. If the caller does not have microphone knowledge, the callee will train the caller on first request.
<lang diego>begin_funct({wav}, Record sound);

begin_funct({wav}, Record sound);
set_decision(linger);
set_decision(linger);
find_thing()_first()_microphone()_bitrate(16)_tech(PCM)_samplerate(signed16, unsigned16)_rangefrom(8000, Hz)_rangeto(44100, Hz)_export(.wav)
find_thing()_first()_microphone()_bitrate(16)_tech(PCM)_samplerate(signed16, unsigned16)_rangefrom(8000, Hz)_rangeto(44100, Hz)_export(.wav)
Line 361: Line 360:


// Record a monophonic 16-bit PCM sound into a file or array:
// Record a monophonic 16-bit PCM sound into a file or array:
exec_funct(Record sound)_file(foo.wav)_me(); // The file 'foo.wav' is the sound in a file
exec_funct(Record sound)_file(foo.wav)_me(); // The file 'foo.wav' is the sound in a file</lang>


=={{header|GUISS}}==
=={{header|GUISS}}==