CN107613113A - A kind of headset mode control method, device and computer-readable recording medium - Google Patents
A kind of headset mode control method, device and computer-readable recording medium Download PDFInfo
- Publication number
- CN107613113A CN107613113A CN201710792786.9A CN201710792786A CN107613113A CN 107613113 A CN107613113 A CN 107613113A CN 201710792786 A CN201710792786 A CN 201710792786A CN 107613113 A CN107613113 A CN 107613113A
- Authority
- CN
- China
- Prior art keywords
- external environment
- acquisition
- sound pattern
- user
- audio
- 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
Landscapes
- Telephone Function (AREA)
Abstract
The embodiments of the invention provide a kind of headset mode control method, including:In the case where entering acquisition external environment sound pattern, external environment condition audio-frequency information is obtained, the external environment sound pattern that obtains is a kind of pattern performed when mobile terminal plays audio by earphone;The external environment condition audio-frequency information of acquisition is sent to earphone.Based on the above method, user can also hear the sound of external environment simultaneously when listening to audio by earphone, so, user can have gained some understanding and perceive to ambient conditions, make emergency reaction and processing to emergency situations in time, so as to effectively avoid the danger being likely to occur.The embodiment of the present invention additionally provides a kind of headset mode control device and computer-readable recording medium.
Description
Technical field
The present invention relates to audio frequency control technical field, and in particular to a kind of headset mode control method, device and computer
Readable storage medium storing program for executing.
Background technology
With the popularization of the mobile terminals such as mobile phone, increasing user gets used to connecting mobile phone using earphone come audition
Pleasure, see video or receive calls.
In order to ensure tonequality, earphone used in user all has preferable soundproof effect at present, when user plugs in the earphone
Afterwards, it is difficult to hear or do not hear the sound of external environment.But this point has on earphone out of doors for custom listens music
For user, but there is bigger potential safety hazard, due to the sound in external environment condition can not do not heard, it is likely that to that will send out
Raw danger can not be perceived and hidden in time, and cause personal injury.
Contemplate another scene, user is listening a very long public lecture, may only have some scattered during this
Content be for him it is useful, therefore the most of the time he can listen music using earphone, but have on will be complete after earphone
The full content for not receiving public lecture.
The content of the invention
In order to solve the problems, such as that existing technology is present at least in part, the embodiment of the present invention it is expected to provide a kind of headset mode control
Method, apparatus processed and computer-readable recording medium.
According in a first aspect, provide a kind of headset mode control method in a kind of embodiment, including:
In the case where entering acquisition external environment sound pattern, external environment condition audio-frequency information is obtained, it is described to obtain extraneous ring
Border sound pattern is a kind of pattern performed when mobile terminal plays audio by earphone;
The external environment condition audio-frequency information of acquisition is sent to earphone.
In such scheme, methods described also includes:
Judge whether to enter in the following manner and obtain external environment sound pattern:
Judge whether current time is prohibited from entering in the period for obtaining external environment sound pattern in what user was set;
If it is, being prohibited from entering what user was set in the period for obtaining external environment sound pattern, it is prohibited from entering and obtains
Take external environment sound pattern;
External environment sound pattern is obtained if it is not, then judging whether to enter in the following manner:
Judge whether to receive the control instruction for entering acquisition external environment sound pattern that user sends, it is described when receiving
During into the control instruction for obtaining external environment sound pattern, into acquisition external environment sound pattern;Or
Customer location is positioned, judges whether user is in ad-hoc location, when it is determined that user is in ad-hoc location, into obtaining
Take external environment sound pattern;Or
Judge whether user is in mobile status, when it is determined that user is in mobile status, into acquisition external environment sound
Pattern;Or
Current time is judged whether within the period automatically into acquisition external environment sound pattern that user is set, such as
Fruit is then to enter and obtain external environment sound pattern.
In such scheme, the ad-hoc location include following position at least one:
Road, highway, the position of square and user preset.
It is described that the external environment condition audio-frequency information of acquisition is sent to earphone in such scheme, including:
By the frequency of automobile engine sound preset in the frequency of the external environment condition audio-frequency information of acquisition and mobile terminal
Matched, when the match is successful and the volume of external environment condition audio-frequency information is by small gradually increase, by the external environment condition sound of acquisition
Frequency information is sent to earphone;Or
When the volume of the external environment condition audio-frequency information of acquisition sharp increase occurs suddenly, by the external environment condition audio-frequency information of acquisition
It is sent to earphone.
It is described that the external environment condition audio-frequency information of acquisition is sent to earphone in such scheme, including:
Earphone is sent to after the external environment condition audio-frequency information of acquisition is amplified by gain.
In such scheme, the above method also includes:
The volume of the external environment sound of acquisition is detected;
Judge whether the volume of detected external environment sound is more than predetermined threshold value, when the external environment sound of the acquisition
Volume when being more than predetermined threshold value, close audio playing function and simultaneously send alarm sound to earphone.
According to second aspect, a kind of headset mode control device is provided in a kind of embodiment, described device is positioned at movement
In terminal, including:Acquisition module and sending module;Wherein,
The acquisition module, in the case where entering acquisition external environment sound pattern, obtaining external environment condition audio letter
Breath, the external environment sound pattern that obtains is a kind of pattern performed when mobile terminal plays audio by earphone;
The sending module, for the external environment condition audio-frequency information of acquisition to be sent into earphone.
In such scheme, described device also includes:Judge module is used to judge what whether current time was set in user
It is prohibited from entering in the period for obtaining external environment sound pattern;If it is, it is prohibited from entering the extraneous ring of acquisition what user was set
In the period of border sound pattern, it is prohibited from entering and obtains external environment sound pattern;
External environment sound pattern is obtained if it is not, then judging whether to enter in the following manner:
Judge whether to receive the control instruction for entering acquisition external environment sound pattern that user sends, it is described when receiving
During into the control instruction for obtaining external environment sound pattern, into acquisition external environment sound pattern;Or
Customer location is positioned, judges whether user is in ad-hoc location, when it is determined that user is in ad-hoc location, into obtaining
Take external environment sound pattern;Or
Judge whether user is in mobile status, when it is determined that user is in mobile status, into acquisition external environment sound
Pattern;Or
Current time is judged whether within the period automatically into acquisition external environment sound pattern that user is set, such as
Fruit is then to open and obtain external environment sound pattern.
In such scheme, the ad-hoc location include following position at least one:
Road, highway, the position of square and user preset.
In such scheme, the sending module, for by the frequency and mobile terminal of the external environment condition audio-frequency information of acquisition
The frequency of interior preset automobile engine sound is matched, when the match is successful and the volume of external environment condition audio-frequency information by it is small by
When cumulative big, the external environment condition audio-frequency information of acquisition is sent to earphone;Or
When volume for the external environment condition audio-frequency information when acquisition sharp increase occurs suddenly, by the external environment condition audio of acquisition
Information is sent to earphone.
In such scheme, the sending module, for being sent out after the external environment condition audio-frequency information of acquisition is amplified by gain
Give earphone.
According to the third aspect, a kind of computer-readable recording medium is provided in a kind of embodiment, this is computer-readable to deposit
Storage media includes program, and described program is used to be executed by processor to realize the method as described in above-mentioned first aspect.
Compared with prior art, the embodiment of the present invention at least possesses advantages below:
The headset mode control method provided according to embodiments of the present invention, into the situation for obtaining external environment sound pattern
Under, obtain external environment condition audio-frequency information;The external environment condition audio-frequency information of acquisition is sent to earphone.Based on the above method, user
When listening to audio by earphone, the sound of external environment can also be heard simultaneously, and so, user can be timely to extraneous shape
State is had gained some understanding and perceived, and makes emergency reaction and processing to emergency situations in time, so as to effectively avoid the danger being likely to occur.
Brief description of the drawings
Fig. 1 is the flow chart of headset mode control method of the present invention in one embodiment;
Fig. 2 is the basic block diagram of headset mode control device of the present invention in one embodiment;
Fig. 3 is basic block diagram of the headset mode control device of the present invention in second of embodiment;
Fig. 4 is basic block diagram of the headset mode control device of the present invention in the third embodiment.
Embodiment
The present invention is described in further detail below by embodiment combination accompanying drawing.Wherein different embodiments
Middle similar component employs associated similar element numbers.In the following embodiments, many detailed descriptions be in order to
The application is better understood.However, those skilled in the art can be without lifting an eyebrow recognize, which part feature
It is dispensed, or can be substituted by other elements, material, method in varied situations.In some cases, this Shen
Certain operations that please be related are not shown in the description or description, and this is the core in order to avoid the application by mistake
More descriptions are flooded, and to those skilled in the art, be described in detail these associative operations be not it is necessary, they
The general technology knowledge of description and this area in specification can completely understand associative operation.
In addition, feature described in this description, operation or feature can combine to form respectively in any suitable way
Kind embodiment.Meanwhile each step in method description or action can also can be aobvious and easy according to those skilled in the art institute
The mode carry out order exchange or adjustment seen.Therefore, the various orders in specification and drawings are intended merely to clearly describe a certain
Individual embodiment, necessary order is not meant to be, wherein some sequentially must comply with unless otherwise indicated.
It is herein part institute serialization number itself, such as " first ", " second " etc., is only used for distinguishing described object,
Without any order or art-recognized meanings.And " connection ", " connection " described in the application, unless otherwise instructed, include directly and
It is indirectly connected with (connection).
Embodiment one
Reference picture 1, a kind of step flow chart of headset mode control method of the present invention is shown, can specifically be included:
Step 101, enter obtain external environment sound pattern in the case of, obtain external environment condition audio-frequency information;
The headset mode control method that the embodiment of the present invention one is provided is applied to mobile terminal, and the mobile terminal can be with
For any mobile phone, tablet personal computer, personal digital assistant or wearable device for possessing audio broadcasting and recording function etc..
Specifically, the external environment sound pattern that obtains is a kind of mould performed when mobile terminal plays audio by earphone
Formula, under the pattern, user can not only hear the audio played in mobile terminal by earphone, can also hear the environment in the external world
Sound.
Therefore, before acquisition external environment sound pattern is entered, methods described also includes:
Mobile terminal detects to the audio-frequency play mode of itself;
When it is determined that audio-frequency play mode is headset mode, then it is made whether to enter sentencing for acquisition external environment sound pattern
It is disconnected;The headset mode refers to that earphone is connected by wired or wireless way with mobile terminal and carries out the pattern of audio broadcasting.
Specifically, mobile terminal can judge whether to enter in the following manner obtains external environment sound pattern:
Judge whether current time is prohibited from entering in the period for obtaining external environment sound pattern in what user was set;
If it is, being prohibited from entering what user was set in the period for obtaining external environment sound pattern, it is prohibited from entering and obtains
Take external environment sound pattern;
If it is not, then judge whether to enter or exit in the following manner to obtain external environment sound pattern:
Judge whether to receive the control instruction for entering acquisition external environment sound pattern that user sends, it is described when receiving
During into the control instruction for obtaining external environment sound pattern, sent into acquisition external environment sound pattern, and receiving user
Exit obtain external environment sound pattern control instruction when, exit obtain external environment sound pattern;Or
Customer location is positioned, judges whether user is in ad-hoc location, when it is determined that user is in ad-hoc location, into obtaining
External environment sound pattern is taken, and when user leaves the ad-hoc location, exits and obtains external environment sound pattern;Or
Judge whether user is in mobile status, when it is determined that user is in mobile status, into acquisition external environment sound
Pattern, and when user exits mobile status, exit and obtain external environment sound pattern;Or
Current time is judged whether within the period automatically into acquisition external environment sound pattern that user is set, such as
Fruit is then to enter the external environment sound pattern that obtains, and is terminated described automatically into the period for obtaining external environment sound pattern
Afterwards, the acquisition external environment sound pattern is exited.
In such scheme, the ad-hoc location include following position at least one:
Road, highway, the position of square and user preset.
Specifically, (e.g., mobile terminal can open built-in alignment system when user listens to audio using earphone
The alignment systems such as GPS, A-GPS, the Big Dipper) user present position is identified, and judge whether user is in ad-hoc location, this
In ad-hoc location can refer to any road, highway, square etc. may be brought danger to user outdoor locations and field
Institute;Certainly, the ad-hoc location can also be the position that user is set manually according to their needs, such as, user can be by often
The classroom gone, meeting room etc. are arranged to ad-hoc location, so, when mobile terminal determines that user is in the ad-hoc location, just
It can automatically turn on when user inserts an earphone into mobile terminal and plays audio and obtain external environment sound pattern;Conversely, when detection
When being not at the ad-hoc location to user, then it is not turned on obtaining external environment sound pattern;
Mobile terminal can also trigger built-in pedometer and meter step software etc. and pass when user listens to audio using earphone
Sensor detects to the motion state of user, when detect user's step number increase and stably in certain threshold value, i.e. Yong Humai
When the frequency of step meets the frequency taken a step when the mankind normally walk or run, determine that user is in mobile status, now, open automatically
Open and obtain external environment sound pattern;Opposite, if the mobile status of user is unstable, unconnected, or cadence is not
Meet the mankind normally walk or run take a step frequency when, then will not open obtain external environment sound pattern.
In actual realization, user can manually control mobile terminal to enter and obtain external environment sound pattern,
I.e. by the shortcut on mobile terminal or by clicking on the specific choosing provided on control icon or selection desktop on desktop
Item obtains external environment sound pattern to control mobile terminal to enter;Or mobile terminal can also enter automatically when meeting condition
Enter to obtain external environment sound pattern.
In such scheme, user can set a period automatically into acquisition external environment sound pattern in advance, when
When playing audio by earphone into the period and mobile terminal, mobile terminal is automatically into obtaining external environment sound pattern;
Accordingly, user can also set one to be prohibited from entering the period for obtaining external environment sound pattern in advance, within the time period,
Even if user plays audio using earphone, it will not also enter and obtain external environment sound pattern.
In the case where obtaining external environment sound pattern, mobile terminal activates MIC (microphone) function automatically, by way of recording
Obtain external environment condition audio-frequency information, i.e. outside environmental sounds are recorded.
Step 102, the external environment condition audio-frequency information of acquisition is sent to earphone.
In actual realization, the external environment condition audio-frequency information of acquisition directly can be sent to earphone by mobile terminal, can also
The external environment condition audio-frequency information of acquisition is sent to earphone in a case where:
1. by the frequency of automobile engine sound preset in the frequency of the external environment condition audio-frequency information of acquisition and mobile terminal
Rate is matched, when the match is successful and the volume of external environment condition audio-frequency information is by small gradually increase, by the external environment condition of acquisition
Audio-frequency information is sent to earphone;Or
2. when (for example suddenly from 50 decibels increasing to occurs increasing severely suddenly in the volume of the external environment condition audio-frequency information of acquisition
80 decibels of even more highs) when, the external environment condition audio-frequency information of acquisition is sent to earphone.
When the first above-mentioned situation occurs, illustrate there are the vehicles to be drawn close to user, now, mobile terminal will obtain
The external environment condition audio-frequency information taken is sent to earphone;
When above-mentioned second of situation occurs, illustrate there is emergency situations appearance, then mobile terminal also can be by the outside of acquisition
Environmental audio information is sent to earphone.
In a word, when above-mentioned two situations occur, illustrate that user periphery there may be hazards, now, mobile terminal
The external environment condition audio-frequency information of acquisition is sent to earphone, and user can then hear these sound by earphone, mobile terminal
In time situation arround user couple can be reminded to be noted that and take precautions against with this.
It is described that the external environment condition audio-frequency information of acquisition is sent to earphone in such scheme, including:
Earphone is sent to after the external environment condition audio-frequency information of acquisition is amplified by gain.
In order to further enhance the prompting effect to user, in a kind of optional embodiment of the present invention, the above method
Also include:
The volume of the external environment sound of acquisition is detected;
Judge whether the volume of detected external environment sound is more than predetermined threshold value, when the external environment sound of the acquisition
Volume when being more than predetermined threshold value, close audio playing function and simultaneously send alarm sound to earphone.
At present, in many mobile terminals all can built in two microphones, under mobile phone hand-held mode, main microphon be used for
The earphone of user is connected, and another microphone is exactly de-noising microphone, is mainly used in eliminating noise extraneous during call, has arrived
The purpose of superiorization user's communication quality.Two microphone optimization calls are exactly the diamylose noise reduction technology that people are commonly called as.Diamylose drops
Principle of making an uproar is exactly that two microphones of installation, the stable holding of a microphone on mobile terminals are clearly conversed, another microphone
(de-noising microphone) physics actively eliminates noise, and the superposition and mutually of sound wave is had when converse sound and external noise are simultaneously emitted by
Support, mobile terminal by the audio IC of local makes call sound using audio algorithm and external noise cancels each other reaches elimination and make an uproar
The purpose of sound.
Generally, under headset mode, de-noising microphone is to close, because under headset mode, the reception of sound is all ear
Microphone on machine is completed.Therefore, in actual realization, the external world can be detected using the sound detection function of de-noising microphone
The volume of ambient sound, so as to close audio playing function when volume is more than predetermined threshold value, and sent and reported to user by earphone
Alert sound, user is given to warn using this alarm sound, to prompt user to pay attention to surrounding enviroment, ensures inherently safe.
To sum up, the headset mode control method that the embodiment of the present invention one provides, external environment sound pattern is obtained entering
In the case of, obtain external environment condition audio-frequency information;The external environment condition audio-frequency information of acquisition is sent to earphone.Based on the above method,
User can also hear the sound of external environment simultaneously when listening to audio by earphone, and be unlikely in it is a kind of with generation every
Exhausted condition, so, user timely can have gained some understanding and perceive to ambient conditions, emergency situations be made in time emergent anti-
Should and it handle, so as to effectively avoid the danger being likely to occur.
Embodiment two
Reference picture 2, show a kind of structured flowchart of headset mode control device embodiment of the present invention, described device bag
Include:Acquisition module 21 and sending module 22;Wherein,
The acquisition module 21, in the case where entering acquisition external environment sound pattern, obtaining external environment condition audio
Information, the external environment sound pattern that obtains is a kind of pattern performed when mobile terminal plays audio by earphone;
The sending module 22, for the external environment condition audio-frequency information of acquisition to be sent into earphone.
In a kind of optional embodiment of the present invention, reference picture 3, described device also includes:Judge module 23, for sentencing
Whether disconnected current time is prohibited from entering in the period for obtaining external environment sound pattern in what user was set;If it is,
What user was set was prohibited from entering in the period for obtaining external environment sound pattern, is prohibited from entering and obtains external environment sound pattern;
If it is not, then judge whether to enter or exit in the following manner to obtain external environment sound pattern:
Judge whether to receive the control instruction for entering acquisition external environment sound pattern that user sends, it is described when receiving
During into the control instruction for obtaining external environment sound pattern, sent into acquisition external environment sound pattern, and receiving user
Exit obtain external environment sound pattern control instruction when, exit obtain external environment sound pattern;Or
Customer location is positioned, judges whether user is in ad-hoc location, when it is determined that user is in ad-hoc location, into obtaining
External environment sound pattern is taken, and when user leaves the ad-hoc location, exits and obtains external environment sound pattern;Or
Judge whether user is in mobile status, when it is determined that user is in mobile status, into acquisition external environment sound
Pattern, and when user exits mobile status, exit and obtain external environment sound pattern;Or
Current time is judged whether within the period automatically into acquisition external environment sound pattern that user is set, such as
Fruit is the external environment sound pattern that obtains of then opening, and terminated described automatically into the period for obtaining external environment sound pattern
Afterwards, the acquisition external environment sound pattern is exited.
In such scheme, the ad-hoc location include following position at least one:
Road, highway, the position of square and user preset.
In such scheme, the transmission mould 22, for by the frequency and mobile terminal of the external environment condition audio-frequency information of acquisition
The frequency of interior preset automobile engine sound is matched, when the match is successful and the volume of external environment condition audio-frequency information by it is small by
When cumulative big, the external environment condition audio-frequency information of acquisition is sent to earphone;Or
For when obtain external environment condition audio-frequency information volume suddenly occur increase severely (such as suddenly from 50 decibels increase
To 80 decibels of even more highs) when, the external environment condition audio-frequency information of acquisition is sent to earphone.
In such scheme, the sending module 22, it is additionally operable to amplify the external environment condition audio-frequency information of acquisition by gain
After be sent to earphone.
In a kind of optional embodiment of the present invention, referring to Fig. 4, described device also includes:The He of volume detection module 24
Processing module 25;Wherein,
The volume detection module 24, the volume of the external environment sound for being obtained to acquisition module 21 detect, and
Judge whether the volume of acquired external environment sound is more than predetermined threshold value;
The sending module 22, the volume being additionally operable in the external environment sound detected by the detection module 24 are more than pre-
If during threshold value, alarm sound is sent to earphone;
The processing module 25, it is default for being more than in the volume of the external environment sound detected by the detection module 24
During threshold value, audio playing function is closed.
In specific implementation process, above-mentioned acquisition module 21, sending module 22, judge module 23, volume detection module 24
Can be by the central processing unit (CPU, Central Processing Unit) in mobile terminal, micro- place with processing module 25
Manage device (MPU, Micro Processing Unit), digital signal processor (DSP, Digital Signal Processor)
Or programmable logic array (FPGA, Field-Programmable GateArray) is realized.
Embodiment three
The embodiment of the present invention three provides a kind of computer-readable recording medium, and the computer-readable recording medium includes
Program, described program are used to be executed by processor to realize the method as described in embodiment one.
It will be understood by those skilled in the art that all or part of function of various methods can pass through in above-mentioned embodiment
The mode of hardware is realized, can also be realized by way of computer program.When all or part of function in above-mentioned embodiment
When being realized by way of computer program, the program can be stored in a computer-readable recording medium, and storage medium can
With including:Read-only storage, random access memory, disk, CD, hard disk etc., it is above-mentioned to realize that the program is performed by computer
Function.For example, by program storage in the memory of equipment, when passing through computing device memory Program, you can in realization
State all or part of function.In addition, when in above-mentioned embodiment all or part of function realized by way of computer program
When, the program can also be stored in the storage mediums such as server, another computer, disk, CD, flash disk or mobile hard disk
In, by download or copying and saving into the memory of local device, or version updating is carried out to the system of local device, when logical
When crossing the program in computing device memory, you can realize all or part of function in above-mentioned embodiment.
Use above specific case is illustrated to the present invention, is only intended to help and is understood the present invention, not limiting
The system present invention.For those skilled in the art, according to the thought of the present invention, can also make some simple
Deduce, deform or replace.
Claims (10)
1. a kind of headset mode control method, it is characterised in that methods described includes:
In the case where entering acquisition external environment sound pattern, external environment condition audio-frequency information, the acquisition external environment sound are obtained
Pattern is a kind of pattern performed when mobile terminal plays audio by earphone;
The external environment condition audio-frequency information of acquisition is sent to earphone.
2. according to the method for claim 1, it is characterised in that methods described also includes:
Judge whether current time is prohibited from entering in the period for obtaining external environment sound pattern in what user was set;
If it is, being prohibited from entering what user was set in the period for obtaining external environment sound pattern, it is outer to be prohibited from entering acquisition
Boundary's ambient sound pattern;
External environment sound pattern is obtained if it is not, then judging whether to enter in the following manner:
Judge whether to receive user's transmission enters the control instruction for obtaining external environment sound pattern, when receiving the entrance
When obtaining the control instruction of external environment sound pattern, into acquisition external environment sound pattern;Or
Customer location is positioned, judges whether user is in ad-hoc location, it is outer into obtaining when it is determined that user is in ad-hoc location
Boundary's ambient sound pattern;Or
Judge whether user is in mobile status, when it is determined that user is in mobile status, into acquisition external environment sound pattern;
Or
Current time is judged whether within the period automatically into acquisition external environment sound pattern that user is set, if
It is then to enter and obtain external environment sound pattern.
3. according to the method for claim 2, it is characterised in that the ad-hoc location include following position at least within it
One:
Road, highway, the position of square and user preset.
4. according to the method for claim 1, it is characterised in that described that the external environment condition audio-frequency information of acquisition is sent to ear
Machine, including:
The frequency of automobile engine sound preset in the frequency of the external environment condition audio-frequency information of acquisition and mobile terminal is carried out
Matching, when the match is successful and the volume of external environment condition audio-frequency information is by small gradually increase, the external environment condition audio of acquisition is believed
Breath is sent to earphone;Or
When the volume of the external environment condition audio-frequency information of acquisition sharp increase occurs suddenly, the external environment condition audio-frequency information of acquisition is sent
To earphone.
5. according to the method for claim 1, it is characterised in that described that the external environment condition audio-frequency information of acquisition is sent to ear
Machine, including:
Earphone is sent to after the external environment condition audio-frequency information of acquisition is amplified by gain.
6. according to the method described in claim 1 to 5 any of which item, it is characterised in that methods described also includes:
The volume of the external environment sound of acquisition is detected;
Judge whether the volume of detected external environment sound is more than predetermined threshold value, when the sound of the external environment sound of the acquisition
When amount is more than predetermined threshold value, closes audio playing function and send alarm sound to earphone.
A kind of 7. headset mode control device, it is characterised in that described device is located in mobile terminal, including:Acquisition module and
Sending module;Wherein,
The acquisition module, in the case where entering acquisition external environment sound pattern, obtaining external environment condition audio-frequency information, institute
It is a kind of pattern performed when mobile terminal plays audio by earphone to state and obtain external environment sound pattern;
The sending module, for the external environment condition audio-frequency information of acquisition to be sent into earphone.
8. device according to claim 7, it is characterised in that described device also includes:Judge module is used to judge currently
Whether the time is prohibited from entering in the period for obtaining external environment sound pattern in what user was set;If it is, set in user
That puts was prohibited from entering in the period for obtaining external environment sound pattern, is prohibited from entering and obtains external environment sound pattern;
External environment sound pattern is obtained if it is not, then judging whether to enter in the following manner:
Judge whether to receive user's transmission enters the control instruction for obtaining external environment sound pattern, when receiving the entrance
When obtaining the control instruction of external environment sound pattern, into acquisition external environment sound pattern;Or
Customer location is positioned, judges whether user is in ad-hoc location, it is outer into obtaining when it is determined that user is in ad-hoc location
Boundary's ambient sound pattern;Or
Judge whether user is in mobile status, when it is determined that user is in mobile status, into acquisition external environment sound pattern;
Or
Current time is judged whether within the period automatically into acquisition external environment sound pattern that user is set, if
It is then to open and obtain external environment sound pattern.
9. device according to claim 8, it is characterised in that the sending module, for by the external environment condition sound of acquisition
The frequency of frequency information is matched with the frequency of automobile engine sound preset in mobile terminal, when the match is successful and external rings
When the volume of border audio-frequency information is by small gradually increase, the external environment condition audio-frequency information of acquisition is sent to earphone;Or
When volume for the external environment condition audio-frequency information when acquisition sharp increase occurs suddenly, by the external environment condition audio-frequency information of acquisition
It is sent to earphone.
10. a kind of computer-readable recording medium, it is characterised in that the computer-readable recording medium includes program, described
Program is used to be executed by processor to realize the method as described in above-mentioned claim 1 to 6 any of which item.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710792786.9A CN107613113A (en) | 2017-09-05 | 2017-09-05 | A kind of headset mode control method, device and computer-readable recording medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710792786.9A CN107613113A (en) | 2017-09-05 | 2017-09-05 | A kind of headset mode control method, device and computer-readable recording medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107613113A true CN107613113A (en) | 2018-01-19 |
Family
ID=61057310
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710792786.9A Pending CN107613113A (en) | 2017-09-05 | 2017-09-05 | A kind of headset mode control method, device and computer-readable recording medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107613113A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109298845A (en) * | 2018-09-21 | 2019-02-01 | 努比亚技术有限公司 | Terminal control method, terminal and computer readable storage medium |
CN109451390A (en) * | 2018-12-25 | 2019-03-08 | 歌尔科技有限公司 | A kind of TWS earphone and its control method, device, equipment |
CN110297615A (en) * | 2018-03-22 | 2019-10-01 | 深圳富泰宏精密工业有限公司 | Portable electronic device and audio frequency playing method |
CN111741405A (en) * | 2020-06-05 | 2020-10-02 | 北京搜狗科技发展有限公司 | Reminding method and device, earphone and server |
WO2021000817A1 (en) * | 2019-06-29 | 2021-01-07 | 华为技术有限公司 | Ambient sound processing method and related device |
WO2021114808A1 (en) * | 2019-12-11 | 2021-06-17 | 腾讯科技(深圳)有限公司 | Audio processing method and apparatus, electronic device and storage medium |
CN113766382A (en) * | 2021-08-31 | 2021-12-07 | 安克创新科技股份有限公司 | Earphone control method and device and electronic equipment |
EP4192037A4 (en) * | 2020-08-21 | 2024-01-17 | Huawei Tech Co Ltd | Audio control method, device, and system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103825993A (en) * | 2014-03-11 | 2014-05-28 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for treating environment sound during conversation |
CN106445459A (en) * | 2016-10-12 | 2017-02-22 | 深圳市金立通信设备有限公司 | Method for controlling audio playing of earphones and terminal |
CN106791109A (en) * | 2016-12-23 | 2017-05-31 | 维沃移动通信有限公司 | A kind of sound prompting method and mobile terminal |
-
2017
- 2017-09-05 CN CN201710792786.9A patent/CN107613113A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103825993A (en) * | 2014-03-11 | 2014-05-28 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for treating environment sound during conversation |
CN106445459A (en) * | 2016-10-12 | 2017-02-22 | 深圳市金立通信设备有限公司 | Method for controlling audio playing of earphones and terminal |
CN106791109A (en) * | 2016-12-23 | 2017-05-31 | 维沃移动通信有限公司 | A kind of sound prompting method and mobile terminal |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110297615A (en) * | 2018-03-22 | 2019-10-01 | 深圳富泰宏精密工业有限公司 | Portable electronic device and audio frequency playing method |
CN109298845A (en) * | 2018-09-21 | 2019-02-01 | 努比亚技术有限公司 | Terminal control method, terminal and computer readable storage medium |
CN109451390A (en) * | 2018-12-25 | 2019-03-08 | 歌尔科技有限公司 | A kind of TWS earphone and its control method, device, equipment |
CN109451390B (en) * | 2018-12-25 | 2021-01-29 | 歌尔科技有限公司 | TWS earphone and control method, device and equipment thereof |
WO2021000817A1 (en) * | 2019-06-29 | 2021-01-07 | 华为技术有限公司 | Ambient sound processing method and related device |
WO2021114808A1 (en) * | 2019-12-11 | 2021-06-17 | 腾讯科技(深圳)有限公司 | Audio processing method and apparatus, electronic device and storage medium |
US11948597B2 (en) | 2019-12-11 | 2024-04-02 | Tencent Technology (Shenzhen) Company Limited | Audio processing method and apparatus, electronic device, and storage medium |
CN111741405A (en) * | 2020-06-05 | 2020-10-02 | 北京搜狗科技发展有限公司 | Reminding method and device, earphone and server |
CN111741405B (en) * | 2020-06-05 | 2021-12-21 | 北京搜狗智能科技有限公司 | Reminding method and device, earphone and server |
EP4192037A4 (en) * | 2020-08-21 | 2024-01-17 | Huawei Tech Co Ltd | Audio control method, device, and system |
CN113766382A (en) * | 2021-08-31 | 2021-12-07 | 安克创新科技股份有限公司 | Earphone control method and device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107613113A (en) | A kind of headset mode control method, device and computer-readable recording medium | |
CN108605073B (en) | Sound signal processing method, terminal and earphone | |
CN105282654B (en) | Earphone listening device | |
CN105451111B (en) | Earphone control method for playing back, device and terminal | |
US9685926B2 (en) | Intelligent audio output devices | |
Bragg et al. | A personalizable mobile sound detector app design for deaf and hard-of-hearing users | |
CN112203206B (en) | Microphone hole blockage detection method and related product | |
US20090232325A1 (en) | Reactive headphones | |
CN103796125A (en) | Earphone playing-based sound adjustment method | |
CN111343558B (en) | Microphone hole blockage detection method and related product | |
CN104967932B (en) | Earphone uses based reminding method and device, intelligent terminal | |
CN110326040B (en) | Reminding a user of an event | |
WO2021159369A1 (en) | Hearing aid method and apparatus for noise reduction, chip, earphone and storage medium | |
CN105653236A (en) | Sound volume control method and device and mobile terminal | |
US11030879B2 (en) | Environment-aware monitoring systems, methods, and computer program products for immersive environments | |
WO2022227655A1 (en) | Sound playing method and apparatus, and electronic device and readable storage medium | |
CN108111698A (en) | A kind of incoming call reminding method and smart machine | |
CN106126058A (en) | Based reminding method and device | |
CN106097650A (en) | The alarm method of terminal, device and terminal | |
CN110232909A (en) | A kind of audio-frequency processing method, device, equipment and readable storage medium storing program for executing | |
WO2022068694A1 (en) | Electronic device and wake-up method thereof | |
US8774776B1 (en) | Alert device for mobile communications devices | |
CN109039355B (en) | Voice prompt method and related product | |
CN110730946B (en) | Volume control method and device of mobile terminal, storage medium and mobile terminal | |
CN105635916A (en) | Audio processing method and apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180119 |