# US 2024/0179466 A1 · Sound channel switching method and apparatus, and electronic device

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

- Number: US 2024/0179466 A1
- Document ID: US20240179466A1
- Status: Published application
- Kind: A1
- Application number: 18/433,537
- Filed: 2024-02-06
- Published: 2024-05-30
- Earliest claimed: 2021-08-06
- Assignees: Vivo Mobile Communication Co., Ltd.
- Applicants: Vivo Mobile Communication Co., Ltd.
- Inventors: Yannan YAN; Liwen YOU
- Web page: https://patentgrep.com/patent/US20240179466A1

## CPC

- H04R 5/04: Circuit arrangements, {e.g. for selective connection of amplifier inputs/outputs to loudspeakers, for loudspeaker detection, or for adaptation of settings to personal preferences or hearing impairments (combinations of amplifiers H03F3/68; stereophonic systems H04S)}
- H04R 5/02: Spatial or constructional arrangements of loudspeakers
- H04S 3/008: {in which the audio signals are in digital form, i.e. employing more than two discrete digital channels (data reduction aspects thereof based on psychoacoustics G10L19/02)}
- H04R 3/12: for distributing signals to two or more loudspeakers {(specially adapted for hearing aids H04R25/407)}
- H04R 2499/11: Transducers incorporated or for use in hand-held devices, e.g. mobile phones, PDA's, camera's
- H04S 2400/01: Multi-channel, i.e. more than two input channels, sound reproduction with two speakers wherein the multi-channel information is substantially preserved
- H04S 2400/13: Aspects of volume control, not necessarily automatic, in stereophonic sound systems
- Y02D 30/70: in wireless communication networks
- H04R: LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; ELECTRIC HEARING AIDS; PUBLIC ADDRESS SYSTEMS (producing sounds with frequency not determined by supply frequency G10K)
- H04S: STEREOPHONIC SYSTEMS
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

A channel switching method and apparatus, and an electronic device, and relates to the field of communication technologies. The method includes: in case that an electronic device plays audio and its target state changes, obtaining its state change parameter, the state change parameter including a folding angle, a rotation angle, or a scaling amplitude; according to the state change parameter, fusing first and second channel signals in a first manner to obtain a third channel signal, fusing the first and second channel signals in a second manner to obtain a fourth channel signal; controlling a first speaker playing the first channel signal to switch to the third channel signal, and controlling a second speaker playing the second channel signal to switch to the fourth channel signal, where before the channel signal switching, channels played by the first and second speakers do not match orientations of the speakers.

## Claims

### Claim 1

A sound channel switching method, applied to an electronic device, wherein the method comprises:
obtaining a state change parameter of the electronic device in a case that the electronic device plays audio and a target state of the electronic device changes, wherein the state change parameter comprises a folding angle, a rotation angle, or a scaling amplitude, and the scaling amplitude is a scaling amplitude of a screen of the electronic device;
fusing a first sound channel signal and a second sound channel signal according to the state change parameter in a first fusion manner to obtain a third sound channel signal, and fusing the first sound channel signal and the second sound channel signal in a second fusion manner to obtain a fourth sound channel signal; and
controlling a first speaker to switch from playing the first sound channel signal to playing the third sound channel signal, and controlling a second speaker to switch from playing the second sound channel signal to playing the fourth sound channel signal, wherein before a sound channel signal is switched, sound channels played by the first speaker and the second speaker do not match orientations in which the first speaker and the second speaker are located.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the fusing a first sound channel signal and a second sound channel signal according to the state change parameter in a first fusion manner to obtain a third sound channel signal, and fusing the first sound channel signal and the second sound channel signal in a second fusion manner to obtain a fourth sound channel signal comprises:
separately obtaining a first spectrum amplitude value of the first sound channel signal and a second spectrum amplitude value of the second sound channel signal;
determining a fusion component according to the state change parameter, the first spectrum amplitude value, and the second spectrum amplitude value;
performing first operation processing on the first spectrum amplitude value and the fusion component to obtain a third spectrum amplitude value of the fused third sound channel signal; and
performing second operation processing on the second spectrum amplitude value and the fusion component to obtain a fourth spectrum amplitude value of the fused fourth sound channel signal.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the determining a fusion component according to the state change parameter, the first spectrum amplitude value, and the second spectrum amplitude value comprises:
determining a state coefficient according to the state change parameter and a maximum change value of the target state; and
calculating a product of the state coefficient and a first difference to obtain the fusion component, wherein the first difference is a difference between the first spectrum amplitude value and the second spectrum amplitude value.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the performing first operation processing on the first spectrum amplitude value and the fusion component to obtain a third spectrum amplitude value of the fused third sound channel signal comprises:
subtracting the fusion component from the first spectrum amplitude value to obtain the third spectrum amplitude value; and
the performing second operation processing on the second spectrum amplitude value and the fusion component to obtain a fourth spectrum amplitude value of the fused fourth sound channel signal comprises:
adding the second spectrum amplitude value and the fusion component to obtain the fourth spectrum amplitude value.

