With Duolingo's speech technology, you only have to click the microphone button once, and then the recording will automatically stop once you are finished speaking.