Voice signal output method and electronic device
AssigneeHonor Device Co., Ltd.
InventorsXiao YANG, Jianfei CHU
Life of this patent
Estimating the term…
Abstract
Embodiments of this application provide a voice signal output method and an electronic device. The method includes: generating a first voice signal as an interfering signal based on a downlink voice signal; generating a second voice signal by performing delay processing on the downlink voice signal, where the second voice signal has a same delay as the first voice signal; and at a same output time, outputting the second voice signal using a first sound production assembly close to a human ear, and outputting the first voice signal using a second sound production assembly far from the human ear. This masks the downlink voice signal with the interfering signal, preventing others from clearly hearing the call content of the user and protecting user privacy.
Claims22
A voice signal output method, wherein the method is applied to an electronic device, the electronic device comprises a first sound production assembly and a second sound production assembly, the first sound production assembly is a sound production assembly of a screen and is disposed at a first location of the electronic device, the first location is located on the screen and corresponds to a location of an ear of a user when the user holds the electronic device for a call, and the second sound production assembly is disposed at a second location different from the first location, and the method comprises:
- generating a first voice signal, wherein the first voice signal is an interfering signal generated based on a downlink voice signal, wherein the generating the first voice signal comprises:
- generating a first power spectral density, wherein the first power spectral density is a power spectral density calculated based on the downlink voice signal;
- generating a masking signal and a pink noise signal based on the first power spectral density:
- adjusting the masking signal and the pink noise signal to a same delay;
- and
- generating the first voice signal based on the masking signal and the pink noise signal that are adjusted to the same delay;
- generating a second voice signal, wherein the second voice signal is a voice signal that is obtained after delay processing is performed on the downlink voice signal and that has a same delay as the first voice signal;
- and
- at a same output time, outputting the second voice signal by using the first sound production assembly and outputting the first voice signal by using the second sound production assembly.
2-3. (canceled)
An electronic device, comprising:
- a first sound production assembly;
- a second sound production assembly, wherein the first sound production assembly is a sound production assembly of a screen and is disposed at a first location of the electronic device, the first location is located on the screen and corresponds to a location of an ear of a user when the user holds the electronic device for a call, and the second sound production assembly is disposed at a second location different from the first location;
- a processor;
- and
- a memory coupled to the processor, wherein the memory is configured to store computer program code, the computer program code comprises computer instructions, and when the processor executes the computer instructions, the electronic device is enabled to perform operations comprising:
- generating a first voice signal, wherein the first voice signal is an interfering signal generated based on a downlink voice signal, wherein the generating the first voice signal comprises:
- generating a first power spectral density, wherein the first power spectral density is a power spectral density calculated based on the downlink voice signal;
- generating a masking signal and a pink noise signal based on the first power spectral density;
- adjusting the masking signal and the pink noise signal to a same delay;
- and
- generating the first voice signal based on the masking signal and the pink noise signal that are adjusted to the same delay:
- generating a second voice signal, wherein the second voice signal is a voice signal that is obtained after delay processing is performed on the downlink voice signal and that has a same delay as the first voice signal;
- and
- at a same output time. outputting the second voice signal by using the first sound production assembly and outputting the first voice signal by using the second sound production assembly.
(canceled)
A non-transitory computer-readable storage medium, wherein the computer-readable storage medium stores a computer program or instructions, and when the computer program or the instructions are executed, an electronic device is enabled to perform operations comprising:
- generating a first voice signal, wherein the first voice signal is an interfering signal generated based on a downlink voice signal, wherein the generating the first voice signal comprises:
- generating a first power spectral density, wherein the first power spectral density is a power spectral density calculated based on the downlink voice signal;
- generating a masking signal and a pink noise signal based on the first power spectral density;
- adjusting the masking signal and the pink noise signal to a same delay;
- and
- generating the first voice signal based on the masking signal and the pink noise signal that are adjusted to the same delay;
- generating a second voice signal, wherein the second voice signal is a voice signal that is obtained after delay processing is performed on the downlink voice signal and that has a same delay as the first voice signal;
- and
- at a same output time, outputting the second voice signal by using the first sound production assembly and outputting the first voice signal by using the second sound production assembly.
Dependencies are inferred from the claim text.