语音转文本 Telegram 机器人 Dart

使用 Whisper-Dart 库的 Telegram 语音转文本机器人,完全离线,无限转录,无需任何 API 密钥。

2022-12-06.02-58-33.mp4

运行方法

  1. 先克隆

git clone https://github.com/azkadev/speech_to_text_telegram_bot_dart
cd speech_to_text_telegram_bot_dart
  1. 先下载包
dart pub get
  1. 下载模型并编译 whisper_cpp Whisper-Dart

└── whisper_dart
    ├── place_whisper_model_and_shared_library_here
    ├── whisper.bin
    └── whisper.so
  1. 运行
dart run bin/speech_to_text_telegram_bot_dart.dart  --token_bot="token" --api_id="telegram_api_id" --api_hash="telegram_api_hash"

GitHub

查看 Github