Signal processing method and device and electronic equipment

文档序号:1219080 发布日期:2020-09-04 浏览:43次 中文

阅读说明:本技术 信号处理方法、装置和电子设备 (Signal processing method and device and electronic equipment ) 是由 阮清波 于 2020-05-29 设计创作,主要内容包括:本申请公开了一种信号处理方法、装置和电子设备,属于电子设备技术领域。本申请的电子设备包括:信号调制模块,用于获取待输出音频信号,将所述待输出音频信号调制为超声波音频信号,所述超声波音频信号是基于用户相对于电子设备的位置信息得到的,所述位置信息包括角度、距离中的至少一项;超声波音频播放模块,所述超声波音频播放模块与所述信号调制模块连接,用于播放所述超声波音频信号。由于超声波音频信号是基于用户相对于电子设备的位置信息得到的。该超声波音频信号具有超强的指向性特征,能够保证在用户周围的一定区域内才能听到清晰的音频信号,进而能够有效减少对周围其他人的影响。(The application discloses a signal processing method and device and electronic equipment, and belongs to the technical field of electronic equipment. The electronic device of the present application includes: the signal modulation module is used for acquiring an audio signal to be output and modulating the audio signal to be output into an ultrasonic audio signal, wherein the ultrasonic audio signal is obtained based on position information of a user relative to the electronic equipment, and the position information comprises at least one of an angle and a distance; and the ultrasonic audio playing module is connected with the signal modulation module and is used for playing the ultrasonic audio signal. Since the ultrasonic audio signal is derived based on the position information of the user with respect to the electronic device. This ultrasonic wave audio signal has superstrong directive property characteristic, can guarantee just can hear clear audio signal in certain region around the user, and then can effectively reduce the influence to other people on every side.)

1. An electronic device, comprising:

the signal modulation module is used for acquiring an audio signal to be output and modulating the audio signal to be output into an ultrasonic audio signal, wherein the ultrasonic audio signal is obtained based on position information of a user relative to the electronic equipment, and the position information comprises at least one of an angle and a distance;

and the ultrasonic audio playing module is connected with the signal modulation module and is used for playing the ultrasonic audio signal.

2. The electronic device of claim 1, further comprising:

the output end of the data processing module is connected with the input end of the signal modulation module and is used for acquiring a target conversion parameter based on the position information of a user relative to the electronic equipment and transmitting the target conversion parameter to the signal modulation module, and the target conversion parameter is used for converting an audio signal to be output into an ultrasonic audio signal;

and the signal modulation module is used for modulating the audio signal to be output into an ultrasonic audio signal based on the target conversion parameter.

3. The electronic device of claim 2, further comprising:

and the output end of the information acquisition module is connected with the input end of the data processing module and is used for acquiring the position information and transmitting the acquired position information to the data processing module.

4. The electronic device of claim 3, wherein the information acquisition module comprises: at least one of an ultrasonic ranging element and a camera module.

5. The electronic device of claim 1, further comprising:

the input end of the signal amplification module is connected with the output end of the signal modulation module, the output end of the signal amplification module is connected with the input end of the ultrasonic audio playing module, and the signal amplification module is used for amplifying the ultrasonic audio signal output by the signal modulation module and transmitting the amplified ultrasonic audio signal to the ultrasonic audio playing module;

the ultrasonic audio playing module is specifically used for playing the ultrasonic audio signals after amplification processing.

6. The electronic device of claim 1, wherein the ultrasonic audio playback module comprises at least two speakers connected in parallel.

7. The electronic device of claim 6, wherein the at least two speakers comprise earpieces of the electronic device.

8. The electronic device of claim 6, wherein the at least two speakers are distributed on different sides of a bezel of the electronic device.

9. The electronic device of claim 6, wherein the sound outlet holes of the at least two speakers are distributed at each side of the screen of the electronic device.

10. A method of signal processing, the method comprising:

acquiring target conversion parameters based on position information of a user relative to the electronic equipment, wherein the position information comprises at least one of an angle and a distance;

and outputting the target conversion parameter to the signal modulation module, so that the signal modulation module modulates the audio signal to be output into an ultrasonic audio signal based on the target conversion parameter.

11. The signal processing method of claim 10, wherein the obtaining target conversion parameters based on the position information of the user relative to the electronic device comprises:

and determining a target conversion parameter corresponding to the position information of the user relative to the electronic equipment according to the corresponding relation between the preset position information and the conversion parameter.

12. The signal processing method of claim 10, wherein before obtaining the target conversion parameter based on the position information of the user relative to the electronic device, the method further comprises:

an information acquisition module for controlling the electronic equipment acquires the position information of a user relative to the electronic equipment;

alternatively, user input of location information of the user relative to the electronic device is received.

13. The signal processing method of claim 10, wherein the position information of the user relative to the electronic device comprises position information of at least one user relative to the electronic device, and the first coverage angle of the ultrasonic audio signal is greater than the second coverage angle of the ultrasonic audio signal;

the first coverage angle refers to a coverage angle when the position information is position information of a first number of users relative to the electronic device, the second coverage angle refers to a coverage angle when the position information is position information of a second number of users relative to the electronic device, and the first number is larger than the second number.

14. The signal processing method of claim 10, wherein the target transition parameter comprises at least one of: the magnitude of the input voltage, the frequency of the input voltage.

15. A signal processing apparatus, characterized by comprising:

the acquisition module is used for acquiring target conversion parameters based on position information of a user relative to the electronic equipment, wherein the position information comprises at least one of an angle and a distance;

and the transmission module is used for outputting the target conversion parameter to the signal modulation module so that the signal modulation module modulates the audio signal to be output into an ultrasonic audio signal based on the target conversion parameter.

16. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the signal processing method according to any one of claims 10 to 14.

Technical Field

The application belongs to the technical field of electronic equipment, and particularly relates to a signal processing method and device and electronic equipment.

Background

The mobile terminal becomes an essential article in life of people, greatly improves the communication efficiency of people and enriches life. More and more people enjoy and are accustomed to watching video programs with a mobile phone or pad. In the process of implementing the present application, the inventor finds that at least the following problems exist in the prior art: in public places, when a video program is played in a play-out mode, surrounding people are affected, so that many people watch the video program by adopting wired earphones or wireless earphones. The problem of disturbing others can be solved by adopting the earphone to watch the video program, but some disadvantages exist, namely, the hearing of the ears of the people is lost by frequently using the earphone, the damage is irreversible, the ears of the people feel uncomfortable or even have the same sense by wearing the earphone for a long time, and thirdly, after the earphone is worn, the recognition degree of the ears of the people to the surrounding environment is reduced, and the dangerous factors in the environment can not be recognized in time.

Disclosure of Invention

The embodiment of the application aims to provide a signal processing method, a signal processing device and electronic equipment, which can solve the problem that other people are affected when a video file is played in a public place in a play-out mode.

In order to solve the technical problem, the present application is implemented as follows:

in a first aspect, an embodiment of the present application provides an electronic device, including:

the signal modulation module is used for acquiring an audio signal to be output and modulating the audio signal to be output into an ultrasonic audio signal, wherein the ultrasonic audio signal is obtained based on position information of a user relative to the electronic equipment, and the position information comprises at least one of an angle and a distance;

and the ultrasonic audio playing module is connected with the signal modulation module and is used for playing the ultrasonic audio signal.

In a second aspect, an embodiment of the present application provides a signal processing method, including:

acquiring target conversion parameters based on position information of a user relative to the electronic equipment, wherein the position information comprises at least one of an angle and a distance;

and outputting the target conversion parameter to the signal modulation module, so that the signal modulation module modulates the audio signal to be output into an ultrasonic audio signal based on the target conversion parameter.

In a third aspect, an embodiment of the present application provides a signal processing apparatus, including:

the acquisition module is used for acquiring target conversion parameters based on position information of a user relative to the electronic equipment, wherein the position information comprises at least one of an angle and a distance;

