mumble-voip/mumble

Support of variuous PTT hardware

Open

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

在 GitHub 查看
 (7 评论) (0 反应) (0 负责人)C++ (5,642 star) (1,062 fork)batch import
GlobalShortcutsclientfeature-requesthelp wanted

描述

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.

贡献者指南