Skip to content

MikeWent/radiotelegram

Repository files navigation

radiotelegram

Telegram voice messages <> Baofeng radio RX/TX two-way bridge (half-duplex). logo

description

radiotelegram is a software-hardware project allowing you to to communicate with peers in Telegram chat using your handheld radio (walkie-talkie).

  • RX is recorded and sent to Telegram chat (topic) as a voice message.
  • incoming chat voice messages are played into radio TX.

hardware

Hardware requirements:

  • UR-5V Baofeng handheld radio (or compatible)
  • PC audio adapter

aprks1pro adapter photo

adapter DIY guide

Components:

  • (usb) audio card
  • 2.5mm jack cable
  • 3.5mm jack cable
  • ethernet transformer — you can find one in unused electroncs: old routers, pc motherboards or other devices with ethernet ports.

example view of an ethernet transformer schematics

Jack Contact Points
3.5mm Baofeng Sleeve, Ring
2.5mm Baofeng Sleeve, Tip
3.5mm Microphone Sleeve, Tip
3.5mm Headphones Sleeve, Tip
  1. find a datasheet for your ethernet transformer
  2. select two pairs as shown on the schematics
  3. cut cables, solder wires, that's it
  4. polarity is not that crucial, for voice it's ok both ways.

software

config

  1. copy .env.example to .env
  2. edit file: fill bot token, group id and topic id (if present).

python3.13, ffmpeg, ffplay

sudo apt install ffmpeg python3.13-venv

pyaudioop was disconutinued in python3.13 so audioop-lts package is used.

python3 -m venv ./venv
source ./venv/bin/activate
pip3 install -r requirements.txt

python3 ./radiotelegram/main.py

tuning (required)

  1. put baofeng into VOX mode (1/10).
  2. adjust main volume knob so that audio doesn't clip (<100% volume).
  3. adjust pc audio output volume so there is no voice distortion on the receiving end.

less is more. do NOT use full volume.

license

MIT

About

Telegram voice to radio RX/TX bridge

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages