mumble-voip/mumble

Support of variuous PTT hardware

开放

#6,784 创建于 2025年4月16日

 (7 条评论) (0 个反应) (0 位负责人)C++ (1,062 个派生)batch import
GlobalShortcutsclientfeature-requesthelp wanted

仓库指标

星标
 (5,642 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Context

There are plenty of PTT apps exist on a market mostly for mobile devices and they already have existing hardware which meant to be used in scenarios similar to Mumble. Most of that hardware has APIs and protocols which are open and well documented such as PTT mics, headsets and buttons for Zello, NuovoTeam, RealPTT.

Description

Add support for PTT hardware

Mumble component

Client

OS-specific?

No

Additional information

I did a quick prototype using my AinaPTT Remote-Speaker-Microphone. In essence its just a BT headset with a serial port for buttons data. Documented both on Zello and Aina websites

So the simple python sketch which reads serial input and simulates a hotkey press for Mumble woks as a charm =)

import serial, keyboard

with serial.Serial('COM18', 115200, timeout=0.1) as ser:
    print("Connected")
    while(True):
        rxdata = ser.read(8)
        #print(str(rxdata))
        if rxdata == b'+PTT=P':
            print('PTT DOWN')
            keyboard.press("capslock")
        elif rxdata == b'+PTT=R':
            print('PTT UP')
            keyboard.release("capslock")

Would be great to implement it natively in Mumble app. I don't have experience with BLE stack so I don't know how much work is needed to add this, but serial port looks pretty simple and platform agnostic.

贡献者指南