CN106375554B - Audio output control method and mobile terminal - Google Patents

Audio output control method and mobile terminal Download PDF

Info

Publication number
CN106375554B
CN106375554B CN201610723390.4A CN201610723390A CN106375554B CN 106375554 B CN106375554 B CN 106375554B CN 201610723390 A CN201610723390 A CN 201610723390A CN 106375554 B CN106375554 B CN 106375554B
Authority
CN
China
Prior art keywords
earphone
audio signal
mobile terminal
motion state
acquiring
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
CN201610723390.4A
Other languages
Chinese (zh)
Other versions
CN106375554A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201610723390.4A priority Critical patent/CN106375554B/en
Publication of CN106375554A publication Critical patent/CN106375554A/en
Application granted granted Critical
Publication of CN106375554B publication Critical patent/CN106375554B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • H04M1/6033Substation equipment, e.g. for use by subscribers including speech amplifiers for providing handsfree use or a loudspeaker mode in telephone sets
    • H04M1/6041Portable telephones adapted for handsfree use
    • H04M1/6058Portable telephones adapted for handsfree use involving the use of a headset accessory device connected to the portable telephone
    • H04M1/6066Portable telephones adapted for handsfree use involving the use of a headset accessory device connected to the portable telephone including a wireless connection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72442User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72457User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location

Abstract

The invention provides a control method of audio output and a mobile terminal, wherein the control method of audio output is applied to the mobile terminal and comprises the following steps: when detecting that the mobile terminal transmits a first audio signal through the earphone, acquiring motion state information of the mobile terminal; when the mobile terminal is determined to be in the motion state according to the motion state information, collecting an environment audio signal; and if the volume of the environment audio signal is greater than the preset value, outputting the environment audio signal through the earphone. According to the invention, when the mobile terminal is detected to transmit the first audio signal through the earphone and the mobile terminal is in a motion state, the environmental audio signal with the volume larger than the preset value is output through the earphone, so that when a user uses the earphone in the motion state, the user can timely and accurately acquire the environmental information of the user, the user is prevented from missing important information, the user safety can be improved, and the user experience is improved.

Description

