搜索插件、代码仓与 APP 分类

插件详情v2.2.2

simplytranslate

免费且无限的谷歌翻译和文本转语音。快速且私密。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
657
喜欢数
39
Pub 分数
150

安装插件

flutter pub add simplytranslate

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

SimplyTranslate 是一个 Flutter/Dart 包,提供免费且无限制的 Google 翻译和文本转语音(TTS)功能。专为速度和隐私设计,可在不依赖第三方 API 的情况下,实现应用程序中的无缝本地化和国际化。该包支持 Android、iOS、Web、macOS、Windows 和 Linux 多个平台,非常适合需要实时语言翻译和音频输出的跨平台应用。它利用 SimplyTranslate API,确保低延迟且无使用限制。

适合场景

  • 实时应用翻译
  • 多语言用户界面
  • 文本转语音集成
  • 离线可用的翻译功能
  • 跨平台本地化

主要特点

  • 免费且无限次翻译
  • 内置TTS支持
  • 快速且私密的 API 访问
  • 多平台兼容性
  • 通过 Flutter pub 简单集成
  • 无需 API 密钥

适合对象

  • 开发多语言应用程序的开发者
  • 需要即时翻译的应用程序
  • 注重用户隐私的项目
  • 跨平台移动和网页应用
  • 教育或无障碍功能工具

使用建议

  • 依赖第三方API(SimplyTranslate)
  • 翻译质量取决于上游服务
  • 翻译引擎的自定义功能有限
  • 不适合高安全性的翻译需求
  • 依赖网络以获得实时结果

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

SimplyTranslate-dart

GitHub | Pub

Project info

A Dart package to translate text using SimplyTranslate, Lingva Translate, and LibreTranslate.

TTS is also supported.

SimplyTranslate and Lingva Translate are free and open-source alternatives to Google Translate (that make use of Google Translate under the hood).

LibreTranslate is a free and open-source alternative to Google Translate that uses a open-source translation engine.

Not working?

As I can't always update the instance list (instances are run by volunteers and can be turned off at any time), do one of the following:

  • fetch the working instances via fetchInstances (look at example code, corresponding project is here)
  • Search for new instances by googling "simplytranslate" or "lingva translate" and set the instance with setInstance = "instance"
  • lingva instances can also be found here

Adding the package to your project

To add this package to your project, add the following line to your pubspec.yaml file under dependencies:

simplytranslate: ^2.2.2

then import the package in your Dart file:

import 'package:simplytranslate/simplytranslate.dart';

Usage

Example code

Limitations

  • Max character length per request for Japanese, Chinese, and Korean is around 1250. For other languages, it's around 5000 due to different encoding results.

Apps using SimplyTranslate

  • Pareader - Learn languages with news articles in multiple languages and translate words with a simple tap.

Buy me a coffee

ko-fi

Credits

This package is based on Gabriel Pacheco's google-translator, distributed under the MIT License.

As Google has request limitations, SimplyTranslate provides a free and open-source alternative with Google Translation quality.

所属分类

依赖

依赖清单 1 项

源码仓库

使用此插件的项目

暂无相关数据。