and the transmission module is used for outputting the target conversion parameter to the signal modulation module so that the signal modulation module modulates the audio signal to be output into an ultrasonic audio signal based on the target conversion parameter.

In a fourth aspect, the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the second aspect.

In a fifth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the second aspect.

In a sixth aspect, the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the second aspect.

In the embodiment of the application, an audio signal to be output is obtained, the audio signal to be output is modulated into an ultrasonic audio signal, and the ultrasonic audio signal is played. Since the ultrasonic audio signal is derived based on the position information of the user with respect to the electronic device. This ultrasonic wave audio signal has superstrong directive property characteristic, can guarantee just can hear clear audio signal in certain region around the user, and then can effectively reduce the influence to other people on every side.

Drawings

Fig. 1 is one of block diagrams of the electronic apparatus according to the embodiment of the present application;

fig. 2 is a schematic diagram of a signal modulation module converting an audio signal to be output into an ultrasonic audio signal in an embodiment of the present application;

FIG. 3 is a schematic diagram of an embodiment of the present application in which an ultrasonic signal is converted to an audible signal;

FIG. 4 is a schematic diagram of location information between a user and an electronic device in an embodiment of the application;

fig. 5 is a schematic diagram of the positions of sound outlet holes of a loudspeaker in the embodiment of the present application;

FIG. 6 is a flow chart of a signal processing method according to an embodiment of the invention;

FIG. 7 is a schematic diagram of receiving location information in an embodiment of the present application;

fig. 8 is a block diagram of a signal processing apparatus according to an embodiment of the present invention;

FIG. 9 is a second block diagram of the electronic device according to the embodiment of the invention;

fig. 10 is a third block diagram of the electronic device according to the embodiment of the present invention.

Detailed Description

The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. 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 application.

The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.

The signal processing method, the signal processing apparatus, and the electronic device provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings.

As shown in fig. 1, an embodiment of the present application provides an electronic device 100, including:

the signal modulation module 101 is configured to acquire an audio signal to be output, and modulate the audio signal to be output into an ultrasonic audio signal, where the ultrasonic audio signal is obtained based on position information of a user relative to an electronic device, and the position information includes at least one of an angle and a distance.

The angle is an angle of a user relative to the electronic device, the distance is a distance of the user relative to the electronic device, the angle of the user relative to the electronic device may also be represented as a coverage angle of the ultrasonic audio signal, and the distance of the user relative to the electronic device may also be represented as a propagation distance of the ultrasonic audio signal.

The audio signal to be output may be an audio signal corresponding to an audio/video file stored in the electronic device, or an audio signal corresponding to an audio/video file stored in the server. That is, the signal modulation module acquires the audio signal to be output from the inside of the electronic device or the server. And then, modulating the audio signal to be output into an ultrasonic audio signal with super-strong directivity characteristic.

Specifically, as shown in fig. 2, the signal modulation module receives a digital audio signal to be output, processes and converts the digital audio signal to be output into an ultrasonic signal, and then obtains an analog signal of the ultrasonic wave through digital-to-analog conversion and outputs the analog signal.

And the ultrasonic audio playing module 102 is connected with the signal modulation module and is used for playing the ultrasonic audio signal.

According to the embodiment of the application, the audible sound signal is modulated onto the ultrasonic carrier signal based on the ultrasonic sound wave directional propagation technology and is emitted into the air by the ultrasonic transducer. During the propagation of ultrasonic waves with different frequencies in the air, due to the nonlinear acoustic effect of the air, the signals interact and self-modulate, so as to generate new sound waves with the frequency of the sum (sum frequency) and the difference (difference frequency) of the original ultrasonic frequencies. Under the condition that the ultrasonic wave is properly selected, the difference frequency sound wave falls in an audible sound interval, namely 20Hz-20000 Hz. In this way, the process of directional transmission of sound is achieved by virtue of the high directivity of the ultrasonic wave itself.