Audio output control method and mobile terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method for controlling audio output and a mobile terminal.
Background
With the popularization of mobile terminals, in order to meet diversified use requirements of users, the types and functions of application programs on the mobile terminals are more and more abundant.
Nowadays, the earphone is worn by the visible user on the road and audio and video playing or audio and video conversation and the like are carried out through the mobile terminal, external environment noise can be isolated through the earphone, the listening quality can be improved, and the user use experience is improved. Meanwhile, due to the shielding effect of the earphone on external environment noise, a user cannot timely and accurately know the environmental information of the user when using the earphone to perform audio/video or voice sound transmission, and further misses important information or even causes danger.
Disclosure of Invention
The technical problem to be solved by the invention is to provide an audio output control method and a mobile terminal, which can solve the problem that a user cannot timely and accurately know the environmental information of the user when using an earphone.
In a first aspect, an embodiment of the present invention provides a method for controlling audio output, where the method is applied to a mobile terminal, and the method includes:
when detecting that the mobile terminal transmits a first audio signal through the earphone, acquiring motion state information of the mobile terminal;
when the mobile terminal is determined to be in the motion state according to the motion state information, collecting an environment audio signal;
and if the volume of the environment audio signal is greater than the preset value, outputting the environment audio signal through the earphone.
In a second aspect, an embodiment of the present invention provides a mobile terminal, where the mobile terminal includes:
the mobile terminal comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring motion state information of the mobile terminal when detecting that the mobile terminal transmits a first audio signal through an earphone;
the acquisition module is used for acquiring the environmental audio signal when the mobile terminal is determined to be in the motion state according to the motion state information;
and the output module is used for outputting the environment audio signal through the earphone if the volume of the environment audio signal is greater than a preset value.
According to the control method for audio output and the mobile terminal provided by the embodiment of the invention, when the mobile terminal is detected to transmit the first audio signal through the earphone and the mobile terminal is in the motion state, the environmental audio signal with the volume larger than the preset value is output through the earphone, so that when a user uses the earphone in the motion state, the user can timely and accurately know the self-located environmental information, the user is prevented from missing important information, the user safety can be improved, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 shows a flowchart of a method for controlling audio output according to a first embodiment of the present invention;
FIG. 2 shows a flowchart of step 101 provided by a first embodiment of the present invention;
FIG. 3 is a flow chart illustrating a method for controlling audio output according to a second embodiment of the present invention;
fig. 4 is a flowchart illustrating a method for controlling audio output according to a third embodiment of the present invention;
fig. 5 is a block diagram of a mobile terminal according to a fourth embodiment of the present invention;
fig. 6 is another block diagram of a mobile terminal according to a fourth embodiment of the present invention;
fig. 7 is a block diagram of a mobile terminal according to a fifth embodiment of the present invention;
fig. 8 is a block diagram of a mobile terminal according to a sixth embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantages of the present invention more apparent, the following detailed description is given with reference to the accompanying drawings and specific embodiments.
First embodiment
Referring to fig. 1, which is a flowchart illustrating a method for controlling audio output according to a first embodiment of the present invention, the first embodiment of the present invention provides a method for controlling audio output, which is applied to a mobile terminal, and the method may include the following steps:
step 101, when it is detected that the mobile terminal transmits the first audio signal through the earphone, acquiring motion state information of the mobile terminal.
In this step, when it is detected that the mobile terminal is currently transmitting a first audio signal through the earphone, where the first audio signal is a certain audio signal transmitted by the mobile terminal through the earphone, such as music, video sound, call voice, and the like, at this time, it is determined that the user is using the earphone to transmit the audio signal, and then the motion state information of the mobile terminal is obtained. In some optional embodiments, the motion state information of the mobile terminal may include positioning location information, and the step of acquiring the motion state information of the mobile terminal in step 101 may include: acquiring positioning position information of a mobile terminal; or, in some optional embodiments, the motion state information of the mobile terminal may include step count statistical information, and the step of acquiring the motion state information of the mobile terminal in step 101 may include: and acquiring the step number statistical information of the mobile terminal in the second preset time. Of course, the motion state information of the mobile terminal may include both the positioning location information and the step count statistical information, which is not limited herein.
And 102, acquiring an environment audio signal when the mobile terminal is determined to be in the motion state according to the motion state information.
In this step, the ambient audio signal refers to an audio signal of an external (ambient) environment in which the mobile terminal is located. Here, when it is determined that the mobile terminal is in a motion state, an ambient audio signal is collected in preparation for a subsequent step. Wherein the ambient audio signal may be collected by a microphone on the mobile terminal.
In addition, after the mobile terminal is determined to be in the motion state, whether the user carrying the mobile terminal is in the motion state or not can be further determined, and then the environment audio signal is collected. For example, when the position change range of the positioning position information is within the first predetermined range within the first predetermined time, that is, when the mobile terminal is determined to be in a motion state and the user carrying the mobile terminal is in the motion state, the environment audio signal is collected. For another example, when the step number statistical information is greater than the preset step number, that is, when it is determined that the mobile terminal is in a motion state and the user carrying the mobile terminal is in the motion state, the ambient audio signal is collected.
And 103, outputting the environment audio signal through the earphone if the volume of the environment audio signal is greater than a preset value.
In the step, the preset value is set for screening the currently collected environmental audio signals so as to judge whether the environmental audio signals need to be output through an earphone to prompt a user; the preset value may be set through an actual usage scenario, a common sense, or an empirical value, and may be a value with decibels as a measurement unit, for example, 90 decibels, which is not limited in this embodiment. And when the environment audio signal is greater than the preset value, judging that the collected environment audio signal needs to be output through an earphone, and outputting the environment audio signal through the earphone so as to enable the user ear to receive the environment audio signal. In this step, the audio signals with the volume less than the preset value in the environmental audio signals can be further filtered, and only the audio signals with the volume greater than the preset value are output, that is, the audio signals with the volume greater than the preset value in the environmental audio signals are output through the earphone.
In an optional embodiment, to prevent the ambient audio signal larger than the preset value from being directly output through the earphone to damage the ear of the user, in step 103, the step of outputting the ambient audio signal through the earphone may include:
carrying out energy reduction processing on the environment audio signal to obtain a second audio signal; the second audio signal is output through the headphones.
Here, the equal-proportion energy reduction processing is performed on the environment audio signal, the maximum value of the volume of the environment audio signal is kept in a preset decibel value range, for example, 60 to 70 decibels, the second audio signal is obtained through processing, so that the volume of the environment audio signal is kept at a proper decibel value of the ear of the user, and then the second audio signal obtained through processing is output through the earphone, so that the output environment audio signal is ensured not to damage the ear of the user. In addition, as a variation of the present embodiment, the maximum value of the volume of the ambient audio signal may be set to the same decibel value as the volume of the first audio signal.
In an alternative embodiment, the step 103 of outputting the ambient audio signal through the earphone may include:
mixing the environment audio signal with the first audio signal to obtain a third audio signal, and outputting the third audio signal through an earphone; alternatively, transmission of the first audio signal through the headphone is suspended, and the ambient audio signal is output through the headphone.
Here, the ambient audio signal may be mixedly inserted into the first audio signal to obtain a third audio signal, and then the third audio signal is output through the earphone to prompt the user; alternatively, the first audio signal is paused and the ambient audio signal is output separately through headphones to alert the user. In addition, in a variation of the present embodiment, the environmental audio signal may be replaced with a preset prompting audio, such as an alarm audio or a voice prompting audio like "please note".
In addition, in actual use, the two earphones of the earphone may not be completely worn or worn on the ears of the user, at this time, although the mobile terminal outputs the audio signal through the earphone, the external environment noise is not shielded, and at this time, the user may directly obtain the external environment noise through the ears. Based on the consideration of the above situation, referring to fig. 2, a flowchart of step 101 provided by the first embodiment of the present invention is shown on the basis of the above method, and in the method provided by the embodiment of the present invention, step 101 may include the following steps:
step 1011, when the mobile terminal transmits the first audio signal through the earphone, determining whether the first earphone and the second earphone of the earphone are both in a wearing state.
In this step, when the earphone is connected with the mobile terminal, for example, an earphone plug of a wired earphone is inserted into an earphone jack configured on the mobile terminal or a bluetooth device on the mobile terminal is in communication connection with a wireless earphone, and the mobile terminal transmits a first audio signal through the earphone, the wearing states of a first earphone and a second earphone of the earphone are judged, so as to further judge whether the motion state information of the mobile terminal needs to be acquired, and prepare for the subsequent steps.
And 1012, when the first earphone and the second earphone are both in the wearing state, acquiring the motion state information of the mobile terminal.
In the step, when two earphones of the earphone are judged to be in a wearing state, the motion state information of the mobile terminal is obtained; when at least one (one or two) of the two earphones of the earphone is not in the wearing state, the method flow is ended.
After the earphone is connected with the mobile terminal, the earphone power amplification unit of the mobile terminal can respectively supply power to the sound channels on each earphone of the earphone so as to drive the earphone, and the mobile terminal can transmit a first audio signal through the earphone. In the research, compared with the method that the earphone is worn by the ear of a user, when the earphone is worn, the pressure of a sound channel of the worn earphone is higher, the same voltage driving signal is output by the earphone power amplification unit, the vibration amplitude of the sound channel is smaller, the resistance value is smaller, and therefore the driving current of the sound channel is larger. Based on the principle, the driving current value of the sound channel of each earphone of the earphone can be obtained in real time or at regular intervals, so as to judge whether the ear of the user wears the earphone or not according to the driving current value.
In an alternative embodiment, the step 1011 of determining whether the first earpiece and the second earpiece of the headset are both in a wearing state may include:
acquiring driving current values of a first earphone sound channel and a second earphone sound channel, wherein the first earphone sound channel is an electric signal transmission channel correspondingly connected with a first earphone, and the second earphone sound channel is an electric signal transmission channel correspondingly connected with a second earphone;
when the driving current value of the sound channel of the first earphone is larger than a first preset current threshold value, judging that the first earphone is in a wearing state;
and when the driving current value of the second earphone sound channel is larger than a second preset current threshold value, judging that the second earphone is in a wearing state.
The method comprises the steps of acquiring driving current values of a first earphone channel and a second earphone channel respectively, comparing the acquired driving current value of the first earphone channel with a first preset current threshold value under a voltage driving signal corresponding to the first earphone channel, comparing the acquired driving current value of the second earphone channel with a second preset current threshold value under a voltage driving signal corresponding to the second earphone channel, and judging that a receiver corresponding to the earphone channel is in a wearing state when the driving current value of one earphone channel is larger than the corresponding preset current threshold value. The driving current values of the first headphone channel and the second headphone channel can be obtained in a real-time obtaining mode or a preset time interval obtaining mode.
According to the audio output control method provided by the first embodiment of the invention, when it is detected that the mobile terminal transmits the first audio signal through the earphone and the mobile terminal is in a motion state, the environmental audio signal with the volume greater than the preset value is output through the earphone, so that a user can timely and accurately acquire the environmental information of the user when using the earphone in the motion state, thereby avoiding missing important information, improving the safety of the user and improving the user experience.
Second embodiment
Referring to fig. 3, a flowchart of a method for controlling audio output according to a second embodiment of the present invention is shown, where the second embodiment of the present invention provides a method for controlling audio output, which is applied to a mobile terminal, and the method may include the following steps:
step 301, when the mobile terminal transmits the first audio signal through the earphone, determining whether the first earphone and the second earphone of the earphone are both in a wearing state.
In this step, in actual use, the two earpieces of the headset may not be worn completely or not worn on the ears of the user, and at this time, although the mobile terminal outputs the audio signal through the headset, the external environment noise is not shielded, and at this time, the user may directly obtain the external environment noise through the ears. Therefore, when the earphone is connected with the mobile terminal, for example, an earphone plug of a wired earphone is inserted into an earphone jack configured on the mobile terminal or a bluetooth device on the mobile terminal is in communication connection with a wireless earphone, and the mobile terminal transmits a first audio signal through the earphone, the wearing states of the first earphone and the second earphone of the earphone are judged.
Step 302, when the first earphone and the second earphone are both in a wearing state, obtaining the positioning position information of the mobile terminal.
In the step, when two earphones of the earphone are judged to be in a wearing state, positioning position information of the mobile terminal is obtained; and when at least one (one or two) of the two earphones of the earphone is not in the wearing state, ending the method flow. The positioning location information of the mobile terminal may be obtained by detecting a location positioning module configured on the mobile terminal, where the location positioning module is a device configured on the mobile terminal for obtaining location information (longitude and latitude coordinates) of a user of the mobile terminal, and the location positioning module is generally a standard device on the mobile terminal, such as a Global Positioning System (GPS). In addition, the method for detecting the positioning location information according to the location positioning module can be implemented according to the prior art, and is not limited herein.
After the earphone is connected with the mobile terminal, the earphone power amplification unit of the mobile terminal can respectively supply power to the sound channels on each earphone of the earphone so as to drive the earphone, and the mobile terminal can transmit a first audio signal through the earphone. In the research, compared with the method that the earphone is worn by the ear of a user, when the earphone is worn, the pressure of a sound channel of the worn earphone is higher, the same voltage driving signal is output by the earphone power amplification unit, the vibration amplitude of the sound channel is smaller, the resistance value is smaller, and therefore the driving current of the sound channel is larger. Based on the principle, the driving current value of the sound channel of each earphone of the earphone can be obtained in real time or at regular intervals, so as to judge whether the ear of the user wears the earphone or not according to the driving current value.
In an optional implementation manner, in step 301, the step of determining whether the first earpiece and the second earpiece of the headset are both in a wearing state may include:
acquiring driving current values of a first earphone sound channel and a second earphone sound channel, wherein the first earphone sound channel is an electric signal transmission channel correspondingly connected with a first earphone, and the second earphone sound channel is an electric signal transmission channel correspondingly connected with a second earphone; when the driving current value of the sound channel of the first earphone is larger than a first preset current threshold value, judging that the first earphone is in a wearing state; and when the driving current value of the second earphone sound channel is larger than a second preset current threshold value, judging that the second earphone is in a wearing state.
The method comprises the steps of acquiring driving current values of a first earphone channel and a second earphone channel respectively, comparing the acquired driving current value of the first earphone channel with a first preset current threshold value under a voltage driving signal corresponding to the first earphone channel, comparing the acquired driving current value of the second earphone channel with a second preset current threshold value under a voltage driving signal corresponding to the second earphone channel, and judging that a receiver corresponding to the earphone channel is in a wearing state when the driving current value of one earphone channel is larger than the corresponding preset current threshold value. The driving current values of the first headphone channel and the second headphone channel can be obtained in a real-time obtaining mode or a preset time interval obtaining mode.
Step 303, when the position change range of the positioning position information is within a first preset range within a first preset time, acquiring an environment audio signal.
In the step, a position change range of the positioning position information within a first predetermined time is obtained according to the obtained positioning position information, and whether the position change range is within a first preset range is judged, wherein the first preset range is set for judging whether the position change range of the obtained positioning position information within the first predetermined time belongs to a position change range of normal movement (such as walking or running), so that the situation that a user carrying the mobile terminal does not move due to the movement of the mobile terminal and the situation that the user takes a transportation means such as a subway are excluded. The first preset range may be set by an actual use scenario, common sense, or empirical value, and the embodiment is not limited.
In addition, in this step, the ambient audio signal refers to an audio signal of an external (surrounding) environment in which the mobile terminal is located. Here, when it is determined that the user carrying the mobile terminal is in a motion state, an ambient audio signal is collected in preparation for a subsequent step. Wherein the ambient audio signal may be collected by a microphone on the mobile terminal.
And step 304, if the volume of the environment audio signal is greater than a preset value, outputting the environment audio signal through an earphone.
In the step, the preset value is set for screening the currently collected environmental audio signals so as to judge whether the environmental audio signals need to be output through an earphone to prompt a user; the preset value may be set through an actual usage scenario, a common sense, or an empirical value, and may be a value with decibels as a measurement unit, for example, 90 decibels, which is not limited in this embodiment. And when the environment audio signal is greater than the preset value, judging that the collected environment audio signal needs to be output through an earphone, and outputting the environment audio signal through the earphone so as to enable the user ear to receive the environment audio signal. In this step, the audio signals with the volume less than the preset value in the environmental audio signals can be further filtered, and only the audio signals with the volume greater than the preset value are output, that is, the audio signals with the volume greater than the preset value in the environmental audio signals are output through the earphone.
In an optional embodiment, to prevent the ambient audio signal larger than the preset value from being directly output through the earphone to damage the ear of the user, in step 304, the step of outputting the ambient audio signal through the earphone may include: carrying out energy reduction processing on the environment audio signal to obtain a second audio signal; the second audio signal is output through the headphones.
Here, the equal-proportion energy reduction processing is performed on the environment audio signal, the maximum value of the volume of the environment audio signal is kept in a preset decibel value range, for example, 60 to 70 decibels, the second audio signal is obtained through processing, so that the volume of the environment audio signal is kept at a proper decibel value of the ear of the user, and then the second audio signal obtained through processing is output through the earphone, so that the output environment audio signal cannot damage the ear of the user. In addition, as a variation of the present embodiment, the maximum value of the volume of the ambient audio signal may be set to the same decibel value as the volume of the first audio signal.
In an alternative embodiment, the step of outputting the ambient audio signal through the earphone in step 304 may include: mixing the environment audio signal with the first audio signal to obtain a third audio signal, and outputting the third audio signal through an earphone; alternatively, transmission of the first audio signal through the headphone is suspended, and the ambient audio signal is output through the headphone.
Here, the ambient audio signal may be mixedly inserted into the first audio signal to obtain a third audio signal, and then the third audio signal is output through the earphone to prompt the user; alternatively, the first audio signal is paused and the ambient audio signal is output separately through headphones to alert the user. In addition, in a variation of the present embodiment, the environmental audio signal may be replaced with a preset prompting audio, such as an alarm audio or a voice prompting audio like "please note".
In the audio output control method provided by the second embodiment of the present invention, when the mobile terminal transmits the first audio signal through the earphone, the first earphone and the second earphone of the earphone are both in a wearing state, and the position variation range of the positioning position information of the mobile terminal is within the first preset range within the first preset time, the collected environmental audio signal with the volume greater than the preset value is output through the earphone, so that when the user is in a moving state and both ears wear the earphone to use the earphone, the environmental information where the user is located can be timely and accurately known, thereby avoiding missing important information, improving user safety, and improving user experience.
Third embodiment
Referring to fig. 4, a flowchart of a method for controlling audio output according to a third embodiment of the present invention is shown, where the third embodiment of the present invention provides a method for controlling audio output, which is applied to a mobile terminal, and the method may include the following steps:
step 401, when the mobile terminal transmits the first audio signal through the earphone, determining whether the first earphone and the second earphone of the earphone are both in a wearing state.
In this step, in actual use, the two earpieces of the headset may not be worn completely or not worn on the ears of the user, and at this time, although the mobile terminal outputs the audio signal through the headset, the external environment noise is not shielded, and at this time, the user may directly obtain the external environment noise through the ears. Therefore, when the earphone is connected with the mobile terminal, for example, an earphone plug of a wired earphone is inserted into an earphone jack configured on the mobile terminal or a bluetooth device on the mobile terminal is in communication connection with a wireless earphone, and the mobile terminal transmits a first audio signal through the earphone, the wearing states of the first earphone and the second earphone of the earphone are judged.
And 402, when the first receiver and the second receiver are both in a wearing state, acquiring step number statistical information of the mobile terminal in second preset time.
In the step, when two receivers of the earphone are both in a wearing state, step number statistical information of the mobile terminal in second preset time is obtained; and when at least one (one or two) of the two earphones of the earphone is not in the wearing state, ending the method flow. The step counting module is a device configured on the mobile terminal and used for acquiring the walking or running step count of a user of the mobile terminal, the step counting module generally measures the motion acceleration of the user carrying the mobile terminal through an acceleration sensor and/or a vibration sensor so as to calculate the step count statistical information within a certain time, and the method for detecting the step count statistical information by the step counting module can be obtained according to the prior art, and is not limited herein.
After the earphone is connected with the mobile terminal, the earphone power amplification unit of the mobile terminal can respectively supply power to the sound channels on each earphone of the earphone so as to drive the earphone, and the mobile terminal can transmit a first audio signal through the earphone. In the research, compared with the method that the earphone is worn by the ear of a user, when the earphone is worn, the pressure of a sound channel of the worn earphone is higher, the same voltage driving signal is output by the earphone power amplification unit, the vibration amplitude of the sound channel is smaller, the resistance value is smaller, and therefore the driving current of the sound channel is larger. Based on the principle, the driving current value of the sound channel of each earphone of the earphone can be obtained in real time or at regular intervals, so as to judge whether the ear of the user wears the earphone or not according to the driving current value.
In an optional embodiment, in step 401, the step of determining whether the first earpiece and the second earpiece of the headset are both in a wearing state may include:
acquiring driving current values of a first earphone sound channel and a second earphone sound channel, wherein the first earphone sound channel is an electric signal transmission channel correspondingly connected with a first earphone, and the second earphone sound channel is an electric signal transmission channel correspondingly connected with a second earphone; when the driving current value of the sound channel of the first earphone is larger than a first preset current threshold value, judging that the first earphone is in a wearing state; and when the driving current value of the second earphone sound channel is larger than a second preset current threshold value, judging that the second earphone is in a wearing state.
The method comprises the steps of acquiring driving current values of a first earphone channel and a second earphone channel respectively, comparing the acquired driving current value of the first earphone channel with a first preset current threshold value under a voltage driving signal corresponding to the first earphone channel, comparing the acquired driving current value of the second earphone channel with a second preset current threshold value under a voltage driving signal corresponding to the second earphone channel, and judging that a receiver corresponding to the earphone channel is in a wearing state when the driving current value of one earphone channel is larger than the corresponding preset current threshold value. The driving current values of the first headphone channel and the second headphone channel can be obtained in a real-time obtaining mode or a preset time interval obtaining mode.
And step 403, collecting the environmental audio signal when the step number statistical information is greater than the preset step number.
In this step, the statistical information of the number of steps in the second predetermined time is compared with a preset number of steps, and the preset number of steps is set to determine whether the statistical information of the number of steps in the second predetermined time satisfies a normal motion state (for example, walking or running), so as to eliminate a situation that the user carrying the mobile terminal does not move due to the movement of the mobile terminal and a situation that the user takes a vehicle such as a subway. The preset number of steps may be set by actual use scenarios, common sense, or empirical values, and this embodiment is not limited.
In addition, in this step, the ambient audio signal refers to an audio signal of an external (surrounding) environment in which the mobile terminal is located. Here, when it is determined that the user carrying the mobile terminal is in a motion state, an ambient audio signal is collected in preparation for a subsequent step. Wherein the ambient audio signal may be collected by a microphone on the mobile terminal.
In step 404, if the volume of the environmental audio signal is greater than the preset value, the environmental audio signal is output through the earphone.
In the step, the preset value is set for screening the currently collected environmental audio signals so as to judge whether the environmental audio signals need to be output through an earphone to prompt a user; the preset value may be set through an actual usage scenario, a common sense, or an empirical value, and may be a value with decibels as a measurement unit, for example, 90 decibels, which is not limited in this embodiment. And when the environment audio signal is greater than the preset value, judging that the collected environment audio signal needs to be output through an earphone, and outputting the environment audio signal through the earphone so as to enable the user ear to receive the environment audio signal. In this step, the audio signals with the volume less than the preset value in the environmental audio signals can be further filtered, and only the audio signals with the volume greater than the preset value are output, that is, the audio signals with the volume greater than the preset value in the environmental audio signals are output through the earphone.
In an optional embodiment, to prevent the ambient audio signal larger than the preset value from being directly output through the earphone to damage the ear of the user, in step 404, the step of outputting the ambient audio signal through the earphone may include: carrying out energy reduction processing on the environment audio signal to obtain a second audio signal; the second audio signal is output through the headphones.
Here, the equal-proportion energy reduction processing is performed on the environment audio signal, the maximum value of the volume of the environment audio signal is kept in a preset decibel value range, for example, 60 to 70 decibels, so that the second audio signal is obtained, the volume of the environment audio signal is kept at a proper decibel value of the ear of the user, and then the second audio signal is output through the earphone, so that the output environment audio signal is ensured not to damage the ear of the user. In addition, as a variation of the present embodiment, the maximum value of the volume of the ambient audio signal may be set to the same decibel value as the volume of the first audio signal.
In an alternative embodiment, the step of outputting the ambient audio signal through the earphone in step 404 may include: mixing the environment audio signal with the first audio signal to obtain a third audio signal, and outputting the third audio signal through an earphone; alternatively, transmission of the first audio signal through the headphone is suspended, and the ambient audio signal is output through the headphone.
Here, the ambient audio signal may be mixedly inserted into the first audio signal to obtain a third audio signal, and then the third audio signal is output through the earphone to prompt the user; alternatively, the first audio signal is paused and the ambient audio signal is output separately through headphones to alert the user. In addition, in a variation of the present embodiment, the environmental audio signal may be replaced with a preset prompting audio, such as an alarm audio or a voice prompting audio like "please note".
In the audio output control method provided by the third embodiment of the present invention, when the mobile terminal transmits the first audio signal through the earphone, the first earphone and the second earphone of the earphone are both in a wearing state, and the step count statistical information of the mobile terminal in the second predetermined time is greater than the preset step count, the collected environmental audio signal with the volume greater than the preset value is output through the earphone, so that when the user is in a moving state and both ears wear the earphones to use the earphone, the environmental information of the user can be timely and accurately obtained, missing of important information is avoided, the safety of the user can be improved, and the user experience is improved.
Fourth embodiment
Referring to fig. 5, which is a schematic structural diagram illustrating a mobile terminal according to a fourth embodiment of the present invention, the fourth embodiment of the present invention provides a mobile terminal 500, where the mobile terminal 500 may include: an acquisition module 510, an acquisition module 520, and an output module 530.
An obtaining module 510, configured to obtain motion state information of the mobile terminal when it is detected that the mobile terminal transmits the first audio signal through the earphone;
the acquisition module 520 is configured to acquire an environmental audio signal when the mobile terminal is determined to be in the motion state according to the motion state information;
the output module 530 is configured to output the environmental audio signal through the earphone if the volume of the environmental audio signal is greater than a preset value.
In fig. 5, referring to fig. 6, a mobile terminal 500 according to a fourth embodiment of the present invention, the obtaining module 510 may include: a judgment unit 511 and a first determination unit 512.
The determining unit 511 is configured to determine whether a first receiver and a second receiver of the headset are both in a wearing state when the mobile terminal transmits the first audio signal through the headset;
the first determining unit 512 is configured to obtain motion state information of the mobile terminal when it is determined that the first earpiece and the second earpiece are both in a wearing state.
In some optional embodiments, the determining unit 511 may include: a first acquisition subunit 5111, a first judgment subunit 5112, and a second judgment subunit 5113.
A first obtaining subunit 5111, configured to obtain driving current values of a first headphone channel and a second headphone channel in a first predetermined time, where the first headphone channel is a channel on a first headphone for transmitting an audio signal, and the second headphone channel is a channel on a second headphone for transmitting an audio signal;
a first judging subunit 5112, configured to judge that the first earpiece is in a wearing state when the driving current value of the first earpiece channel is greater than a first preset current threshold;
the second determining subunit 5113 is configured to determine that the second earpiece is in a wearing state when the driving current value of the second earpiece channel is greater than a second preset current threshold.
In some optional embodiments, the obtaining module 510 may include: a first acquisition unit 513; the acquisition module 520 may include: a first acquisition unit 521.
A first obtaining unit 513, configured to obtain positioning location information of the mobile terminal;
the first collecting unit 521 is configured to collect the environmental audio signal when the position variation range of the positioning position information is within a first preset range within a first preset time.
In some optional embodiments, the obtaining module 510 may include: a second acquisition unit 514; the acquisition module 520 may include: a second acquisition unit 522.
A second obtaining unit 514, configured to obtain step count statistical information of the mobile terminal within a second predetermined time;
and a second collecting unit 522, configured to collect the environmental audio signal when the step count statistical information is greater than the preset step count.
In some alternative embodiments, the output module 530 may include: a processing unit 531 and a first output unit 532.
The processing unit 531 is configured to perform energy reduction processing on the environment audio signal to obtain a second audio signal;
a first output unit 532 for outputting the second audio signal through the earphone.
In some alternative embodiments, the output module 530 may include: a second output unit 533 and a third output unit 534.
A second output unit 533, configured to mix the environmental audio signal with the first audio signal to obtain a third audio signal, and output the third audio signal through an earphone; alternatively, the first and second electrodes may be,
and a third output unit 534 for suspending transmission of the first audio signal through the headphone and outputting the ambient audio signal through the headphone.
The mobile terminal provided by the fourth embodiment of the present invention and the control method for audio output provided by the embodiments of the foregoing description method belong to the same concept, and the specific implementation process thereof is described in detail in the embodiments of the foregoing description method, and is not described herein again in order to avoid repetition.
The fourth embodiment of the present invention provides a mobile terminal, and when it is detected that the mobile terminal transmits a first audio signal through an earphone and the mobile terminal is in a motion state, an environmental audio signal with a volume greater than a preset value is output through the earphone, so that a user can timely and accurately obtain the environmental information of the user when using the earphone in the motion state, thereby avoiding missing important information, improving user safety, and improving user experience.
Fifth embodiment
Fig. 7 is a block diagram of a mobile terminal according to a fifth embodiment of the present invention. The mobile terminal 700 shown in fig. 7 includes: at least one processor 701, memory 702, at least one network interface 704, and other user interfaces 703. The various components in the mobile terminal 700 are coupled together by a bus system 705. It is understood that the bus system 705 is used to enable communications among the components. The bus system 705 includes a power bus, a control bus, and a status signal bus in addition to a data bus. But for clarity of illustration the various busses are labeled in figure 7 as the bus system 705.
The user interface 703 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, trackball, touch pad, or touch screen).
It is to be understood that the memory 702 in embodiments of the present invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of example, but not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data rate Synchronous Dynamic random access memory (ddr Data random SDRAM, ddr SDRAM), Enhanced Synchronous SDRAM (ESDRAM), synchlink DRAM (SLDRAM), and direct memory bus RAM (DRRAM). The memory 702 of the systems and methods described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 702 stores the following elements, executable modules or data structures, or a subset thereof, or an expanded set thereof: an operating system 7021 and application programs 7022.
The operating system 7021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks. The application programs 7022 include various application programs such as a display controller, a Media Player (Media Player), a Browser (Browser), and the like, and are used to implement various application services. Programs that implement methods in accordance with embodiments of the present invention can be included within application program 7022.
In the embodiment of the present invention, the processor 701 is configured to, by calling a program or an instruction stored in the memory 702, specifically, a program or an instruction stored in the application 7022, obtain motion state information of the mobile terminal when it is detected that the mobile terminal transmits the first audio signal through the headset; when the mobile terminal is determined to be in the motion state according to the motion state information, collecting an environment audio signal; and if the volume of the environment audio signal is greater than the preset value, outputting the environment audio signal through the earphone.
The method disclosed in the above embodiments of the present invention may be applied to the processor 701, or implemented by the processor 701. The processor 701 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be implemented by integrated logic circuits of hardware or instructions in the form of software in the processor 701. The Processor 701 may be a general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable Gate Array (FPGA) or other programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 702, and the processor 701 reads the information in the memory 702 and performs the steps of the above method in combination with the hardware thereof.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Optionally, the processor 701 is further configured to determine whether both a first earphone and a second earphone of the earphone are in a wearing state when the mobile terminal transmits the first audio signal through the earphone; and when the first receiver and the second receiver are both in a wearing state, acquiring the motion state information of the mobile terminal.
Optionally, the processor 701 is further configured to obtain a driving current value of a first headphone sound channel and a second headphone sound channel, where the first headphone sound channel is an electrical signal transmission channel correspondingly connected to the first headphone, and the second headphone sound channel is an electrical signal transmission channel correspondingly connected to the second headphone; when the driving current value of the sound channel of the first earphone is larger than a first preset current threshold value, judging that the first earphone is in a wearing state; and when the driving current value of the second earphone sound channel is larger than a second preset current threshold value, judging that the second earphone is in a wearing state.
Optionally, as another embodiment, the processor 701 is further configured to obtain location position information of the mobile terminal; and the audio acquisition module is also used for acquiring the environment audio signal when the position change range of the positioning position information is within a first preset range in first preset time.
The processor 701 is further configured to obtain step count statistical information of the mobile terminal within a second predetermined time; and the step number statistical information is used for acquiring the environmental audio signal when the step number statistical information is larger than the preset step number.
The processor 701 is further configured to perform energy reduction processing on the environmental audio signal to obtain a second audio signal; the second audio signal is output through the headphones.
The processor 701 is further configured to mix the environmental audio signal with the first audio signal to obtain a third audio signal, and output the third audio signal through the earphone; alternatively, transmission of the first audio signal through the headphone is suspended, and the ambient audio signal is output through the headphone.
The mobile terminal 700 can implement the processes implemented by the mobile terminal in the foregoing embodiments, and details are not repeated here to avoid repetition.
According to the mobile terminal provided by the embodiment of the invention, when the mobile terminal is detected to transmit the first audio signal through the earphone and the mobile terminal is in a motion state, the environmental audio signal with the volume larger than the preset value is output through the earphone, so that a user can timely and accurately know the environmental information of the user when using the earphone in the motion state, the missing of important information is avoided, the safety of the user can be improved, and the user experience is improved.
Sixth embodiment
Fig. 8 is a block diagram of a mobile terminal according to a sixth embodiment of the present invention. Specifically, the mobile terminal 800 in fig. 8 may be a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), or a vehicle-mounted computer.
The mobile terminal 800 in fig. 8 includes a Radio Frequency (RF) circuit 810, a memory 820, an input unit 830, a display unit 840, a processor 860, an audio circuit 870, a wifi (wireless fidelity) module 880, and a power supply 890.
The input unit 830 may be used, among other things, to receive numeric or character information input by a user and to generate signal inputs related to user settings and function control of the mobile terminal 800. Specifically, in the embodiment of the present invention, the input unit 830 may include a touch panel 831. The touch panel 831, also referred to as a touch screen, can collect touch operations performed by a user on or near the touch panel 831 (e.g., operations performed by the user on the touch panel 831 using a finger, a stylus, or any other suitable object or accessory), and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 831 may include two portions, i.e., a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 860, and can receive and execute commands sent by the processor 860. In addition, the touch panel 831 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 831, the input unit 830 may include other input devices 832, and the other input devices 832 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
Among other things, the display unit 840 may be used to display information input by the user or information provided to the user and various menu interfaces of the mobile terminal 800. The display unit 840 may include a display panel 841, and the display panel 841 may be alternatively configured in the form of an LCD or an Organic Light-Emitting Diode (OLED), or the like.
It should be noted that the touch panel 831 can overlay the display panel 841 to form a touch display screen, which, when it detects a touch operation thereon or nearby, is passed to the processor 860 to determine the type of touch event, and then the processor 860 provides a corresponding visual output on the touch display screen according to the type of touch event.
The touch display screen comprises an application program interface display area and a common control display area. The arrangement modes of the application program interface display area and the common control display area are not limited, and can be an arrangement mode which can distinguish two display areas, such as vertical arrangement, left-right arrangement and the like. The application interface display area may be used to display an interface of an application. Each interface may contain at least one interface element such as an icon and/or widget desktop control for an application. The application interface display area may also be an empty interface that does not contain any content. The common control display area is used for displaying controls with high utilization rate, such as application icons like setting buttons, interface numbers, scroll bars, phone book icons and the like.
The processor 860 is a control center of the mobile terminal 800, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 800 and processes data by operating or executing software programs and/or modules stored in the first memory 821 and calling data stored in the second memory 822, thereby integrally monitoring the mobile terminal 800. Optionally, processor 860 may include one or more processing units.
In the embodiment of the present invention, the processor 860 is configured to obtain motion state information of the mobile terminal when it is detected that the mobile terminal transmits the first audio signal through the headset by calling a software program and/or a module stored in the first memory 821 and/or data stored in the second memory 822; when the mobile terminal is determined to be in the motion state according to the motion state information, collecting an environment audio signal; and if the volume of the environment audio signal is greater than the preset value, outputting the environment audio signal through the earphone.
Optionally, the processor 860 is further configured to determine whether both the first earpiece and the second earpiece of the headset are in a wearing state when the mobile terminal transmits the first audio signal through the headset; and when the first receiver and the second receiver are both in a wearing state, acquiring the motion state information of the mobile terminal.
Optionally, the processor 860 is further configured to obtain a driving current value of a first headphone sound channel and a second headphone sound channel, where the first headphone sound channel is an electrical signal transmission channel correspondingly connected to the first headphone, and the second headphone sound channel is an electrical signal transmission channel correspondingly connected to the second headphone; when the driving current value of the sound channel of the first earphone is larger than a first preset current threshold value, judging that the first earphone is in a wearing state; and when the driving current value of the second earphone sound channel is larger than a second preset current threshold value, judging that the second earphone is in a wearing state.
Optionally, the processor 860 is further configured to obtain location information of the mobile terminal; and the audio acquisition module is also used for acquiring the environment audio signal when the position change range of the positioning position information is within a first preset range in first preset time.
Optionally, the processor 860 is further configured to obtain statistics of the number of steps of the mobile terminal in a second predetermined time; and the step number statistical information is used for acquiring the environmental audio signal when the step number statistical information is larger than the preset step number.
Optionally, the processor 860 is further configured to perform energy reduction processing on the environmental audio signal to obtain a second audio signal; the second audio signal is output through the headphones.
Optionally, the processor 860 is further configured to mix the ambient audio signal with the first audio signal to obtain a third audio signal, and output the third audio signal through the earphone; alternatively, transmission of the first audio signal through the headphone is suspended, and the ambient audio signal is output through the headphone.
Therefore, when the mobile terminal provided by the embodiment of the invention detects that the mobile terminal transmits the first audio signal through the earphone and the mobile terminal is in a motion state, the environment audio signal with the volume larger than the preset value is output through the earphone, so that a user can timely and accurately know the environment information of the user when using the earphone in the motion state, the missing of important information is avoided, the safety of the user can be improved, and the user experience is improved.
It is noted that, in the embodiments of the present invention, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A control method of audio output is applied to a mobile terminal, and is characterized by comprising the following steps:
when detecting that a mobile terminal transmits a first audio signal through an earphone, acquiring motion state information of the mobile terminal;
when the mobile terminal is determined to be in the motion state according to the motion state information, collecting an environment audio signal;
if the volume of the environment audio signal is larger than a preset value, outputting the environment audio signal through an earphone;
the step of acquiring the motion state information of the mobile terminal comprises:
acquiring positioning position information of the mobile terminal;
when the mobile terminal is determined to be in the motion state according to the motion state information, the step of collecting the environmental audio signal comprises the following steps:
when the position change range of the positioning position information is within a first preset range within first preset time, acquiring the environment audio signal
Or, the step of acquiring the motion state information of the mobile terminal includes:
acquiring step number statistical information of the mobile terminal in second preset time;
when the mobile terminal is determined to be in the motion state according to the motion state information, the step of collecting the environmental audio signal comprises the following steps:
and when the step number statistical information is larger than a preset step number, acquiring the environment audio signal.
2. The method according to claim 1, wherein the step of acquiring the motion state information of the mobile terminal when detecting that the mobile terminal transmits the first audio signal through the headset comprises:
when the mobile terminal transmits a first audio signal through the earphone, judging whether a first earphone and a second earphone of the earphone are both in a wearing state;
and when the first receiver and the second receiver are judged to be in a wearing state, acquiring the motion state information of the mobile terminal.
3. The method of claim 2, wherein the step of determining whether the first and second earpieces of the headset are both worn comprises:
acquiring driving current values of a first earphone sound channel and a second earphone sound channel, wherein the first earphone sound channel is an electric signal transmission channel correspondingly connected with the first earphone, and the second earphone sound channel is an electric signal transmission channel correspondingly connected with the second earphone;
when the driving current value of the first earphone sound channel is larger than a first preset current threshold value, judging that the first earphone is in a wearing state;
and when the driving current value of the second earphone sound channel is larger than a second preset current threshold value, judging that the second earphone is in a wearing state.
4. The method of claim 1, wherein the step of outputting the ambient audio signal through headphones comprises:
performing energy reduction processing on the environment audio signal to obtain a second audio signal;
outputting the second audio signal through the earphone.
5. The method of claim 1, wherein the step of outputting the ambient audio signal through headphones comprises:
mixing the environment audio signal with the first audio signal to obtain a third audio signal, and outputting the third audio signal through the earphone;
alternatively, the first and second electrodes may be,
and suspending the transmission of the first audio signal through the earphone, and outputting the environment audio signal through the earphone.
6. A mobile terminal, characterized in that the mobile terminal comprises:
the mobile terminal comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring motion state information of the mobile terminal when detecting that the mobile terminal transmits a first audio signal through an earphone;
the acquisition module is used for acquiring an environmental audio signal when the mobile terminal is determined to be in the motion state according to the motion state information;
the output module is used for outputting the environment audio signal through an earphone if the volume of the environment audio signal is larger than a preset value;
the acquisition module includes:
a first obtaining unit, configured to obtain location position information of the mobile terminal;
the acquisition module comprises:
the first acquisition unit is used for acquiring the environment audio signal when the position change range of the positioning position information is within a first preset range within first preset time;
or, the obtaining module comprises:
the second acquisition unit is used for acquiring the step number statistical information of the mobile terminal in a second preset time;
the acquisition module comprises:
and the second acquisition unit is used for acquiring the environment audio signal when the step number statistical information is greater than the preset step number.
7. The mobile terminal of claim 6, wherein the obtaining module comprises:
the mobile terminal comprises a judging unit, a judging unit and a judging unit, wherein the judging unit is used for judging whether a first receiver and a second receiver of the earphone are both in a wearing state when the mobile terminal transmits a first audio signal through the earphone;
and the first determining unit is used for acquiring the motion state information of the mobile terminal when the first receiver and the second receiver are both in the wearing state.
8. The mobile terminal according to claim 7, wherein the judging unit comprises:
the first obtaining subunit is configured to obtain a driving current value of a first earphone sound channel and a second earphone sound channel, where the first earphone sound channel is an electrical signal transmission channel correspondingly connected to the first earphone, and the second earphone sound channel is an electrical signal transmission channel correspondingly connected to the second earphone;
the first judgment subunit is configured to judge that the first earpiece is in a wearing state when the driving current value of the first earpiece channel is greater than a first preset current threshold;
and the second judging subunit is configured to judge that the second earpiece is in a wearing state when the driving current value of the second earpiece channel is greater than a second preset current threshold.
9. The mobile terminal of claim 6, wherein the output module comprises:
the processing unit is used for carrying out energy reduction processing on the environment audio signal to obtain a second audio signal;
a first output unit for outputting the second audio signal through the earphone.
10. The mobile terminal of claim 6, wherein the output module comprises:
the second output unit is used for mixing the environment audio signal with the first audio signal to obtain a third audio signal, and outputting the third audio signal through the earphone; alternatively, the first and second electrodes may be,
and the third output unit is used for suspending the transmission of the first audio signal through the earphone and outputting the environment audio signal through the earphone.
CN201610723390.4A 2016-08-25 2016-08-25 Audio output control method and mobile terminal Active CN106375554B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610723390.4A CN106375554B (en) 2016-08-25 2016-08-25 Audio output control method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610723390.4A CN106375554B (en) 2016-08-25 2016-08-25 Audio output control method and mobile terminal

