Disclosure of Invention
The invention mainly aims to provide a binaural synchronous signal processing hearing aid system and a binaural synchronous signal processing hearing aid method, and aims to solve the problem that in the prior art, people with two ears not having equal hearing thresholds cannot judge the direction of a sound source.
The invention provides a binaural synchronous signal processing hearing aid method, which comprises the following steps:
receiving a first input sound signal by a first sound receiver;
receiving, by a second sound receiver, a second input sound signal;
acquiring a time delay difference between the first input sound signal and the second input sound signal;
obtaining a first distance and a second distance according to the time delay difference, wherein the first distance is the distance between the first sound receiver and the sound source, and the second distance is the distance between the second sound receiver and the sound source;
and obtaining a first output sound signal and a second output sound signal according to the first distance, the first input sound signal, the second distance and the second input sound signal.
Preferably, the obtaining a time delay difference between the first input sound signal and the second input sound signal includes:
recording audio sampling data of the first input sound signal through a first storage unit;
recording audio sampling data of the second input sound signal through a second storage unit;
and comparing the audio sampling data of the first input sound signal and the audio sampling data of the second input sound signal by a sampling comparison unit to obtain the time delay difference.
Preferably, the obtaining the first distance and the second distance according to the delay difference includes:
and calculating the propagation distance difference from the sound source to the first sound receiver and the second sound receiver according to the time delay difference, wherein the calculation formula is as follows:
wherein,
the propagation distance difference between the sound source and the first sound receiver and the second sound receiver is represented by m; c is the speed of sound;
is the sampling rate in samples/second;
the time delay difference is the sample difference number; when in use
When the number is positive, it means that the first sound receiver receives the first input sound signal before the second sound receiver receives the second input sound signal, when the number is positive, the first sound receiver receives the first input sound signal before the second sound receiver receives the second input sound signal
When the first input sound signal is negative, the first sound receiver receives a first input sound signal and then receives a second input sound signal;
calculating the first distance and the second distance according to a propagation distance difference between the sound source and the first sound receiver and the second sound receiver, wherein the calculation formula is as follows:
wherein,
is the first distance in m;
is the second distance in m; d is the distance between the first sound receiver and the second sound receiver in m.
Preferably, the obtaining a first output sound signal and a second output sound signal according to the first distance, the first input sound signal, the second distance and the second input sound signal includes:
acquiring a first initial gain proportion and a second initial gain proportion;
calculating to obtain the first output gain proportion and the second output gain proportion according to the first initial gain proportion and the second initial gain proportion, wherein the calculation formula is as follows:
wherein,
the first initial gain proportion is obtained by performing hearing test on the user;
the second initial gain proportion is obtained by performing hearing test on the user;
is the first output gain ratio;
for the second output increasingThe benefit ratio;
acquiring a first filtering signal and a second filtering signal;
obtaining a first output sound signal by gaining the first filtering signal according to the first output gain proportion;
and gaining the second filtering signal according to the second output gain proportion to obtain a second output sound signal.
Preferably, the obtaining the first filtered signal and the second filtered signal includes:
converting the first input sound signal into the first filtered signal by a first band-pass filter;
converting the second input sound signal into the second filtered signal by a second band-pass filter.
Preferably, the obtaining the first output sound signal by performing the gain on the first filtered signal according to the first output gain ratio includes:
obtaining a first output sound signal by performing gain on the first filtered signal through a first gain unit, wherein a gain ratio is the first output gain ratio, and a specific calculation formula is as follows:
wherein,
is a sound pressure value of the first output sound signal in dB;
is the sound pressure value of the first filtered signal in dB.
Preferably, the obtaining a second output sound signal by performing a gain on the second filtered signal according to the second output gain ratio includes:
and obtaining a second output sound signal by performing gain on the second filtered signal through a second gain unit, wherein the gain ratio is the second output gain ratio, and the specific calculation formula is as follows:
wherein,
is a sound pressure value of the second output sound signal in dB;
is the sound pressure value of the second filtered signal in dB.
Preferably, the obtaining the first initial gain ratio and the second initial gain ratio includes:
acquiring a first lower threshold, a first upper threshold, a second lower threshold and a second upper threshold;
acquiring a sound pressure value of the first input sound signal and a sound pressure value of the second input sound signal;
obtaining a first initial gain proportion and a second initial gain proportion according to the first lower threshold, the first upper threshold, the second lower threshold and the second upper threshold, wherein the calculation formula is as follows:
wherein,
is a first lower threshold in dB;
is a first upper threshold in dB, and
is less than
;
Is a second lower threshold in dB;
is a second upper threshold in dB, and
is less than
;
The value range of the first gain constant is (1.2, 1.5);
and the value range of the second gain constant is (1.2, 1.5).
Preferably, the method further comprises the following steps:
playing the first output sound signal through a first speaker;
playing the second output sound signal through a second speaker.
The invention also provides a binaural synchronous signal processing hearing aid system, which is applied to the binaural synchronous signal processing hearing aid method and comprises a first sound receiver, a second sound receiver, a first storage unit, a second storage unit, a sampling comparison unit, a first sound pressure analysis unit, a second sound pressure analysis unit, a calculation unit, a first gain unit, a second gain unit, a first band-pass filter, a second band-pass filter, a first loudspeaker and a second loudspeaker;
the first sound pressure analysis unit, the first storage unit and the first band-pass filter are all connected with the first sound receiver; the first band-pass filter is connected with the first gain unit; the first gain unit is connected with the first loudspeaker; the first sound pressure analyzing unit is connected with the first band-pass filter;
the second sound pressure analyzing unit, the second storage unit and the second band-pass filter are all connected with the second sound receiver; the second band-pass filter is connected with the second gain unit; the second gain unit is connected with the second loudspeaker; the second sound pressure analysis unit is connected with the second band-pass filter;
the first storage unit, the second storage unit and the calculation unit are all connected with the sampling comparison unit; the first sound pressure analyzing unit, the second sound pressure analyzing unit, the first gain unit and the second gain unit are all connected with the calculating unit.
According to the technical scheme, the sound signals from the sound source to the two sound receivers of the hearing aid are correspondingly processed according to different distances between the same sound source and the two sound receivers, the processing principle is that the loudspeaker on one side of the sound receiver closer to the sound source can amplify and output the sound signals relatively, the loudspeaker on one side of the sound receiver farther from the sound can reduce and output the sound signals relatively, and a user can position and judge the sound source according to the size difference of the sounds on two sides, so that the senses of two ears are more synchronous and real when the user uses the hearing aid adopting the hearing aid processing hearing aid method for the binaural synchronous signals provided by the invention, and the using satisfaction is improved.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention provides a binaural synchronous signal processing hearing aid system, a binaural synchronous signal processing hearing aid method and a binaural synchronous signal processing hearing aid system.
As shown in fig. 5, in a first embodiment of a binaural synchronous signal processing hearing aid system according to the present invention, the system includes a first sound receiver, a second sound receiver, a first storage unit, a second storage unit, a sampling comparison unit, a first sound pressure analysis unit, a second sound pressure analysis unit, a calculation unit, a first gain unit, a second gain unit, a first band pass filter, a second band pass filter, a first speaker, and a second speaker.
The first sound pressure analysis unit, the first storage unit and the first band-pass filter are all connected with the first sound receiver; the first band-pass filter is connected with the first gain unit; the first gain unit is connected with the first loudspeaker; the first sound pressure analyzing unit is connected with the first band-pass filter.
The second sound pressure analyzing unit, the second storage unit and the second band-pass filter are all connected with a second sound receiver; the second band-pass filter is connected with the second gain unit; the second gain unit is connected with the second loudspeaker; the second sound pressure analyzing unit is connected with the second band-pass filter.
The first storage unit, the second storage unit and the calculation unit are all connected with the sampling comparison unit; the first sound pressure analyzing unit, the second sound pressure analyzing unit, the first gain unit and the second gain unit are all connected with the calculating unit.
The present system is applied to the binaural synchronization signal processing hearing aid method described below, and specifically, the present system may be implemented in the form of a hearing aid, or may be implemented in the form of another hearing aid instrument.
As shown in fig. 1, in a first embodiment of a binaural synchronization signal processing hearing aid method according to the present invention, the method includes the following steps:
step S110: a first input sound signal is received by a first sound receiver.
Specifically, the method comprises the following steps: the first sound receiver is preferably a first microphone of a hearing aid, which is integrally worn on the left ear of the user.
Step S120: a second input sound signal is received by a second sound receiver.
Specifically, the method comprises the following steps: the second sound receiver is preferably a second microphone of the hearing aid, integrally worn on the right ear of the user.
Step S130: a time delay difference between the first input sound signal and the second input sound signal is obtained.
Specifically, since the first microphone and the second microphone are respectively worn on the left ear and the right ear of the user, and the first input sound signal and the second input sound signal are both transmitted from the same sound source, a time delay difference is generated between the first input sound signal and the second input sound signal (due to the distance between the first microphone and the second microphone); the delay difference here is the difference of the audio samples.
Step S140: and obtaining a first distance and a second distance according to the time delay difference, wherein the first distance is the distance between the first sound receiver and the sound source, and the second distance is the distance between the second sound receiver and the sound source.
Specifically, the method comprises the following steps: since the delay difference is generated by the distance difference between the sound source and the first and second microphones, the first and second distances can be calculated according to the delay difference.
Step S150: and obtaining a first output sound signal and a second output sound signal according to the first distance, the first input sound signal, the second distance and the second input sound signal.
Specifically, the method comprises the following steps: after the first distance and the second distance are obtained through calculation, the positions of the sound source relative to the first microphone and the second microphone are known, and the first input sound signal and the second input sound signal can be adjusted according to the position information to obtain a first output sound signal and a second output sound signal. Here the first output sound signal is transmitted to the left ear and the second output sound signal is transmitted to the right ear. I.e. the sound signal that the user actually hears.
Has the advantages that: according to the technical scheme, the sound signals from the sound source to the two sound receivers of the hearing aid are correspondingly processed according to different distances between the same sound source and the two sound receivers, the processing principle is that the loudspeaker on one side of the sound receiver closer to the sound source can amplify and output the sound signals relatively, the loudspeaker on one side of the sound receiver farther from the sound can reduce and output the sound signals relatively, and a user can position and judge the sound source according to the size difference of the sounds on two sides, so that the senses of two ears are more synchronous and real when the user uses the hearing aid adopting the hearing aid processing hearing aid method for the binaural synchronous signals provided by the invention, and the using satisfaction is improved.
As shown in fig. 2, in a second embodiment of the binaural synchronization signal processing hearing aid method according to the present invention, based on the first embodiment, step S130 further includes the following steps:
step S210: and recording audio sampling data of the first input sound signal through a first storage unit.
Specifically, the method comprises the following steps: the first storage unit stores and records audio sampling data of a first input sound signal received by a first microphone.
Step S220: and recording audio sampling data of the second input sound signal through a second storage unit.
Specifically, the method comprises the following steps: the second storage unit stores and records the audio sampling data of the second input sound signal received by the second microphone.
Step S230: and comparing the audio sampling data of the first input sound signal and the audio sampling data of the second input sound signal by a sampling comparison unit to obtain the time delay difference.
Specifically, the method comprises the following steps: the sampling comparison unit compares and analyzes the audio sampling data of the first input sound signal and the audio sampling data of the second input sound signal to obtain the time delay difference.
As shown in fig. 3, in a third embodiment of the binaural synchronization signal processing hearing aid method according to the present invention, based on the first embodiment, step S140 further includes the following steps:
step S310: and calculating the propagation distance difference from the sound source to the first sound receiver and the second sound receiver according to the time delay difference, wherein the calculation formula is as follows:
wherein,
the propagation distance difference between the sound source and the first sound receiver and the second sound receiver is represented by m; c is the speed of sound;
is the sampling rate in samples/second, i.e., Hz, preferably 96000Hz in this embodiment;
the time delay difference is the sample difference number; when in use
When it is positiveThat the first sound receiver receives the first input sound signal before the second sound receiver receives the second input sound signal is indicated, when
When the first input audio signal is negative, the first audio receiver receives the first input audio signal and then receives a second input audio signal.
Specifically, the method comprises the following steps: and calculating the propagation distance difference between the sound source and the first sound receiver and the second sound receiver by a calculating unit.
Step S320: calculating the first distance and the second distance according to a propagation distance difference between the sound source and the first sound receiver and the second sound receiver, wherein the calculation formula is as follows:
wherein,
is the first distance in m;
is the second distance in m; d is the distance between the first sound receiver and the second sound receiver in m.
Specifically, the method comprises the following steps: the first distance and the second distance are calculated by a calculation unit.
As shown in fig. 4, in a fourth embodiment of the binaural synchronization signal processing hearing aid method according to the present invention, based on the third embodiment, step S150 includes the following steps:
step S410: a first initial gain ratio and a second initial gain ratio are obtained.
Specifically, the method comprises the following steps: the first initial gain ratio and the second initial gain ratio are preset according to the hearing loss condition of the user, so that the hearing aid of different users can adjust and preset different first initial gain ratios and second initial gain ratios, and the first initial gain ratio and the second initial gain ratio are usually obtained by professional hearing testers performing hearing loss tests on the user. And storing the first initial gain ratio in the first storage unit and the second initial gain ratio in the second storage unit.
Step S420: calculating to obtain the first output gain proportion and the second output gain proportion according to the first initial gain proportion and the second initial gain proportion, wherein the calculation formula is as follows:
wherein,
the first initial gain proportion is obtained by performing hearing test on the user;
the second initial gain proportion is obtained by performing hearing test on the user;
is the first output gain ratio;
is the second output gain ratio.
Specifically, the method comprises the following steps: the first output gain proportion and the second output gain proportion are calculated by the calculating unit.
Step S430: and acquiring a first filtering signal and a second filtering signal.
Step S440: and obtaining a first output sound signal by gaining the first filtering signal according to the first output gain proportion.
Step S450: and gaining the second filtering signal according to the second output gain proportion to obtain a second output sound signal.
In a fifth embodiment of the binaural synchronization signal processing hearing aid method according to the present invention, based on the fourth embodiment, step S430 includes the following steps:
step S510: converting the first input sound signal into the first filtered signal by a first band pass filter.
Specifically, the method comprises the following steps: i.e. the high and low frequency parts of the first input sound signal are filtered out by a first band-pass filter (e.g. with a cut-off frequency of
=200Hz,
=5000 Hz) to obtain the first filtered signal, so that insignificant parts of the first input sound signal can be removed and the amount of calculation for subsequent operations can be reduced.
Step S520: converting the second input sound signal into the second filtered signal by a second band-pass filter.
Specifically, the method comprises the following steps: i.e. the high and low frequency parts of the second input sound signal are filtered out by a second band-pass filter (e.g. with a cut-off frequency of
=200Hz,
=5000 Hz) to obtain a second filtered signal, so that the second input sound signal can be eliminatedThe unimportant part in the number reduces the calculation amount of subsequent operations.
In a sixth embodiment of the binaural synchronization signal processing hearing aid method according to the present invention, based on the fourth embodiment, step S440 includes the following steps:
step S610: obtaining a first output sound signal by performing gain on the first filtered signal through a first gain unit, wherein a gain ratio is the first output gain ratio, and a specific calculation formula is as follows:
wherein,
is a sound pressure value of the first output sound signal in dB;
is the sound pressure value of the first filtered signal in dB.
Specifically, the first filtered signal is analyzed by the first sound pressure analyzing unit to obtain a sound pressure value of the first filtered signal.
In a seventh embodiment of the binaural synchronization signal processing hearing aid method according to the present invention, based on the fourth embodiment, step S450 includes the following steps:
step S710: and obtaining a second output sound signal by performing gain on the second filtered signal through a second gain unit, wherein the gain ratio is the second output gain ratio, and the specific calculation formula is as follows:
wherein,
for the sound pressure value of the second output sound signalThe bit is dB;
is the sound pressure value of the second filtered signal in dB.
Specifically, the second filtered signal is analyzed by the second sound pressure analyzing unit to obtain a sound pressure value of the second filtered signal.
In an eighth embodiment of the binaural synchronization signal processing hearing aid method according to the present invention, based on the fourth embodiment, step S410 further includes the following steps:
step S810: and acquiring a first lower threshold, a first upper threshold, a second lower threshold and a second upper threshold.
Specifically, the method comprises the following steps: the first lower threshold, the first upper threshold, the second lower threshold and the second upper threshold are obtained by testing the hearing loss of the user, and preferably, the first lower threshold is a sound pressure value of sound that can be sensed by the left ear of the user, the first upper threshold is a limit sound pressure value that can be received by the left ear of the user (above which the hearing loss of the user is impaired), the second lower threshold is a sound pressure value of sound that can be sensed by the right ear of the user, and the second upper threshold is a limit sound pressure value that can be received by the right ear of the user (above which the hearing loss of the user is impaired).
Step S820: and acquiring a sound pressure value of the first input sound signal and a sound pressure value of the second input sound signal.
Specifically, the method comprises the following steps: the first sound pressure analyzing unit analyzes the first input sound signal to obtain a sound pressure value of the first input sound signal, and the second sound pressure analyzing unit analyzes the second input sound signal to obtain a sound pressure value of the second sound signal.
Step S830: obtaining a first initial gain proportion and a second initial gain proportion according to the first lower threshold, the first upper threshold, the second lower threshold and the second upper threshold, wherein the calculation formula is as follows:
wherein,
is a first lower threshold in dB;
is a first upper threshold in dB, and
is less than
;
Is a second lower threshold in dB;
is a second upper threshold in dB, and
is less than
;
The value range of the first gain constant is (1.2, 1.5);
and the value range of the second gain constant is (1.2, 1.5).
Through the technical scheme, different first initial gain proportions and second initial gain proportions can be set according to different hearing loss conditions of users, and subsequent operation is facilitated.
In a ninth embodiment of the binaural synchronization signal processing hearing aid method according to the present invention, based on the first embodiment, the method further includes the following steps:
step S910: playing the first output sound signal through a first speaker.
Specifically, the method comprises the following steps: the first speaker is disposed within an ear canal of a user's left ear for receiving the first output sound signal by the user's left ear.
Step S920: playing the second output sound signal through a second speaker.
Specifically, the method comprises the following steps: the second speaker is disposed within an ear canal of a user's right ear for receiving the first output sound signal by the user's right ear.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
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, wherein the software product 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.