搜尋套件、儲存庫與 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 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。