Voice Setup

Download

Voice Core ships inside the Realtime Core SDK, and there is no separate Voice download. The download below is the Realtime Core SDK package.

VersionRelease DateDownload
6.0.2 Stable11월 10, 2026Realtime Core SDK 6.0.2 Stable Build 635Release Notes

Changes to Voice Core are listed in the Release Notes.

Console Add-ons

Voice support for consoles comes as a separate add-on per platform, extracted beside the SDK package. The add-ons require developer program access, which is covered in Consoles Overview.

Package Contents

Voice adds its headers under RealtimeCore/Voice/ and the voice library to the package. Beneath it, the package carries PhotonVoice-cpp and the Opus codec library opus_egpv.

Headers

Header Contents
RealtimeCore/Voice/VoiceClient.h VoiceClient, VoiceClientOptions and VoiceStats. The entry point; includes the local and remote voice headers.
RealtimeCore/Voice/LocalVoice.h LocalVoice, an outgoing stream.
RealtimeCore/Voice/LocalVoiceOptions.h LocalVoiceOptions, the settings of an outgoing stream.
RealtimeCore/Voice/RemoteVoice.h RemoteVoice and RemoteVoiceInfo, an incoming stream and its format.
RealtimeCore/Voice/PlaybackBuffer.h PlaybackBuffer, the jitter buffer of an incoming stream.
RealtimeCore/Voice/AudioConvert.h Conversion between 16-bit integer and float samples.
RealtimeCore/Voice/VoiceEventCode.h The event codes voice reserves.

Including VoiceClient.h is enough for most code. AudioConvert.h and VoiceEventCode.h are included separately where they are needed.

Libraries

  • voice: the Voice Core API
  • PhotonVoice-cpp: the voice engine Voice Core is built on
  • opus_egpv: the Opus codec

The file names follow the Realtime Core naming scheme described in the Libraries section of SDK Download.

With CMake

Link RealtimeCore::Voice. It brings RealtimeCore::Matchmaking and everything beneath it, and is the only Realtime Core target to name:

cmake

find_package(RealtimeCore REQUIRED PATHS <package root> CMAKE_FIND_ROOT_PATH_BOTH)
target_link_libraries(app PRIVATE RealtimeCore::Voice)

RealtimeCore_VOICE_FOUND tells whether the package carries Voice. Checking it turns a missing library into a clear configure error:

cmake

if(NOT RealtimeCore_VOICE_FOUND)
    message(FATAL_ERROR "The RealtimeCore package carries no Voice library.")
endif()

Pinning the MSVC runtime, selecting a package variant and cross-compiling work as for Realtime Core. See the With CMake section of SDK Download.

Without CMake

Without CMake, link the libraries in this order:

Plain Old Text

voice  PhotonVoice-cpp  opus_egpv  matchmaking  common  LoadBalancing-cpp  Photon-cpp  Common-cpp

The order matters, because GNU ld resolves an archive only against symbols still undefined when it reaches it.

The system libraries and the extra archives on Android and Apple platforms are the same as for Realtime Core. See the Without CMake section of SDK Download.

Include Paths

The package root, the directory that contains RealtimeCore/, is the only include path Voice Core needs:

C++

#include "RealtimeCore/Voice/VoiceClient.h"

Additional Resources

Last updated on

Back to top