Sound production control method, electronic device, and medium
阅读说明:本技术 发声控制方法、电子设备及介质 (Sound production control method, electronic device, and medium ) 是由 杜峰 于 2019-08-30 设计创作,主要内容包括:本发明实施例公开了一种发声控制方法、电子设备及介质。其中,发声控制方法包括:接收发声请求,其中,发声请求包括待发声的音频信号;响应于发声请求,根据音频信号控制至少一个发声单元的激励器工作,以驱动至少一个发声单元的振动体发声;在至少一个发声单元中存在一个所发出的声音信号具有低频损失的目标发声单元的情况下,利用音频信号,生成用于对目标发声单元所发出的声音信号进行低频补偿的低频补偿信号;根据低频补偿信号,控制两个发声单元中除目标发声单元之外的其他发声单元中的激励器工作。利用本发明实施例能够解决电子设备放置于物体表面时发声音质不佳的问题。(The embodiment of the invention discloses a sound production control method, electronic equipment and a medium. The sounding control method comprises the following steps: receiving a sound production request, wherein the sound production request comprises an audio signal to be produced; in response to the sounding request, controlling an exciter of the at least one sounding unit to work according to the audio signal so as to drive a vibrating body of the at least one sounding unit to sound; generating a low-frequency compensation signal for performing low-frequency compensation on the sound signal emitted by the target sound emitting unit by using the audio signal under the condition that the target sound emitting unit with low-frequency loss exists in at least one sound emitting unit; and controlling the exciters in the other sound production units except the target sound production unit to work according to the low-frequency compensation signal. The embodiment of the invention can solve the problem of poor sound quality when the electronic equipment is placed on the surface of an object.)
1. A sound production control method is applied to an electronic device, and is characterized in that the electronic device comprises two sound production units which are arranged oppositely along the thickness direction of the electronic device, each sound production unit comprises a vibration body and at least one exciter used for driving the vibration body to produce sound, and the method comprises the following steps:
receiving an utterance request, wherein the utterance request includes an audio signal to be uttered;
in response to the sounding request, controlling an actuator of at least one sounding unit to work according to the audio signal so as to drive a vibrating body of the at least one sounding unit to sound;
generating a low-frequency compensation signal for performing low-frequency compensation on the sound signal emitted by the target sound emitting unit by using the audio signal under the condition that the target sound emitting unit with low-frequency loss exists in the at least one sound emitting unit;
and controlling the exciters of the other sound production units except the target sound production unit to work according to the low-frequency compensation signal.
2. The method of claim 1, further comprising:
and under the condition that the number of the at least one sounding unit is two and the at least one sounding unit has two target sounding units, or the at least one sounding unit does not have the target sounding units, continuously controlling the exciter of the at least one sounding unit to work according to the audio signal.
3. The method of claim 1, wherein the vibrating body comprises: a display screen and a housing of the electronic device.
4. The method of claim 3, further comprising:
determining the shielded state of the display screen and the shell;
detecting whether the target sound-emitting unit exists in the at least one sound-emitting unit under the condition that at least one of the display screen and the shell is determined to be blocked.
5. The method according to claim 4, wherein the electronic device further comprises a proximity sensor for detecting a state of the display screen in proximity to an object and a posture sensor for detecting a placement posture of the electronic device;
wherein the determining of the occluded state of the display screen and the housing comprises:
acquiring a proximity signal acquired by the proximity sensor and attitude data acquired by the attitude sensor;
determining the shielded state of the display screen according to the proximity signal;
and determining the shielded state of the shell according to the attitude data.
6. The method of claim 5, wherein determining the occluded state of the shell from the pose data comprises:
acquiring longitudinal attitude data in the attitude data;
if the longitudinal attitude data is a positive number, determining that the shell is shielded;
and if the longitudinal attitude data is a negative number, determining that the shell is not shielded.
7. The method of claim 1, wherein the generating, using the audio signal, a low-frequency compensation signal for low-frequency compensation of the sound signal emitted by the target sound-emitting unit comprises:
acquiring a low-frequency signal missing from a sound signal emitted by the target sound-emitting unit;
extracting the low frequency compensation signal from the audio signal based on the missing low frequency signal; or reducing the amplitude difference value of the low-frequency signal and the high-frequency signal in the audio signal based on the missing low-frequency signal to generate the low-frequency compensation signal.
8. An electronic device, comprising two sound units disposed opposite to each other in a thickness direction of the electronic device, wherein each sound unit includes a vibrating body and at least one actuator for driving the vibrating body to generate sound, and the electronic device further comprises:
the system comprises an utterance request receiving module, an utterance sending module and an utterance judging module, wherein the utterance request receiving module is configured to receive an utterance request, and the utterance request comprises an audio signal to be uttered;
the first sounding control module is configured to respond to the sounding request and control an exciter of at least one sounding unit to work according to the audio signal so as to drive a vibrating body of the at least one sounding unit to sound;
a compensation signal generation module configured to generate a low-frequency compensation signal for performing low-frequency compensation on the sound signal emitted by the target sound emission unit by using the audio signal when there is a target sound emission unit with low-frequency loss in the sound signal emitted by the at least one sound emission unit;
and the second sound production control module is configured to control the exciters of the other sound production units except the target sound production unit to work according to the low-frequency compensation signal.
9. An electronic device, comprising: a display, a back shell, a first actuator, a second actuator, a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the sound emission control method according to any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the sound emission control method according to any one of claims 1 to 7.
Technical Field
The embodiment of the invention relates to the technical field of electronic equipment, in particular to a sound production control method, electronic equipment and a medium.
Background
The existing electronic equipment using the speaker without the opening hole can meet the higher and higher requirements of users on the appearance of the electronic equipment because the opening hole is not required on the shell of the electronic equipment.
Present no trompil speaker can only be based on electronic equipment's casing (lid behind the battery promptly) sound production, if electronic equipment's display screen upwards places in desktop or object surface, then the amplitude of casing can receive the influence to lose low frequency part tone quality, make sound production tone quality not good, the sound that leads to sending has the acutely sense, seriously influences user experience.
Disclosure of Invention
The embodiment of the invention provides a sound production control method, electronic equipment and a medium, and aims to solve the problem that sound production tone quality is poor when the electronic equipment is placed on the surface of an object in the prior art.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a sound emission control method applied to an electronic device, where the electronic device includes two sound emission units arranged along a thickness direction of the electronic device in an opposite manner, and each sound emission unit includes a vibrating body and at least one actuator for driving the vibrating body to emit sound, and the method includes:
receiving a sound production request, wherein the sound production request comprises an audio signal to be produced;
in response to the sounding request, controlling an exciter of the at least one sounding unit to work according to the audio signal so as to drive a vibrating body of the at least one sounding unit to sound;
generating a low-frequency compensation signal for performing low-frequency compensation on the sound signal emitted by the target sound emitting unit by using the audio signal under the condition that the target sound emitting unit with low-frequency loss exists in at least one sound emitting unit;
and controlling the exciters in the other sound production units except the target sound production unit to work according to the low-frequency compensation signal.
In a second aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes two sounding units that are disposed opposite to each other in a thickness direction of the electronic device, each sounding unit includes a vibrating body and at least one exciter that is used to drive the vibrating body to sound, and the electronic device further includes:
the system comprises an utterance request receiving module, a processing module and a processing module, wherein the utterance request receiving module is configured to receive an utterance request, and the utterance request comprises an audio signal to be uttered;
the first sounding control module is configured to respond to a sounding request and control an exciter of the at least one sounding unit to work according to the audio signal so as to drive a vibrating body of the at least one sounding unit to sound;
a compensation signal generation module configured to generate a low-frequency compensation signal for performing low-frequency compensation on a sound signal emitted by a target sound emission unit by using an audio signal in the case that the target sound emission unit exists in at least one sound emission unit, wherein the sound signal emitted by the target sound emission unit has low-frequency loss;
and the second sound production control module is configured to control the exciters of the other sound production units except the target sound production unit to work according to the low-frequency compensation signal.
In a third aspect, an embodiment of the present invention provides an electronic device, including: a display, a back shell, a first actuator, a second actuator, a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the sound emission control method as described in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the sound emission control method according to the first aspect.
In the embodiment of the invention, when the electronic device generates sound according to the audio signal, if the target sound generating unit with low-frequency loss exists in the sound generating units generating sound, the low-frequency compensation signal for performing low-frequency compensation on the sound signal generated by the target sound generating unit can be generated, and the exciter in the sound generating units except the target sound generating unit in the two sound generating units is controlled to operate according to the low-frequency compensation signal so as to drive the vibrating bodies in the sound generating units except the target sound generating unit to generate sound, so that the low-frequency sound quality compensation of the sound signal generated by the target sound generating unit shielded by the object is realized under the condition that any sound generating unit of the electronic device is placed on the surface of the object, the low-frequency loss part of the sound signal generated by the target sound generating unit is compensated, and the sound quality of the electronic device is improved, thereby improving the user experience.
Drawings
The present invention will be better understood from the following description of specific embodiments thereof taken in conjunction with the accompanying drawings, in which like or similar reference characters designate like or similar features.
FIG. 1 is a diagram illustrating a frequency response curve of a casing sounding when an electronic device is placed on a surface of an object in the prior art;
fig. 2 is a schematic structural diagram of a sound generating unit of an electronic device according to an embodiment of the present invention;
FIG. 3 is a flow chart of a sound generation control method according to an embodiment of the present invention;
FIG. 4 is a flow chart of a sound generation control method according to another embodiment of the present invention;
FIG. 5 is a flowchart illustrating an audio playing process according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of an electronic device according to an embodiment of the invention;
fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a diagram illustrating a frequency response curve of a sound emitted from a housing when an electronic device is placed on a surface of an object in the prior art. As shown in fig. 1, the dotted line is a frequency response curve of the housing in a free state, and the solid line is a frequency response curve of the housing when the housing is placed on a table or an object surface.
As can be seen from fig. 1, since the existing speaker without opening holes can only produce sound based on the casing (i.e. the rear battery cover) of the electronic device, when the display screen of the electronic device is placed on the desktop or the surface of an object upward, the amplitude of the casing is affected, so that the tone quality of the low-frequency part is lost, the sound quality of the sound is poor, the sound produced has a sharp feeling, and the user experience is seriously affected.
In order to solve the above problems in the prior art, embodiments of the present invention provide a sound emission control method, an electronic device, and a medium.
The electronic device to which the sound production control method provided by the embodiment of the invention is applied may include: two sound generating units are arranged along the thickness direction of the device in an opposite mode, and each sound generating unit comprises a vibrating body and at least one exciter used for driving the vibrating body to generate sound.
Specifically, the vibrating body may include: a display screen and a housing of an electronic device.
Fig. 2 is a schematic structural diagram of a sound emitting unit of an electronic device according to an embodiment of the present invention. As shown in fig. 2, the electronic device includes an
In the embodiment of the present invention, the
Fig. 3 is a flow chart of a sound emission control method according to an embodiment of the present invention. As shown in fig. 3, the sound emission control method includes:
s210, receiving a sound production request, wherein the sound production request comprises an audio signal to be produced;
s220, responding to the sounding request, and controlling an exciter of the at least one sounding unit to work according to the audio signal so as to drive a vibrating body of the at least one sounding unit to sound;
s230, under the condition that a target sound generating unit with low-frequency loss exists in at least one sound generating unit, generating a low-frequency compensation signal for performing low-frequency compensation on the sound signal generated by the target sound generating unit by using the audio signal;
and S240, controlling the exciters of the other sound generating units except the target sound generating unit to work according to the low-frequency compensation signal.
In the embodiment of the invention, when the electronic device generates sound according to the audio signal, if the target sound generating unit with low-frequency loss exists in the sound generating units generating sound, a low-frequency compensation signal for performing low-frequency compensation on the sound signal generated by the target sound generating unit can be generated, and the exciter in the sound generating units except the target sound generating unit in the two sound generating units is controlled to operate according to the low-frequency compensation signal so as to drive the vibrating bodies in the sound generating units except the target sound generating unit to generate sound, so that the compensation of the low-frequency tone quality of the sound signal generated by the target sound generating unit shielded by the object is realized under the condition that any sound generating unit of the electronic device is placed on the surface of the object, the low-frequency loss part of the sound signal generated by the target sound generating unit is compensated, and the sound generating quality and the audio frequency domain performance of the electronic device are improved, to enhance the user experience.
Taking the structure of the sound generating unit shown in fig. 2 as an example, the sound generating unit with the vibrating body as the casing can be used as a main sound generating unit, the sound generating unit with the vibrating body as the display screen can be used as an auxiliary sound generating unit, and in response to a sound generating request, the main sound generating unit is controlled to generate sound according to the audio signal, under the condition that the sound signal generated by the main sound generating unit has low-frequency loss, the main sound generating unit can be used as a target sound generating unit, so that the main sound generating unit continues to generate according to the audio signal, and the auxiliary sound generating unit generates sound according to the low-frequency compensation signal, thereby mutually combining to achieve the purposes of reducing the poor sound generating quality of the non-opening speaker and easily generating low-frequency loss under the condition.
Continuing to use the structure of the sound generating unit shown in fig. 2 as an example, the sound generating unit with the vibrator as the casing can be used as a main sound generating unit, the sound generating unit with the vibrator as the display screen can be used as an auxiliary sound generating unit, and in response to a sound generating request, the main sound generating unit and the auxiliary sound generating unit are controlled to generate sound simultaneously according to the audio signal, under the condition that the sound signal sent by the main sound generating unit has low-frequency loss, the main sound generating unit can be used as a target sound generating unit, so that the main sound generating unit continues to generate according to the audio signal, and the auxiliary sound generating unit generates sound according to the low-frequency compensation signal, thereby mutually combining to achieve the purposes of reducing the poor sound generating quality of the speaker without the opening hole and easily generating low-frequency loss under.
The audio signal to be sounded in step S210 according to the embodiment of the present invention may be a default audio signal of an audio to be played, or may be an audio signal obtained by processing the default audio signal by an equalizer according to equalization information set by a user.
In step S220 of the embodiment of the present invention, a specific method for controlling the operation of the actuator of the sound generating unit according to the audio signal may be: and sending the audio signal to a driving circuit, generating a driving signal by the driving circuit according to the audio signal, and driving the exciter to work by using the driving signal to generate kinetic energy for driving the vibrating body to vibrate and generate sound.
In some embodiments of the present invention, before step S230, occurrence of at least one sound generating unit may be detected to determine whether there is a target sound generating unit in the at least one sound generating unit, where the sound signal generated has low frequency loss.
In some embodiments, a specific method of detecting whether a target sound-emitting unit is present in at least one sound-emitting unit may include:
receiving vibration parameters of a vibrating body of at least one sounding unit collected by a vibration sensor of the electronic equipment;
and comparing the vibration parameters with the vibration characteristics corresponding to the audio signals according to the acquired vibration parameters of the vibration body of each sound generating unit, and if the sound signals corresponding to the vibration parameters have low-frequency loss according to the comparison result, taking the sound generating units corresponding to the vibration parameters as target sound generating units.
Since the sound signal is generated based on the vibration of the vibration body, the vibration parameter of the vibration body has a corresponding relationship with the sound signal, and the vibration parameter of the vibration body can be used to determine whether the low-frequency loss exists in the sound signal.
Specifically, the electronic device may be provided with a plurality of vibration sensors, each vibration body is correspondingly provided with at least one vibration sensor, and the vibration condition of each vibration body can be determined through the vibration parameters collected by the vibration sensors.
After the vibration parameters of each vibration body are collected, a vibration curve corresponding to each vibration body can be generated by using the vibration parameters, then a reference curve generated based on the vibration characteristics corresponding to the audio signals is obtained, the vibration curve is compared with the amplitude in the reference curve to obtain the amplitude difference as a comparison result, and whether the sound signals corresponding to the vibration parameters have low-frequency loss or not is determined according to the amplitude difference. After determining that the sound signal corresponding to the vibration parameter has low-frequency loss, the sound generating unit corresponding to the vibration parameter can be used as the target sound generating unit.
Therefore, the embodiment of the invention can avoid the mutual interference of the sound signals emitted by the two sound emitting units under the condition of responding to the sound emitting request and simultaneously controlling the two sound emitting units to emit sound, and can accurately judge the target sound emitting unit with low frequency loss of the emitted sound signals.
In other embodiments, if only one of the two sound units is controlled to sound in response to the sound request, the specific method for detecting whether the target sound unit exists in at least one sound unit may also include:
receiving a sound signal corresponding to a sound production unit which is controlled to produce sound by a microphone of the electronic equipment;
and generating a sound production unit frequency response curve according to the sound signal, acquiring a preset frequency response curve of the audio signal, comparing the sound production unit frequency response curve with the preset frequency response curve, and determining whether the sound signal has low-frequency loss or not based on a comparison result.
Therefore, the embodiment of the invention can save the hardware cost of the electronic equipment, and can accurately judge the target sound generating unit with low frequency loss of the sound signal under the condition of responding to the sound generating request and controlling only one of the two sound generating units to generate sound.
In this embodiment of the present invention, the specific method in step S230 may include:
acquiring a low-frequency signal which is lacked by a sound signal emitted by a target sound production unit;
extracting a low frequency compensation signal from the audio signal based on the missing low frequency signal; or, based on the missing low-frequency signal, reducing the amplitude difference value of the low-frequency signal and the high-frequency signal in the audio signal, and generating a low-frequency compensation signal.
In some embodiments of the present invention, a low frequency band corresponding to the missing low frequency signal may be determined according to a comparison result of the vibration parameter and the vibration characteristic, and then a signal corresponding to the determined low frequency band may be extracted from the audio signal, and a low frequency compensation signal may be generated.
In other embodiments of the present invention, a low frequency band corresponding to the missing low frequency signal may be determined according to a comparison result of the vibration parameter and the vibration characteristic, and then a signal corresponding to the determined low frequency band in the audio signal is used as a low frequency signal in the audio signal, and the other signals are used as high frequency signals in the audio signal, so as to change the audio signal in a manner of reducing the amplitude of the high frequency signal in the audio signal or increasing the amplitude of the low frequency signal in the audio signal, thereby generating the low frequency compensation signal.
The obtained low-frequency compensation signal is used for controlling other sound generating units except the target sound generating unit to emphatically generate the sound corresponding to the low-frequency signal which is absent from the sound signal generated by the target sound generating unit, so that the low-frequency signal which is absent from the sound signal can be compensated, the low-frequency loss part of the sound signal generated by the target sound generating unit is reduced, and the sound generating tone quality of the electronic equipment is improved.
In step S240 of the embodiment of the present invention, the operation of the actuators of the sound units other than the target sound unit is controlled according to the low frequency compensation signal, and the operation of the actuator of the target sound unit is controlled according to the audio signal.
Fig. 4 is a flowchart illustrating a sound emission control method according to another embodiment of the present invention. As shown in fig. 4, the sound emission control method further includes:
and S250, under the condition that the number of the at least one sounding unit is two, two target sounding units exist in the at least one sounding unit, or the target sounding units do not exist in the at least one sounding unit, continuously controlling the exciter of the at least one sounding unit to work according to the audio signal.
Taking the structure of the sound generating unit shown in fig. 2 as an example, the sound generating unit with the vibrating body as the casing can be used as a main sound generating unit, the sound generating unit with the vibrating body as the display screen can be used as an auxiliary sound generating unit, and in response to a sound generating request, the main sound generating unit and the auxiliary sound generating unit are controlled to generate sound simultaneously according to the audio signals.
Continuing with the structure of the sound generating unit shown in fig. 2 as an example, the sound generating unit with the vibrating body as the housing may be used as the main sound generating unit, the sound generating unit with the vibrating body as the display screen may be used as the auxiliary sound generating unit, and in response to the sound generating request, the main sound generating unit may be controlled to generate sound according to the audio signal.
In some embodiments of the present invention, before detecting whether the target sound-emitting unit is present in the at least one sound-emitting unit, the sound-emission control method may further include:
determining the shielded states of the display screen and the shell;
detecting whether a target sound generating unit exists in at least one sound generating unit under the condition that at least one of the display screen and the shell is determined to be shielded; and under the condition that the display screen and the shell are not shielded, whether the target sound generating unit exists in the at least one sound generating unit is not detected.
In some embodiments of the present invention, if it is determined that the display screen is blocked, it may be determined whether an exciter in the sound generating unit corresponding to the display screen operates, and if the exciter of the sound generating unit operates, it may be determined whether the sound generating unit corresponding to the display screen is a target sound generating unit; if the situation that the shell is shielded is determined, whether an exciter in the sound generating unit corresponding to the shell works or not can be determined, and if the exciter of the sound generating unit works, whether the sound generating unit corresponding to the shell is the target sound generating unit or not can be judged.
In other embodiments of the present invention, it may also be detected whether each sound generating unit is the target sound generating unit in turn when it is determined that at least one of the display screen and the housing is blocked.
In the embodiment of the invention, the shielded states of the display screen and the shell are firstly detected, and only under the condition that at least one of the display screen and the shell is shielded, whether a target sound generating unit with low-frequency loss of a sound signal emitted by the at least one shielded sound generating unit exists is detected, so that the data processing amount of the electronic equipment can be reduced, the resource occupation of the electronic equipment is reduced, and the power consumption of the electronic equipment is reduced.
In some embodiments of the present invention, the electronic device further includes a proximity sensor for detecting a state of a proximity object of the display screen and a posture sensor for detecting a placement posture of the electronic device.
At this time, the specific method for determining the shielded state of the display screen and the housing may include:
acquiring a proximity signal acquired by a proximity sensor and attitude data acquired by an attitude sensor;
determining the shielded state of the display screen according to the proximity signal;
and determining the shielded state of the shell according to the attitude data.
Wherein the proximity sensor may be an infrared distance sensor.
In the embodiment of the invention, the shielded state of the display screen can be directly detected by using the proximity sensor for detecting the state of the proximity object of the display screen, and the shielded state of the shell can be judged by using the proximity sensor and the attitude sensor for detecting the placing posture of the electronic equipment, so that a device special for detecting the shielded state of the display screen and the shell is not required to be added, and the cost of the electronic equipment can be reduced.
In the embodiment of the invention, the shielded state of the display screen can be determined according to the approach signal, if the display screen is determined to be close to the object according to the approach signal, the display screen can be determined to be shielded, and if the display screen is determined not to be close to the object according to the approach signal, the display screen can be determined not to be shielded.
In an embodiment of the present invention, a specific method for determining an occluded state of a housing according to pose data may include:
acquiring longitudinal attitude data in the attitude data;
if the longitudinal attitude data is positive, determining that the shell is shielded;
and if the longitudinal attitude data is negative, determining that the shell is not shielded.
Specifically, if the longitudinal attitude data is positive, it is generally the case that the display screen of the electronic device is placed upward, or the electronic device is held by a user, or the electronic device is supported by a stand, and in these cases, the vibration of the housing is hindered, and therefore, it can be determined that the housing is blocked. If the longitudinal attitude data is a negative number, it indicates that the casing of the electronic device is placed upwards, and at this time, the electronic device is in contact with the surface of the object through the display screen, and it can be determined that the casing is not shielded.
In embodiments of the present invention, the attitude sensor may comprise a gravity sensor and/or a gyroscope.
In other embodiments of the present invention, a proximity sensor for detecting a state of a proximity object of the display screen and a proximity sensor for detecting a state of a proximity object of the housing may be separately provided, so that proximity signals collected by the two proximity sensors are directly used to detect the shielded states of the display screen and the housing.
In some embodiments of the present invention, after step S240, the method for controlling sounding may further include:
receiving a sound collection signal collected by a microphone of the electronic equipment;
and adjusting the low-frequency compensation signal according to the comparison result of the sound acquisition signal and the audio signal.
Specifically, a feedback sound frequency response curve may be generated according to the sound collection signal, a preset frequency response curve of the audio signal may be obtained, then the feedback sound frequency response curve and the preset frequency response curve are compared, and based on a comparison result, it is determined whether the sound collection signal still has low frequency loss or whether high frequency loss exists, if still has low frequency loss, the low frequency compensation signal may be readjusted by using the method for generating the low frequency compensation signal, and if there is high frequency loss, high frequency compensation may be performed. The high frequency compensation method is similar to the low frequency compensation method, and is not described herein.
Therefore, in the embodiment of the invention, the low-frequency compensation signal can be adjusted by utilizing a feedback adjustment mechanism, so that the generation quality of the electronic equipment is further improved.
Fig. 5 is a flow chart illustrating an audio playing process according to an embodiment of the present invention. As shown in fig. 5, taking an example that the electronic device includes a sound unit a with a vibrating body as a housing and a sound unit B with a vibrating body as a display screen, the method for playing audio by the electronic device specifically includes the following steps:
s301, receiving a sound production request sent by audio software;
s302, controlling the exciters of the sound generating unit A and the sound generating unit B to work according to the audio signal to be generated in the sound generating request so as to drive the vibration bodies of the sound generating unit A and the sound generating unit B to generate sound, and thus controlling the sound generating unit A and the sound generating unit B to generate sound;
s303, judging whether one of the display screen and the shell is blocked, if so, executing a step S304, otherwise, executing a step S302;
s304, detecting whether a target sound generating unit with low-frequency loss exists in the sound generating units A and B, if so, executing a step S305, and if not, executing a step S302;
s305, judging whether the target sound generating units are the sound generating unit A and the sound generating unit B, if not, executing a step S306, and if so, executing a step S302;
s306, judging whether the target sound generating unit is a sound generating unit A, if so, executing a step S307, and if not, executing a step S309;
s307, generating a low-frequency compensation signal for performing low-frequency compensation on the sound signal emitted by the sound emitting unit A by using the audio signal;
s308, controlling an exciter of the sound generating unit B to work according to the low-frequency compensation signal so as to drive a vibrating body of the sound generating unit B to generate sound and perform low-frequency compensation;
s309, generating a low-frequency compensation signal for performing low-frequency compensation on the sound signal emitted by the sound emitting unit B by using the audio signal;
and S310, controlling an exciter of the sound production unit B to work according to the low-frequency compensation signal so as to drive a vibrating body of the sound production unit B to produce sound and perform low-frequency compensation.
Fig. 6 shows a schematic structural diagram of an electronic device according to an embodiment of the present invention.
An electronic device according to an embodiment of the present invention includes two sound units disposed opposite to each other in a thickness direction thereof, where each sound unit includes a vibrating body and at least one actuator for driving the vibrating body to generate sound, and as shown in fig. 6, the electronic device further includes:
an utterance
a first sound-emitting
a compensation
and a second sound
In the embodiment of the invention, when the electronic equipment generates sound according to the audio signal, if the target sound generating unit with low-frequency loss exists in the sound generating units generating sound, the low-frequency compensation signal for performing low-frequency compensation on the sound signal generated by the target sound generating unit can be generated, and the exciters in the other sound generating units except the target sound generating unit in the two sound generating units are controlled to work according to the low-frequency compensation signal so as to drive the vibrating body of the non-target sound generating unit to generate sound, so that the low-frequency tone quality compensation of the sound signal generated by the target sound generating unit shielded by an object is realized under the condition that any sound generating unit of the electronic equipment is placed on the surface of the object, the low-frequency loss part of the sound signal generated by the target sound generating unit is compensated, and the sound generating quality and the audio frequency domain performance of the electronic equipment are improved, to enhance the user experience.
In the embodiment of the present invention, the audio signal to be sounded received by the sounding
In an embodiment of the present invention, a specific method for the first
In an embodiment of the present invention, the electronic device may further include a low frequency loss detection module configured to: receiving vibration parameters of a vibrating body of at least one sounding unit collected by a vibration sensor of the electronic equipment; and comparing the vibration parameters with the vibration characteristics corresponding to the audio signals according to the acquired vibration parameters of the vibration body of each sound generating unit, and if the sound signals corresponding to the vibration parameters have low-frequency loss according to the comparison result, taking the sound generating units corresponding to the vibration parameters as target sound generating units.
Since the sound signal is generated based on the vibration of the vibration body, the vibration parameter of the vibration body has a corresponding relationship with the sound signal, and the vibration parameter of the vibration body can be used to determine whether the low-frequency loss exists in the sound signal.
Therefore, the embodiment of the invention can avoid the mutual interference of the sound signals emitted by the two sound emitting units under the condition of responding to the sound emitting request and simultaneously controlling the two sound emitting units to emit sound, and can accurately judge the target sound emitting unit with low frequency loss of the emitted sound signals.
In this embodiment of the present invention, the compensation
The obtained low-frequency compensation signal is used for controlling other sound generating units except the target sound generating unit to emphatically generate the sound corresponding to the low-frequency signal which is absent from the sound signal generated by the target sound generating unit, so that the low-frequency signal which is absent from the sound signal can be compensated, the low-frequency loss part of the sound signal generated by the target sound generating unit is reduced, and the sound generating tone quality of the electronic equipment is improved.
In some embodiments of the present invention, the second sound-
In other embodiments of the present invention, the second vocalization control module 450 may be further configured to: and under the condition that the number of the at least one sounding unit is two, and two target sounding units exist in the at least one sounding unit, or the target sounding units do not exist in the at least one sounding unit, continuously controlling the exciter of the at least one sounding unit to work according to the audio signal.
In this embodiment of the present invention, the electronic device may further include an occlusion state detection module, where the occlusion state detection module is configured to: determining the shielded states of the display screen and the shell before detecting whether a target sound generating unit exists in at least one sound generating unit; detecting whether a target sound generating unit exists in at least one sound generating unit under the condition that at least one of the display screen and the shell is determined to be shielded; and under the condition that the display screen and the shell are not shielded, whether the target sound generating unit exists in the at least one sound generating unit is not detected.
In the embodiment of the invention, the shielded states of the display screen and the shell are firstly detected, and only under the condition that at least one of the display screen and the shell is shielded, whether a target sound generating unit with low-frequency loss of a sound signal emitted by the at least one shielded sound generating unit exists is detected, so that the data processing amount of the electronic equipment can be reduced, the resource occupation of the electronic equipment is reduced, and the power consumption of the electronic equipment is reduced.
In some embodiments of the present invention, the occlusion state detection module may be specifically configured to: acquiring a proximity signal acquired by a proximity sensor and attitude data acquired by an attitude sensor; determining the shielded state of the display screen according to the proximity signal; and determining the shielded state of the shell according to the attitude data.
In some embodiments of the present invention, the occlusion state detection module may be further specifically configured to: acquiring longitudinal attitude data in the attitude data; if the longitudinal attitude data is positive, determining that the shell is shielded; and if the longitudinal attitude data is negative, determining that the shell is not shielded.
The proximity sensor may be an infrared distance sensor, and the attitude sensor may include a gravity sensor and/or a gyroscope.
In some embodiments of the present invention, the electronic device may further include a feedback adjustment module configured to: receiving a sound collection signal collected by a microphone of the electronic equipment; and adjusting the low-frequency compensation signal according to the comparison result of the sound acquisition signal and the audio signal.
Therefore, in the embodiment of the invention, the low-frequency compensation signal can be adjusted by utilizing a feedback adjustment mechanism, so that the generation quality of the electronic equipment is further improved.
The electronic device provided in the embodiment of the present invention can implement each process implemented by the electronic device in the method embodiments of fig. 3 to fig. 5, and is not described herein again to avoid repetition.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention. As shown in fig. 7, the
Wherein, the
In the embodiment of the invention, when the electronic device generates sound according to the audio signal, if the target sound generating unit with low-frequency loss exists in the sound generating units generating sound, a low-frequency compensation signal for performing low-frequency compensation on the sound signal generated by the target sound generating unit can be generated, and the exciter in the sound generating units except the target sound generating unit in the two sound generating units is controlled to operate according to the low-frequency compensation signal so as to drive the vibrating bodies in the sound generating units except the target sound generating unit to generate sound, so that the compensation of the low-frequency tone quality of the sound signal generated by the target sound generating unit shielded by the object is realized under the condition that any sound generating unit of the electronic device is placed on the surface of the object, the low-frequency loss part of the sound signal generated by the target sound generating unit is compensated, and the sound generating quality and the audio frequency domain performance of the electronic device are improved, to enhance the user experience.
It should be understood that, in the embodiment of the present invention, the
The electronic device provides wireless broadband internet access to the user via the
The
The
The
The
The
Further, the
The
The
The
The
In addition, the
Preferably, an embodiment of the present invention further provides an electronic device, which includes a
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the foregoing sound production control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
- 上一篇:一种医用注射器针头装配设备
- 下一篇:一种无线多声道音响系统及其声道自动校准方法