# US 2022/0311967 A1 · Method and device for audio and video synchronization

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0311967 A1
- Document ID: US20220311967A1
- Status: Published application
- Kind: A1
- Application number: 17/480,902
- Filed: 2021-09-21
- Published: 2022-09-29
- Earliest claimed: 2021-03-26
- Assignees: Beijing Xiaomi Mobile Software Co., Ltd.; Beijing Xiaomi Pinecone Electronics Co., Ltd.
- Applicants: Beijing Xiaomi Mobile Software Co., Ltd.; Beijing Xiaomi Pinecone Electronics Co., Ltd.
- Inventors: Lingsong ZHOU; Xiaoming LI
- Web page: https://patentgrep.com/patent/US20220311967A1

## CPC

- H04N 5/602: {for digital sound signals}
- H04N 21/8547: involving timestamps for synchronizing content
- G11B 27/10: Indexing; Addressing; Timing or synchronising; Measuring tape travel
- H04N 5/04: Synchronising (for television systems using pulse code modulation H04N7/56)
- H04N 7/52: Systems for transmission of a pulse code modulated video signal with one or more other pulse code modulated signals, e.g. an audio signal or a synchronizing signal (assembling of a multiplex stream by combining a video stream with other content or additional data, remultiplexing of multiplex streams, insertion of stuffing bits into the multiplex stream, assembling of a packetised elementary stream at server side H04N21/236; disassembling of a multiplex stream, remultiplexing of multiplex streams, extraction or processing of Service Information, disassembling of packetised elementary stream at client side H04N21/434)
- H04N 17/004: {for digital television systems}
- H04N 21/4302: {Content synchronisation processes, e.g. decoder synchronisation}
- H04N 21/439: Processing of audio elementary streams
- H04N 2017/006: {for television sound}
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G11B: INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER (recording measured values in a way that does not require playback through a transducer G01D9/00; recording or playback apparatus using mechanically marked tape, e.g. punched paper tape, or using unit records, e.g. punched or magnetically marked cards G06K; transferring data from one type of record carrier to another G06K1/18; circuits for coupling output of reproducer to radio receiver H04B1/20; gramophone pick-ups or like acoustic electromechanical transducers or circuits therefor H04R)

## Abstract

A method for audio and video synchronization, includes: receiving audio data sent by the video player, wherein the audio data includes more than one audio sampling points; obtaining a network delay change between the audio player and the video player, wherein the network delay change refers to a time difference between the network delay monitored for the first time and the network delay monitored for the last time; determining a total amount of audio data to be adjusted according to the network delay change; and adding audio sampling points to the received audio data or deleting audio sampling points from the received audio data according to the total amount of audio data to be adjusted and a preset adjustment strategy, so that the audio player is synchronized with the video player, and playing the added or deleted audio data.

## Claims

### Claim 1

A method for audio and video synchronization, applied to an audio player connected to a video player via a network, the method comprising:
receiving audio data sent by the video player, wherein the audio data comprises more than one audio sampling points;
obtaining a network delay change between the audio player and the video player, wherein the network delay change refers to a time difference between network delay monitored for the first time and network delay monitored for the last time;
determining a total amount of audio data to be adjusted according to the network delay change; and
adding audio sampling points to the received audio data or deleting audio sampling points from the received audio data according to the total amount of audio data to be adjusted and a preset adjustment strategy, so that the audio player is synchronized with the video player, and playing the added or deleted audio data.

### Claim 2 (depends on 1)

The method of claim 1, wherein the preset adjustment strategy comprises: a preset number of audio sampling points are added to or deleted from the received audio data per unit time, until a total amount of adjusting audio sampling points reaches the total amount of audio data to be adjusted.

### Claim 3 (depends on 2)

The method of claim 2, wherein the preset number of audio sampling points are added to or deleted from the received audio data per unit time in an interpolation method.

### Claim 4 (depends on 1)

The method of claim 1, wherein obtaining the network delay change between the audio player and the video player comprises:
obtaining first network delay time corresponding to the current time when preset time for monitoring network delay comes;
obtaining second network delay time when the network delay is monitored for the last time; and
determining the network delay change according to the first network delay time and the second network delay time.

### Claim 5 (depends on 4)

The method of claim 4, wherein obtaining first network delay time corresponding to the current time when preset time for monitoring network delay comes comprises:
sending first clock information comprising first sending time to the video player when the preset time for monitoring network delay comes, wherein the first sending time indicates the time when the audio player sends the first clock information;
receiving second clock information fed back by the video player responding to the first clock information, wherein the second clock information comprises at least first receiving time for indicating the time when the video player receives the first clock information, and second sending time for indicating the time when the video player sends the second clock information; and
determining the first network delay time according to the first clock information and the second clock information.

### Claim 6 (depends on 5)

