How to use the api for live call translation
Asked on 06/11/2025
1 search
To use the API for live call translation, you can leverage the new Translation API introduced by Apple. This API allows developers to enable Live Translation for calls within their communication apps. Here's a brief overview of how you can use it:
-
Translation Session: Use the
translation session
class to manage translations. This class allows you to translate one or more strings at a time and get results back using Swift async syntax. You don't create an instance oftranslation session
directly; instead, you attach a translation task to your view, which provides a session instance. -
Batch Translation: For translating multiple strings, use batch translation functions. This is more efficient than translating single strings one at a time. You can choose between getting all results at once or streaming them as they become available.
-
Language Detection: If you're unsure about the source language, you can set the source language to
nil
, and the API will attempt to identify it automatically. This is useful for live call scenarios where the language might not be known in advance. -
Language Support: The API supports a wide range of languages, similar to those in the Translate app. You can check which languages are supported using the language availability class.
-
On-Device Processing: The translation is powered by on-device machine learning models, ensuring that personal conversations remain private.
For more detailed implementation guidance, you can refer to the session Meet the Translation API (04:01) which covers flexible translation options and best practices.

Keynote
Don’t miss the exciting reveal of the latest Apple software and technologies.

Meet the Translation API
Discover how you can translate text across different languages in your app using the new Translation framework. We’ll show you how to quickly display translations in the system UI, and how to translate larger batches of text for your app’s UI.

Bring advanced speech-to-text to your app with SpeechAnalyzer
Discover the new SpeechAnalyzer API for speech to text. We’ll learn about the Swift API and its capabilities, which power features in Notes, Voice Memos, Journal, and more. We’ll dive into details about how speech to text works and how SpeechAnalyzer and SpeechTranscriber can enable you to create exciting, performant features. And you’ll learn how to incorporate SpeechAnalyzer and live transcription into your app with a code-along.