### Claim 5 (depends on 3)

The method according to claim 3, wherein when the state change parameter is a folding angle, the maximum change value of the target state is 180 degrees;
when the state change parameter is a rotation angle, the maximum change value of the target state is 90 degrees or 180 degrees; or
when the state change parameter is a scaling amplitude, the maximum change value of the target state is a maximum scaling amplitude of the screen of the electronic device.

### Claim 6 (depends on 2)

The method according to claim 2, wherein the separately obtaining a first spectrum amplitude value of the first sound channel signal and a second spectrum amplitude value of the second sound channel signal comprises:
separately obtaining a first amplitude characteristic of the first sound channel signal in a frequency domain and a second amplitude characteristic of the second sound channel signal in the frequency domain; and
separately converting the first amplitude characteristic and the second amplitude characteristic into spectrum amplitude values, so as to obtain the first spectrum amplitude value and the second spectrum amplitude value.

### Claim 7 (depends on 1)

The method according to claim 1, wherein before the controlling a first speaker to switch from playing the first sound channel signal to playing the third sound channel signal, and controlling a second speaker to switch from playing the second sound channel signal to playing the fourth sound channel signal, the method further comprises:
predicting an orientation of each speaker in a plurality of speakers of the electronic device after the target state of the electronic device changes; and
in a case that a sound channel currently played by a target speaker in the plurality of speakers does not match a predicted orientation of the target speaker, determining that the target speaker is a to-be-switched speaker, wherein a speaker that currently plays the first sound channel signal in the speaker to be switched is the first speaker, and a speaker that currently plays the second sound channel signal in the speaker to be switched is the second speaker.

### Claim 8

An electronic device, comprising a processor, a memory, and a program or an instruction that is stored in the memory and that is executable by the processor, wherein the program or the instruction is executed by the processor to implement the following steps:
obtaining a state change parameter of the electronic device in a case that the electronic device plays audio and a target state of the electronic device changes, wherein the state change parameter comprises a folding angle, a rotation angle, or a scaling amplitude, and the scaling amplitude is a scaling amplitude of a screen of the electronic device;
fusing a first sound channel signal and a second sound channel signal according to the state change parameter in a first fusion manner to obtain a third sound channel signal, and fusing the first sound channel signal and the second sound channel signal in a second fusion manner to obtain a fourth sound channel signal; and
controlling a first speaker to switch from playing the first sound channel signal to playing the third sound channel signal, and controlling a second speaker to switch from playing the second sound channel signal to playing the fourth sound channel signal, wherein before a sound channel signal is switched, sound channels played by the first speaker and the second speaker do not match orientations in which the first speaker and the second speaker are located.

### Claim 9 (depends on 8)

The electronic device according to claim 8, wherein the fusing a first sound channel signal and a second sound channel signal according to the state change parameter in a first fusion manner to obtain a third sound channel signal, and fusing the first sound channel signal and the second sound channel signal in a second fusion manner to obtain a fourth sound channel signal comprises:
separately obtaining a first spectrum amplitude value of the first sound channel signal and a second spectrum amplitude value of the second sound channel signal;
determining a fusion component according to the state change parameter, the first spectrum amplitude value, and the second spectrum amplitude value;
performing first operation processing on the first spectrum amplitude value and the fusion component to obtain a third spectrum amplitude value of the fused third sound channel signal; and
performing second operation processing on the second spectrum amplitude value and the fusion component to obtain a fourth spectrum amplitude value of the fused fourth sound channel signal.

### Claim 10 (depends on 9)

The electronic device according to claim 9, wherein the determining a fusion component according to the state change parameter, the first spectrum amplitude value, and the second spectrum amplitude value comprises:
determining a state coefficient according to the state change parameter and a maximum change value of the target state; and
calculating a product of the state coefficient and a first difference to obtain the fusion component, wherein the first difference is a difference between the first spectrum amplitude value and the second spectrum amplitude value.

### Claim 11 (depends on 10)

The electronic device according to claim 10, wherein the performing first operation processing on the first spectrum amplitude value and the fusion component to obtain a third spectrum amplitude value of the fused third sound channel signal comprises:
subtracting the fusion component from the first spectrum amplitude value to obtain the third spectrum amplitude value; and
the performing second operation processing on the second spectrum amplitude value and the fusion component to obtain a fourth spectrum amplitude value of the fused fourth sound channel signal comprises:
adding the second spectrum amplitude value and the fusion component to obtain the fourth spectrum amplitude value.

### Claim 12 (depends on 10)

The electronic device according to claim 10, wherein when the state change parameter is a folding angle, the maximum change value of the target state is 180 degrees;
when the state change parameter is a rotation angle, the maximum change value of the target state is 90 degrees or 180 degrees; or
when the state change parameter is a scaling amplitude, the maximum change value of the target state is a maximum scaling amplitude of the screen of the electronic device.

### Claim 13 (depends on 9)

