CN103414982B - A kind of method and apparatus that sound is provided - Google Patents

A kind of method and apparatus that sound is provided Download PDF

Info

Publication number
CN103414982B
CN103414982B CN201310329755.1A CN201310329755A CN103414982B CN 103414982 B CN103414982 B CN 103414982B CN 201310329755 A CN201310329755 A CN 201310329755A CN 103414982 B CN103414982 B CN 103414982B
Authority
CN
China
Prior art keywords
external sound
sound
acquisition
earphone
played
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.)
Active
Application number
CN201310329755.1A
Other languages
Chinese (zh)
Other versions
CN103414982A (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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201310329755.1A priority Critical patent/CN103414982B/en
Publication of CN103414982A publication Critical patent/CN103414982A/en
Application granted granted Critical
Publication of CN103414982B publication Critical patent/CN103414982B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of method and apparatus for providing sound, wherein, it the described method comprises the following steps:When detecting connection earphone and playing sound by the earphone, external sound is obtained by microphone;Whether the external sound for judging to obtain exceedes predetermined threshold value;When the external sound of acquisition exceedes predetermined threshold value, the external sound of acquisition is played by the earphone.The embodiment of the present invention is realized when terminal plays sound by earphone, and qualified external sound is played out by earphone, user is clearly got external sound when using earphone, is easy to user to grasp extraneous circumstance.

Description

A kind of method and apparatus that sound is provided
Technical field
The present invention relates to communication technical field, more particularly, to a kind of method and apparatus for providing sound.
Background technology
As the continuous development of terminal technology, such as the terminal such as smart mobile phone, tablet personal computer have stronger and stronger place Reason ability, user can be by installing various application programs, to realize a variety of functions in terminal.User's using terminal Audio, video are played, using terminal takes phone, sends or listens to voice messaging, or using terminal is played when playing, and can be used Earphone listens to voice signal, can so improve listening quality, can also avoid bothering other people.
When user listens to voice signal by earphone, external sound can not be heard substantially if volume is too big, due to It can't hear ambient sound, it is more likely that can can't hear or not hear the danger sound of surrounding and accident occur.If user is in room Interior to listen music using larger volume, now household calls him or has other sound to sound, and user will be unable to hear these in time Sound, even and if hear, also to take earphone can just be exchanged with household, be inconvenient.
In order to allow user to hear external sound when using earphone, some terminals can provide mute function, use this , can be temporarily Jing Yin by headphones sound during mute function, it can also hear external sound so as to make user to take earphone. But if In-Ear sealing earphone or the big earphone of wear-type are used, even if earphone does not send sound in itself, due to this kind of Earphone sealing is preferable, still prevents user to catch external sound.
Therefore, need a kind of method that external sound is provided badly, user can be enable easily to be heard when using earphone outer Boundary's sound.
The content of the invention
In view of this, the purpose of the embodiment of the present invention is to propose a kind of method and apparatus for providing sound, can be to use The user of earphone provides external sound.
In order to achieve the above object, the embodiment of the present invention proposes a kind of method for providing sound, it is characterised in that the side Method comprises the following steps:When detecting connection earphone and playing sound by the earphone, extraneous sound is obtained by microphone Sound;Whether the external sound for judging to obtain exceedes predetermined threshold value;When the external sound of acquisition exceedes predetermined threshold value, by acquisition External sound is played by the earphone.
The embodiment of the present invention is realized when terminal plays sound by earphone, and qualified external sound is passed through into ear Machine plays out, and user is clearly got external sound when using earphone, is easy to user to grasp extraneous circumstance.
As the preferred of above-mentioned technology, the threshold value is decibel value.This programme when external sound exceedes default decibel, Just external sound is played out by earphone, can avoid hearing noise or incoherent sound, reduce the interference to user.
As the preferred of above-mentioned technology, before the acquisition external sound by microphone, methods described also includes:Judge Whether the instruction that requires provide external sound is received;It is described to be included by microphone acquisition external sound:Required when receiving When the instruction of external sound is provided, external sound is obtained by microphone.Only when user requires to provide external sound in this programme When just start obtain external sound, saved electric power.
As the preferred of above-mentioned technology, before the external sound by acquisition is played by the earphone, methods described Also include:The external sound of acquisition is filtered;The external sound by acquisition is played by the earphone to be included:Incited somebody to action External sound after filter is played by the earphone.In this programme, further external sound can be filtered, therefore can To provide external sound that is more clear or more conforming to requirement.
As the preferred of above-mentioned technology, before the external sound by acquisition is played by the earphone, methods described Also include:With the presence or absence of the sound in the range of predeterminated frequency in the external sound for judging to obtain;The external sound by acquisition Being played by the earphone includes:When the sound in the range of predeterminated frequency in the external sound of acquisition be present, by the outer of acquisition Boundary's sound is played by the earphone.In this programme, when the sound for meeting frequency in external sound be present, just by external sound Play out, therefore resource can be saved, avoid providing the user undesirable external sound.
As the preferred of above-mentioned technology, the external sound by acquisition is played by the earphone to be included:Pause plays Original sound, only the external sound of acquisition is played by the earphone;Or by the external sound of acquisition and original sound Played after the mixture of tones by the earphone.Present solution provides two kinds of selective broadcasting schemes.
As the preferred of above-mentioned technology, before the external sound by acquisition is played by the earphone, methods described Also include:Whether the external sound for judging to obtain is default phonetic order;When the external sound of acquisition refers to for default voice When making, the phonetic order is forwarded;The external sound by acquisition is played by the earphone to be included:When the extraneous sound of acquisition When sound is not default phonetic order, the external sound of acquisition is played by the earphone.This programme further judges outer Whether boundary's sound is phonetic order, to provide the application of phonetic order using the user of earphone.
The present invention also proposes a kind of device for providing sound, and described device includes:
Acquisition module, for when detecting connection earphone and playing sound by the earphone, being obtained by microphone External sound;
Whether the first judge module, the external sound for judging to obtain exceed predetermined threshold value;
Playing module, for when the external sound of acquisition exceedes predetermined threshold value, the external sound of acquisition being passed through described Earphone plays.
As the preferred of above-mentioned technology, described device also includes:
Second judge module, for judging whether to receive the instruction for requiring to provide external sound;
The playing module is used to, when receiving the instruction for requiring offer external sound, extraneous sound is obtained by microphone Sound.
As the preferred of above-mentioned technology, the threshold value is decibel value.
As the preferred of above-mentioned technology, described device also includes:
Filtering module, for being filtered to the external sound of acquisition;
The playing module is used to play the external sound after filtering by the earphone.
As the preferred of above-mentioned technology, described device also includes:
3rd judge module, for whether there is the sound in the range of predeterminated frequency in the external sound of judgement acquisition;
The playing module is used for when the sound in the range of predeterminated frequency in the external sound of acquisition be present, by acquisition External sound is played by the earphone.
As the preferred of above-mentioned technology, the playing module is used for:
Pause plays original sound, only plays the external sound of acquisition by the earphone;Or
By the external sound of acquisition with being played after original sound mix by the earphone.
As the preferred of above-mentioned technology, described device also includes:
4th judge module, whether the external sound for judging to obtain is default phonetic order;
Forwarding module, for when the external sound of acquisition is default phonetic order, forwarding the phonetic order;
The playing module is used for when the external sound of acquisition is not default phonetic order, by the external sound of acquisition Played by the earphone.
The further feature and advantage of the embodiment of the present invention will illustrate in the following description, also, partly from explanation Become apparent in book, or understood by implementing the present invention.The purpose of the present invention and other advantages can be by being write Specification, structure specifically noted in claims and accompanying drawing realizes and obtains.
Below by drawings and examples, the technical scheme of the embodiment of the present invention is described in further detail.
Brief description of the drawings
Accompanying drawing is used for providing further understanding the embodiment of the present invention, and a part for constitution instruction, with this hair Bright embodiment is used to explain the present invention together, does not form the limitation to the embodiment of the present invention.In the accompanying drawings:
Fig. 1 is the main method flow chart that sound is provided in the embodiment of the present invention;
Fig. 2 is the method flow diagram for another embodiment that sound is provided in the embodiment of the present invention;
Fig. 3 is the method flow diagram for another embodiment that sound is provided in the embodiment of the present invention;
Fig. 4 is the method flow diagram for another embodiment that sound is provided in the embodiment of the present invention;
Fig. 5 is the method flow diagram for another embodiment that sound is provided in the embodiment of the present invention;
Fig. 6 is the primary structure schematic diagram for the device that sound is provided in the embodiment of the present invention;
Fig. 7 is the concrete structure schematic diagram for the device that sound is provided in the embodiment of the present invention;
Fig. 8 is a kind of terminal device structural representation provided in an embodiment of the present invention.
Embodiment
The preferred embodiments of the present invention are illustrated below in conjunction with accompanying drawing, it will be appreciated that described herein preferred real Apply example and be merely to illustrate and explain the present invention embodiment, be not intended to limit the present invention embodiment.
The method for the offer sound that the embodiment of the present invention proposes can perform in the terminal that arbitrarily can provide sound, terminal Such as including mobile phone, tablet personal computer, desktop computer, multimedia player etc..It is offer sound in the embodiment of the present invention as shown in Figure 1 The main method flow of sound, comprises the following steps:
Step S101:When detecting connection earphone and playing sound by the earphone, obtained by microphone extraneous Sound.
Wherein, microphone can be microphone that is that terminal carries or being connected with terminal.
Step S102:Whether the external sound for judging to obtain exceedes predetermined threshold value.
Preferably, threshold value is the decibel value for the size for representing sound.Only when external sound exceedes default decibel, External sound is played out by earphone, can avoid reacting incoherent sound or noise, reduce to user's Interference.
Step S103:When the external sound of acquisition exceedes predetermined threshold value, the external sound of acquisition is passed through into the earphone Play.
Preferably, when the external sound of acquisition is played by the earphone, it can suspend and play original sound, only will The external sound of acquisition is played by the earphone;Or institute will be passed through after the external sound of acquisition and original sound mix State earphone broadcasting.
In the embodiment of the present invention, realize when terminal plays sound by earphone, qualified external sound is led to Earphone is crossed to play out.Therefore, to provide external sound using the user of earphone, make user also can be clear when using earphone Ground gets external sound, is easy to user to grasp extraneous circumstance.Also, terminal only when playing sound by earphone, can just be held Microphone is opened to sense external sound, remaining when microphone then without open sensing, electric power can be saved.
In embodiment as shown in Figure 2, before external sound is obtained by microphone, it can also first be judged, be sentenced Whether disconnected user allows to obtain and play external sound, specifically, comprises the following steps:
Step S201:Terminal detects whether to connect earphone and plays sound by the earphone;If so, then perform step S202;If it is not, then terminate.
Step S202:Terminal judges whether to receive the instruction for requiring to provide external sound, if so, then performing step S203;If it is not, then terminate.
When user have selected the function of offer external sound, then, it is desirable to the instruction for providing external sound is issued, and also may be used To be user or terminal pre-sets the function that requirement provides external sound, it is desirable to which the instruction for providing external sound is sent out Go out.
Step S203:Terminal obtains external sound by microphone.
Step S204:Whether the external sound that terminal judges to obtain exceedes default decibel value, if so, then performing step S205;If it is not, then repeat the step.
Step S205:Terminal pause plays original sound, only plays the external sound of acquisition by the earphone of connection.
In the present embodiment, only just start to obtain external sound when user requires to provide external sound, saved resource.
, can also be first right before the external sound of acquisition is played by the earphone in embodiment as shown in Figure 3 External sound is filtered, and specifically, is comprised the following steps:
Step S301:Terminal detects whether to connect earphone and plays sound by the earphone;If so, then perform step S302;If it is not, then terminate.
Step S302:Terminal obtains external sound by microphone.
Step S303:Whether the external sound that terminal judges to obtain exceedes default decibel value, if so, then performing step S304;If it is not, then repeat the step.
Step S304:The external sound that terminal-pair obtains is filtered.
In this step, the noise in external sound, background sound etc. can be filtered, can also be according to default frequency Rate or frequency range filter to external sound.Such as filter out HFS in external sound(10000Hz- 20000Hz)And low frequency part(20Hz-100Hz), only retain intermediate-frequency section, i.e., only retain the sound of people.Intermediate-frequency section can be certainly Definition, such as 100Hz(Bass)To 10000Hz(Soprano).For the frequency of reservation, can be sized, frequency range and center Frequency.To the self-defined of the frequency for filtering, different use environments and different use habits are adapted to.
Step S305:Terminal pause plays original sound, only broadcasts the external sound after filtering by the earphone of connection Put.
In the present embodiment, further carried out filtered sound and original wave volume average value can be carried out Dynamic contrast, both volumes are adjusted, reach balance, to provide external sound that is more clear or more conforming to requirement.
In embodiment as shown in Figure 4, before the external sound of acquisition is played by the earphone, can also first it sentence Whether disconnected external sound meets the sound that user's setting be present, specifically, comprises the following steps:
Step S401:Terminal detects whether to connect earphone and plays sound by the earphone;If so, then perform step S402;If it is not, then terminate.
Step S402:Terminal obtains external sound by microphone.
Step S403:Whether the external sound that terminal judges to obtain exceedes default decibel value, if so, then performing step S404;If it is not, then repeat the step.
Step S404:With the presence or absence of the sound in the range of predeterminated frequency in the external sound that terminal judges to obtain;If so, then Perform step S405;If it is not, then terminate.
For example, user needs to have in external sound just to need to play out by earphone during voice, then, it should now sentence It whether there is such as 100Hz in the disconnected external sound obtained(Bass)To 10000Hz(Soprano)Sound in the range of predeterminated frequency Sound.For example, predeterminated frequency scope can be adapted to different use environments and different use habits with self-defined.
Step S405:Terminal-pair external sound is handled, and amplifies the sound in the range of the predeterminated frequency in external sound.
The step is preferred step, can further make to become the sound in the range of the predeterminated frequency in external sound Must be prominent.
Step S406:Terminal is by the external sound after processing and original sound mix.
Wherein, the ratio of mixing is manual or dynamic auto adjustable, and such as original sound accounts for 60%, external sound and accounts for 40%.
Step S407:Terminal plays mixed sound by the earphone of connection.
In the present embodiment, when the sound for meeting frequency in external sound be present, just external sound is played out, because This can save resource, avoid providing the user undesirable external sound.
In embodiment as shown in Figure 5, before the external sound of acquisition is played by the earphone, can also first it sentence Whether disconnected external sound is default phonetic order, specifically, is comprised the following steps:
Step S501:Detect whether to connect earphone and sound is played by the earphone;If so, then perform step S502; If it is not, then terminate.
Step S502:External sound is obtained by microphone.
Step S503:Whether the external sound for judging to obtain exceedes default decibel value, if so, then performing step 5404; If it is not, then repeat the step.
Step S504:Whether the external sound for judging to obtain is default phonetic order, if so, then performing step S505; If it is not, then perform step S506.
Step S505:Phonetic order is transmitted to and performs the module of phonetic order and performs corresponding operation.
Step S506:The external sound of acquisition is played by the earphone of connection.
In the embodiment of the present invention, it can also further judge whether external sound is phonetic order, to use earphone User provides the application of phonetic order.Default phonetic order is recognizable multilingual.
Preferably, can also further judge external sound whether be one section of special sound or one group of special tone or The sound at interval is identical with the application of phonetic order.
As shown in fig. 6, the embodiment of the present invention also proposes a kind of device for providing sound, described device includes:
Acquisition module 601, for when detecting connection earphone and playing sound by the earphone, being obtained by microphone Take external sound;
Whether the first judge module 602, the external sound for judging to obtain exceed predetermined threshold value;
Playing module 603, for when the external sound of acquisition exceedes predetermined threshold value, the external sound of acquisition to be passed through into institute State earphone broadcasting.
Preferably, as shown in fig. 7, described device also includes:
Second judge module 604, for judging whether to receive the instruction for requiring to provide external sound;
The playing module 603 is used to, when receiving the instruction for requiring offer external sound, obtain by microphone outer Boundary's sound.
Preferably, as shown in fig. 7, described device also includes:
Filtering module 605, for being filtered to the external sound of acquisition;
The playing module 603 is used to play the external sound after filtering by the earphone.
Preferably, as shown in fig. 7, described device also includes:
3rd judge module 606, for whether there is the sound in the range of predeterminated frequency in the external sound of judgement acquisition;
The playing module 603 is used for when the sound in the range of predeterminated frequency in the external sound of acquisition be present, will obtain The external sound taken is played by the earphone.
Preferably, the playing module 603 is used for:
Pause plays original sound, only plays the external sound of acquisition by the earphone;Or
By the external sound of acquisition with being played after original sound mix by the earphone.
Preferably, as shown in fig. 7, described device also includes:
4th judge module 607, whether the external sound for judging to obtain is default phonetic order;
Forwarding module 608, for when the external sound of acquisition is default phonetic order, forwarding the phonetic order;
The playing module 603 is used for when the external sound of acquisition is not default phonetic order, by the external world of acquisition Sound is played by the earphone.
The embodiment of the present invention also proposes a kind of terminal, and Fig. 8 is that a kind of terminal device structure provided in an embodiment of the present invention is shown It is intended to.Referring to Fig. 8, the terminal device can be used in implementation above-described embodiment the method for the recommendation application program provided.
Terminal device 1100 can include communication unit 110, include one or more computer-readable storage mediums Memory 120, input block 130, display unit 140, sensor 150, voicefrequency circuit 160, the WiFi (wireless of matter Fidelity, Wireless Fidelity) module 170, include one or the processor 180 and power supply of more than one processing core 190 grade parts.It will be understood by those skilled in the art that the terminal device structure shown in Fig. 8 is not formed to terminal device Limit, can include than illustrating more or less parts, either combine some parts or different parts arrangement.Wherein:
Communication unit 110 can be used for receive and send messages or communication process in, the reception and transmission of signal, the communication unit 110 Can be RF(Radio Frequency, radio frequency)Circuit, router, modem, etc. network communication equipment.Especially, when When communication unit 110 is RF circuits, after the downlink information of base station is received, transfer at one or more than one processor 180 Reason;In addition, it is sent to base station by up data are related to.Usually as communication unit RF circuits include but is not limited to antenna, At least one amplifier, tuner, one or more oscillators, subscriber identity module(SIM)Card, transceiver, coupler, LNA(Low Noise Amplifier, low-noise amplifier), duplexer etc..In addition, communication unit 110 can also be by wireless Communication communicates with network and other equipment.The radio communication can use any communication standard or agreement, include but is not limited to GSM (Global System of Mobile communication, global system for mobile communications), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, code Point multiple access), WCDMA (Wideband Code Division Multiple Access, WCDMA), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, Short Message Service) etc.. Memory 120 can be used for storage software program and module, and processor 180 is stored in the software journey of memory 120 by operation Sequence and module, so as to perform various function application and data processing.Memory 120 can mainly include storing program area and deposit Data field is stored up, wherein, storing program area can storage program area, the application program needed at least one function(For example sound is broadcast Playing function, image player function etc.)Deng;Storage data field can store uses created data according to terminal device 1100 (Such as voice data, phone directory etc.)Deng.In addition, memory 120 can include high-speed random access memory, can also include Nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-state parts.Phase Ying Di, memory 120 can also include Memory Controller, to provide processor 180 and input block 130 to memory 120 Access.
Input block 130 can be used for the numeral or character information for receiving input, and generation is set with user and function Control relevant keyboard, mouse, action bars, optics or the input of trace ball signal.Input block 130 may include touch sensitive surface 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad, user can be obtained at it On or near touch operation(For example user uses any suitable objects or annex such as finger, stylus on touch sensitive surface 131 Or the operation near touch sensitive surface 131), and corresponding attachment means are driven according to formula set in advance.Optionally, it is touch-sensitive Surface 131 may include both touch detecting apparatus and touch controller.Wherein, the touch of touch detecting apparatus detection user Orientation, and the signal that touch operation is brought is detected, transmit a signal to touch controller;Touch controller is from touch detecting apparatus Upper reception touch information, and contact coordinate is converted into, then processor 180 is given, and the life that energy reception processing device 180 is sent Make and performed.Furthermore, it is possible to realized using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves touch-sensitive Surface 131.Except touch sensitive surface 131, input block 130 can also include other input equipments 132.Other input equipments 132 Physical keyboard, function key can be included but is not limited to(Such as volume control button, switch key etc.), trace ball, mouse, operation One or more in bar etc..
Display unit 140 can be used for display by the information of user's input or be supplied to the information and terminal device of user 1100 various graphical user interface, these graphical user interface can be by figure, text, icon, video and its any combination To form.Display unit 140 may include display panel 141, optionally, can use LCD (Liquid Crystal Display, liquid crystal display), the form such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) comes Configure display panel 141.Further, touch sensitive surface 131 can cover display panel 141, when touch sensitive surface 131 is detected at it On or near touch operation after, send processor 180 to determine the type of touch event, be followed by subsequent processing device 180 according to touch The type for touching event provides corresponding visual output on display panel 141.Although in fig. 8, touch sensitive surface 131 and display surface Plate 141 is the part independent as two to realize input and input function, but in some embodiments it is possible to by touch-sensitive table Face 131 is integrated with display panel 141 and realizes input and output function.
Terminal device 1100 may also include at least one sensor 150, for example, optical sensor, motion sensor and other Sensor.Optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to ambient light Light and shade adjust the brightness of display panel 141, proximity transducer can close display when terminal device 1100 is moved in one's ear Panel 141 and/or backlight.As one kind of motion sensor, gravity accelerometer can detect in all directions(Generally Three axles)The size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture(Than Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function(Such as pedometer, percussion)Deng;Extremely The other sensors such as the gyroscope that can also configure in terminal device 1100, barometer, hygrometer, thermometer, infrared ray sensor, It will not be repeated here.
The audio that voicefrequency circuit 160, loudspeaker 161, microphone 162 can be provided between user and terminal device 1100 connects Mouthful.Electric signal after the voice data received conversion can be transferred to loudspeaker 161, by loudspeaker 161 by voicefrequency circuit 160 Be converted to voice signal output;On the other hand, the voice signal of acquisition is converted to electric signal by microphone 162, by voicefrequency circuit 160 receive after be converted to voice data, then after voice data output processor 180 is handled, through RF circuits 110 to be sent to ratio Such as another terminal device, or voice data is exported to memory 120 further to handle.Voicefrequency circuit 160 also includes Earphone jack, to provide the communication of peripheral hardware earphone and terminal device 1100.
In order to realize radio communication, wireless communication unit 170 can be configured with the terminal device, the wireless communication unit 170 can be WiFi module.WiFi belongs to short range wireless transmission technology, and terminal device 700 can by wireless communication unit 170 To help user to send and receive e-mail, browse webpage and access streaming video etc., it has provided the user wireless broadband interconnection Net accesses.Although Fig. 8 shows wireless communication unit 170, but it is understood that, it is simultaneously not belonging to terminal device 1100 It must be configured into, can be omitted as needed in the essential scope for do not change invention completely.
Processor 180 is the control centre of terminal device 1100, utilizes each of various interfaces and connection whole mobile phone Individual part, by running or performing the software program and/or module that are stored in memory 120, and call and be stored in storage Data in device 120, the various functions and processing data of terminal device 1100 are performed, so as to carry out integral monitoring to mobile phone.Can Choosing, processor 180 may include one or more processing cores;Preferably, processor 180 can integrate application processor and modulation Demodulation processor, wherein, application processor mainly handles operating system, user interface and application program etc., modulation /demodulation processing Device mainly handles radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 180.
Terminal device 1100 also includes the power supply 190 to all parts power supply(Such as battery), it is preferred that power supply can lead to Cross power-supply management system and processor 180 be logically contiguous, so as to by power-supply management system realize management charging, electric discharge and The functions such as power managed.Power supply 190 can also include one or more direct current or AC power, recharging system, electricity The random component such as source failure detector circuit, power supply changeover device or inverter, power supply status indicator.
Although being not shown, terminal device 1100 can also include camera, bluetooth module etc., will not be repeated here.At this In embodiment, the display unit of terminal device is touch-screen display, and terminal device also includes memory, and one or More than one program, one of them or more than one program storage are configured to by one or one in memory Individual above computing device is one or more than one program bag contains the instruction for being used for being operated below:
When detecting connection earphone and playing sound by the earphone, external sound is obtained by microphone;
Whether the external sound for judging to obtain exceedes predetermined threshold value;
When the external sound of acquisition exceedes predetermined threshold value, the external sound of acquisition is played by the earphone.
Preferably, before the acquisition external sound by microphone, in addition to:
Judge whether to receive the instruction for requiring to provide external sound;
It is described to be included by microphone acquisition external sound:When receiving the instruction for requiring offer external sound, pass through Microphone obtains external sound.
Preferably, the threshold value is decibel value.
Preferably, before the external sound by acquisition is played by the earphone, in addition to:
The external sound of acquisition is filtered;
The external sound by acquisition is played by the earphone to be included:External sound after filtering is passed through into the ear Machine sowing is put.
Preferably, before the external sound by acquisition is played by the earphone, in addition to:
With the presence or absence of the sound in the range of predeterminated frequency in the external sound for judging to obtain;
The external sound by acquisition is played by the earphone to be included:Frequency is preset when existing in the external sound of acquisition During sound in the range of rate, the external sound of acquisition is played by the earphone.
Preferably, the external sound by acquisition is played by the earphone and included:
Pause plays original sound, only plays the external sound of acquisition by the earphone;Or
By the external sound of acquisition with being played after original sound mix by the earphone.
Preferably, before the acquisition external sound by microphone, in addition to:
Whether the external sound for judging to obtain is default phonetic order;
When the external sound of acquisition is default phonetic order, the phonetic order is forwarded;
The external sound by acquisition is played by the earphone to be included:When the external sound of acquisition is not default language When sound instructs, the external sound of acquisition is played by the earphone.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more Usable storage medium(Including but not limited to magnetic disk storage and optical memory etc.)The shape of the computer program product of upper implementation Formula.
The present invention is with reference to method according to embodiments of the present invention, equipment(System)And the flow of computer program product Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these changes and modification.