For example, as shown in fig. 3, the difference frequency signals f1-f2 and the sum frequency signal f1+ f2 newly appear in the ultrasonic signals f1 and f2 with the frequencies not much different from each other. Since the high-frequency signals are strongly absorbed by the medium, only low-frequency difference signals f1-f2 (audible waves) remain at a distance.

Assume that the input signal form of the ultrasonic signal is: pi(t)=PiE(t)cos(ωit);

Wherein, PiFor signal amplitude, e (t) is the envelope function.

After demodulation, the far-field sound pressure form of the audio is:

Figure BDA0002516340230000051

that is, the self-demodulation process under the nonlinear effect can demodulate the envelope signal e (t), and if e (t) is an audio signal, the demodulated audio signal is also audible.

The ultrasonic wave is used as a carrier signal, the audio signal is modulated into a high-frequency signal to realize directional transmission in the air, and finally self-demodulation is realized in the air, so that the restored audio signal can be heard by human ears.

In the embodiment of the application, the audio signal to be output is acquired, the audio signal to be output is modulated into the ultrasonic audio signal, and the ultrasonic audio signal is played. Since the ultrasonic audio signal is derived based on the position information of the user with respect to the electronic device. This ultrasonic wave audio signal has superstrong directive property characteristic, can guarantee just can hear clear audio signal in certain region around the user, and then can effectively reduce the influence to other people on every side.

Further, the electronic device of the embodiment of the present application further includes:

the output end of the data processing module is connected with the input end of the signal modulation module and is used for acquiring a target conversion parameter based on the position information of a user relative to the electronic equipment and transmitting the target conversion parameter to the signal modulation module, and the target conversion parameter is used for converting an audio signal to be output into an ultrasonic audio signal;

and the signal modulation module is used for modulating the audio signal to be output into an ultrasonic audio signal based on the target conversion parameter.

The position information includes at least one of a distance and an angle. The distance may be a range of distances over which the ultrasonic audio signal self-demodulates in air into a higher quality speech signal. The angle between the user and the electronic device is determined according to the angle between the electronic device and the ears of the user, or the angle between the electronic device and the ears of the user and a preset angle value, for example, the preset angle value is added on the basis of the angle between the electronic device and the ears of the user. The angle may also represent an angle that is not covered by the ultrasonic audio signal. As shown in fig. 4, the angle of the user with respect to the electronic device is α, and the distance of the user with respect to the electronic device is L.

The user is a user listening to the audio signal to be output, and assuming that the user is a first user, the angle may be an angle between the electronic device and two ears of the first user; assuming that the users include a first user and a second user, the angle may be a distance between the electronic device and a left ear of the first user and a right ear of the second user. When one user listens to the audio signal to be output, α may be specifically 40 degrees, and L is specifically 10cm, and when two users listens to the audio signal to be output, α may be specifically 80 degrees, and L is specifically 13 cm.

In the embodiment of the present application, the coverage angle of the ultrasonic audio signal is proportional to the number of users listening to the ultrasonic beam audio signal, that is, the larger the number of users is, the larger the coverage angle of the ultrasonic audio signal is.

The target conversion parameter includes at least one of a magnitude of the input voltage and a frequency of the input voltage.

Here, the data processing module determines a target conversion parameter according to the position information of the user relative to the electronic device, so that the signal modulation module modulates the audio signal to be output into an ultrasonic audio signal of a proper frequency band according to the target conversion parameter, and further, the played ultrasonic audio signal is more matched with the position information of the user, that is, it is ensured that the ultrasonic audio signal can be heard in a certain area near the user without affecting other people.

Further, the electronic device of the embodiment of the present application further includes:

and the output end of the information acquisition module is connected with the input end of the data processing module and is used for acquiring the position information and transmitting the acquired position information to the data processing module.

Here, the signal module acquires the position information, so that the data processing module determines the target conversion parameter according to the position information, and further can modulate the audio signal to be output into an ultrasonic audio signal of a proper frequency band.

The information acquisition module includes: at least one of an ultrasonic ranging element and a camera module.

In the embodiment of the present application, the position information is acquired by using the ultrasonic ranging element based on the transmission time and the reception time of the ultrasonic wave. Here, the ultrasonic ranging device is used to perform ranging by utilizing the characteristic of high directivity of ultrasonic waves themselves. Specifically, the ultrasonic waves emitted by the ultrasonic ranging element encounter an obstacle (an observer), are reflected and received by a microphone of the electronic device, and the electronic device can obtain the distance between the electronic device and the observer according to the emission time and the receiving time of the ultrasonic waves and the propagation speed of the ultrasonic waves.

In the embodiment of the application, the distance and/or the angle between the electronic device and the viewer can also be directly detected through the camera module.

According to the embodiment of the application, the position information can be conveniently and quickly acquired through the ultrasonic ranging element and the camera module, so that the data processing module can determine the target conversion parameter according to the position information, and further can modulate the audio signal to be output into the ultrasonic audio signal with a proper frequency band.

Further, the electronic device of the embodiment of the present application further includes:

the input end of the signal amplification module is connected with the output end of the signal modulation module, the output end of the signal amplification module is connected with the input end of the ultrasonic audio playing module, and the signal amplification module is used for amplifying the ultrasonic audio signal output by the signal modulation module and transmitting the amplified ultrasonic audio signal to the ultrasonic audio playing module;

the ultrasonic audio playing module is specifically used for playing the ultrasonic audio signals after amplification processing.

Here, the signal amplification module amplifies the ultrasonic audio signal modulated by the signal modulation module to ensure that a user can clearly hear the ultrasonic audio signal.

Further, in the electronic device according to the embodiment of the present application, the ultrasonic audio playing module includes at least two speakers connected in parallel.

In the embodiment of the present application, when playing the ultrasonic audio signal, the speaker built in the electronic device needs to have a very high bandwidth. Because the propagation angle of a single loudspeaker is small, the sound pressure amplitude is low, and in order to improve the playing effect, a plurality of loudspeakers are arranged in the electronic equipment to form an array so as to enhance the transmission effect. The loudspeaker array can increase the sound pressure value of the ultrasonic frequency band, thereby ensuring that the ultrasonic signals can have enough sound pressure value after being demodulated into voice signals, and leading the human ears to hear the voice signals. In addition, from the propagation perspective, the ultrasonic waves emitted by the multiple speakers of the speaker array form certain interference, and the wave crests and wave troughs of the sound appear, so that the control on the sound direction can be easily realized by combining the existing algorithm.

Further, in the electronic device of the embodiment of the present application, the at least two speakers include an earpiece of the electronic device.

In the embodiment of the application, the receiver is also used as a sound production device, so that a double sound production structure is realized, namely the sound production device comprises the receiver and the loudspeaker.

Further, the at least two speakers are distributed on different sides of the middle frame of the electronic device.

Here, the speakers are distributed on different sides of the middle frame of the electronic device, so as to improve the playing effect of the ultrasonic audio signal.

For example, the speakers are distributed on the left and right sides of the middle frame of the electronic device. Alternatively, the speakers are distributed on the upper side and the lower side of the middle frame of the electronic device. Alternatively, the above-mentioned speaker is provided on each side of the frame in the electronic device.

Further, the sound outlet holes of the at least two speakers are distributed on each side of the screen of the electronic device.

As shown in fig. 5, the sound outlet holes 501 of at least two speakers are arranged at each side of the screen of the electronic device, so that the ultrasonic audio signals can be emitted from the electronic device without hindrance.

Specifically, the sound hole may be provided at a middle position of a first side (left side), the sound hole may be provided at a middle position of a second side (right side), the sound hole may be provided at a middle position of a third side (upper side), and the sound hole may be provided at a middle position of a fourth side (lower side). Of course, the sound outlet holes may be provided at other positions (positions other than the intermediate position) of each side edge.

Here, all set up out the sound hole at every side of electronic equipment screen, can guarantee that ultrasonic audio signal plays from every side, and then can effectively promote ultrasonic audio signal's broadcast effect.

