PCoIP Audio quality and bandwidth

Rate this Article
Average: 1 (1 vote)

PCoIP Audio Features

  • 2 channel Stereo audio
  • Automatic quality adjustment to fit inside the available PCoIP session bandwidth
  • Audio In and Audio Out via the HP Anyware Audio Driver included in the HP Anyware or ALC888 equivalent audio in the PCoIP Remote Workstation Card.

 

Codecs

There are 2 audio codecs in use in the PCoIP environment, ADPCM and OPUS. Both codes offer sound quality from compressed mono through to high quality stereo depending on the available bandwidth. To determine which codec is in use, refer to this table.

Client/Host Tera 2 Remote Workstation Card Workstation Access Software HP Anyware
Tera 2 Zero Client Firmware 4.x ADPCM ADPCM ADPCM
Tera 2 Zero Client Firmware 5.x and above ADPCM OPUS* OPUS*
PCoIP Software Client 1.3 and below ADPCM ADPCM ADPCM
PCoIP Software Client 1.4 and above ADPCM OPUS* OPUS*
PCoIP Mobile Client ADPCM OPUS* OPUS*

*OPUS codec used for Audio out from the host to client only. Microphone / Audio In is the ADPCM codec.

 

OPUS

With the introduction of the OPUS codec, bandwidth required for high quality audio has been significantly reduced. The maximum audio quality is achieved with a bit rate of around 256 kbit/s + an additional 20 -40% network and error correction overhead, freeing up bandwidth for other data. 

Bandwidth Available Network Bandwidth Audio Quality
256 kbit/s or higher 10 Mbps Stereo, high-quality, compressed audio
48 kbit/s to 255 kbit/s 125kbps - 10 Mbps Stereo audio ranging between FM radio quality down to AM radio quality
32 kbit/s to 47 kbit/s 125 kbps Monaural AM radio or phone call quality

PCoIP monitors the bandwidth available for audio and selects the audio compression algorithm that provides the best quality possible for the available bandwidth. Maximum audio quality with a bit rate of 256 kbit/s is used when PCoIP detects that the total available bandwidth for the session is greater than 10 mbit/s. Below 10 mbit/s PCoIP dynamically adjusts the audio bit rate between 256 kbit/s and 32 bit/s depending on the available PCoIP bandwidth.

Error correction is used with OPUS to minimize the pops, crackles and silences that can be experienced when streaming audio enhancing the user experience. Even with error correction, too much data loss between the host and client will still result in poor audio. When a audio packet is lost it is not retransmitted as the time for the audio to be played has passed. As PCoIP is a real time protocol, audio cannot be retransmitted as the audio and imaging must happen as quickly as possible after the user's input.

 

ADPCM

ADPCM is used for all audio from client to host as well as host to client on older platforms. 

Audio Quality

Available Network Bandwidth

Expected Audio Bandwidth
(kbps)

CD quality, stereo audio

8 Mbps

1500

Stereo audio

2 Mbps

400

Mono

700 kbps

90

Compressed Mono

125 kbps

60

As with OPUS, the bandwidth used by audio is dynamically adjusted based on the PCoIP bandwidth available. Unlike OPUS, the audio bandwidth bit rate is set and will jump between the different audio qualites based on the availalbe PCoIP network bandwidth.

 

Audio bandwidth limit

 

Setting the audio bandwidth limit from host to client

When using audio on a constrained link it may be desirable to limit the bandwidth in use. This can be done via the PCoIP Group Policy setting Configure the PCoIP session audio bandwidth limit.

Considerations when setting the Group Policy setting

  • The audio bandwidth limit only applies between the host and client. There is no ability to limit the client to host.
  • The default limit for the OPUS codec is 256 kbit/s + overhead
  • The default limit for ADPCM is 500Kbit/s
  • Setting the limit below 32 for OPUS or below 60 for ADPCM will result in no audio playback
  • The audio limit takes effect immediately
  • The bandwidth limit applies to both OPUS and ADPCM codecs. If you are using a mixed environment with older clients, consider the ADPCM bandwidth requirements when configuring the setting or update the clients.

 

Setting the bandwidth limit for client to host audio

There is currently no direct configuration that allows for limiting the audio bandwidth between the client and host. 

Workaround: When using a Zero Client, the bandwidth limit for upload can be set on the zero client in some circumstances. 

  • When USB is not in use for anything not locally terminated (keyboard, mouse, local audio).
  • Teradici Management Console is managing the Zero Client, or the AWI is accessible.

To set the upload bandwidth limit, set the device bandwidth limit. This sets the total PCoIP bandwidth from the client to host. The bandwidth limit impacts, audio, keyboard, mouse, USB and Imaging acknowledgement data. Set the limit to the just below the available network bandwidth for the next higher audio quality in the ADPCM codec table.

 

ADPCM technical details

Audio sample rate (KHz)

Number of channels

Encoded bits per channel

Audio data rate (Mbit/sec)

Selected when available network bandwidth > (Mbit/sec)

% Audio

Sample time (us)

Packet time (ms)

Bytes per packet

Header bytes

Header overhead

Actual BW used (Mbit/sec)

48

2

16

1.536

8

0.192

20.83333

25

4800

70

0.014583

1.5584

48

2

4

0.384

2

0.192

20.83333

25

1200

70

0.058333

0.4064

16

1

4

0.064

0.7

0.091429

62.5

25

200

70

0.35

0.0864

8

1

4

0.032

0.125

0.256

125

25

100

70

0.7

0.0544