Claims (15)

  1. A kind of 1. method that sound is provided, it is characterised in that the described method comprises the following steps:
    When detecting connection earphone and playing sound by the earphone, external sound is obtained by microphone;
    Whether the external sound for judging to obtain exceedes predetermined threshold value;
    When the external sound of acquisition exceedes predetermined threshold value, the external sound of acquisition is played by the earphone;
    Before the external sound by acquisition is played by the earphone, methods described also includes:
    Whether the external sound for judging to obtain is default phonetic order;
    When the external sound of acquisition is default phonetic order, the phonetic order is forwarded to come to the module for performing phonetic order Perform corresponding operation;
    The external sound by acquisition is played by the earphone to be included:When the external sound of acquisition does not refer to for default voice When making, the external sound of acquisition is played by the earphone.
  2. 2. according to the method for claim 1, it is characterised in that the threshold value is decibel value.
  3. 3. according to the method for claim 1, it is characterised in that described before the acquisition external sound by microphone Method also includes:
    Judge whether to receive the instruction for requiring to provide external sound;
    It is described to be included by microphone acquisition external sound:When receiving the instruction for requiring offer external sound, pass through Mike Wind obtains external sound.
  4. 4. according to the method for claim 1, it is characterised in that the external sound by acquisition is played by the earphone Before, methods described also includes:
    The external sound of acquisition is filtered;
    The external sound by acquisition is played by the earphone to be included:External sound after filtering is broadcast by the earphone Put.
  5. 5. according to the method for claim 1, it is characterised in that the external sound by acquisition is played by the earphone Before, methods described also includes:
    With the presence or absence of the sound in the range of predeterminated frequency in the external sound for judging to obtain;
    The external sound by acquisition is played by the earphone to be included:When predeterminated frequency model in the external sound of acquisition being present When enclosing interior sound, the external sound of acquisition is played by the earphone.
  6. 6. according to the method for claim 1, it is characterised in that the external sound by acquisition is played by the earphone Including:
    Pause plays original sound, only plays the external sound of acquisition by the earphone;Or
    By the external sound of acquisition with being played after original sound mix by the earphone.
  7. 7. according to the method for claim 6, it is characterised in that will lead to after the external sound of acquisition and original sound mix Crossing the earphone and playing includes, and the ratio set after the external sound of acquisition and original sound mix according to user is passed through into institute State earphone broadcasting.
  8. 8. device according to claim 1, it is characterised in that the default phonetic order is recognizable a variety of languages Speech.
  9. 9. device according to claim 1, it is characterised in that the default phonetic order is one section or one group of special sound The sound adjusted or be spaced.
  10. 10. a kind of device that sound is provided, it is characterised in that described device includes:
    Acquisition module, for when detecting connection earphone and playing sound by the earphone, being obtained by microphone extraneous Sound;
    Whether the first judge module, the external sound for judging to obtain exceed predetermined threshold value;
    Playing module, for when the external sound of acquisition exceedes predetermined threshold value, the external sound of acquisition to be passed through into the earphone Play;
    Described device also includes:
    4th judge module, whether the external sound for judging to obtain is default phonetic order;
    Forwarding module, for when the external sound of acquisition is default phonetic order, forwarding the phonetic order to give execution language The module of sound instruction performs corresponding operation;
    The playing module is used for when the external sound of acquisition is not default phonetic order, and the external sound of acquisition is passed through The earphone plays.
  11. 11. device according to claim 10, it is characterised in that described device also includes:
    Second judge module, for judging whether to receive the instruction for requiring to provide external sound;
    The playing module is used to, when receiving the instruction for requiring offer external sound, external sound is obtained by microphone.
  12. 12. device according to claim 11, it is characterised in that the threshold value is decibel value.
  13. 13. device according to claim 11, it is characterised in that described device also includes:
    Filtering module, for being filtered to the external sound of acquisition;
    The playing module is used to play the external sound after filtering by the earphone.
  14. 14. device according to claim 11, it is characterised in that described device also includes:
    3rd judge module, for whether there is the sound in the range of predeterminated frequency in the external sound of judgement acquisition;
    The playing module is used for when the sound in the range of predeterminated frequency in the external sound of acquisition be present, by the external world of acquisition Sound is played by the earphone.
  15. 15. device according to claim 11, it is characterised in that the playing module is used for:
    Pause plays original sound, only plays the external sound of acquisition by the earphone;Or
    By the external sound of acquisition with being played after original sound mix by the earphone.