The electronic equipment of the embodiment of the application modulates the audio signal to be output into the ultrasonic audio signal for playing, can ensure that the user can hear clear audio signals in a certain area around the user, and effectively reduces disturbance to other personnel. In addition, since the ultrasonic audio signal can be heard only in the area near the head of the user, the privacy of the user can be effectively protected.

As shown in fig. 6, an embodiment of the present application further provides a signal processing method applied to the electronic device described above, where the signal processing method includes:

step 601: and acquiring target conversion parameters based on position information of the user relative to the electronic equipment, wherein the position information comprises at least one of an angle and a distance.

The position information is described in detail in the embodiments of the electronic device, and is not described herein again.

The target transition parameters include at least one of: the magnitude of the input voltage, the frequency of the input voltage. The input voltage is specifically an input voltage of the loudspeaker.

In the embodiment of the present application, after the design of the sound generating device (sound generating device array, such as a speaker array) itself is completed, the index thereof is already set, including the sound pressure level and the directivity parameters. The sound pressure level represents the intensity of sound emitted by the device, and different voltage signals can be input according to requirements in the actual use process, so that the size of the sound pressure level emitted by the device is changed. The change in the energy level (amplitude) of the ultrasonic wave can determine the demodulation distance of the sound. Similarly, when the devices (device arrays) are in different frequency bands, the directivity angles may be different (the included angle range within 6dB of attenuation is defined as the directivity), and in order to control the directivity angles, the parameters of the device design may be built in the module, so that the angles may be controlled by selecting signals with different frequencies.

Of course, in the actual output process, changing the input voltage and frequency is generally done simultaneously.

Step 602: and outputting the target conversion parameter to the signal modulation module, so that the signal modulation module modulates the audio signal to be output into an ultrasonic audio signal based on the target conversion parameter.

Here, the target conversion parameter output value is output to the signal modulation module so that the signal modulation module converts the audio signal to be output into a corresponding ultrasonic audio signal according to the target conversion parameter.

According to the signal processing method, the target conversion parameter is obtained based on the position information of the user relative to the electronic equipment; the target conversion parameters are output to the signal modulation module, so that the signal modulation module modulates the audio signal to be output into an ultrasonic audio signal based on the target conversion parameters, and further, when the ultrasonic audio signal is played, the clear audio signal can be guaranteed to be heard in a certain area of a user, the influence on other people is effectively reduced, and the privacy of the user can be protected.

Further, the obtaining of the target conversion parameter based on the position information of the user relative to the electronic device includes:

and determining a target conversion parameter corresponding to the position information of the user relative to the electronic equipment according to the corresponding relation between the preset position information and the conversion parameter.

Specifically, after the sound-generating device array is designed, parameters during the design of the sound-generating device array are stored, for example, a corresponding relationship between the frequency of the input voltage and the sound pointing angle and a corresponding relationship between the magnitude of the input voltage and the sound demodulation distance are stored. The sound direction angle is an angle of a user relative to the electronic device, and the sound demodulation distance is a distance of the user relative to the electronic device. Through the correspondence, the voltage frequency corresponding to the angle of the user with respect to the electronic device and the magnitude of the input voltage corresponding to the distance of the user with respect to the electronic device can be obtained. For example, when the distance between the user and the electronic device is 30 degrees, the frequency of the corresponding input voltage is 20hz, and when the distance between the user and the electronic device is 10cm, the magnitude of the input voltage is 150 v. In the embodiment of the application, the target conversion parameter can be quickly obtained according to the corresponding relation between the preset position information and the conversion parameter, so that the ultrasonic audio signal of the appropriate frequency band can be conveniently obtained subsequently.

Further, the signal processing method according to the embodiment of the present application, before obtaining the target conversion parameter based on the location information of the user with respect to the electronic device, further includes:

an information acquisition module for controlling the electronic equipment acquires the position information of a user relative to the electronic equipment;