The electronic device according to claim 9, wherein the separately obtaining a first spectrum amplitude value of the first sound channel signal and a second spectrum amplitude value of the second sound channel signal comprises:
separately obtaining a first amplitude characteristic of the first sound channel signal in a frequency domain and a second amplitude characteristic of the second sound channel signal in the frequency domain; and
separately converting the first amplitude characteristic and the second amplitude characteristic into spectrum amplitude values, so as to obtain the first spectrum amplitude value and the second spectrum amplitude value.

### Claim 14 (depends on 8)

The electronic device according to claim 8, wherein before the controlling a first speaker to switch from playing the first sound channel signal to playing the third sound channel signal, and controlling a second speaker to switch from playing the second sound channel signal to playing the fourth sound channel signal, the program or the instruction is executed by the processor to implement the following steps:
predicting an orientation of each speaker in a plurality of speakers of the electronic device after the target state of the electronic device changes; and
in a case that a sound channel currently played by a target speaker in the plurality of speakers does not match a predicted orientation of the target speaker, determining that the target speaker is a to-be-switched speaker, wherein a speaker that currently plays the first sound channel signal in the speaker to be switched is the first speaker, and a speaker that currently plays the second sound channel signal in the speaker to be switched is the second speaker.

### Claim 15

A non-transitory readable storage medium, wherein a program or an instruction is stored on the non-transitory readable storage medium, and the program or the instruction is executed by a processor of an electronic device to implement the following steps:
obtaining a state change parameter of the electronic device in a case that the electronic device plays audio and a target state of the electronic device changes, wherein the state change parameter comprises a folding angle, a rotation angle, or a scaling amplitude, and the scaling amplitude is a scaling amplitude of a screen of the electronic device;
fusing a first sound channel signal and a second sound channel signal according to the state change parameter in a first fusion manner to obtain a third sound channel signal, and fusing the first sound channel signal and the second sound channel signal in a second fusion manner to obtain a fourth sound channel signal; and
controlling a first speaker to switch from playing the first sound channel signal to playing the third sound channel signal, and controlling a second speaker to switch from playing the second sound channel signal to playing the fourth sound channel signal, wherein before a sound channel signal is switched, sound channels played by the first speaker and the second speaker do not match orientations in which the first speaker and the second speaker are located.

### Claim 16 (depends on 15)

The non-transitory readable storage medium according to claim 15, wherein the fusing a first sound channel signal and a second sound channel signal according to the state change parameter in a first fusion manner to obtain a third sound channel signal, and fusing the first sound channel signal and the second sound channel signal in a second fusion manner to obtain a fourth sound channel signal comprises:
separately obtaining a first spectrum amplitude value of the first sound channel signal and a second spectrum amplitude value of the second sound channel signal;
determining a fusion component according to the state change parameter, the first spectrum amplitude value, and the second spectrum amplitude value;
performing first operation processing on the first spectrum amplitude value and the fusion component to obtain a third spectrum amplitude value of the fused third sound channel signal; and
performing second operation processing on the second spectrum amplitude value and the fusion component to obtain a fourth spectrum amplitude value of the fused fourth sound channel signal.

### Claim 17 (depends on 16)

The non-transitory readable storage medium according to claim 16, wherein the determining a fusion component according to the state change parameter, the first spectrum amplitude value, and the second spectrum amplitude value comprises:
determining a state coefficient according to the state change parameter and a maximum change value of the target state; and
calculating a product of the state coefficient and a first difference to obtain the fusion component, wherein the first difference is a difference between the first spectrum amplitude value and the second spectrum amplitude value.

### Claim 18 (depends on 17)

The non-transitory readable storage medium according to claim 17, wherein the performing first operation processing on the first spectrum amplitude value and the fusion component to obtain a third spectrum amplitude value of the fused third sound channel signal comprises:
subtracting the fusion component from the first spectrum amplitude value to obtain the third spectrum amplitude value; and
the performing second operation processing on the second spectrum amplitude value and the fusion component to obtain a fourth spectrum amplitude value of the fused fourth sound channel signal comprises:
adding the second spectrum amplitude value and the fusion component to obtain the fourth spectrum amplitude value.

### Claim 19 (depends on 17)

The non-transitory readable storage medium according to claim 17, wherein when the state change parameter is a folding angle, the maximum change value of the target state is 180 degrees;
when the state change parameter is a rotation angle, the maximum change value of the target state is 90 degrees or 180 degrees; or
when the state change parameter is a scaling amplitude, the maximum change value of the target state is a maximum scaling amplitude of the screen of the electronic device.

### Claim 20 (depends on 16)

The non-transitory readable storage medium according to claim 16, wherein the separately obtaining a first spectrum amplitude value of the first sound channel signal and a second spectrum amplitude value of the second sound channel signal comprises:
separately obtaining a first amplitude characteristic of the first sound channel signal in a frequency domain and a second amplitude characteristic of the second sound channel signal in the frequency domain; and
separately converting the first amplitude characteristic and the second amplitude characteristic into spectrum amplitude values, so as to obtain the first spectrum amplitude value and the second spectrum amplitude value.