The method of claim 5, wherein determining the first network delay time comprises:
determining the first network delay time according to the formula of:
first network delay time=((first receiving time−first sending time)+(second receiving time−second sending time))/2.

### Claim 7 (depends on 1)

The method of claim 1, wherein the received audio data is sent by the video player in packets, wherein each packet comprises at least one audio frame and division time corresponding to the at least one audio frame, each audio frame comprises a predetermined number of audio sampling points, and the division time of each audio frame refers to the time when the action of dividing the received audio data into the audio frame occurs.

### Claim 8 (depends on 7)

The method of claim 7, further comprising:
determining time for playing each audio frame according to the division time of each audio frame, preset time appointed with the video player, and the first network delay time.

### Claim 9

A computer device, comprising
a processor; and
a memory configured to store instructions executable by the processor;
wherein the processor is configured to:
receive audio data sent by a video player, wherein the audio data comprises more than one audio sampling points;
obtain a network delay change between an audio player and the video player, wherein the network delay change refers to a time difference between network delay monitored for the first time and network delay monitored for the last time, and the audio player and the video player are connected via a network;
determine a total amount of audio data to be adjusted according to the network delay change; and
add audio sampling points to the received audio data or delete audio sampling points from the received audio data according to the total amount of audio data to be adjusted and a preset adjustment strategy, so that the audio player is synchronized with the video player, and play the added or deleted audio data.

### Claim 10 (depends on 9)

The device of claim 9, wherein the preset adjustment strategy comprises: a preset number of audio sampling points are added to or deleted from the received audio data per unit time, until a total amount of adjusting audio sampling points reaches the total amount of audio data to be adjusted.

### Claim 11 (depends on 10)

The device of claim 10, wherein the processor is further configured to:
add the preset number of audio sampling points to the received audio data or delete the preset number of audio sampling points from the received audio data per unit time in an interpolation method.

### Claim 12 (depends on 9)

The device of claim 9, wherein the processor is further configured to:
obtain first network delay time corresponding to the current time when preset time for monitoring network delay comes;
obtain second network delay time when the network delay is monitored for the last time; and
determine the network delay change according to the first network delay time and the second network delay time.

### Claim 13 (depends on 12)

The device of claim 12, wherein the processor is further configured to:
when the preset time for monitoring network delay comes, send first clock information comprising first sending time to the video player, wherein the first sending time indicates the time when the audio player sends the first clock information;
receive second clock information fed back by the video player responding to the first clock information, wherein the second clock information comprises at least first receiving time for indicating the time when the video player receives the first clock information, and second sending time for indicating the time when the video player sends the second clock information; and
determine the first network delay time according to the first clock information and the second clock information.

### Claim 14 (depends on 13)

The device of claim 13, wherein the processor is further configured to determine the first network delay time according to the formula of:
first network delay time=((first receiving time−first sending time)+(second receiving time−second sending time))/2.

### Claim 15 (depends on 9)

The device of claim 9, wherein the received audio data is sent by the video player in packets, wherein each packet comprises at least one audio frame and division time corresponding to the at least one audio frame, each audio frame comprises a predetermined number of audio sampling points, and the division time of each audio frame refers to the time when the action of dividing the received audio data into the audio frame occurs.

### Claim 16 (depends on 15)

The device of method claim 15, wherein the processor is configured to determine time for playing each audio frame according to the division time of each audio frame, preset time appointed with the video player, and the first network delay time.

### Claim 17

A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a mobile terminal, the mobile terminal is caused to execute the method for audio and video synchronization, the method comprising:
receiving audio data sent by a video player, wherein the audio data comprises more than one audio sampling points;
obtaining a network delay change between an audio player and the video player, wherein the network delay change refers to a time difference between the network delay monitored for the first time and the network delay monitored for the last time;
determining a total amount of audio data to be adjusted according to the network delay change; and
adding audio sampling points to the received audio data or deleting audio sampling points from the received audio data according to the total amount of audio data to be adjusted and a preset adjustment strategy, so that the audio player is synchronized with the video player, and playing the added or deleted audio data.

### Claim 18 (depends on 17)

The storage medium of claim 17, wherein the preset adjustment strategy comprises: a preset number of audio sampling points are added to or deleted from the received audio data per unit time, until a total amount of adjusting audio sampling points reaches the total amount of audio data to be adjusted.

### Claim 19 (depends on 18)

The storage medium of claim 18, wherein the preset number of audio sampling points are added to or deleted from the received audio data per unit time in an interpolation method.

### Claim 20 (depends on 17)

The storage medium of claim 17, wherein obtaining the network delay change between the audio player and the video player comprises:
obtaining first network delay time corresponding to the current time when preset time for monitoring network delay comes;
obtaining second network delay time when the network delay is monitored for the last time; and
determining the network delay change according to the first network delay time and the second network delay time.