alternatively, user input of location information of the user relative to the electronic device is received.

The implementation of the position information of the user relative to the electronic device through the information obtaining module has been described in detail in the above embodiment of the electronic device, and is not described herein again.

In the embodiment of the application, when the position information of the user relative to the electronic device, which is input by the user, is received, the position information input by the user is specifically received through an information input interface. As shown in fig. 7, after the user starts the directional sound production, the information input interface is displayed, the user can manually input the position information on the signal input interface, that is, the user can set the position information according to the watching requirement of the user, so that the played ultrasonic audio signal can better meet the watching requirement of the user.

Here, by acquiring the position information, a suitable conversion parameter is determined according to the position information, so as to obtain an ultrasonic audio signal of a suitable frequency band, and thus, flexible adjustment of the ultrasonic audio signal is realized.

Further, the position information of the user relative to the electronic equipment comprises position information of at least one user relative to the electronic equipment, and the first coverage angle of the ultrasonic audio signal is larger than the second coverage angle of the ultrasonic audio signal;

the first coverage angle refers to a coverage angle when the position information is position information of a first number of users relative to the electronic device, the second coverage angle refers to a coverage angle when the position information is position information of a second number of users relative to the electronic device, and the first number is larger than the second number.

In the embodiment of the application, the coverage angle of the ultrasonic audio signal is in direct proportion to the number of users listening to the ultrasonic beam audio signal, that is, the more the number of users is, the larger the coverage angle of the ultrasonic audio signal is, so as to ensure that all users listening to the ultrasonic audio can hear clear sound.

For example, when 3 users listen to the ultrasonic audio signal, the coverage angle of the ultrasonic audio signal is a first coverage angle, and when 1 user listens to the ultrasonic audio signal, the coverage angle of the ultrasonic audio signal is a second coverage angle, and the first coverage angle is greater than the second coverage angle.

According to the signal processing method, the audio signal to be output is obtained, the audio signal to be output is modulated into the ultrasonic audio signal, and the ultrasonic audio signal is played. Since the ultrasonic audio signal is derived based on the position information of the user with respect to the electronic device. This ultrasonic wave audio signal has superstrong directive property characteristic, can guarantee just can hear clear audio signal in certain region around the user, and then can effectively reduce the influence to other people on every side.

It should be noted that, in the signal processing method provided in the embodiment of the present application, the execution main body may be a signal processing apparatus, or a control module used for executing the signal processing method in the signal processing apparatus. In the embodiment of the present application, a signal processing apparatus executing a signal processing method is taken as an example to describe the signal processing apparatus provided in the embodiment of the present application.

As shown in fig. 8, an embodiment of the present application provides a signal processing apparatus 800, including:

an obtaining module 801, configured to obtain a target conversion parameter based on location information of a user relative to an electronic device, where the location information includes at least one of an angle and a distance;

a transmission module 802, configured to output the target conversion parameter to the signal modulation module, so that the signal modulation module modulates the audio signal to be output into an ultrasonic audio signal based on the target conversion parameter.

In the signal processing apparatus of the embodiment of the application, the obtaining module is configured to determine a target conversion parameter corresponding to the position information of the user relative to the electronic device according to a corresponding relationship between preset position information and the conversion parameter.

The signal processing apparatus according to the embodiment of the present application further includes:

the control module is used for controlling the information acquisition module of the electronic equipment to acquire the position information of the user relative to the electronic equipment before the acquisition module acquires the target conversion parameter based on the position information of the user relative to the electronic equipment;

the receiving module is used for receiving the position information of the user relative to the electronic equipment, which is input by the user.

In the signal processing apparatus of the embodiment of the application, the position information of the user relative to the electronic device includes position information of at least one user relative to the electronic device, and the first coverage angle of the ultrasonic audio signal is greater than the second coverage angle of the ultrasonic audio signal;

the first coverage angle refers to a coverage angle when the position information is position information of a first number of users relative to the electronic device, the second coverage angle refers to a coverage angle when the position information is position information of a second number of users relative to the electronic device, and the first number is larger than the second number.

In the signal processing apparatus of the embodiment of the present application, the target conversion parameter includes at least one of: the amplitude of the ultrasonic audio signal, the frequency of the ultrasonic audio signal.

The signal processing device of the embodiment of the application acquires the audio signal to be output, modulates the audio signal to be output into the ultrasonic audio signal, and plays the ultrasonic audio signal. Since the ultrasonic audio signal is derived based on the position information of the user with respect to the electronic device. This ultrasonic wave audio signal has superstrong directive property characteristic, can guarantee just can hear clear audio signal in certain region around the user, and then can effectively reduce the influence to other people on every side.

The signal processing device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a kiosk, and the like, and the embodiments of the present application are not particularly limited.

The signal processing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.

The signal processing apparatus provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to fig. 7, and is not described here again to avoid repetition.

Optionally, as shown in fig. 9, an electronic device 900 is further provided in this embodiment of the present application, and includes a processor 901, a memory 902, and a program or an instruction stored in the memory 902 and executable on the processor 901, where the program or the instruction is executed by the processor 901 to implement each process of the signal processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.

It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.

Fig. 10 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.

The electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010. The electronic device 1000 further comprises: the signal modulation module is used for acquiring an audio signal to be output and modulating the audio signal to be output into an ultrasonic audio signal, wherein the ultrasonic audio signal is obtained based on position information of a user relative to the electronic equipment, and the position information comprises at least one of an angle and a distance.

Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 10 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.

The processor 1010 is configured to obtain a target conversion parameter based on location information of a user relative to the electronic device, where the location information includes at least one of an angle and a distance; and outputting the target conversion parameter to the signal modulation module, so that the signal modulation module modulates the audio signal to be output into an ultrasonic audio signal based on the target conversion parameter.

The electronic equipment obtains the audio signal to be output, modulates the audio signal to be output into the ultrasonic audio signal, and plays the ultrasonic audio signal. Since the ultrasonic audio signal is derived based on the position information of the user with respect to the electronic device. This ultrasonic wave audio signal has superstrong directive property characteristic, can guarantee just can hear clear audio signal in certain region around the user, and then can effectively reduce the influence to other people on every side.

Optionally, the processor 1010 is further configured to determine a target conversion parameter corresponding to the position information of the user relative to the electronic device according to a preset correspondence between the position information and the conversion parameter.

Optionally, the processor 1010 is further configured to control an information obtaining module of the electronic device to obtain location information of a user relative to the electronic device; alternatively, user input of location information of the user relative to the electronic device is received.

Optionally, the position information of the user relative to the electronic device includes position information of at least one user relative to the electronic device, and the first coverage angle of the ultrasonic audio signal is greater than the second coverage angle of the ultrasonic audio signal;

the first coverage angle refers to a coverage angle when the position information is position information of a first number of users relative to the electronic device, the second coverage angle refers to a coverage angle when the position information is position information of a second number of users relative to the electronic device, and the first number is larger than the second number.

Optionally, the target conversion parameter includes at least one of: the amplitude of the ultrasonic audio signal, the frequency of the ultrasonic audio signal.

The electronic equipment obtains the audio signal to be output, modulates the audio signal to be output into the ultrasonic audio signal, and plays the ultrasonic audio signal. Since the ultrasonic audio signal is derived based on the position information of the user with respect to the electronic device. This ultrasonic wave audio signal has superstrong directive property characteristic, can guarantee just can hear clear audio signal in certain region around the user, and then can effectively reduce the influence to other people on every side.

It should be understood that in the embodiment of the present application, the input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, and the graphics processing Unit 10041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 may include two parts, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 1009 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. Processor 1010 may integrate an application processor that handles primarily operating systems, user interfaces, applications, etc. and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1010.

The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the signal processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.

The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.

The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the signal processing method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.

It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.

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. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.

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 application 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 application.

While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

17页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:用于控制多个扬声器播放音频的方法、装置和电子设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类