CN201310329755.1A 2013-07-31 2013-07-31 A kind of method and apparatus that sound is provided Active CN103414982B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310329755.1A CN103414982B (en) 2013-07-31 2013-07-31 A kind of method and apparatus that sound is provided

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310329755.1A CN103414982B (en) 2013-07-31 2013-07-31 A kind of method and apparatus that sound is provided

Publications (2)

Publication Number Publication Date
CN103414982A CN103414982A (en) 2013-11-27
CN103414982B true CN103414982B (en) 2018-02-13

Family

ID=49607959

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310329755.1A Active CN103414982B (en) 2013-07-31 2013-07-31 A kind of method and apparatus that sound is provided

Country Status (1)

Country Link
CN (1) CN103414982B (en)

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104734740B (en) * 2013-12-20 2018-08-14 国民技术股份有限公司 A kind of wireless audio data communications method and device
CN104950440A (en) * 2014-03-28 2015-09-30 美商晶典有限公司 Head-mounted reality augmentation display system
CN104133652B (en) * 2014-06-10 2016-02-17 腾讯科技(深圳)有限公司 A kind of audio play control method, and terminal
CN104038860A (en) * 2014-07-01 2014-09-10 深圳智我科技有限公司 Non-removable close-distance voice listening method and headset
CA2971147C (en) 2014-12-23 2022-07-26 Timothy DEGRAYE Method and system for audio sharing
US9529500B1 (en) * 2015-06-05 2016-12-27 Apple Inc. Application recommendation based on detected triggering events
CN105100356B (en) * 2015-07-07 2018-04-06 上海斐讯数据通信技术有限公司 The method and system that a kind of volume automatically adjusts
CN106550294A (en) * 2015-09-18 2017-03-29 丰唐物联技术(深圳)有限公司 Monitor method and device based on earphone
CN105554664A (en) * 2015-12-22 2016-05-04 王晓晖 Headset based sound processing method and apparatus, and headset
CN106373325A (en) * 2016-08-03 2017-02-01 厦门傅里叶电子有限公司 Safety prompting method for virtual reality equipment
CN106325518A (en) * 2016-08-31 2017-01-11 青岛歌尔声学科技有限公司 Voice monitoring method and device for virtual reality equipment and virtual reality equipment
CN106791109A (en) * 2016-12-23 2017-05-31 维沃移动通信有限公司 A kind of sound prompting method and mobile terminal
CN107992258A (en) * 2017-11-28 2018-05-04 广东小天才科技有限公司 A kind of control method based on microphone, device, microphone and storage medium
CN108022601A (en) * 2017-11-29 2018-05-11 歌尔股份有限公司 The real-time based reminding method of virtual reality and virtual reality device
KR20230015513A (en) 2017-12-07 2023-01-31 헤드 테크놀로지 에스아에르엘 Voice Aware Audio System and Method
CN108540661A (en) * 2018-03-30 2018-09-14 广东欧珀移动通信有限公司 Signal processing method, device, terminal, earphone and readable storage medium storing program for executing
CN112235683B (en) * 2020-11-20 2023-05-05 北京旋极信息技术股份有限公司 Microphone and ambient sound noise reduction method
CN115037398A (en) * 2021-03-03 2022-09-09 Oppo广东移动通信有限公司 Audio transmission method and system, chip and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6782106B1 (en) * 1999-11-12 2004-08-24 Samsung Electronics Co., Ltd. Apparatus and method for transmitting sound
JP2009300915A (en) * 2008-06-17 2009-12-24 Fujitsu Ltd Mobile terminal with music playback function
CN101790000A (en) * 2010-02-20 2010-07-28 华为终端有限公司 Environmental sound reminding method and mobile terminal
CN101840700A (en) * 2010-04-28 2010-09-22 宇龙计算机通信科技(深圳)有限公司 Voice recognition method based on mobile terminal and mobile terminal
CN102624980A (en) * 2012-03-06 2012-08-01 惠州Tcl移动通信有限公司 Method for detecting abrupt environment and prompting based on earphone of mobile phone and mobile phone

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6782106B1 (en) * 1999-11-12 2004-08-24 Samsung Electronics Co., Ltd. Apparatus and method for transmitting sound
JP2009300915A (en) * 2008-06-17 2009-12-24 Fujitsu Ltd Mobile terminal with music playback function
CN101790000A (en) * 2010-02-20 2010-07-28 华为终端有限公司 Environmental sound reminding method and mobile terminal
CN101840700A (en) * 2010-04-28 2010-09-22 宇龙计算机通信科技(深圳)有限公司 Voice recognition method based on mobile terminal and mobile terminal
CN102624980A (en) * 2012-03-06 2012-08-01 惠州Tcl移动通信有限公司 Method for detecting abrupt environment and prompting based on earphone of mobile phone and mobile phone

