Believe it or not, I already built this exact app over 10 years ago. It is much easier to do on Android, as another commenter has pointed out.
I still remember a specific subset of Morse code that includes my then-girlfriend's initials because of it.
No longer available on the store because of Google Play's endless developer demands, but here's the proof: https://web.archive.org/web/20150811222142/http://norse.cryo...