How to record voice, auto-transcribe, translate (auto-detect input language), and play back translated audio on same device in iOS Swift?

Hi everyone 👋

I’m building an iOS app in Swift where I want to do the following:

  1. Record the user’s voice
  2. Transcribe the spoken sentence (speech-to-text)
  3. Auto-detect the spoken language
  4. Translate it to another language selected by the user (e.g., English → Spanish or Hindi → English)
  5. Speak back (text-to-speech) the translated text on the same device

Is this possible to record via phone mic and play the transcribe voice into headphone's audio?

How to record voice, auto-transcribe, translate (auto-detect input language), and play back translated audio on same device in iOS Swift?
 
 
Q