Push to talk linux

Push to talk linux

Copy raw contents

Copy raw contents

# Copyright (c) 2012 Adam Coddington
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# «Software»), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED «AS IS», WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
import dbus
import logging
__all__ = [ ‘SkypeInterface’ , ]
class SkypeInterface ( object ):
verb = «Mute only Skype»
def __init__ ( self ):
self . logger = logging . getLogger ( ‘push_to_talk_app.interfaces.skype’ )
self . bus = dbus . SessionBus ()
self . configured = False
def configure ( self ):
try :
self . logger . debug ( «Configuring. » )
self . outgoing = self . bus . get_object ( ‘com.Skype.API’ , ‘/com/Skype’ )
self . outgoing_channel = self . outgoing . get_dbus_method ( ‘Invoke’ )
self . configured = True
self . start ()
self . logger . debug ( «Configured.» )
return False
except :
# This happens if Skype is not available.
return True
def mute ( self ):
self . _invoke ( «MUTE ON» )
def unmute ( self ):
self . _invoke ( «MUTE OFF» )
def _invoke ( self , message ):
if not self . configured :
self . configure ()
try :
self . outgoing_channel ( message )
except :
self . configured = False
def start ( self ):
self . _invoke ( ‘NAME PushToTalk’ )
self . _invoke ( ‘PROTOCOL 5’ )
Читайте также:  Защитник windows 10 отключен системным администратором

You can’t perform that action at this time.

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

Источник

Как говорить по микрофону только при нажатии клавиши

Я использую Skype и Brosic для видеоконференций с друзьями. Часто появляется шум от фона.

Я использую Centos и Ubuntu для рабочих станций. Есть ли способ настроить Linux для активации микрофона только при нажатии клавиши, например, Shift ? Я хочу, чтобы люди слышали меня, когда я нажимаю клавишу Shift .

3 ответа 3

Может быть, этот репозиторий на bitbucket подойдет вам?

Это только для Skype, однако. Это для Linux в целом:

У меня нет личного опыта с этим, но на форумах Skype кто-то спрашивал об этом и упоминал что-то вроде «Push to Mute» или «Push to to Mute». Наверное, в некотором роде, но вы можете извлечь из этого аналогичную функциональность. Цитирую ветку.

Сервис -> Параметры -> Дополнительно -> Горячие клавиши. Выберите последний элемент и назначьте горячую клавишу. Сохранить.

Я регулярно использовал функцию толчка к разговору в Ventrillo, и я должен сказать, что толчок к отключению звука, вероятно, был бы не таким уж полезным, но если у вас уже не сожжена мышечная память об обратном, этого может быть достаточно. Плюс, очевидно, он встроен в Skype.

Skype в стиле Metro не раскрывает пользовательские настройки для привязки клавиш и имеет только привязку клавиш «Вкл. / Выкл. Ctrl+M (переключение, а не «разговор»):

Настройки привязки ключей удалены с сегодняшнего (2018-04-16) обновленного рабочего стола Skype:

Microsoft даже бесит, если вы работаете в Windows 10 и пытаетесь установить Desktop Skype (у Metro Skype нет возможности оставаться в фоновом режиме). Это подталкивает вас к использованию режима совместимости Win 8 в установщике. В противном случае он отказывается устанавливать версию Desktop.

Источник

push_to_talk 1.0.4

pip install push_to_talk Copy PIP instructions

Released: Mar 12, 2012

Push-to-talk functionality for Linux

Statistics

View statistics for this project via Libraries.io, or by using our public dataset on Google BigQuery

License: MIT License (UNKNOWN)

Maintainers

Classifiers

  • License
    • OSI Approved :: MIT License
  • Operating System
    • OS Independent
  • Programming Language
    • Python
  • Topic
    • Utilities

Project description

Project details

Statistics

View statistics for this project via Libraries.io, or by using our public dataset on Google BigQuery

License: MIT License (UNKNOWN)

Maintainers

Classifiers

  • License
    • OSI Approved :: MIT License
  • Operating System
    • OS Independent
  • Programming Language
    • Python
  • Topic
    • Utilities

Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you’re not sure which to choose, learn more about installing packages.

Читайте также:  Драйвер для hp laserjet p1005 mfp для windows 10

Источник

Push to talk linux

Push-to-Talk for PulseAudio

This program implements «push-to-talk» functionality for programs that access your microphone using PulseAudio. It was created because Zoom’s Linux client does not support push-to-talk. (The Windows and macOS clients do support push-to-talk.)

Once your program of interest has started getting audio from your microphone, launch ptt_pa. A black window will appear, and the program will stop receiving microphone input. When the space key is held, the window will turn white and the program will receive microphone input again.

  • Xlib, and development headers if building from source. On Ubuntu the library is provided by the package libx11-6 and the headers are provided by the package libx11-dev.
  • pacmd. On Ubuntu this program is provided by the package pulseaudio-utils.

Run Make in the root directory of this repository. This will produce an executable ptt_pa in that same directory.

  1. Start your program of interest, and start recording audio. (It’s not enough to just start the program. For Zoom, this means that you should join a meeting before proceeding.)
  2. Run pacmd list-source-outputs . Make note of the index of the output associated with the program you’re interested in.
  3. Run ./ptt_pa [THAT INDEX] .
  4. Press and hold the space key whenever you wish to unmute yourself.

Known problems and to-dos

  • Closing the program while muted will leave the output muted.
    • Workaround: hold space to stay unmuted while closing the program.
  • User is unmuted when program is first started even though they should be muted.
    • Workaround: mute and unmute every time you start the program to ensure that you’re in the correct state.
  • Using system commands is pretty gross. I’d like to switch to PulseAudio’s C library at some point.

About

Want push-to-talk in Zoom for Linux? Use this program to mute a PulseAudio source output unless a keyboard key is held.

Источник

Pause and stuttering when using push to talk #1065

Comments

sjtrny commented Jun 15, 2016

I have the talk button mapped to a side button on my mouse. When I press the button the game pauses or stutters for a second then returns to normal. This means I can’t use voice chat when firing etc.

The text was updated successfully, but these errors were encountered:

Tele42 commented Jun 15, 2016

@sjtrny, what OS are you running? If you are running linux with pulseaudio, does leaving pavucontrol open in the background help (from #500)?

sjtrny commented Jun 15, 2016 •

OS X 10.11.5. But this bug has been around ever since I started using my mouse as the talk key 2+ years ago. Just haven’t been bothered to report it until now.

Читайте также:  Настройка дизайна windows 10

ghost commented Jun 15, 2016

Same here, only happens after not using it in a while.

brnrdbrk commented Jun 16, 2016

Same here, OS X 10.11 and a Logitech G600 mouse.

AntikGoofy commented Jun 16, 2016

I always had this problem. Happens every time you press whichever button your mic is binded to. But it only happens when you dont use your mic for a long time (5 minutes max). If you keep pressing the button to talk in game the stutter wont happen.

weiran commented Jun 17, 2016

I’ve also been having this issue since forever, my mouse is a Logitech G602 and I use the Logitech Control Centre to bind a button to K for push to talk.

spagett1337 commented Jun 17, 2016

Same issue here since forever. (OS X)

kubofonista commented Jul 4, 2016

Same here. It doesn’t matter where the button is — on keyboard is the same.

nmorey commented Jul 16, 2016

Same here for both Linux and Mac. I do not see in issue when talking while dead in competitive.

webartistse commented Jan 20, 2017 •

I had this problem before but it just disappeared some weeks ago. But after the update last week I think its back again. The game is freezing for a little moment then I release the talk button. I have this bind on my mouse. But this only happens if I havn’t used it recently. So I really can’t use mic if I need to fire because I do I will be an easy target. Using MacOS Sierra.

@kisak-valve, you’re good with fast answers! Is this something devs looking at? The bug has huge impact on the game experience and it has been around for a while.

jejdacz commented Nov 23, 2018 •

Ubuntu Linux Solution for 1-2 sec freeze after push to talk is commenting out this line in /etc/pulse/default.pa

Automatically suspend sinks/sources that become idle for too long
#load-module module-suspend-on-idle

kisak-valve commented Nov 23, 2018

MacOS does not use pulseaudio, making that tweak irrelevant for this issue report?

jejdacz commented Nov 24, 2018 •

MacOS does not use pulseaudio, making that tweak irrelevant for this issue report?

True, but I’ve found this Issue report among the links for Linux solution. so It may help other Linux users who comes here. Maybe idea of this solution is similar in Mac Os.
But If you mind I can remove the post.

Managor commented Mar 27, 2019

I’ll comment here. Dota 2 has an option named «Streamlined push to talk» to keep the microphone active and to prevent the freezes. Can we have that in CS:GO?

Источник

Оцените статью