Contents

GKVoiceChatService

The Gkvoicechatservice class allows your application to connect two iOS devices into a voice chat.

Declaration

class GKVoiceChatService

Overview

Before you can use voice chat, your application must configure an audio session that allows for both play and recording (kAudioSessionCategory_PlayAndRecord). For more information on audio sessions, see Audio Session Programming Guide.

The voice chat service uses a client implemented by your application to find and connect to other participants. Each participant in the chat is identified by a unique participant identifier string. The client provides a participant identifier for the local user and translates other participant identifiers into connections to other users. The format and mechanism used to translate participant identifiers into network connections is defined by the client.

Your application can configure the voice chat service to control the volume level of both local and remote participants and to detect when someone is speaking.

To use the voice chat service, your application retrieves the default service and attaches a client to it, then either connects to another participant or waits for them to start a connection.

Topics

Determining Whether Voice Chat Is Available

Getting the Shared Voice Chat Service

Setting the Client

Establishing a Voice Chat

Adjusting Audio Properties

Monitoring the Audio Level

Ending a Voice Chat

Methods Called by the Client

Constants

See Also

Deprecated classes