Audio Latency Measurements

Audio Latency Measurements

This article gives round-trip audio latency measurements for select devices and platform versions.

Definition


Latency is an important system performance metric. There are many kinds of audio latency metrics. One useful and well-understood metric is round-trip latency. Round-trip latency is defined as the time it takes for an audio signal to enter the input of a mobile device, be processed by an app running on the application processor, and exit the output.

Figure 1. Round-trip audio latency on device: Toutput - Tinput

Why we measure latency


We measure and report latency so Android app developers will have the data they need to make informed decisions about available latency on actual devices. By sharing these numbers for select Nexus devices, we also hope to encourage the entire Android community to measure, publish, and reduce latency on all devices. Please join us in our commitment to reducing audio latency.

Application impact on latency


There are two kinds of delays that a signal processing stage can add to latency: algorithmic delay and computational delay. Algorithmic delay is inherent and does not vary with the CPU. An example is the delay added by a finite impulse response (FIR) filter. Computational delay is related to the number of CPU cycles required. For example, attenuation of a signal is usually done by a multiplication operation, and this multiplication will take a varying number of cycles depending on the CPU.

How we measure


The measurements below were taken with the Dr. Rick O'Rang audio loopback dongle and an audio feedback (Larsen effect) test.

For our measurements, we assume the application signal processing adds zero algorithmic delay and near zero computational delay.

We measure round-trip latency via the headset connector for several reasons:

  • There are important music applications, such as guitar and voice processing, that use the headset connector.
  • Measuring round-trip latency of the on-device microphone and speaker can be cumbersome, as it is difficult to keep a feedback loop in open air from entering uncontrolled oscillation.
  • The on-device transducers are small and sacrifice frequency response to achieve their small size. To compensate, digital signal processing is applied but increases algorithmic delay for the on-device path.

There are cases where on-device microphone and speaker latencies do matter, but they are usually for one direction, not round-trip. Techniques for measuring unidirectional latency are described at Measuring Output Latency and Measuring Input Latency.

Figure 2. Round-trip latency via headset connector: Toutput - Tinput

Example measurements


The measurements shown are specific to a build number. Devices are listed in approximate order of initial release and within device by platform version. The test application uses the Android native audio API based on OpenSL ES.

 

ModelPlatform
version
Build
number
Sample rate
(Hz)
Buffer size
(frames)
Buffer size
(ms)
Round-trip
latency (ms)
± one buffer
Nexus One2.3.6GRK39F4410076817.4345
Nexus S2.3.6GRK39F44100102423.2260
Nexus S4.0.4IMM76D44100102423.2260
Nexus S4.1.2JZO54K4410088020210
Galaxy Nexus4.0.1ITL41D4410097622.1270
Galaxy Nexus4.3JWR66Y441001443.3130
Nexus 44.2.2JDQ39E480002405195
Nexus 45.1LMY47O48000240558
Nexus 105.0.2LRX22G441002565.836
Nexus 105.1LMY47D441002565.835
Nexus 7
2013
4.3JSR78D480002405149
Nexus 7
2013
4.4KRT16S48000240585
Nexus 7
2013
5.0.2LRX22G48000240564
Nexus 7
2013
5.1LMY47O48000240555
Nexus 7
2013
6.0MRA58K48000240555
Nexus 54.4.4KTU84P48000240595
Nexus 55.0.0LRX21O48000240547
Nexus 55.1LMY47I48000240542
Nexus 56.0MRA58K48000192438
Nexus 95.0.0LRX21L480002565.335
Nexus 95.0.1LRX22C480002565.338
Nexus 95.1.1LMY47X480002565.332
Nexus 96.0MRA58K480001282.615
Nexus 65.0.1LRX22C48000240565
Nexus 65.1LMY47I48000240542
Nexus 66.0MRA58K48000192433
Nexus 5X6.0MDA89E48000192418
Nexus 6P6.0MDA89D48000192418
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值