CN107948801A - The control method and earphone of a kind of earphone - Google Patents

The control method and earphone of a kind of earphone Download PDF

Info

Publication number
CN107948801A
CN107948801A CN201711396667.8A CN201711396667A CN107948801A CN 107948801 A CN107948801 A CN 107948801A CN 201711396667 A CN201711396667 A CN 201711396667A CN 107948801 A CN107948801 A CN 107948801A
Authority
CN
China
Prior art keywords
earphone
ambient sound
mentioned
audio
terminal device
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.)
Granted
Application number
CN201711396667.8A
Other languages
Chinese (zh)
Other versions
CN107948801B (en
Inventor
王强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201711396667.8A priority Critical patent/CN107948801B/en
Publication of CN107948801A publication Critical patent/CN107948801A/en
Application granted granted Critical
Publication of CN107948801B publication Critical patent/CN107948801B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1025Accumulators or arrangements for charging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2201/00Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
    • H04R2201/10Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups

Abstract

The control method and earphone of a kind of earphone, including:When earphone is in audio broadcast state, which gathers the ambient sound of its local environment in real time, and when the earphone is judged to include default sensitive word in ambient sound, which suspends the broadcasting of present video, and plays the ambient sound collected.Implement the embodiment of the present invention, can effectively reduce the situation generation that important information is led to miss because wearing earphone and listening audio.

Description

The control method and earphone of a kind of earphone
Technical field
The present invention relates to technical field of electronic equipment, and in particular to the control method and earphone of a kind of earphone.
Background technology
With the continuous development of science and technology, the performance of earphone isolation external environmental sounds is also lifted therewith.It is social now, wear ear Machine listens the people of audio to be seen everywhere.However, it has been found in practice that if people are too absorbed in when listening audio, may result in Miss some important informations being present in external sound, for example Flight Information, public transport arrive at a station prompt message etc..
The content of the invention
The embodiment of the present invention discloses the control method and earphone of a kind of earphone, can effectively reduce because wear earphone listen audio and The situation for leading to miss important information occurs.
First aspect of the embodiment of the present invention discloses a kind of control method of earphone, the described method includes:
When the earphone is in audio broadcast state, the earphone gathers the ambient sound of the earphone local environment in real time Sound;
The earphone judges whether the ambient sound includes default sensitive word;
If so, the broadcasting of the earphone pause present video, and play the ambient sound.
As an alternative embodiment, in first aspect of the embodiment of the present invention, when the earphone judge it is described When ambient sound does not include default sensitive word, the method further includes:
The earphone judges whether the volume of the ambient sound is more than default volume;
If so, the earphone judges whether the volume of the currently playing audio of the earphone exceedes the upper of safe volume range Limit;
If not, the earphone heightens the volume of the currently playing audio of the earphone in the safe volume range.
As an alternative embodiment, in first aspect of the embodiment of the present invention, the method further includes:
Whether earphone described in the headset detection is in wearing state;
Reached if so, the earphone obtains the vehicles prestored with the terminal device of the earphone wireless connection Residence time section after targeted sites;Wherein, after the vehicles reach the targeted sites, the targeted sites are described The verbal announcement that broadcast gets on the bus or gets off in residence time section;
The earphone judges current time, whether the vehicles prestored positioned at the terminal device reached institute State in the section of the residence time after targeted sites;
If so, the earphone performs described when the earphone is in audio broadcast state, the ear is gathered in real time The ambient sound of machine local environment.
As an alternative embodiment, in first aspect of the embodiment of the present invention, the method further includes:
When the earphone is in wearing state, the earphone obtains the distance of the earphone and the terminal device;
The earphone judges whether the distance is more than preset value;
If so, the earphone sends a warning, the warning information is used to prompt terminal device described in user to exist The possibility of loss.
As an alternative embodiment, in first aspect of the embodiment of the present invention, the audio that the earphone plays is During song, the method further includes:
When the ambient sound that the earphone collects is sound of the user with singing the song, the earphone is recorded The ambient sound;
When the earphone terminates to record the ambient sound, evaluation information of the output for the ambient sound.
Second aspect of the embodiment of the present invention discloses a kind of earphone, including:
Collecting unit, for when the earphone is in audio broadcast state, gathering the earphone local environment in real time Ambient sound;
First judging unit, for judging whether the ambient sound includes default sensitive word;
Control unit, for when the judging result of first judging unit is is, suspending the broadcasting of present video, and Play the ambient sound.
As an alternative embodiment, in second aspect of the embodiment of the present invention, further include:
Second judging unit, for judging the ambient sound not comprising default described when first judging unit During sensitive word, judge whether the volume of the ambient sound is more than default volume;
3rd judging unit, for when the judging result of second judging unit is is, judging that the earphone is current Whether the volume for playing audio exceedes the upper limit of safe volume range;
Adjustment unit, for judging the volume of the currently playing audio of the earphone not when the 3rd judging unit More than the safe volume range the upper limit when, the currently playing audio of the earphone is heightened in the safe volume range The volume.
As an alternative embodiment, in second aspect of the embodiment of the present invention, further include:
Detection unit, for detecting whether the earphone is in wearing state;
Acquiring unit, for when the detection unit detects that the earphone is in the wearing state, obtains and institute State the vehicles that the terminal device of earphone wireless connection prestores and reach the residence time section after targeted sites;Wherein, institute After stating the vehicles arrival targeted sites, the targeted sites language that broadcast gets on the bus or gets off in residence time section Sound notifies;
4th judging unit, for judging whether current time is located at the traffic work that the terminal device prestores In residence time section after the tool arrival targeted sites;
The collecting unit, specifically for judging that the current time is located at the terminal in the 4th judging unit When in the residence time section after the vehicles arrival targeted sites that equipment prestores, described work as is performed When the earphone is in audio broadcast state, the ambient sound of the earphone local environment is gathered in real time.
As an alternative embodiment, in second aspect of the embodiment of the present invention, the acquiring unit, is additionally operable to work as When the earphone is in wearing state, the distance of the earphone and the terminal device is obtained;4th judging unit, is also used In judging whether the distance is more than preset value;
The earphone further includes:
Alarm unit, for when the 4th judging unit judges that the distance is more than the preset value, sending police Notify breath, the warning information is used to prompt terminal device described in user to there is the possibility lost.
As an alternative embodiment, in second aspect of the embodiment of the present invention, the audio that the earphone plays is During song, further include:
Recording elements, the ambient sound for being collected when the collecting unit are sound of the user with singing the song During sound, the ambient sound is recorded;
Output unit, for when the recording elements terminate to record the ambient sound, output to be directed to the ambient sound The evaluation information of sound.
The third aspect of the embodiment of the present invention discloses another earphone, including:
It is stored with the memory of executable program code;
The processor coupled with the memory;
The processor calls the executable program code stored in the memory, performs first aspect present invention Any one method part or all of step.
Fourth aspect of the embodiment of the present invention discloses a kind of computer-readable recording medium, it stores computer program, described Computer program includes being used to perform the instruction of the part or all of step of any one method of first aspect present invention.
The aspect of the embodiment of the present invention the 5th discloses a kind of computer program product, when the computer program product is calculating When being run on machine so that the computer performs the part or all of step of any one method of first aspect.
The open one kind of the aspect of the embodiment of the present invention the 6th applies distribution platform, and the application distribution platform, which is used to issue, to be calculated Machine program product, wherein, when the computer program product is run on computers so that the computer performs first party The part or all of step of any one method in face.
Compared with prior art, the embodiment of the present invention has the advantages that:
In the embodiment of the present invention, when earphone is in audio broadcast state, which gathers the ring of its local environment in real time Border sound, when the earphone is judged to include default sensitive word in ambient sound, which suspends the broadcasting of present video, and Play the ambient sound collected.As it can be seen that implement the embodiment of the present invention, when wearing earphone and listening audio, when the earphone local environment Ambient sound in when including important information, which can suspend broadcasting present video, so that the earphone plays the ambient sound Sound, can effectively reduce the situation generation that important information is led to miss because wearing earphone and listening audio.
Brief description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, below will be to needed in the embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for ability For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is a kind of flow diagram of the control method of earphone disclosed by the embodiments of the present invention;
Fig. 2 is the flow diagram of the control method of another earphone disclosed by the embodiments of the present invention;
Fig. 3 is the flow diagram of the control method of another earphone disclosed by the embodiments of the present invention;
Fig. 4 is a kind of structure diagram of earphone disclosed by the embodiments of the present invention;
Fig. 5 is the structure diagram of another earphone disclosed by the embodiments of the present invention;
Fig. 6 is the structure diagram of another earphone disclosed by the embodiments of the present invention;
Fig. 7 is the structure diagram of another earphone disclosed by the embodiments of the present invention.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.Based on this Embodiment in invention, the every other reality that those of ordinary skill in the art are obtained without making creative work Example is applied, belongs to the scope of protection of the invention.
It should be noted that term " comprising " and " having " and their any changes in the embodiment of the present invention and attached drawing Shape, it is intended that cover non-exclusive include.Such as contain the process of series of steps or unit, method, system, product or The step of equipment is not limited to list or unit, but the step of not listing or unit are alternatively further included, or it is optional Ground is further included for the intrinsic other steps of these processes, method, product or equipment or unit.
The embodiment of the present invention discloses the control method and earphone of a kind of earphone, can effectively reduce because wear earphone listen audio and The situation for leading to miss important information occurs.It is described in detail individually below.
Embodiment one
Referring to Fig. 1, Fig. 1 is a kind of flow diagram of the control method of earphone disclosed by the embodiments of the present invention.Such as Fig. 1 Shown, the control method of the earphone may comprise steps of:
101st, when earphone is in audio broadcast state, which gathers the ambient sound of earphone local environment in real time.
Optionally, after step 101, can also comprise the following steps:
The sound wave of the above-mentioned ambient sound collected is divided into some framings by earphone using mobile window function, i.e., by above-mentioned ring The sound wave of border sound is cut into some segments;
Earphone does waveform conversion to each framing in above-mentioned some framings, so that each framing in above-mentioned some framings All it is changed into a multi-C vector;
Some multi-C vectors of the earphone corresponding to according to the above-mentioned some framings got, generate observation sequence;
In above-mentioned observation sequence, earphone judges each multi-C vector state in which in above-mentioned some multi-C vectors, and At least one multi-C vector in same state is classified as one kind, obtains some states;
Earphone obtains some phonemes according to above-mentioned some states, wherein, multiple states in above-mentioned some states correspond to one A phoneme;
Earphone identifies some words being made of above-mentioned some phonemes;Wherein, multiple phonemes in above-mentioned some phonemes A corresponding word;
Whether default sensitive word is included in above-mentioned some words that earphone judges to identify, if so, performing step 103;If not, terminate this flow.
By the above method, after above-mentioned ambient sound passes through above-mentioned change, earphone can be improved and judge above-mentioned environment Whether sound includes the accuracy of default sensitive word.
102nd, earphone judges whether above-mentioned ambient sound includes default sensitive word, if so, performing step 103;If It is no, terminate this flow.
As an alternative embodiment, before step 102, can also comprise the following steps:
Earphone positions the current location residing for the earphone in real time;
Whether the current location that earphone judges to orient needs to set sensitive word;
If so, the sensitive word of headset detection user setting, and preserve the sensitive word.
Optionally, when the current location that earphone judges to orient needs to set sensitive word, in above-mentioned headset detection user Before the sensitive word of setting, it can also comprise the following steps:
Earphone retrieved according to current location in the place storehouse that the earphone stores with the place sensitive word of current location matches, Wherein, the pre-set multiclass place of user is included in above-mentioned place storehouse, and each place in the multiclass place is provided with Such place correspondence position information and exclusive sensitive word;
Earphone will retrieve exclusive sensitive word corresponding with the current location and recommend user, so that user is quick in setting Referred to when feeling word.
It should be noted that the data in above-mentioned place storehouse can be the headset detection arrive by the headset user according to certain One fixed time period routing input or the stroke of above-mentioned a certain fixed time period is being got by the earphone After arrangement, automatically generate, the embodiment of the present invention does not limit.
It should be further noted that data in above-mentioned place storehouse by the earphone to get the headset user a certain After the routing of fixed time period, in the case of automatically generating, which can also detect the headset user and be directed to oneself The data that are automatically generated to the earphone of actual conditions be modified and perfect operation.
Wherein, the routing that above-mentioned earphone obtains a certain fixed time period of the headset user can be by the earphone from Obtained in the terminal device being connected with the earphone or earphone is directly obtained from the memory space of the earphone, the present invention Embodiment does not limit.
Need further to illustrate, when the routing that earphone obtains a certain fixed time period of the headset user is ear When machine is directly obtained from the memory space of the earphone, due to the less reason of earphone, which can also be virtual by projecting The mode of keyboard, meets that the headset user is manually entered the routing of the above-mentioned a certain fixed time period of the user, works as earphone When detecting the routing of above-mentioned a certain fixed time period input by user, which stores above-mentioned a certain fixed time period Routing.
In the above method, earphone can set corresponding sensitive word according to the current location residing for the earphone, improve this The user experience of earphone;The earphone can also be retrieved in the storehouse of place recommends use with the place sensitive word of current location matches Family, can facilitate user setting sensitive word, so as to improve the interactivity of the earphone.
103rd, the broadcasting of earphone pause present video, and play above-mentioned ambient sound.
Optionally, after the broadcasting of earphone pause present video, earphone can be sent out prompt message, to prompt the ear Important information is included in the above-mentioned ambient sound of user of machine, when detecting the instruction for playing above-mentioned ambient sound, the ear Machine performs the above-mentioned above-mentioned ambient sound of broadcasting.
Wherein, step 101~step 103 is performed, when earphone is judged to include default sensitive word in above-mentioned ambient sound When, which suspends the broadcasting of present video, and plays above-mentioned ambient sound, can effectively reduce and be led because wearing earphone and listening audio The situation of miss critical information is caused to occur.
As it can be seen that implementing the described methods of Fig. 1, earphone can be improved and judge above-mentioned ambient sound whether comprising default quick Feel the accuracy of word, corresponding sensitive word can also be set according to the current location residing for the earphone, improve the use of the earphone Family is experienced, and can also be facilitated user setting sensitive word, so as to improve the interactivity of the earphone, can also effectively be reduced Yin Daier The situation that machine listens audio and leads to miss important information occurs.
Embodiment two
Referring to Fig. 2, Fig. 2 is the flow diagram of the control method of another earphone disclosed by the embodiments of the present invention.Such as Shown in Fig. 2, the control method of the earphone may comprise steps of:
201st, whether the headset detection earphone is in wearing state, if so, performing step 202~step 203;If It is no, terminate this flow.
Optionally, inner side humidity sensor and outside humidity sensor, the headset detection earphone are provided with the earphone is The no method in wearing state can be:The humidity that humidity sensor detects when inner side is detected with outside humidity sensor The difference of humidity when being more than default humidity value, then headset detection go out the earphone and be in wearing state.
It is further alternative, pressure sensor is provided with the earphone, whether the headset detection earphone is in wearing state Method can also be:When pressure inductor detect the pressure sensor be in be pressed state when, then headset detection goes out this Earphone is in wearing state.
It is further optional, pressure sensor, inner side humidity sensor and outside humidity sense are provided with the earphone Device is answered, the method whether the headset detection earphone is in wearing state can also be:When pressure inductor detects that the pressure passes The sensor humidity that humidity sensor detects on the inside of when being pressed state, judging detects wet with outside humidity sensor Whether the difference of degree is more than default humidity value, if it is, headset detection, which goes out the earphone, is in wearing state.It can so improve The earphone judges the accuracy of its status.
202nd, earphone obtains the vehicles prestored with the terminal device of the earphone wireless connection and reaches targeted sites Residence time section afterwards.
Wherein, after the above-mentioned vehicles reach targeted sites, targeted sites broadcast in section of above-mentioned residence time get on the bus or The verbal announcement got off.
In the embodiment of the present invention, the source for the section of above-mentioned residence time that terminal device prestores can be that terminal device leads to Cross and detect the user of the terminal device and input to obtain or terminal device is by operating in the application on the terminal device Obtained in program (car has come, Amap, Google Maps etc.), the embodiment of the present invention does not limit.
Wherein, above-mentioned mentioned terminal device can be each Terminal Types such as wearable device, smart mobile phone, study tablet Equipment, the embodiment of the present invention do not limit.Wherein, the operating system of all kinds of terminal devices may include but be not limited to Android behaviour Make system, IOS operating system, Symbian (Saipan) operating system, Black Berry (blackberry, blueberry) operating system, Windows Phone8 operating systems etc., the embodiment of the present invention does not limit.
In the embodiment of the present invention, the wireless connection of earphone and above-mentioned terminal device can utilize bluetooth to realize, it is necessary to illustrate , when two equipment utilization bluetooths are attached, at least one equipment is and another as service equipment in two equipment A equipment is as client.Due to being the data on the above-mentioned terminal device of earphone acquisition in step 201, so the embodiment of the present invention In can be using above-mentioned terminal device as service equipment, using earphone as client, when client is sent to the company of service equipment When connecing the entrained device identification of request and the device identification of the service equipment, the connection that service equipment then receives client please Ask, i.e., earphone (client) is successfully established with above-mentioned terminal device (service equipment) and is connected.
203rd, earphone judges current time, whether the above-mentioned vehicles prestored positioned at above-mentioned terminal device reached mesh In residence time section after labeling station point, if so, performing step 204;If not, terminate this flow.
Optionally, when the judging result of step 203 is no, earphone can also stop gathering earphone local environment in real time Ambient sound, can so reduce the ineffective power consumption of the earphone.
Further alternative, earphone can also obtain after the ambient sound of collection earphone local environment in real time is stopped Current time, can be with when the duration got is more than preset duration apart from the duration of section initial time of above-mentioned residence time The pattern that detection is used to switch the headset mode replaces instruction, and switches the pattern of the earphone according to pattern replacement instruction, its In, the pattern of the earphone includes operating mode, sleep pattern and entertainment mode;Preset when the duration got is less than or equal to During duration, earphone sends the second prompt message, which is used to prompt the user of the earphone to reach targeted sites.
In the case where the duration got is more than preset duration, earphone is used for the pattern for switching the headset mode in detection Before replacing instruction, it can also be carried according to the present mode of the earphone and the duration in present mode of record, output the 3rd Show information, the 3rd prompt message can be when input pattern be replaced and instructed as reference for the user of the earphone.
For example, when the user of the earphone takes passenger of the high ferro from Shanghai to Guangzhou for one, which gets This high ferro (5:00-11:00) the residence time section for reaching Guangzhou Railway Station is 11:00-11:10, and the preset duration of the earphone is 10 minutes, if the current time that earphone is got is 9:00, in operating mode, and earphone recorded be continuously in work When the duration of operation mode is more than predetermined threshold value, which exports the 3rd prompt message, and " time that you work is too long, it is proposed that you stop Breath ", when detecting that the pattern for switching to sleep pattern replaces instruction, controls the earphone that operating mode is switched to sleep Pattern;If the current time that earphone is got is 10:55, which sends the second prompt message, and " this train will reach Guangzhou Railway Station, please start to tidy up your luggage ".
By the above method, earphone can obtain duration of the current time apart from section initial time of above-mentioned residence time, and The prompt message different from the relation output of preset duration according to the duration got, can be with the user of the arranged rational earphone The time of pattern is included using the earphone.
204th, when earphone is in audio broadcast state, which gathers the ambient sound of earphone local environment in real time.
205th, earphone judges whether above-mentioned ambient sound includes default sensitive word, if so, performing step 206;If It is no, perform step 207.
206th, the broadcasting of earphone pause present video, and play above-mentioned ambient sound.
Wherein, step 202~step 206 is performed, when earphone judges that current time is located at section of above-mentioned residence time, the ear Machine just gathers the ambient sound of earphone local environment in real time, so as to realize targeted, selective collection ambient sound, Ineffective power consumption can further be reduced.
207th, earphone judges whether the volume of above-mentioned ambient sound is more than default volume, if so, performing step 208;Such as Fruit is no, terminates this flow.
Optionally, earphone can also detect the ear after the volume for judging above-mentioned ambient sound is more than default volume Whether the current electric quantity of machine is more than power threshold, if so, performing step 208;If not, the earphone is sent for representing the ear The prompting message of the low battery of machine, to prompt the user of the earphone to carry out charging operations to the earphone in time, so as to prolong The service life of the battery of the long earphone.
208th, earphone judges whether the volume of the currently playing audio of the earphone exceedes the upper limit of safe volume range, if It is no, perform step 209;If so, terminate this flow.
Optionally, when step 208 judging result for when being, earphone can also be by the volume tune of the currently playing audio of the earphone The upper limit of as low as above-mentioned safe volume range, with harmful effect of audio of the reduction compared with high-decibel to the headset user.
209th, earphone heightens the volume of the currently playing audio of the earphone in safe volume range.
Wherein, step 205, step 207~step 209 are performed, it is default to judge that above-mentioned ambient sound does not include in earphone Sensitive word in the case of, when earphone judges that the volume of above-mentioned ambient sound is more than default volume, and the earphone is currently playing The volume of audio not less than safe volume range the upper limit when, it is current which can heighten the earphone in safe volume range The volume of audio is played, so provides a kind of method for adjusting earphone broadcasting audio volume in real time according to environmental volume.
Optionally, when earphone is in audio broadcast state, which can also obtain the earphone and be broadcast in audio is continued The duration of state is put, when the duration in lasting audio broadcast state, which is more than, specifies duration, which sends the 4th prompting letter Breath, the 4th prompt message are used to prompt the user of the earphone to wear the overlong time of earphone.
By the above method, when earphone is in the duration for continuing audio broadcast state more than duration is specified, which can To send for prompting the user of the earphone to wear the 4th long prompt message of handset time, the user that the earphone can be reduced because For a long time earphone is worn to listen audio and cause the situation of hearing impairment to occur.
Wherein, for step 208~step 209, the upper limit of above-mentioned safe volume range can be 85 decibels, specify duration When can be 8 small, because studies have shown that, it is safe that human ear, which was exposed in 85 decibels within 8 hours, and if at 95 decibels Volume under persistently listen song 30 minutes, can in 2 to three years by irreversible hearing impairment.
As it can be seen that implementing the described methods of Fig. 2, the accuracy that earphone judges its status can be improved, can also be subtracted The ineffective power consumption of few earphone, can include the time of pattern with the user of the arranged rational earphone using the earphone, and also Earphone can be improved and judge whether above-mentioned ambient sound includes the accuracy of default sensitive word, can also be according to residing for the earphone Current location corresponding sensitive word is set, improve the user experience of the earphone, user setting sensitive word can also be facilitated, from And the interactivity of the earphone is improved, the service life of the battery of the earphone can also be extended, can also be reduced compared with high-decibel Harmful effect of the audio to the headset user, the user that can also reduce the earphone cause hearing because wearing earphone for a long time and listening audio The situation of damage occurs, and can also realize that adjusting the earphone in real time according to environmental volume plays audio volume.
Embodiment three
Referring to Fig. 3, Fig. 3 is the flow diagram of the control method of another earphone disclosed by the embodiments of the present invention.Such as Shown in Fig. 3, the control method of the earphone may comprise steps of:
Wherein, the detailed description of step 301~step 309, refer to and step 201~step 209 is directed in embodiment two Description, the embodiment of the present invention repeats no more.
310th, when earphone is in wearing state, earphone obtains the distance of the earphone and above-mentioned terminal device.
311st, earphone judges whether the earphone and the distance of above-mentioned terminal device are more than preset value, if so, performing step 312;If not, terminate this flow.
For step 310~step 311, optionally, bluetooth connection, and earphone are utilized in earphone and above-mentioned terminal device In the case of wearing state, when earphone does not receive the instruction for disconnecting bluetooth connection, the headset detection earphone is It is no to be disconnected with the connection of above-mentioned terminal device, if it is, triggering performs step 312.
It should be noted that when two equipment pass through bluetooth connection, the distance between the two equipment cannot generally surpass 10 meters are crossed, when the distance between the two equipment are more than 10 meters, bluetooth connection will disconnect automatically.
312nd, earphone sends a warning, which is used to prompt the above-mentioned terminal device of user can in the presence of what is lost Energy.
Wherein, step 310~step 312 is performed, when the distance of earphone and above-mentioned terminal device is more than preset value, the ear Machine sends a warning, so as to provide a kind of method for early warning for preventing terminal device and losing.
Optionally, in step 304, can be with when the audio played when earphone is in audio broadcast state is song Comprise the following steps:
313rd, when the above-mentioned ambient sound that earphone collects is sound of the user with singing above-mentioned song, earphone is recorded above-mentioned Ambient sound.
314th, when earphone terminates to record above-mentioned ambient sound, evaluation information of the output for above-mentioned ambient sound.
Wherein, step 313~step 314 is performed, when the audio played when earphone is in audio broadcast state is song, Earphone can record ambient sound of the user with singing above-mentioned song, and after recording terminates, output is directed to above-mentioned ambient sound Evaluation information, so as to fulfill K sing function.
Optionally, after step 314, earphone can also obtain the opinion rating of above-mentioned evaluation information, wherein, opinion rating It is three classes that can include, and is high-grade, middle grade and inferior grade respectively, when the grade for judging above-mentioned evaluation information belongs to high During grade, inquiry message is can be sent out, which is used to inquire whether the user of the earphone is needed above-mentioned ambient sound Cent is enjoyed to social class application platform, can also will be upper when detecting when being used to share the instruction of above-mentioned ambient sound of input State ambient sound to send to above-mentioned terminal device, operated in so that the ambient sound received is uploaded to by above-mentioned terminal device State the social class application platform (QQ, wechat, microblogging etc.) on terminal device.
By the above method, when the opinion rating of the evaluation information of earphone output belongs to high-grade, and detection receives When being used to share the instruction of above-mentioned ambient sound of input, which can send above-mentioned ambient sound to above-mentioned terminal and set It is standby, so that the ambient sound received is uploaded to the social class application operated on above-mentioned terminal device and put down by above-mentioned terminal device Platform.
It should be noted that the earphone can also be judged to play when earphone is in audio according to the source of above-mentioned audio The audio played during state is the voice operation of teacher or parent's arrangement, because the voice operation of parent's arrangement comes from parent Mobile terminal, and teacher arrangement voice operation come from a certain study website.
During the voice operation that the audio played when earphone is in audio broadcast state is arranged for parent, when earphone collects Above-mentioned ambient sound to complete the answer voice of above-mentioned voice operation when, above-mentioned ambient sound which will can also collect Sound is sent to the mobile terminal of parent.
During the voice operation that the audio played when earphone is in audio broadcast state is arranged for teacher, when earphone collects Above-mentioned ambient sound to complete the answer voice of above-mentioned voice operation when, above-mentioned ambient sound which will can collect It is uploaded to above-mentioned a certain study website.
It should be further noted that the user of above-mentioned a certain study website can be divided into three classes, it is administrator respectively, old Teacher and student, wherein, administrator has the highest authority for updating the data storehouse, changing program code;Teacher, which has, uploads courseware, on Voice operation, the voice response for checking student's upload, editor are passed for the evaluation information of voice response and the relatively Gao Quan of message Limit;Student has the relatively low rights downloaded voice operation, upload the voice response for being directed to voice operation and message.
By the above method, the audio played when earphone is in audio broadcast state is teacher or the voice of parent's arrangement During operation, by for the answer voice feedback of voice operation to teacher or parent, it is a kind of convenient and environmentally friendly so as to provide Learning method.
As it can be seen that the described method of implementing Fig. 3, can improve the accuracy that earphone judges its status, can also subtract The ineffective power consumption of few earphone, can include the time of pattern with the user of the arranged rational earphone using the earphone, and also Earphone can be improved and judge whether above-mentioned ambient sound includes the accuracy of default sensitive word, can also be according to residing for the earphone Current location corresponding sensitive word is set, improve the user experience of the earphone, user setting sensitive word can also be facilitated, from And the interactivity of the earphone is improved, the service life of the battery of the earphone can also be extended, can also be reduced compared with high-decibel Harmful effect of the audio to the headset user, the user that can also reduce the earphone cause hearing because wearing earphone for a long time and listening audio The situation of damage occurs, and can also realize that adjusting the earphone in real time according to environmental volume plays audio volume, can also provide one The method for early warning that kind prevention terminal device is lost, can also realize K song functions, can also provide a kind of convenient and environmentally friendly study Method.
Example IV
Referring to Fig. 4, Fig. 4 is a kind of structure diagram of earphone disclosed by the embodiments of the present invention.As shown in figure 4, the ear Machine can include:
Collecting unit 401, for when earphone is in audio broadcast state, gathering the environment of the earphone local environment in real time Sound.
In the embodiment of the present invention, collecting unit 401 be additionally operable to gather in real time the earphone local environment ambient sound it Afterwards, the sound wave of the above-mentioned ambient sound collected is divided into some framings using mobile window function, i.e., by above-mentioned ambient sound Sound wave is cut into some segments;Waveform conversion is done to each framing in above-mentioned some framings, so that in above-mentioned some framings Each framing is all changed into a multi-C vector;According to some multi-C vectors corresponding to the above-mentioned some framings got, generation Observation sequence;In above-mentioned observation sequence, each multi-C vector state in which in above-mentioned some multi-C vectors is judged, and will place One kind is classified as at least one multi-C vector of same state, obtains some states;According to above-mentioned some states, some sounds are obtained Element, wherein, multiple states in above-mentioned some states correspond to a phoneme;Identify some lists being made of above-mentioned some phonemes Word;Wherein, multiple phonemes in above-mentioned some phonemes correspond to a word;
Whether default sensitive word is included in the above-mentioned some words for judging to identify, it is above-mentioned some when judging to identify Default sensitive word is included in word, triggering starts control unit 403.
By the above-mentioned means, after above-mentioned ambient sound passes through above-mentioned change, earphone can be improved and judge above-mentioned environment Whether sound includes the accuracy of default sensitive word.
First judging unit 402, for judging whether above-mentioned ambient sound includes default sensitive word.
As an alternative embodiment, the first judging unit 402, is additionally operable to judging whether above-mentioned ambient sound wraps Before default sensitive word, the current location residing for the earphone is positioned in real time;Whether the current location for judging to orient needs Sensitive word is set;When judging that current location needs to set sensitive word, the sensitive word of user setting is detected, and preserve the sensitivity Word.
Optionally, the first judging unit 402, be additionally operable to judge the current location oriented need to set sensitive word it Afterwards, and before the sensitive word of detection user setting, retrieved according to current location in the place storehouse that the earphone stores with working as The matched place sensitive word in front position, wherein, the pre-set multiclass place of user, and the multiclass are included in above-mentioned place storehouse Each place in place is provided with such place correspondence position information and exclusive sensitive word;It will retrieve and the current location Corresponding exclusive sensitive word recommends user, so that user refers to when setting sensitive word.
It should be noted that the data in above-mentioned place storehouse can be the headset detection arrive by the headset user according to certain One fixed time period routing input or the stroke of above-mentioned a certain fixed time period is being got by the earphone After arrangement, automatically generate, the embodiment of the present invention does not limit.
It should be further noted that data in above-mentioned place storehouse by the earphone to get the headset user a certain After the routing of fixed time period, in the case of automatically generating, which can also detect the headset user and be directed to oneself The data that are automatically generated to the earphone of actual conditions be modified and perfect operation.
Wherein, the routing that above-mentioned earphone obtains a certain fixed time period of the headset user can be by the earphone from Obtained in the terminal device being connected with the earphone or earphone is directly obtained from the memory space of the earphone, the present invention Embodiment does not limit.
Need further to illustrate, when the routing that earphone obtains a certain fixed time period of the headset user is ear When machine is directly obtained from the memory space of the earphone, due to the less reason of earphone, which can also be virtual by projecting The mode of keyboard, meets that the headset user is manually entered the routing of the above-mentioned a certain fixed time period of the user, works as earphone When detecting the routing of above-mentioned a certain fixed time period input by user, which stores above-mentioned a certain fixed time period Routing.
In aforesaid way, the first judging unit 402 can set corresponding sensitivity according to the current location residing for the earphone Word, improves the user experience of the earphone;First judging unit 402 can also be retrieved and current location matches in the storehouse of place Place sensitive word recommends user, to facilitate user setting sensitive word, so as to improve the interactivity of the earphone.
Control unit 403, for judging that above-mentioned ambient sound includes default above-mentioned sensitivity when the first judging unit 402 During word, suspend the broadcasting of present video, and play above-mentioned ambient sound.
Optionally, control unit 403, are additionally operable to after the broadcasting of pause present video, send prompt message, with prompting Important information is included in the above-mentioned ambient sound of user of the earphone, when detecting the instruction for playing above-mentioned ambient sound, Control unit 403 performs the above-mentioned ambient sound of above-mentioned broadcasting.
Wherein, when the first judging unit 402 is judged to include default sensitive word in above-mentioned ambient sound, control unit The broadcasting of 403 pause present videos, and above-mentioned ambient sound is played, it can effectively reduce and be led to miss because wearing earphone and listening audio The situation of important information occurs.
As it can be seen that implementing the described earphones of Fig. 4, earphone can be improved and judge above-mentioned ambient sound whether comprising default quick Feel the accuracy of word, corresponding sensitive word can also be set according to the current location residing for the earphone, improve the use of the earphone Family is experienced, and can also be facilitated user setting sensitive word, so as to improve the interactivity of the earphone, can also effectively be reduced Yin Daier The situation that machine listens audio and leads to miss important information occurs.
Embodiment five
Referring to Fig. 5, Fig. 5 is the structure diagram of another earphone disclosed by the embodiments of the present invention.Wherein, shown in Fig. 5 Earphone be that earphone as shown in Figure 4 optimizes, compared with the earphone shown in Fig. 4, the earphone shown in Fig. 5 further includes:
Second judging unit 404, for judging above-mentioned ambient sound not comprising default quick when the first judging unit 402 When feeling word, judge whether the volume of above-mentioned ambient sound is more than default volume.
Optionally, the second judging unit 404, be additionally operable to the volume for judging above-mentioned ambient sound be more than default volume it Afterwards, whether the current electric quantity for detecting the earphone is more than power threshold, when the current electric quantity for detecting the earphone is more than power threshold When, triggering starts the 3rd judging unit 405;When the current electric quantity for detecting the earphone is less than or equal to power threshold, send Prompt message for the low battery for representing the earphone, to prompt the user of the earphone to carry out charging behaviour to the earphone in time Make, so as to extend the service life of the battery of the earphone.
3rd judging unit 405, the volume for judging above-mentioned ambient sound when the second judging unit 404 are more than default During volume, judge whether the volume of the currently playing audio of earphone exceedes the upper limit of safe volume range.
Adjustment unit 406, for judging the volume of the currently playing audio of earphone not less than peace when the 3rd judging unit 405 During the upper limit of full volume scope, the volume of the currently playing audio of the earphone is heightened in safe volume range.
Wherein, in the case where the first judging unit 402 judges that above-mentioned ambient sound does not include default sensitive word, when Second judging unit 404 judges that the volume of above-mentioned ambient sound is more than default volume, and the 3rd judging unit 405 judges this The volume of the currently playing audio of earphone not less than safe volume range the upper limit when, adjustment unit 406 can be in safe volume model The volume of the currently playing audio of the earphone is heightened in enclosing, a kind of foundation environmental volume is so provided and adjusts earphone broadcasting in real time The method of audio volume.
Optionally, when earphone is in audio broadcast state, adjustment unit 406, which is additionally operable to obtain the earphone, is in pedal point The duration of frequency broadcast state, when the duration in lasting audio broadcast state, which is more than, specifies duration, sends the 4th prompt message, 4th prompt message is used to prompt the user of the earphone to wear the overlong time of earphone.
By the above-mentioned means, when earphone is in the duration for continuing audio broadcast state more than duration is specified, adjustment unit 406 can be sent out that, for prompting the user of the earphone to wear the 4th long prompt message of handset time, the earphone can be reduced User cause the situation of hearing impairment to occur because wearing earphone for a long time and listening audio.
Wherein, the upper limit of above-mentioned safe volume range can be 85 decibels, when specified duration can be 8 small, because research Showing, it is safe that human ear, which was exposed in 85 decibels within 8 hours, and if persistently listening 30 points of song under 95 decibels of volume Clock, can be in 2 to three years by irreversible hearing impairment.
Further alternative, adjustment unit 406, is additionally operable to judge the currently playing sound of earphone in the 3rd judging unit 405 When the volume of frequency exceedes the upper limit of safe volume range, by the turning down sound volume of the currently playing audio of the earphone to above-mentioned safe volume The upper limit of scope, with harmful effect of audio of the reduction compared with high-decibel to the headset user.
Optionally, which further includes:
Whether detection unit 407, wearing state is in for test earphone.
Optionally, inner side humidity sensor and outside humidity sensor are provided with the earphone, the detection of detection unit 407 should Whether the mode in wearing state can be earphone:The humidity that humidity sensor detects when inner side and outside humidity sensor When the difference of the humidity detected is more than default humidity value, then detection unit 407 detects that the earphone is in wearing state.
It is further alternative, pressure sensor is provided with the earphone, whether detection unit 407 detects the earphone in pendant Wearing the mode of state can also be:When pressure inductor detect the pressure sensor be in be pressed state when, then detection is single Member 407 detects that the earphone is in wearing state.
It is further optional, pressure sensor, inner side humidity sensor and outside humidity sense are provided with the earphone Device is answered, detection unit 407 detects the earphone, and whether the mode in wearing state can also be:When pressure inductor detects this Pressure sensor is in the humidity and the detection of outside humidity sensor for when being pressed state, judging that inner side humidity sensor detects Whether the difference of the humidity arrived is more than default humidity value, the humidity that humidity sensor detects when inner side and outside humidity sensor When the difference of the humidity detected is more than default humidity value, then detection unit 407 detects that the earphone is in wearing state.So The accuracy that the earphone judges its status can be improved.
Acquiring unit 408, for when detection unit 407 detects that earphone is in wearing state, obtain with the earphone without The vehicles that the terminal device of line connection prestores reach the residence time section after targeted sites.
Wherein, after the above-mentioned vehicles reach targeted sites, targeted sites broadcast in section of above-mentioned residence time is got on the bus Or the verbal announcement got off.
In the embodiment of the present invention, the source for the section of above-mentioned residence time that terminal device prestores can be that terminal device leads to Cross and detect the user of the terminal device and input to obtain or terminal device is by operating in the application on the terminal device Obtained in program (car has come, Amap, Google Maps etc.), the embodiment of the present invention does not limit.
Wherein, above-mentioned mentioned terminal device can be each Terminal Types such as wearable device, smart mobile phone, study tablet Equipment, the embodiment of the present invention do not limit.Wherein, the operating system of all kinds of terminal devices may include but be not limited to Android behaviour Make system, IOS operating system, Symbian (Saipan) operating system, Black Berry (blackberry, blueberry) operating system, Windows Phone8 operating systems etc., the embodiment of the present invention does not limit.
In the embodiment of the present invention, the wireless connection of earphone and above-mentioned terminal device can utilize bluetooth to realize, it is necessary to illustrate , when two equipment utilization bluetooths are attached, at least one equipment is and another as service equipment in two equipment A equipment is as client.Since acquiring unit 408 obtains the data on above-mentioned terminal device, so can in the embodiment of the present invention Using by above-mentioned terminal device as service equipment, using the earphone comprising acquiring unit 408 as client, when client is sent to During the device identification of device identification and the service equipment entrained by the connection request of service equipment, service equipment receives client Connection request, i.e. earphone (client) is successfully established with above-mentioned terminal device (service equipment) and is connected.
4th judging unit 409, for judging whether current time is located at the above-mentioned friendship that above-mentioned terminal device prestores In residence time section after logical instrument arrival targeted sites.
Optionally, the 4th judging unit 409, is additionally operable to work as and judges that current time is not located at above-mentioned terminal device and deposits in advance When in the residence time section after the above-mentioned vehicles arrival targeted sites of storage, stop the environment of collection earphone local environment in real time Sound, can so reduce the ineffective power consumption of the earphone.
Further alternative, the 4th judging unit 409, is additionally operable to stopping the ambient sound of collection earphone local environment in real time After sound, duration of the current time apart from section initial time of above-mentioned residence time is obtained, when the duration got, which is more than, to be preset When long, the pattern that detection is used to switch the headset mode replaces instruction, and switches the mould of the earphone according to pattern replacement instruction Formula, wherein, the pattern of the earphone includes operating mode, sleep pattern and entertainment mode;When the duration got is less than or waits When preset duration, the second prompt message is sent, which is used to prompt the user of the earphone to reach targeted sites.
In the case where the duration got is more than preset duration, the 4th judging unit 409, is additionally operable to be used to cut in detection Change the headset mode pattern replace instruction before, according to the earphone present mode and record in present mode when It is long, the 3rd prompt message is exported, the 3rd prompt message can be replaced in input pattern for the user of the earphone and instructed When as reference.
By the above-mentioned means, the 4th judging unit 409 can obtain current time apart from when the above-mentioned residence time, section originated The duration at quarter, and the prompt message different from the relation output of preset duration according to the duration got, can be with arranged rational The user of the earphone includes the time of pattern using the earphone.
Collecting unit 401, it is pre- specifically for judging that current time is located at above-mentioned terminal device in the 4th judging unit 409 When the above-mentioned vehicles that first store are reached in the residence time section after targeted sites, perform above-mentioned when earphone is broadcast in audio When putting state, the ambient sound of the earphone local environment is gathered in real time.
As it can be seen that implementing the described earphones of Fig. 5, the accuracy that earphone judges its status can be improved, can also be subtracted The ineffective power consumption of few earphone, can include the time of pattern with the user of the arranged rational earphone using the earphone, and also Earphone can be improved and judge whether above-mentioned ambient sound includes the accuracy of default sensitive word, can also be according to residing for the earphone Current location corresponding sensitive word is set, improve the user experience of the earphone, user setting sensitive word can also be facilitated, from And the interactivity of the earphone is improved, the service life of the battery of the earphone can also be extended, can also be reduced compared with high-decibel Harmful effect of the audio to the headset user, the user that can also reduce the earphone cause hearing because wearing earphone for a long time and listening audio The situation of damage occurs, and can also realize that adjusting the earphone in real time according to environmental volume plays audio volume.
Embodiment six
Referring to Fig. 6, Fig. 6 is the structure diagram of another earphone disclosed by the embodiments of the present invention.Wherein, shown in Fig. 6 Earphone be that earphone as shown in Figure 5 optimizes, compared with the earphone shown in Fig. 5, in the earphone shown in Fig. 6, obtain Unit 408, is additionally operable to when earphone is in wearing state, obtains the distance of earphone and above-mentioned terminal device;4th judging unit 409, it is additionally operable to judge whether the above-mentioned distance that acquiring unit 408 is got is more than preset value;
Optionally, bluetooth connection is utilized in earphone and above-mentioned terminal device, and in the case that earphone is in wearing state, 4th judging unit 409, is additionally operable to when earphone does not receive the instruction for disconnecting bluetooth connection, detect the earphone whether with The connection of above-mentioned terminal device disconnects, and when the connection for detecting the earphone and above-mentioned terminal device disconnects, then triggering starts police Declaration form member 410.
It should be noted that when two equipment pass through bluetooth connection, the distance between the two equipment cannot generally surpass 10 meters are crossed, when the distance between the two equipment are more than 10 meters, bluetooth connection will disconnect automatically.
The earphone can also include:
Alarm unit 410, for when the 4th judging unit 409 judges that above-mentioned distance is more than preset value, sending alarm Information, the warning information are used to prompt user that above-mentioned terminal device has the possibility lost.
Wherein, when the distance of earphone and above-mentioned terminal device is more than preset value, alarm unit 410 sends a warning, So as to provide a kind of method for early warning for preventing terminal device and losing.
It is further alternative, when collecting unit 401 is in audio broadcast state, when the audio of broadcasting is song, the ear Machine can also include:
Recording elements 411, the above-mentioned ambient sound for being collected when collecting unit 401 are user with singing above-mentioned song During sound, above-mentioned ambient sound is recorded.
Output unit 412, for when recording elements 411 terminate to record above-mentioned ambient sound, output to be directed to above-mentioned environment The evaluation information of sound.
Wherein, when the audio played when earphone is in audio broadcast state is song, recording elements 411 can record use Ambient sound of the family with singing above-mentioned song, output unit 412 can be exported for above-mentioned ambient sound after recording terminates Evaluation information, function is sung so as to fulfill K.
Optionally, output unit 412, are additionally operable to obtain the opinion rating of above-mentioned evaluation information, wherein, opinion rating can be with Including being high-grade, middle grade and inferior grade respectively for three classes;When the grade for judging above-mentioned evaluation information belongs to high-grade When, inquiry message is sent, which is used to inquire whether the user of the earphone needs to share above-mentioned ambient sound to society Hand over class application platform;When detect input be used for share above-mentioned ambient sound instruction when, by above-mentioned ambient sound send to Above-mentioned terminal device, so that the ambient sound received is uploaded to the society operated on above-mentioned terminal device by above-mentioned terminal device Hand over class application platform (QQ, wechat, microblogging etc.).
By the above-mentioned means, when the opinion rating of evaluation information that output unit 412 exports belongs to high-grade, and detection connects When being used to share the instruction of above-mentioned ambient sound of input is received, output unit 412 can send above-mentioned ambient sound supreme Terminal device is stated, so that the ambient sound received is uploaded to the social activity operated on above-mentioned terminal device by above-mentioned terminal device Class application platform.
Further alternative, the audio played when earphone is in audio broadcast state can also be that teacher or parent arrange Voice operation.
It should be noted that output unit 412, is additionally operable to the source according to above-mentioned audio, judge when earphone is in sound The audio played during frequency broadcast state is the voice operation of teacher or parent's arrangement, because the voice operation of parent's arrangement comes from Come from a certain study website in the voice operation of the mobile terminal of parent, and teacher's arrangement.
During the voice operation that the audio played when earphone is in audio broadcast state is arranged for parent, work as output unit When the 412 above-mentioned ambient sounds collected is complete the answer voice of above-mentioned voice operation, output unit 412 is additionally operable to gather To above-mentioned ambient sound send to the mobile terminal of parent.
During the voice operation that the audio played when earphone is in audio broadcast state is arranged for teacher, work as output unit When the 412 above-mentioned ambient sounds collected is complete the answer voice of above-mentioned voice operation, output unit 412 is additionally operable to gather To above-mentioned ambient sound be uploaded to above-mentioned a certain study website.
It should be further noted that the user of above-mentioned a certain study website can be divided into three classes, it is administrator respectively, old Teacher and student, wherein, administrator has the highest authority for updating the data storehouse, changing program code;Teacher, which has, uploads courseware, on Voice operation, the voice response for checking student's upload, editor are passed for the evaluation information of voice response and the relatively Gao Quan of message Limit;Student has the relatively low rights downloaded voice operation, upload the voice response for being directed to voice operation and message.
By the above-mentioned means, the voice that the audio played when earphone is in audio broadcast state is arranged for teacher or parent During operation, output unit 412 can by for the answer voice feedback of voice operation to teacher or parent, so as to provide one The convenient and environmentally friendly mode of learning of kind.
As it can be seen that implementing the described earphones of Fig. 6, the accuracy that earphone judges its status can be improved, can also be subtracted The ineffective power consumption of few earphone, can include the time of pattern with the user of the arranged rational earphone using the earphone, and also Earphone can be improved and judge whether above-mentioned ambient sound includes the accuracy of default sensitive word, can also be according to residing for the earphone Current location corresponding sensitive word is set, improve the user experience of the earphone, user setting sensitive word can also be facilitated, from And the interactivity of the earphone is improved, the service life of the battery of the earphone can also be extended, can also be reduced compared with high-decibel Harmful effect of the audio to the headset user, the user that can also reduce the earphone cause hearing because wearing earphone for a long time and listening audio The situation of damage occurs, and can also realize that adjusting the earphone in real time according to environmental volume plays audio volume, can also provide one The method for early warning that kind prevention terminal device is lost, can also realize K song functions, can also provide a kind of convenient and environmentally friendly study Method.
Embodiment seven
Referring to Fig. 7, Fig. 7 is the structure diagram of another earphone disclosed by the embodiments of the present invention.As shown in fig. 7, should Earphone can include:
It is stored with the memory 701 of executable program code;
The processor 702 coupled with memory 701;
Wherein, processor 702 calls the executable program code stored in memory 701, and it is any one to perform Fig. 1~Fig. 3 The control method of kind earphone.
Wherein, the caching of processor 702 is larger, leading portion bus is more, framework is newer, this allows for processor 702 and handles The speed of data.
The embodiment of the present invention discloses a kind of computer-readable recording medium, it stores computer program, wherein, the computer Program causes computer to perform the control method of any one earphone of Fig. 1~Fig. 3.
As it can be seen that implementing the described earphones of Fig. 7, it can preferably ensure earphone and terminal device, the mobile terminal of parent And the reliability of above-mentioned a certain study website data transfer, earphone and terminal device, the mobile terminal of parent can also be improved And the data interaction speed of above-mentioned a certain study website, can also preferably assist earphone realize it is various possessed by the earphone Function.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can To instruct relevant hardware to complete by program, which can be stored in a computer-readable recording medium, storage Medium include read-only storage (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), programmable read only memory (Programmable Read-only Memory, PROM), erasable programmable is read-only deposits Reservoir (Erasable Programmable Read Only Memory, EPROM), disposable programmable read-only storage (One- Time Programmable Read-Only Memory, OTPROM), the electronics formula of erasing can make carbon copies read-only storage (Electrically-Erasable Programmable Read-Only Memory, EEPROM), read-only optical disc (Compact Disc Read-Only Memory, CD-ROM) or other disk storages, magnetic disk storage, magnetic tape storage or can For carrying or storing any other computer-readable medium of data.
The control method and earphone of a kind of earphone disclosed by the embodiments of the present invention are described in detail above, herein Specific case is applied to be set forth the principle of the present invention and embodiment, and in above-mentioned specific case step number it is big Successively, the execution sequence of each process should be determined the small certainty for being not meant to execution sequence with its function and internal logic, without The implementation process for tackling the embodiment of the present invention forms any restriction.The above-mentioned unit illustrated as separating component can be or It can not be physically separate, partly or entirely unit therein can be selected to realize the present embodiment side according to the actual needs The purpose of case.The explanation of above example is only intended to help to understand method and its core concept of the invention;Meanwhile for this The those skilled in the art in field, according to the thought of the present invention, there will be changes in specific embodiments and applications, In conclusion this specification content should not be construed as limiting the invention.

Claims (10)

  1. A kind of 1. control method of earphone, it is characterised in that the described method includes:
    When the earphone is in audio broadcast state, the earphone gathers the ambient sound of the earphone local environment in real time;
    The earphone judges whether the ambient sound includes default sensitive word;
    If so, the broadcasting of the earphone pause present video, and play the ambient sound.
  2. 2. according to the method described in claim 1, it is characterized in that, when the earphone judges that the ambient sound does not include in advance If sensitive word when, the method further includes:
    The earphone judges whether the volume of the ambient sound is more than default volume;
    If so, the earphone judges whether the volume of the currently playing audio of the earphone exceedes the upper limit of safe volume range;
    If not, the earphone heightens the volume of the currently playing audio of the earphone in the safe volume range.
  3. 3. according to the method described in claim 2, it is characterized in that, the method further includes:
    Whether earphone described in the headset detection is in wearing state;
    If so, the earphone, which obtains the vehicles prestored with the terminal device of the earphone wireless connection, reaches target Residence time section after website;Wherein, after the vehicles reach the targeted sites, the targeted sites are in the stop The verbal announcement that broadcast gets on the bus or gets off in period;
    The earphone judges current time, whether the vehicles prestored positioned at the terminal device reached the mesh In residence time section after labeling station point;
    If so, the earphone performs described when the earphone is in audio broadcast state, the earphone institute is gathered in real time Locate the ambient sound of environment.
  4. 4. according to the method described in claim 3, it is characterized in that, the method further includes:
    When the earphone is in wearing state, the earphone obtains the distance of the earphone and the terminal device;
    The earphone judges whether the distance is more than preset value;
    If so, the earphone sends a warning, the warning information is used to prompt terminal device described in user to there is loss Possibility.
  5. 5. according to the method described in claim 1, it is characterized in that, the audio that plays of earphone when being song, the method Further include:
    When the ambient sound that the earphone collects is sound of the user with singing the song, described in the earphone recording Ambient sound;
    When the earphone terminates to record the ambient sound, evaluation information of the output for the ambient sound.
  6. A kind of 6. earphone, it is characterised in that including:
    Collecting unit, for when the earphone is in audio broadcast state, gathering the environment of the earphone local environment in real time Sound;
    First judging unit, for judging whether the ambient sound includes default sensitive word;
    Control unit, for when the judging result of first judging unit is is, suspending the broadcasting of present video, and play The ambient sound.
  7. 7. earphone according to claim 6, it is characterised in that further include:
    Second judging unit, for judging that the ambient sound does not include the default sensitivity when first judging unit During word, judge whether the volume of the ambient sound is more than default volume;
    3rd judging unit, for when the judging result of second judging unit is is, judging that the earphone is currently playing Whether the volume of audio exceedes the upper limit of safe volume range;
    Adjustment unit, for judge when the 3rd judging unit volume of the currently playing audio of the earphone not less than During the upper limit of the safe volume range, the institute of the currently playing audio of the earphone is heightened in the safe volume range State volume.
  8. 8. earphone according to claim 7, it is characterised in that further include:
    Detection unit, for detecting whether the earphone is in wearing state;
    Acquiring unit, for when the detection unit detects that the earphone is in the wearing state, obtaining and the ear The vehicles that the terminal device of machine wireless connection prestores reach the residence time section after targeted sites;Wherein, the friendship After logical instrument reaches the targeted sites, the targeted sites voice that broadcast gets on the bus or gets off in residence time section leads to Know;
    4th judging unit, for judging current time, whether the vehicles prestored positioned at the terminal device arrived Up in the residence time section after the targeted sites;
    The collecting unit, specifically for judging that the current time is located at the terminal device in the 4th judging unit When the vehicles that prestore are reached in the residence time section after the targeted sites, perform described when described When earphone is in audio broadcast state, the ambient sound of the earphone local environment is gathered in real time.
  9. 9. earphone according to claim 8, it is characterised in that the acquiring unit, is additionally operable to wear when the earphone is in When wearing state, the distance of the earphone and the terminal device is obtained;4th judging unit, is additionally operable to judge the distance Whether preset value is more than;
    The earphone further includes:
    Alarm unit, for when the 4th judging unit judges that the distance is more than the preset value, sending alarm signal Breath, the warning information are used to prompt terminal device described in user to there is the possibility lost.
  10. 10. earphone according to claim 6, it is characterised in that when the audio that the earphone plays is song, further include:
    Recording elements, the ambient sound for being collected when the collecting unit are sound of the user with singing the song When, record the ambient sound;
    Output unit, for when the recording elements terminate to record the ambient sound, output to be for the ambient sound Evaluation information.
CN201711396667.8A 2017-12-21 2017-12-21 Earphone control method and earphone Active CN107948801B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711396667.8A CN107948801B (en) 2017-12-21 2017-12-21 Earphone control method and earphone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711396667.8A CN107948801B (en) 2017-12-21 2017-12-21 Earphone control method and earphone

Publications (2)

Publication Number Publication Date
CN107948801A true CN107948801A (en) 2018-04-20
CN107948801B CN107948801B (en) 2020-02-07

Family

ID=61942543

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711396667.8A Active CN107948801B (en) 2017-12-21 2017-12-21 Earphone control method and earphone

Country Status (1)

Country Link
CN (1) CN107948801B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108777827A (en) * 2018-06-14 2018-11-09 Oppo广东移动通信有限公司 Wireless headset, method for regulation of sound volume and Related product
CN109040886A (en) * 2018-06-06 2018-12-18 四川斐讯信息技术有限公司 A kind of voice activity detection method and detection system of intelligent earphone
CN109379483A (en) * 2018-09-07 2019-02-22 平安科技(深圳)有限公司 Prevent the method, apparatus and system of earphone isolation prompt information
CN110149567A (en) * 2019-05-21 2019-08-20 歌尔股份有限公司 The state monitoring method of true wireless headset and true wireless headset
CN110475170A (en) * 2019-07-10 2019-11-19 深圳壹账通智能科技有限公司 Control method, device, mobile terminal and the storage medium of earphone broadcast state
CN110809219A (en) * 2019-11-26 2020-02-18 广州酷狗计算机科技有限公司 Method, device and equipment for playing audio and storage medium
WO2020088158A1 (en) * 2018-11-01 2020-05-07 歌尔股份有限公司 Headset and playing method therefor
CN111464902A (en) * 2020-03-31 2020-07-28 联想(北京)有限公司 Information processing method, information processing device, earphone and storage medium
CN111988472A (en) * 2020-08-28 2020-11-24 上海博泰悦臻网络技术服务有限公司 Method, system, medium and intelligent terminal for improving attention of user wearing earphone
WO2021000817A1 (en) * 2019-06-29 2021-01-07 华为技术有限公司 Ambient sound processing method and related device
CN112788179A (en) * 2020-05-31 2021-05-11 深圳市睿耳电子有限公司 Adaptive adjustment method for playing volume of earphone and related device
CN112995844A (en) * 2021-02-26 2021-06-18 歌尔科技有限公司 Sound playing method and sound playing device
CN115567817A (en) * 2022-02-24 2023-01-03 荣耀终端有限公司 Method for setting working mode of audio output equipment and electronic equipment
WO2023011370A1 (en) * 2021-08-04 2023-02-09 维沃移动通信有限公司 Audio playing method and apparatus

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2887698A1 (en) * 2013-12-23 2015-06-24 Samsung Electronics Co., Ltd Hearing aid for playing audible advertisement or audible data
CN105119582A (en) * 2015-09-02 2015-12-02 广东小天才科技有限公司 Method and device for automatically adjusting terminal sound
CN105225662A (en) * 2015-08-24 2016-01-06 深圳市冠旭电子有限公司 Smart bluetooth earphone plays method and the smart bluetooth earphone of external voice automatically
KR20160090182A (en) * 2015-01-21 2016-07-29 엘지전자 주식회사 Ear set apparatus and method for controlling the same
CN106375540A (en) * 2015-07-21 2017-02-01 中兴通讯股份有限公司 Terminal protection method and apparatus
CN106649643A (en) * 2016-12-08 2017-05-10 腾讯音乐娱乐(深圳)有限公司 Audio data processing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2887698A1 (en) * 2013-12-23 2015-06-24 Samsung Electronics Co., Ltd Hearing aid for playing audible advertisement or audible data
KR20160090182A (en) * 2015-01-21 2016-07-29 엘지전자 주식회사 Ear set apparatus and method for controlling the same
CN106375540A (en) * 2015-07-21 2017-02-01 中兴通讯股份有限公司 Terminal protection method and apparatus
CN105225662A (en) * 2015-08-24 2016-01-06 深圳市冠旭电子有限公司 Smart bluetooth earphone plays method and the smart bluetooth earphone of external voice automatically
CN105119582A (en) * 2015-09-02 2015-12-02 广东小天才科技有限公司 Method and device for automatically adjusting terminal sound
CN106649643A (en) * 2016-12-08 2017-05-10 腾讯音乐娱乐(深圳)有限公司 Audio data processing method and device

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109040886A (en) * 2018-06-06 2018-12-18 四川斐讯信息技术有限公司 A kind of voice activity detection method and detection system of intelligent earphone
CN108777827B (en) * 2018-06-14 2019-12-31 Oppo广东移动通信有限公司 Wireless earphone, volume adjusting method and related product
CN108777827A (en) * 2018-06-14 2018-11-09 Oppo广东移动通信有限公司 Wireless headset, method for regulation of sound volume and Related product
CN109379483A (en) * 2018-09-07 2019-02-22 平安科技(深圳)有限公司 Prevent the method, apparatus and system of earphone isolation prompt information
CN109379483B (en) * 2018-09-07 2021-06-11 平安科技(深圳)有限公司 Method, device, storage medium, computer equipment and system for preventing earphone from isolating prompt information
WO2020088158A1 (en) * 2018-11-01 2020-05-07 歌尔股份有限公司 Headset and playing method therefor
CN110149567A (en) * 2019-05-21 2019-08-20 歌尔股份有限公司 The state monitoring method of true wireless headset and true wireless headset
WO2021000817A1 (en) * 2019-06-29 2021-01-07 华为技术有限公司 Ambient sound processing method and related device
CN110475170A (en) * 2019-07-10 2019-11-19 深圳壹账通智能科技有限公司 Control method, device, mobile terminal and the storage medium of earphone broadcast state
WO2021003955A1 (en) * 2019-07-10 2021-01-14 深圳壹账通智能科技有限公司 Method and device for controlling playback state of earphone, mobile terminal and storage medium
CN110809219B (en) * 2019-11-26 2021-06-01 广州酷狗计算机科技有限公司 Method, device and equipment for playing audio and storage medium
CN110809219A (en) * 2019-11-26 2020-02-18 广州酷狗计算机科技有限公司 Method, device and equipment for playing audio and storage medium
CN111464902A (en) * 2020-03-31 2020-07-28 联想(北京)有限公司 Information processing method, information processing device, earphone and storage medium
CN112788179A (en) * 2020-05-31 2021-05-11 深圳市睿耳电子有限公司 Adaptive adjustment method for playing volume of earphone and related device
CN111988472A (en) * 2020-08-28 2020-11-24 上海博泰悦臻网络技术服务有限公司 Method, system, medium and intelligent terminal for improving attention of user wearing earphone
CN112995844A (en) * 2021-02-26 2021-06-18 歌尔科技有限公司 Sound playing method and sound playing device
WO2023011370A1 (en) * 2021-08-04 2023-02-09 维沃移动通信有限公司 Audio playing method and apparatus
CN115567817A (en) * 2022-02-24 2023-01-03 荣耀终端有限公司 Method for setting working mode of audio output equipment and electronic equipment
CN115567817B (en) * 2022-02-24 2023-09-29 荣耀终端有限公司 Audio output equipment working mode setting method and electronic equipment

Also Published As

Publication number Publication date
CN107948801B (en) 2020-02-07

Similar Documents

Publication Publication Date Title
CN107948801A (en) The control method and earphone of a kind of earphone
CN111086410B (en) Charging control method and device, electronic equipment and system
CN108391206A (en) Signal processing method, device, terminal, earphone and readable storage medium storing program for executing
CN104918005A (en) Device, system and method for intercepting and sending monitoring record in real-time
CN108320742A (en) Voice interactive method, smart machine and storage medium
CN109889885A (en) A kind of throwing screen control method, terminal and computer readable storage medium
CN103796125A (en) Earphone playing-based sound adjustment method
CN104581221A (en) Video live broadcasting method and device
CN108509660A (en) A kind of broadcasting object recommendation method and terminal device
CN103118173A (en) Method and device conducting event notice through mobile terminal
CN107633853B (en) Control method for playing audio and video files and user terminal
CN107680614B (en) Audio signal processing method, apparatus and storage medium
CN109561420A (en) A kind of method and relevant device of emergency help
CN108763978A (en) Information cuing method, device, terminal, earphone and readable storage medium storing program for executing
CN108307271A (en) A kind of volume adjusting method of smart machine, device and smart machine
CN104540061A (en) Bluetooth headset recording method and device
CN109493884A (en) A kind of outside sound source safety prompt function method, system, equipment and medium
CN105182287A (en) Device based on remote motion sensing
CN108418948A (en) A kind of based reminding method, mobile terminal and computer storage media
CN108011903A (en) A kind of method, apparatus and system for guarding infant
CN105049591A (en) Method and device for processing incoming call
CN109165004A (en) Double screen terminal audio frequency output method, terminal and computer readable storage medium
CN106131312A (en) The player method of speech message, device and mobile terminal
CN113194383A (en) Sound playing method and device, electronic equipment and readable storage medium
CN106653068A (en) Audio data playing method, device and terminal

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
GR01 Patent grant
GR01 Patent grant