Publications (2)

Publication Number Publication Date
CN106375554A CN106375554A (en) 2017-02-01
CN106375554B true CN106375554B (en) 2020-02-11

Family

ID=57879171

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610723390.4A Active CN106375554B (en) 2016-08-25 2016-08-25 Audio output control method and mobile terminal

Country Status (1)

Country Link
CN (1) CN106375554B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111372158A (en) * 2020-02-28 2020-07-03 歌尔股份有限公司 Motion detection method, wireless headset and computer readable storage medium
CN112218201B (en) * 2020-09-30 2022-02-11 珠海格力电器股份有限公司 Monitoring method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101840700A (en) * 2010-04-28 2010-09-22 宇龙计算机通信科技(深圳)有限公司 Voice recognition method based on mobile terminal and mobile terminal
CN104484150A (en) * 2014-12-29 2015-04-01 宇龙计算机通信科技(深圳)有限公司 Audio play method, audio play device and terminal
CN104602162A (en) * 2014-12-17 2015-05-06 惠州Tcl移动通信有限公司 External noise reduction device for mobile terminal and noise reduction method of external noise reduction device
CN105787027A (en) * 2016-02-24 2016-07-20 广东欧珀移动通信有限公司 Audio file playing method and terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103825993B (en) * 2014-03-11 2017-05-17 宇龙计算机通信科技(深圳)有限公司 Method and device for treating environment sound during conversation
GB2533795A (en) * 2014-12-30 2016-07-06 Nokia Technologies Oy Method, apparatus and computer program product for input detection

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101840700A (en) * 2010-04-28 2010-09-22 宇龙计算机通信科技(深圳)有限公司 Voice recognition method based on mobile terminal and mobile terminal
CN104602162A (en) * 2014-12-17 2015-05-06 惠州Tcl移动通信有限公司 External noise reduction device for mobile terminal and noise reduction method of external noise reduction device
CN104484150A (en) * 2014-12-29 2015-04-01 宇龙计算机通信科技(深圳)有限公司 Audio play method, audio play device and terminal
CN105787027A (en) * 2016-02-24 2016-07-20 广东欧珀移动通信有限公司 Audio file playing method and terminal

Also Published As

Publication number Publication date
CN106375554A (en) 2017-02-01

Similar Documents

Publication Publication Date Title
US10902866B2 (en) Sound signal processing method, terminal, and headset
CN108886653B (en) Earphone sound channel control method, related equipment and system
KR102127640B1 (en) Portable teriminal and sound output apparatus and method for providing locations of sound sources in the portable teriminal
KR102067019B1 (en) Apparatus and method for controlling charging path of mobile terminal
CN107122161B (en) Audio data playing control method and terminal
CN107277268B (en) Audio playing method and mobile terminal
CN109639367B (en) Electromagnetic interference adjusting method and related product
WO2014086218A1 (en) Interface adjustment method, device and terminal
CN111083684A (en) Method for controlling electronic equipment and electronic equipment
KR102109739B1 (en) Method and apparatus for outputing sound based on location
CN108541080B (en) Method for realizing loop connection between first electronic equipment and second electronic equipment and related product
CN109189260B (en) Touch detection method and device
US20160112988A1 (en) Method for indicating alarm by portable terminal and accessory in conjunction with each other, and apparatus and application for the same
CN108681413B (en) Control method of display module and mobile terminal
CN108810198A (en) Sounding control method, device, electronic device and computer-readable medium
WO2017031647A1 (en) Method and apparatus for detecting touch mode
CN107087283B (en) Method and terminal for monitoring beacon frame
CN106375554B (en) Audio output control method and mobile terminal
CN108683980B (en) Audio signal transmission method and mobile terminal
CN108769364B (en) Call control method, device, mobile terminal and computer readable medium
KR102351634B1 (en) Terminal apparatus, audio system and method for controlling sound volume of external speaker thereof
CN107332984B (en) Voice processing method and mobile terminal
CN109660657B (en) Application program control method and device
CN108234745B (en) Signal receiving method, mobile terminal and computer readable storage medium
CN108683812B (en) Volume adjusting method and device and mobile terminal

Legal Events

Date Code Title Description
C06 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