Teamspeak 3 SDK Examples

If you haven't used the TeamSpeak SDK before, then this page provides several client and server examples to help you get started. We've also included some sample code to demonstrate what is possible with the TeamSpeak SDK.

In this example, we will introduce you to the structure and terminology of the SDK, basic functions and callbacks, and walk you through the steps to build a simple “Hello, world!” application.

Learn how to

  • Initialize the client/server libraries
  • Initialize client audio
  • Start a server
  • Connect to and disconnect from a server
  • Shut down the client/server libraries
Client Intro
Server Intro

The TeamSpeak SDK allows you or your users, to choose when and how audio is streamed to other users. To optimize user experience, you can decide whether Push-to-talk, Voice Activation Detection, or continuous voice tramission makes most sense for your game or application. You can also let your users decide and implement multiple options for them to choose from.

Learn about

  • Adding Push-To-Talk, Voice Activation Detection, and Continuous Transmission
  • Automatic Gain Control
  • Background noise reduction
  • Echo cancellation
  • Muting and unmuting clients
Client Audio Example

Enhance your game or application with 3D postional audio for total immersion and complete audio experiences. This can be especially useful in Open World games or VR applications. Allowing your users to determine the direction a voice is coming from adds a dimension to their experience and places them in the middle of the action.

Learn how to

  • Initialize the 3D audio engine
  • Position the listener and source
  • Adjust the rolloff volume
Client 3D Audio Example

Think of a TeamSpeak channel as a meeting room. In general, clients are only able to talk and listen to other clients within the same channel. We will introduce you to the basic channel properties as well as learn how to create and delete channels, change channel properties, and move users to a channel. As a developer, you will then be able to dynamically define who is allowed to talk with whom with full channel management capabilities.

Useful for

  • voice chat in team matches or games
  • proximity voice chat in an open world game
  • clan or guild-only voice chat
  • scheduled virtual online meetings
  • private chat between users

Learn about

Channel Basics
Creating a channel
Deleting a channel
Renaming a channel
Moving clients to a channel

Whisper lists allow you to implement custom audio routing so that a user is able to speak with others in private or globally. In this case, the users can be anywhere on the server and do not necessarily need to be in the same channel.

Useful for

  • Global announcements to all users connected to a server
  • Communication to multiple users that are not in the same channel
  • One-on-one private voice chat while in separate channels
  • Communications between officers, team leaders, or instructors

Learn how to

  • Set whisper lists
  • Enable and disable whisper lists
  • Toggle whisper lists
Whisper Lists Example