Dịch thuật
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.

Với API dịch trên thiết bị của Bộ công cụ học máy, bạn có thể dịch văn bản một cách linh động giữa hơn 50 ngôn ngữ.
iOS
Android
Các khả năng chính
- Hỗ trợ ngôn ngữ rộng Dịch giữa hơn 50 ngôn ngữ khác nhau. Hãy xem danh sách đầy đủ.
- Mô hình dịch đã được kiểm chứng Được cung cấp bởi các mô hình tương tự mà chế độ ngoại tuyến của ứng dụng Google Dịch sử dụng.
- Quản lý mô hình động Để giảm thiểu các yêu cầu đối với bộ nhớ trên thiết bị bằng cách tự động tải và quản lý các gói ngôn ngữ.
- Chạy trên thiết bị Quá trình dịch được thực hiện nhanh chóng và không yêu cầu bạn gửi văn bản của người dùng đến máy chủ từ xa.
Các điểm hạn chế
Bản dịch trên thiết bị dùng cho các bản dịch thông thường và đơn giản. Chất lượng bản dịch phụ thuộc vào ngôn ngữ nguồn và ngôn ngữ đích. Bạn nên đánh giá chất lượng của bản dịch cho trường hợp sử dụng cụ thể của mình. Nếu bạn yêu cầu độ chân thực cao hơn, hãy dùng thử Cloud Translation API.
Ngoài ra, các mô hình dịch của Bộ công cụ học máy cũng được huấn luyện để dịch từ tiếng Anh sang tiếng Anh. Khi bạn dịch giữa các ngôn ngữ không phải tiếng Anh, tiếng Anh được dùng làm bản dịch trung gian. Điều này có thể ảnh hưởng đến chất lượng.
Nguyên tắc sử dụng
Hãy tham khảo trang Nguyên tắc để biết các nguyên tắc và quy định hạn chế quan trọng về việc sử dụng API này. Tài liệu này bao gồm các yêu cầu để đưa thuộc tính vào ứng dụng khi dịch văn bản.
Gửi ý kiến phản hồi
Do quá trình xử lý ngôn ngữ tự nhiên phức tạp, các bản dịch được cung cấp có thể không phù hợp với mọi ngữ cảnh hoặc đối tượng người xem. Nếu bạn thấy bản dịch không phù hợp, hãy liên hệ với nhóm hỗ trợ Bộ công cụ học máy. Ý kiến phản hồi của bạn giúp tiếp tục cải thiện các mô hình này, đồng thời cho phép chúng tôi tắt các bản dịch không phù hợp.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-08-29 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-08-29 UTC."],[[["\u003cp\u003eML Kit's on-device translation API enables dynamic translation between 50+ languages without needing an internet connection.\u003c/p\u003e\n"],["\u003cp\u003eIt leverages the same robust models as Google Translate's offline mode, ensuring high-quality translations.\u003c/p\u003e\n"],["\u003cp\u003eLanguage packs are dynamically managed, minimizing storage footprint on the user's device.\u003c/p\u003e\n"],["\u003cp\u003eWhile suitable for casual translations, it's recommended to evaluate the quality for specific use cases and consider Cloud Translation API for higher fidelity needs.\u003c/p\u003e\n"],["\u003cp\u003eTranslations involving non-English languages utilize English as an intermediary, potentially affecting the overall translation quality.\u003c/p\u003e\n"]]],["ML Kit's on-device translation API enables dynamic text translation between over 50 languages, utilizing the same models as Google Translate's offline mode. Language packs are dynamically managed to minimize storage. Translations occur directly on the device, ensuring speed and privacy. The API is designed for casual translations, with quality varying by language pair. For high fidelity, the Cloud Translation API is recommended. Usage requires adherence to specific guidelines, including attribution. Feedback is encouraged to improve the service.\n"],null,["With ML Kit's on-device translation API, you can dynamically translate text\nbetween more than 50 languages.\n\n[iOS](/ml-kit/language/translation/ios)\n[Android](/ml-kit/language/translation/android)\n\nKey capabilities\n\n- **Broad language support** Translate between more than 50 different languages. See the [complete list](/ml-kit/language/translation/translation-language-support).\n- **Proven translation models** Powered by the same models used by the Google Translate app's offline mode.\n- **Dynamic model management** Keep on-device storage requirements low by dynamically downloading and managing language packs.\n- **Runs on the device** Translations are performed quickly, and don't require you to send users' text to a remote server.\n\nLimitations\n\nOn-device translation is intended for casual and simple translations. The\ntranslation quality depends on the source and target languages. We recommend\nthat you evaluate the quality of the translations for your\nspecific use case. If you require higher fidelity, try the\n[Cloud Translation API](https://cloud.google.com/translate/).\n\nAlso, ML Kit's translation models are trained to translate to and from\nEnglish. When you translate between non-English languages, English is used as an\nintermediate translation, which can affect quality.\n\nUsage guidelines\n\nRefer to the [Guidelines page](/ml-kit/language/translation/translation-terms)\nfor important guidelines and restrictions on usage of this API. This document\nincludes requirements for including attribution in your app when translating\ntext.\n\nProvide feedback\n\nDue to the complexity of natural language processing, the translations provided\nmight not be appropriate for all contexts or audiences. If you encounter\ninappropriate translations, reach out to [ML Kit support](/ml-kit/community). Your\nfeedback helps to continue to improve the models, and also allows us to disable\ninappropriate translations."]]