Touch Develop retirement postponed until June 22, 2019. Sign-in and access to cloud assets to be removed on May 23, 2018.Learn More..


TouchDevelop allows to record sounds from the microphone.
This code might not work on your current device: missing Microphone capabilities.
The senses→record microphone prompts the user to record the microphone.
var snd := senses → record microphone
If the user refused to record a sound or the microphone was not available, snd would be invalid. It's always a good idea to check for that.
if snd → is invalid then
Oops, no sound!
else ... end if
Once, you have the sound, play it!
snd → play