A screenshot of the speech-to-text functionality iOS 5 feature has been leaked. The screenshot above was leaked by 9to5Mac. The feature is pretty simple.
By clicking the microphone icon next to the space key, a microphone overlay will appear as long as you are talking. Once you are done talking, the text will appear in the text field. This feature is currently in beta testing so the final feature may appear differently.