You can dictate text instead of typing it on an Apple external keyboard.
Note: Dictation may not be available in all languages or in all countries or regions, and features may vary. Cellular data charges may apply (Wi-Fi + Cellular models).
Go to Settings -D on the Magic Keyboard for iPad or Smart Keyboard.