Also Published As

Publication number Publication date
CN103414982A (en) 2013-11-27

Similar Documents

Publication Publication Date Title
CN103414982B (en) A kind of method and apparatus that sound is provided
CN106791894B (en) A kind of method and apparatus playing live video
CN103473051B (en) A kind of method and apparatus for saving power consumption of terminal
CN104427083B (en) The method and apparatus for adjusting volume
CN106454404A (en) Live video playing method, device and system
CN106851654A (en) Pseudo-base station recognition methods, device and terminal
CN107071779A (en) Pseudo-base station recognition methods, device and terminal
CN106331359B (en) A kind of speech signal collection method, device and terminal
CN105788612A (en) Method and device for testing tone quality
CN108874357A (en) A kind of reminding method and mobile terminal
CN104158506A (en) Method, device and terminal for adjusting volume
CN106502906A (en) A kind of method and apparatus of test application program
CN105208056A (en) Information exchange method and terminal
CN103491240B (en) A kind of alarm clock ringing method, device and mobile terminal
CN103391473A (en) Methods and devices for providing and acquiring audios and videos
CN105007543A (en) Intercommunication method, apparatus, device and system
CN103533127A (en) Call control method of terminal and terminal
CN103744574A (en) Method and device for turning off alarm clock of mobile terminal and mobile terminal
CN106303605A (en) A kind of methods, devices and systems sent a notification message
CN107977261A (en) Method, equipment, mobile terminal and the computer-readable storage medium of limiting process
CN107493396A (en) Button screen method, terminal and computer-readable recording medium
CN107155155A (en) Audio-frequency inputting method, device, mobile terminal and computer-readable recording medium
CN106371797A (en) Method and device for configuring sound effect
CN106210838A (en) Caption presentation method and device
CN106228994B (en) A kind of method and apparatus detecting sound quality

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C53 Correction of patent for invention or patent application
CB02 Change of applicant information

Address after: 100085 Beijing city Haidian District Qinghe Street No. 68 Huarun colorful city shopping center two floor 13

Applicant after: Xiaomi Technology Co., Ltd.

Address before: 100102 Beijing Wangjing West Road, a volume of stone world building, A, block, floor 12

Applicant before: Beijing Xiaomi Technology Co., Ltd.

C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant