Results 1 to 2 of 2
  1. #1
    Join Date
    March 2017

    How to make the PTT button play a 2 second tone before you start talking

    Hello guys,
    This is my first post. I would like to know how I would be able to setup a feature when I can use the PTT (press to talk) feature to play a 2 second tone before I start talking. Please let me now how. If you don't know what I mean, I can give you an example.


    Last edited by dante696; March 13th, 2017 at 03:05 PM. Reason: moved out of client section

  2. #2
    Join Date
    October 2015
    Germany, Bavaria
    You would probably need to call ts3Functions.playWaveFile(uint64 serverConnectionHandlerID, const char* pathToWaveFile) and make the user set a new hotkey to your action.

    So basically:
    1) Create a hotkey
    2) Let the user set another custom hotkey
    3) Play a sound with the function above and start a timer
    4) When the timer runs out, let the client talk (I let you figure out how to do that, but you could
    just use mute the client and unmute him again... Might not be very practical though...)
    5) As soon as the user releases the key again, mute the mic again
    I suppose this could work by binding 2 hotkeys on the same key:
    a) Bind one for OnPressed
    b) Bind the other one for OnReleased
    note: I didn't try that, don't know if it will work...

    Depends on which language and which API you are using.
    If you are using SQ, I don't think it would be possible.
    With the normal Plugin API it should be possible, the function above is also from that API.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [Suggestion] Text-To-Speech Play button for all textboxes
    By SpiritOffice in forum Suggestions and Feedback
    Replies: 0
    Last Post: September 26th, 2010, 09:41 AM
  2. Replies: 4
    Last Post: March 16th, 2010, 10:18 PM
  3. Play sound on button press
    By Foamy in forum Tools / Web Based
    Replies: 3
    Last Post: March 5th, 2010, 11:15 AM
  4. Play sound on button press
    By Foamy in forum General Questions
    Replies: 3
    Last Post: March 5th, 2010, 11:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts