CN117750267A - Audio output method and device suitable for headset - Google Patents
Audio output method and device suitable for headset Download PDFInfo
- Publication number
- CN117750267A CN117750267A CN202410131190.4A CN202410131190A CN117750267A CN 117750267 A CN117750267 A CN 117750267A CN 202410131190 A CN202410131190 A CN 202410131190A CN 117750267 A CN117750267 A CN 117750267A
- Authority
- CN
- China
- Prior art keywords
- pressure value
- headset
- audio
- audio output
- comparison result
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 19
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 claims description 4
- 238000004590 computer program Methods 0.000 claims 4
- 230000005236 sound signal Effects 0.000 description 9
- 238000010295 mobile communication Methods 0.000 description 2
- 230000003595 spectral effect Effects 0.000 description 2
- 230000003111 delayed effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Abstract
The invention discloses an audio output method and device suitable for a headset, wherein a controller detects a first pressure value when a left earphone of the headset contacts a human body and a second pressure value when a right earphone of the headset contacts the human body through pressure sensors arranged on the left earphone and the right earphone of the headset; if the audio access signal is detected, generating an audio output signal based on an audio file in the audio access signal, and acquiring a second comparison result by using a second pressure numerical teaching plan and a second preset threshold value; transmitting the audio output signal to different channels of the headset based on the first comparison result and a second comparison result; when the user does not wear the headset correctly, the user can pause outputting the audio output signals to the left and right channels, and when the user adjusts the posture of wearing the headset, the user outputs the audio output signals to the left and right channels, so that the normal use of the headset by the user is not affected, and the energy is saved.
Description
Technical Field
The invention relates to the field of audio processing, in particular to an audio output method and device suitable for a headphone.
Background
The earphone is generally electrically connected to audio devices such as an audio playing device and a mobile communication terminal, and is used for converting sound sources provided by the audio devices into sounds recognizable by users. In the big data age, information is valuable, and effective utilization of the data is a new opportunity in the industry.
Headphones typically have two earpieces that correspond to the left and right channels of the audio device, respectively, to output sounds corresponding to the left and right channel audio signals provided by the audio device. Typically, the left and right channel audio signals of the audio device are output or turned off simultaneously, so that both handsets of the headset are output or not output simultaneously.
During use of the headset, the user often needs to pick up one of the two earpieces of the headset or the user does not wear the headset properly due to intervention of other matters, so that not only is the processing of other matters not delayed, but also the user can continue to listen to music. However, at this time, the audio device is still in a playing state, and the picked-off earphone still has sound output, which wastes electric energy.
Disclosure of Invention
The present invention aims to solve the above problems and provide an audio output method and device suitable for headphones, which are described in detail below.
An audio output method suitable for a headphone according to a first aspect of the present invention includes the steps of: detecting a first pressure value when a left earphone of the headset contacts a human body and a second pressure value when the right earphone of the headset contacts the human body through pressure sensors arranged on the left earphone and the right earphone of the headset; if the audio access signal is detected, generating an audio output signal based on an audio file in the audio access signal; comparing the first pressure value with a first preset threshold value to obtain a first comparison result, and then obtaining a second comparison result from the second pressure value teaching plan and a second preset threshold value; based on the first comparison result and the second comparison result, the audio output signal is transmitted to different channels of the headset.
By adopting the audio output method suitable for the headset, the pressure sensors arranged on the left earphone and the right earphone of the headset detect the first pressure value when the left earphone of the headset is contacted with a human body and the second pressure value when the right earphone of the headset is contacted with the human body, the first pressure value is compared with the first preset threshold value to obtain a first comparison result, the second pressure value teaching plan is compared with the second preset threshold value to obtain a second comparison result, the audio output signals are transmitted to different channels of the headset based on the first comparison result and the second comparison result, when the user does not wear the headset correctly, the audio output signals can be paused to be output to the left channel and the right channel, when the user adjusts the posture of wearing the headset, the audio output signals are output to the left channel and the right channel, normal use of the headset by the user is not influenced, and energy is saved.
Preferably, the comparing the first pressure value with a first preset threshold value to obtain a first comparison result, and then comparing the second pressure value teaching plan with a second preset threshold value to obtain a second comparison result, includes the following steps: acquiring a third pressure value when a left earphone of the headset contacts a human body and a fourth pressure value when a right earphone of the headset contacts the human body when a target user correctly wears the headset; and acquiring a first preset threshold value based on the third pressure value, and acquiring a second preset threshold value based on the fourth pressure value.
Preferably, the first comparison result includes that an error between the first pressure value and the first preset threshold value is within a first preset range and an error between the first pressure value and the first preset threshold value is outside the first preset range; the second comparison result includes an error between the second pressure value and the second preset threshold being within a second preset range and an error between the second pressure value and the second preset threshold being outside the second preset range.
Preferably, the transmitting the audio output signal to different channels of the headphone based on the first comparison result and the second comparison result includes the steps of: transmitting the audio output signal to a left channel of the headset when an error between the first pressure value and the first preset threshold is within a first preset range; and transmitting the audio output signal to a right channel of the headphone when an error between the second pressure value and the second preset threshold is within a second preset range.
Preferably, if the audio access signal is detected, generating an audio output signal based on an audio file in the audio access signal includes the steps of: when the error between the first pressure value and the first preset threshold value is outside a first preset range, not transmitting the audio output signal to a left channel of the headphone; and when the error between the second pressure value and the second preset threshold value is out of a second preset range, not transmitting the audio output signal to the right channel of the headset.
Preferably, when an audio access signal is detected, if any one of the first pressure value and the second pressure value is greater than zero, an audio file is parsed from the audio access signal; and decoding the audio file to generate an audio output signal.
A second aspect of the present invention provides an audio output device suitable for use with a headphone, comprising:
the pressure value acquisition module is used for detecting a first pressure value when the left earphone of the headset is contacted with a human body and a second pressure value when the right earphone of the headset is contacted with the human body through pressure sensors arranged on the left earphone and the right earphone of the headset; the signal generation module is used for generating an audio output signal based on an audio file in the audio access signal if the audio access signal is detected; the comparison result acquisition module is used for comparing the first pressure value with a first preset threshold value to acquire a first comparison result, and then acquiring a second comparison result from the second pressure value teaching plan and a second preset threshold value;
a channel selection module for transmitting the audio output signal to different channels of the headset based on the first comparison result and the second comparison result.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a suitable apparatus for an audio output method of a headphone of the present invention;
FIG. 2 is a flow chart of an audio output suitable for use with headphones of the present invention;
FIG. 3 is a flow chart of the signal generation step of the present invention;
fig. 4 is a flow chart of the channel selection step of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be described in detail below. It will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, based on the examples herein, which are within the scope of the invention as defined by the claims, will be within the scope of the invention as defined by the claims.
Referring to fig. 1 and fig. 2, an audio device 300 includes a playing device 200 and an earphone 100 electrically connected to the playing device 200; the playing device 200 is used for providing audio signals and outputting the audio signals through a left channel and a right channel, such as an audio/video player, a mobile communication device, etc. The headphone 100 converts the audio signal provided by the playback apparatus 200 into a sound recognizable to the user and plays it; the headset 100 includes a left earpiece 10a, a right earpiece 10b, two sensors 12 disposed on the left earpiece 10a and the right earpiece 10 b; wherein the left earpiece 10a and the right earpiece 10b correspond to the left channel and the right channel of the playback device 200, respectively, for converting audio signals output by the left and right channels into corresponding sounds. The two sensors 12 are respectively used for sensing that the left earphone 10a and the right earphone 10b are contacted with a human body and respectively generating pressure signals; the pressure signal includes a first pressure value generated by the sensor 12 on the left earpiece 10a and a second pressure value generated by the sensor 12 on the right earpiece 10 b.
The playing device 200 is configured to receive a sensing signal generated by the headset 100, and select a channel corresponding to the sensing signal to output an audio signal. The playback apparatus 200 includes a storage unit 22, a decoding unit 24, a channel control unit 26, and an output unit 28; the decoding unit 24 is used for decoding the audio file in the storage unit 22 and generating an audio signal; the output unit 28 outputs the audio signal generated by the decoding unit 24 through the left and right channels.
Referring to fig. 3, an audio output method for a headphone is provided, which is suitable for a playback controller in a playback apparatus 200, and includes the steps of:
s1, detecting a first pressure value when a left earphone of the headset contacts a human body and a second pressure value when a right earphone of the headset contacts the human body through pressure sensors arranged on left and right earphones of the headset;
s2, if the audio access signal is detected, generating an audio output signal based on an audio file in the audio access signal;
when an audio access signal is detected, and if any one of the first pressure value and the second pressure value is larger than zero, an audio file is analyzed from the audio access signal; the audio file is decoded to generate an audio output signal.
S3, comparing the first pressure value with a first preset threshold value to obtain a first comparison result, and then obtaining a second comparison result from the second pressure value with a second preset threshold value;
acquiring a third pressure value when a left earphone of the headset contacts a human body and a fourth pressure value when a right earphone of the headset contacts the human body when a target user correctly wears the headset; based on the third pressure value, a first preset threshold value is obtained, and based on the fourth pressure value, a second preset threshold value is obtained.
The first comparison result comprises that the error between the first pressure value and the first preset threshold value is within a first preset range and the error between the first pressure value and the first preset threshold value is outside the first preset range;
the second comparison result includes an error between the second pressure value and the second preset threshold being within a second preset range and an error between the second pressure value and the second preset threshold being outside the second preset range.
And S4, transmitting audio output signals to different channels of the headset based on the first comparison result and the second comparison result.
The audio output controller transmits an audio output signal to a left channel of the headphone when an error between the first pressure value and a first preset threshold value is within a first preset range;
and transmitting the audio output signal to the right channel of the headset when the error between the second pressure value and the second preset threshold value is within a second preset range.
It can be understood that, when the audio output signal further includes an external white noise signal, in order to enhance the experience of the user, the audio output signal may be input into a wiener filter, where the frequency domain expression of the wiener filter is as follows:
。
wherein,is the power spectral density of the clean speech, +.>Is the power spectral density of the noise.
According to the audio output method suitable for the headset, the pressure sensors arranged on the left earphone and the right earphone of the headset detect the first pressure value when the left earphone contacts with a human body and the second pressure value when the right earphone contacts with the human body, the first pressure value is compared with the first preset threshold value to obtain a first comparison result, the second pressure value teaching plan is compared with the second preset threshold value to obtain a second comparison result, the audio output signals are transmitted to different sound channels of the headset based on the first comparison result and the second comparison result, when the user does not wear the headset correctly, the audio output signals can be paused to be output to the left and right sound channels, when the user adjusts the posture of wearing the headset, the audio output signals are output to the left and right sound channels, normal use of the headset by the user is not affected, and energy is saved.
In an application embodiment, step S2 includes:
s201, acquiring a third pressure value when a left earphone of the headset contacts a human body and a fourth pressure value when a right earphone of the headset contacts the human body when a target user correctly wears the headset;
s202, acquiring a first preset threshold value based on the third pressure value, and acquiring a second preset threshold value based on the fourth pressure value.
In this embodiment of the present invention, when the target user correctly wears the headset, the third pressure value when the left earpiece of the headset contacts with the human body is determined as the first preset threshold, and the fourth pressure value when the right earpiece of the headset contacts with the human body is determined as the second preset threshold, so as to ensure that the target user outputs audio output signals to the left and right channels of the headset when correctly wearing the headset.
In an application embodiment, step S4 includes:
s401, when the error between the first pressure value and the first preset threshold value is within a first preset range, transmitting an audio output signal to a left channel of the headphone;
when the error between the first pressure value and the first preset threshold value is outside the first preset range, the audio output signal is not transmitted to the left channel of the headphone.
S402, when the error between the second pressure value and the second preset threshold value is within a second preset range, transmitting an audio output signal to a right channel of the headphone.
And when the error between the second pressure value and the second preset threshold value is out of the second preset range, not transmitting an audio output signal to the right channel of the headset.
In an embodiment of the application, an audio output device suitable for a headphone is proposed, the device comprising:
the pressure value acquisition module is used for detecting a first pressure value when the left earphone of the headset is contacted with a human body and a second pressure value when the right earphone of the headset is contacted with the human body through pressure sensors arranged on the left earphone and the right earphone of the headset;
the signal generation module is used for generating an audio output signal based on an audio file in the audio access signal if the audio access signal is detected;
the comparison result acquisition module is used for comparing the first pressure value with a first preset threshold value to acquire a first comparison result, and then acquiring a second comparison result from the second pressure value teaching plan and a second preset threshold value;
a channel selection module for transmitting the audio output signal to different channels of the headset based on the first comparison result and the second comparison result.
By adopting the audio output device suitable for the headset, the pressure sensors arranged on the left earphone and the right earphone of the headset detect the first pressure value when the left earphone of the headset is contacted with a human body and the second pressure value when the right earphone of the headset is contacted with the human body, the first pressure value is compared with the first preset threshold value to obtain a first comparison result, the second pressure value teaching plan is compared with the second preset threshold value to obtain a second comparison result, the audio output signals are transmitted to different channels of the headset based on the first comparison result and the second comparison result, when the user does not wear the headset correctly, the audio output signals can be output to the left channel and the right channel in a pause mode, when the user adjusts the posture of wearing the headset, the audio output signals are output to the left channel and the right channel in a pause mode, normal use of the headset by the user is not influenced, and energy is saved.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (9)
1. An audio output method suitable for headphones, the method being applied to a system comprising the steps of:
detecting a first pressure value when a left earphone of the headset contacts a human body and a second pressure value when the right earphone of the headset contacts the human body through pressure sensors arranged on the left earphone and the right earphone of the headset;
if the audio access signal is detected, generating an audio output signal based on an audio file in the audio access signal;
comparing the first pressure value with a first preset threshold value to obtain a first comparison result, and then comparing the second pressure value with a second preset threshold value to obtain a second comparison result;
based on the first comparison result and the second comparison result, the audio output signal is transmitted to different channels of the headset.
2. The method for outputting audio suitable for a headphone according to claim 1, wherein comparing the first pressure value with a first preset threshold value to obtain a first comparison result, and further comparing the second pressure value teaching plan with a second preset threshold value to obtain a second comparison result, comprises the following steps:
acquiring a third pressure value when a left earphone of the headset contacts a human body and a fourth pressure value when a right earphone of the headset contacts the human body when a target user correctly wears the headset;
and acquiring a first preset threshold value based on the third pressure value, and acquiring a second preset threshold value based on the fourth pressure value.
3. The method of claim 2, wherein the first comparison result includes an error between the first pressure value and the first preset threshold being within a first preset range and an error between the first pressure value and the first preset threshold being outside of the first preset range;
the second comparison result includes an error between the second pressure value and the second preset threshold being within a second preset range and an error between the second pressure value and the second preset threshold being outside the second preset range.
4. A method of audio output for a headphone according to claim 3, wherein the transmitting the audio output signal to different channels of the headphone based on the first comparison result and the second comparison result comprises the steps of:
transmitting the audio output signal to a left channel of the headset when an error between the first pressure value and the first preset threshold is within a first preset range;
and transmitting the audio output signal to a right channel of the headphone when an error between the second pressure value and the second preset threshold is within a second preset range.
5. A method of audio output for a headphone according to claim 3, wherein the generating an audio output signal based on an audio file in the audio access signal if the audio access signal is detected comprises the steps of:
when the error between the first pressure value and the first preset threshold value is outside a first preset range, not transmitting the audio output signal to a left channel of the headphone;
and when the error between the second pressure value and the second preset threshold value is out of a second preset range, not transmitting the audio output signal to the right channel of the headset.
6. An audio output method for a headphone according to claim 1, characterized in that the audio output signal is generated based on an audio file in the audio access signal if the audio access signal is detected, comprising the steps of:
when an audio access signal is detected, and if any one of the first pressure value and the second pressure value is greater than zero, an audio file is parsed from the audio access signal;
and decoding the audio file to generate an audio output signal.
7. An audio output device adapted for use with a headset, the system comprising:
the pressure value acquisition module is used for detecting a first pressure value when the left earphone of the headset is contacted with a human body and a second pressure value when the right earphone of the headset is contacted with the human body through pressure sensors arranged on the left earphone and the right earphone of the headset;
the signal generation module is used for generating an audio output signal based on an audio file in the audio access signal if the audio access signal is detected;
the comparison result acquisition module is used for comparing the first pressure value with a first preset threshold value to acquire a first comparison result, and then acquiring a second comparison result from the second pressure value teaching plan and a second preset threshold value;
a channel selection module for transmitting the audio output signal to different channels of the headset based on the first comparison result and the second comparison result.
8. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 6 when executing the computer program.
9. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410131190.4A CN117750267A (en) | 2024-01-31 | 2024-01-31 | Audio output method and device suitable for headset |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410131190.4A CN117750267A (en) | 2024-01-31 | 2024-01-31 | Audio output method and device suitable for headset |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117750267A true CN117750267A (en) | 2024-03-22 |
Family
ID=90252941
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410131190.4A Pending CN117750267A (en) | 2024-01-31 | 2024-01-31 | Audio output method and device suitable for headset |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117750267A (en) |
-
2024
- 2024-01-31 CN CN202410131190.4A patent/CN117750267A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9479883B2 (en) | Audio signal processing apparatus, audio signal processing method, and program | |
US8340323B2 (en) | Sound outputting apparatus, sound outputting method, sound outputting system and sound output processing program | |
US9595252B2 (en) | Noise reduction audio reproducing device and noise reduction audio reproducing method | |
EP2487930B1 (en) | Sound signal output apparatus and sound signal output method | |
US9924270B2 (en) | Techniques for channelization of stereo audio in headphones | |
JP5396685B2 (en) | Audio output device, audio output method, audio output system, and audio output processing program | |
CN105814909B (en) | System and method for feeding back detection | |
US20120219161A1 (en) | Playback apparatus, audio data correction apparatus and playback method | |
TWI522902B (en) | Electronic device and method for sensing headset | |
EP3240265A1 (en) | Apparatus and method for processing audio signals | |
CN113630708A (en) | Earphone microphone abnormality detection method and device, earphone kit and storage medium | |
US20180279035A1 (en) | Portable device and method for entering power-saving mode | |
CN117750267A (en) | Audio output method and device suitable for headset | |
CN111083250A (en) | Mobile terminal and noise reduction method thereof | |
CN106293607B (en) | Method and system for automatically switching audio output modes | |
KR20150145671A (en) | An input method using microphone and the apparatus therefor | |
US20180254056A1 (en) | Sounding device, audio transmission system, and audio analysis method thereof | |
EP3901946B1 (en) | Voice recognition device, control method of voice recognition device, content reproducing device, and content transmission/reception system | |
CN113271530B (en) | Plug-pull detection method and device of earphone equipment | |
CN111615036B (en) | Data processing method and device and electronic equipment | |
CN115426574A (en) | Audio noise reduction method, audio and video system, electronic equipment and computer storage medium | |
CN114903473A (en) | Hearing detection method, device, electronic equipment and storage medium | |
US20180189018A1 (en) | Sounding device having notification function, data analysis notification system, and data analyzing method thereof | |
CN117251131A (en) | Hearing protection method, related device and computer readable medium | |
CN116055976A (en) | Earphone wearing forward and backward detection method and device, earphone and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination |