[go: up one dir, main page]

CN112788179A - Adaptive adjustment method for playing volume of earphone and related device - Google Patents

Adaptive adjustment method for playing volume of earphone and related device Download PDF

Info

Publication number
CN112788179A
CN112788179A CN202010481086.XA CN202010481086A CN112788179A CN 112788179 A CN112788179 A CN 112788179A CN 202010481086 A CN202010481086 A CN 202010481086A CN 112788179 A CN112788179 A CN 112788179A
Authority
CN
China
Prior art keywords
earphone
sound signal
volume
environment
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010481086.XA
Other languages
Chinese (zh)
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.)
Shenzhen Ruier Electronic Co ltd
Original Assignee
Shenzhen Ruier Electronic 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 Shenzhen Ruier Electronic Co ltd filed Critical Shenzhen Ruier Electronic Co ltd
Priority to CN202010481086.XA priority Critical patent/CN112788179A/en
Publication of CN112788179A publication Critical patent/CN112788179A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Circuit For Audible Band Transducer (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application discloses a self-adaptive adjustment method for playing volume of an earphone and a related device, wherein the method comprises the following steps: collecting environmental sound signals in an earphone play mode; analyzing the environment sound signal, and determining whether the environment sound signal contains a preset voice signal; if the environmental sound signal contains a preset voice signal, adjusting the playing volume of the earphone so as to reduce the playing volume of the earphone; and sending voice prompt information to the user through the earphone by the volume before adjustment. The embodiment of the application can be beneficial to avoiding the situation that a user misses important information due to wearing of the earphone.

Description

Adaptive adjustment method for playing volume of earphone and related device
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a method and a related apparatus for adaptively adjusting a playing volume of an earphone.
Background
When people seek better multimedia enjoyment (such as listening to music, watching videos, playing games and the like), the earphone is often used for playing so as not to be interfered by sound in the external environment. However, when a user wears the headphones to listen to music or play games, the user tends to pay attention to the sound transmitted through the headphones, and ignores the sound in the external environment. Especially, in-ear headphones hardly hear the sound of the external environment after being worn, and thus easily miss some important information. For example, when listening to songs in an office, the shouting of colleagues cannot be heard, so that the colleagues cannot respond to the shouts in time; and if the greeting of the friend or relatives cannot be heard, the opposite party cannot be responded to in time, and the like.
Disclosure of Invention
The embodiment of the application provides a self-adaptive adjustment method and a related device for the playing volume of an earphone, which can be beneficial to avoiding the situation that a user misses important information due to wearing the earphone.
A first aspect of an embodiment of the present application provides a method for adaptively adjusting a playing volume of an earphone, where the method is applied to a mobile terminal, and the mobile terminal is connected to the earphone, and the method includes:
collecting environmental sound signals in an earphone play mode;
analyzing the environment sound signal, and determining whether the environment sound signal contains a preset voice signal;
if the environmental sound signal contains the preset voice signal, adjusting the playing volume of the earphone so as to reduce the playing volume of the earphone;
and sending voice prompt information to the user through the earphone by using the volume before adjustment.
As an optional implementation manner, in the first aspect of this embodiment of the present application, the analyzing the environmental sound signal and determining whether the environmental sound signal includes a preset speech signal includes:
analyzing the environment sound signal, and determining whether the environment sound signal contains a voice signal sent by a preset target object;
wherein, if the environmental sound signal includes the preset voice signal, adjusting the earphone playing volume to reduce the earphone playing volume, including:
and if the environment sound signal contains the voice signal sent by the preset target object, adjusting the playing volume of the earphone so as to reduce the playing volume of the earphone.
As an optional implementation manner, in the first aspect of this embodiment of the present application, the acquiring, in the earphone play mode, an ambient sound signal includes:
determining the environment type of the environment where the mobile terminal is currently located;
and when the environment type belongs to a preset environment type, acquiring an environment sound signal in an earphone play mode.
As an optional implementation manner, in the first aspect of this embodiment of the present application, the analyzing the environmental sound signal and determining whether the environmental sound signal includes a preset speech signal includes:
analyzing the environment sound signal, and determining whether the environment sound signal contains a preset voice signal matched with the preset environment type;
wherein, if the environmental sound signal includes the preset voice signal, adjusting the earphone playing volume to reduce the earphone playing volume, including:
and if the environment sound signal contains a preset voice signal matched with the preset environment type, adjusting the playing volume of the earphone so as to reduce the playing volume of the earphone.
As an optional implementation manner, in the first aspect of this embodiment of the present application, the method further includes:
acquiring a volume value of the environment sound signal;
when the environmental sound signal is determined not to contain the preset voice signal, detecting whether the volume value of the environmental sound signal is larger than the volume value played by the earphone or not;
if the volume value of the environment sound signal is larger than the volume value played by the earphone, adjusting the playing volume of the earphone so as to increase the playing volume of the earphone.
A second aspect of the embodiments of the present application provides an adaptive adjusting device for earphone playing volume, where the device is applied to a mobile terminal, the mobile terminal is connected to an earphone, and the device includes:
the acquisition unit is used for acquiring the environmental sound signal in the earphone play mode;
the determining unit is used for analyzing the environment sound signal and determining whether the environment sound signal contains a preset voice signal;
the adjusting unit is used for adjusting the playing volume of the earphone when the determining unit determines that the environment sound signal contains the preset voice signal, so that the playing volume of the earphone is reduced;
and the output unit is used for sending voice prompt information to the user through the earphone according to the volume before adjustment.
As an optional implementation manner, in a second aspect of an embodiment of the present application, the determining unit is specifically configured to analyze the ambient sound signal, and determine whether the ambient sound signal includes a voice signal emitted by a preset target object;
the adjusting unit is specifically configured to adjust the earphone playing volume when the determining unit determines that the environmental sound signal includes a voice signal sent by the preset target object, so that the earphone playing volume is reduced.
As an optional implementation manner, in a second aspect of the embodiment of the present application, the collecting unit is specifically configured to determine an environment type of an environment in which the mobile terminal is currently located, and collect the ambient sound signal in an earphone playing mode when the environment type belongs to a preset environment type.
As an optional implementation manner, in the second aspect of the embodiment of the present application, the determining unit is specifically configured to analyze the ambient sound signal, and determine whether the ambient sound signal includes a preset speech signal that matches the preset environment type;
the adjusting unit is specifically configured to adjust the earphone playing volume when the determining unit determines that the environmental sound signal includes a preset voice signal matched with the preset environment type, so that the earphone playing volume is reduced.
As an optional implementation manner, in the second aspect of the embodiments of the present application, the apparatus further includes:
an acquisition unit configured to acquire a volume value of the ambient sound signal;
the detection unit is used for detecting whether the volume value of the environment sound signal is larger than the volume value played by the earphone or not when the determination unit determines that the environment sound signal does not contain the preset voice signal;
the adjusting unit is further configured to adjust the earphone playing volume when the detecting unit detects that the volume value of the ambient sound signal is greater than the volume value of the earphone playing, so that the earphone playing volume is increased.
A third aspect of embodiments of the present application provides a mobile terminal, comprising a processor, a memory, and at least one or more programs; the at least one or more programs are stored in the memory and configured to be executed by the processor, the programs including instructions for performing the steps described in any of the methods of the first aspect of the embodiments of the present application.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, and the computer program specifically includes instructions for performing some or all of the steps described in any one of the methods according to the first aspect of embodiments of the present application.
A fifth aspect of embodiments of the present application provides a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program, the computer program being operable to cause a computer to perform some or all of the steps as described in any one of the methods of the first aspect of embodiments of the present application. The computer program product may be, for example, a software installation package.
In the embodiment of the application, the mobile terminal can acquire the environmental sound signal in the environment in real time in the earphone playing mode and analyze the environmental sound signal to determine whether the environmental sound signal contains the preset voice signal, if so, the playing volume of the earphone is reduced, and the voice prompt information is sent to the user by adjusting the front volume through the earphone. Therefore, when the user uses the earphone to carry out sound reproduction operation, the embodiment of the application can also give consideration to the sound of the external environment, thereby being beneficial to avoiding the situation that the user misses important information due to wearing the earphone, and greatly improving the convenience of using the earphone by the user.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an earphone playing system according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a method for adaptively adjusting the volume of playing back an earphone according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another adaptive earphone playback volume adjustment method according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an adaptive earphone playback volume adjustment apparatus according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of another adaptive earphone playback volume adjustment apparatus according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "comprises" and "comprising," and any variations thereof, in the embodiments of the present application, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. The following describes embodiments of the present application in detail.
The embodiment of the application provides an earphone playing system. As shown in fig. 1, the system may include at least a mobile terminal 100 and an earphone 200, wherein the mobile terminal 100 may be in communication connection with the earphone 200 in a wireless manner and/or in a wired manner, so that the mobile terminal 100 may interact with the earphone 200. Specifically, the earphone 200 may be a wired earphone, and the earphone 200 is connected to the mobile terminal 100 through an earphone line. The headset 200 may also be a wireless headset, and the headset 200 is connected with the mobile terminal 100 through a wireless transmission technology. For example, the mobile terminal 100 may be communicatively connected to the wireless headset 200 through bluetooth technology, and at this time, the wireless headset 200 may be regarded as a bluetooth headset; alternatively, the mobile terminal 100 may also be in communication connection with the wireless headset 200 through an infrared technology, and at this time, the wireless headset 200 may be regarded as an infrared headset; alternatively, the mobile terminal 100 may also be communicatively connected to the wireless headset 200 via 2.4G technology, in which case the wireless headset 200 may be regarded as a 2.4G headset. After the mobile terminal 100 is successfully connected to the headset 200, the mobile terminal 100 may output audio signals through the headset 200, such as music sound output while listening to music, audio output while watching video, game sound effect output while playing games, voice of the other party while making a call, and the like.
The embodiment of the present application does not limit what manner the mobile terminal 100 and the headset 200 are communicatively connected, and what type of headset the headset 200 is. The mobile terminal 100 may include, but is not limited to, various handheld devices (e.g., smart phones, mobile tablets, etc.), vehicle mounted devices, wearable devices (e.g., smart watches, smart bands, pedometers, etc.), multimedia playing devices (e.g., walkman), or other processing devices capable of multimedia playing, and so on. For convenience of description, the above-mentioned devices may be collectively referred to as a mobile terminal.
The earphone of this application embodiment can be the intelligent earphone that includes the artificial intelligence chip, and still can include microprocessor among the intelligent earphone, microprocessor and artificial intelligence chip among the intelligent earphone come interconnect communication through the dedicated channel, but microprocessor independent control intelligence earphone work, microprocessor also can be under the guide of artificial intelligence chip control intelligence earphone work, some intelligent control strategies can be exported for microprocessor to the artificial intelligence chip, guide the better work of microprocessor. The microprocessor can construct a microprocessor software platform, the artificial intelligence chip can construct an artificial intelligence chip software platform, the microprocessor software platform and the artificial intelligence chip software platform are two mutually independent software platforms, and the artificial intelligence chip software platform is in communication connection with the microprocessor software platform.
Wherein, artificial intelligence chip and microprocessor all can be through bluetooth communication module or wired link and mobile terminal communication connection, and mobile terminal can be through sending dormancy instruction to the microprocessor of arbitrary one intelligent earphone in intelligent earphone pair (intelligent earphone pair is including two earphones that pair), and this microprocessor gets into dormant state from waking up the state, and when the microprocessor of intelligent earphone was in dormant state, the audio playback function of this intelligent earphone will be invalid so. The mobile terminal can also instruct the artificial intelligence chip to inform the microprocessor to enter the awakening state from the dormancy state by sending the awakening instruction to the artificial intelligence chip of the intelligent earphone. In some possible embodiments, the artificial intelligence chip may always be in the wake-up state when the power is normally supplied. In some possible embodiments, the microprocessor in the sleep state can only receive the instruction from the artificial intelligence chip, that is, the dedicated channel between the microprocessor and the artificial intelligence chip is not closed at this time, but all other communication channels of the microprocessor are in the closed state, and for example, the microprocessor in the sleep state can only receive the instruction from the artificial intelligence chip, that is, the microprocessor in the sleep state can only be woken up by the artificial intelligence chip. When the artificial intelligence chip wakes up the microprocessor in the dormant state and fails, the artificial intelligence chip can be switched to the working mode of the microprocessor, the microprocessor is replaced to control the intelligent earphone to work in the coming time, and when the artificial intelligence chip is switched to the working mode of the microprocessor, the audio playing function of the intelligent earphone can normally run under the support of the artificial intelligence chip.
The embodiment of the application provides a self-adaptive adjusting method for playing volume of an earphone. The method can be applied to a mobile terminal, and the mobile terminal is connected with an earphone. As shown in fig. 2, the method may include the steps of:
210. and collecting the environmental sound signals in the earphone play mode.
In the embodiment of the application, after the mobile terminal is successfully connected with the wired earphone or the wireless earphone, when multimedia playing (such as listening to music, watching video, playing games, making a call, performing audio/video call, and the like) is performed on the mobile terminal, audio output can be performed through the earphone, and then the mobile terminal enters an earphone playing mode. At this time, the ambient sound signal in the environment where the mobile terminal is located may be collected in real time or at regular time intervals (e.g., 1 second, 1.5 seconds, 2 seconds, 3 seconds, or other values). Specifically, when the earphone connected to the mobile terminal does not have a sound pickup function (i.e., the earphone is not provided with a microphone), one or more microphones built in the mobile terminal may be used to collect the ambient sound signal; when the earphone connected to the mobile terminal is equipped with a sound collecting function (i.e., the earphone is equipped with a microphone), the microphone of the earphone or the microphone of the mobile terminal may be used to collect the ambient sound signal, which is not limited herein.
220. Analyzing the environmental sound signal, determining whether the environmental sound signal includes a preset voice signal, if yes, executing step 230; if not, the operation is ended.
In the embodiment of the application, the mobile terminal can analyze the collected environment sound signal and determine whether the environment sound signal contains the pre-stored preset voice signal. Specifically, the speech recognition may be performed on the environmental sound signal to determine whether the environmental sound signal contains a preset speech signal, and the specific process may be as follows: carrying out noise reduction processing on the environmental sound signal, then extracting characteristic parameter information, matching the characteristic parameter information with a pre-trained voice model library, and if the matching with one of the voice signals in the voice model library is successful, determining that the environmental sound signal contains a preset voice signal; if the environmental sound signal is not matched with all the voice signals in the voice model library, the environmental sound signal can be considered to not contain the preset voice signal. The preset voice signal in the voice model library may be recorded by the user in advance, or may be downloaded from the internet, which is not limited herein. The preset voice signal may include, but is not limited to, some greetings (e.g., "hello", "hi", etc.), the name or nickname of the user (e.g., "zhang san", "alt", etc.), the name of the user (e.g., "lao gong", "wife", "dad", "mom", "son", "girl", etc.), or other commonly used phrases set by the user, etc. If the mobile terminal determines that the preset voice signal exists in the environmental sound signal, the next step 230 may be further performed; if the preset voice signal does not exist in the environment sound signal, the volume adjusting operation can be finished, and the sound signal in the environment is collected continuously.
230. And adjusting the playing volume of the earphone so as to reduce the playing volume of the earphone.
In the embodiment of the application, when the mobile terminal determines that the environmental sound signal contains the preset voice signal, the volume of the earphone playing can be reduced or the earphone playing can be paused. Optionally, the volume played by the headphones may be reduced to a volume V ', where V' is V × δ, V is the current volume played by the headphones (i.e., the volume played before reduction), δ is a low volume coefficient, and δ is a positive number less than 1. For example, if the current playing volume of the headphone is 50 db, and the low volume coefficient δ is 0.6, the adjusted playing volume of the headphone is 30 db. Optionally, the volume played by the headset may be reduced to a preset volume value, where the preset volume value is a fixed value, such as 20 db, 25 db, 30 db, 35 db, or other values. It is understood that the preset volume value can be adaptively adjusted according to the user's needs and/or application scenarios. For example, if the current playing volume of the earphone is 50 db and the preset volume value is 30 db, the adjusted playing volume of the earphone is 30 db. If the playing volume of the current earphone is 60 db, and the preset volume value is 30 db, the adjusted playing volume of the earphone is 30 db.
240. And sending voice prompt information to the user through the earphone by the volume before adjustment.
In the embodiment of the application, after the mobile terminal reduces the volume value played by the earphone, the mobile terminal can send voice prompt information to the user through the earphone by using the volume before reduction so as to prompt the user to find important information. After hearing the voice prompt, the user can respond to the found important information in time.
For example, when a user listens to music through an earphone, the collected environmental sound signal contains the name of the user, the playing volume of the earphone is reduced, the music is continuously played through the reduced volume, and a voice prompt is sent to the user through the earphone according to the volume before the reduction, so that the user is prompted that someone is calling, and the user timely gives a response after hearing the voice prompt.
In an alternative embodiment, the step 220 of analyzing the ambient sound signal to determine whether the ambient sound signal includes a predetermined speech signal may include the following steps:
analyzing the environmental sound signal, determining whether the environmental sound signal contains a voice signal sent by a preset target object, if so, executing step 230 to adjust the playing volume of the earphone so as to reduce the playing volume of the earphone; if not, the operation is ended.
The preset voice signal stored in the mobile terminal may be a voice signal sent by a certain or some preset target object, for example, a voice signal of a certain or some relatives in the home, such as a voice of a mother in the home, a call or a cry of a baby in the home, and the like. Specifically, the method may perform voiceprint recognition on the environmental sound signal to determine whether the environmental sound signal contains a voice signal of a preset target object, and the specific process may be as follows: the mobile terminal can perform noise reduction processing on the collected environmental sound signal, then extract characteristic parameter information, match the characteristic parameter information with a pre-trained voice model library, and determine that the environmental sound signal contains the voice signal of the target object when the characteristic parameter information is matched with the voice signal of one preset target object in the voice model library.
For example, when the user listens to music through the earphone, crying of a baby at home is identified in the collected environment sound signals, the playing volume of the earphone is reduced, the music is continuously played through the reduced volume, a voice prompt is sent to the user through the earphone through the reduced volume, the baby is prompted to cry and scream, and the baby is timely placated by the user after hearing the voice prompt.
In an alternative embodiment, step 210, in the earphone playing mode, a specific embodiment of collecting the ambient sound signal may include the following steps:
determining the environment type of the current environment of the mobile terminal;
when the environment type belongs to the preset environment type, the environment sound signal is collected in the earphone playing mode.
Before the ambient sound signal is collected, the type of the environment in which the mobile terminal is currently located may be determined, where the type of the environment may include, but is not limited to, home, office, library, classroom, supermarket, shopping mall, on/off the street, and the like. Specifically, the environment type of the environment where the mobile terminal is located may be determined by obtaining current location information of the mobile terminal, for example, when the mobile terminal is located at home, the environment type is home. If the mobile terminal is located on a street, the environment type is street or outdoor. The preset environment type may be an environment type that is set in advance to allow the ambient sound collection to be performed. The preset environment type can be manually set by the user according to the actual situation and/or the requirement of the user. The preset environment type may include, but is not limited to, at least one of a home, an office, a library, a classroom, a supermarket, a mall, on/off the street, and the like. When the environment type of the current environment of the mobile terminal is detected to be one of the preset environment types, the mobile terminal collects the environment sound signals in the surrounding environment when entering the earphone playing mode. When detecting that the environment type of the current environment of the mobile terminal does not belong to any one of the preset environment types, the mobile terminal may not initiate the environmental sound collection operation when entering the earphone play mode. Therefore, the environmental sound collection is triggered only in some specific environments, the energy consumption of the mobile terminal can be properly reduced, and the service life of the mobile terminal is prolonged.
It can be understood that the environment type of the current environment of the mobile terminal may be determined before the mobile terminal enters the earphone play mode, or the environment type of the current environment of the mobile terminal may be determined after the mobile terminal enters the earphone play mode, which is not limited herein.
In an alternative embodiment, the step 220 of analyzing the ambient sound signal to determine whether the ambient sound signal includes a predetermined speech signal may include the following steps:
analyzing the environmental sound signal, determining whether the environmental sound signal contains a preset voice signal matched with a preset environment type, if so, executing step 230 to adjust the earphone playing volume so as to reduce the earphone playing volume; if not, the operation is ended.
Wherein, different preset environment types can correspond to different preset voice signals. For example, when the preset environment type is home, the corresponding preset voice signal may include, but is not limited to, a name or a nickname of the user, a name of the user, a call or cry of a baby at home, and the like. For another example, when the preset environment type is an office, the corresponding preset voice signal may include, but is not limited to, a name or a nickname of the user, a name of a job title of the user (e.g., manager, zhang, etc.), and the like. The user can set different preset environment types, and can set corresponding preset voice signals for each preset environment type. Different voice signals are set under different environment types, so that the requirements can be more clear, and the management of a user is more facilitated. For example, a girlfriend in an office is likely to be irrelevant to the user, and no care is needed.
In summary, in the embodiment of the present application, the mobile terminal can acquire the environmental sound signal in the environment in real time in the earphone playing mode, and analyze the environmental sound signal to determine whether the environmental sound signal includes the preset voice signal, and if so, reduce the playing volume of the earphone, and send the voice prompt information to the user by adjusting the front volume through the earphone. Therefore, when the user uses the earphone to carry out sound reproduction operation, the embodiment of the application can also give consideration to the sound of the external environment, thereby being beneficial to avoiding the situation that the user misses important information due to wearing the earphone, and greatly improving the convenience of using the earphone by the user.
The embodiment of the application provides another adaptive earphone playing volume adjusting method. The method can be applied to a mobile terminal, and the mobile terminal is connected with an earphone. As shown in fig. 3, the method may include the steps of:
310. and collecting the environmental sound signals in the earphone play mode.
In the embodiment of the present application, the content of step 310 in the foregoing embodiment may be referred to, and is not described herein again.
320. A volume value of the ambient sound signal is obtained.
In the embodiment of the application, when the mobile terminal collects the environmental sound signal of the surrounding environment, the volume value of the environmental sound signal can be obtained. The volume value may be expressed in decibels.
330. Analyzing the environmental sound signal, determining whether the environmental sound signal contains a preset voice signal, if yes, executing step 340; if not, go to step 360.
340. And adjusting the playing volume of the earphone so as to reduce the playing volume of the earphone.
350. And sending voice prompt information to the user through the earphone by the volume before adjustment.
The specific implementation of step 330 to step 350 may refer to the content described in step 220 to step 240 in the foregoing embodiment, and is not described herein again.
360. Detecting whether the volume value of the environmental sound signal is greater than the volume value played by the earphone, if so, executing step 370; if not, the operation is ended.
370. And adjusting the playing volume of the earphone so as to increase the playing volume of the earphone.
In the embodiment of the application, when the mobile terminal determines that the environmental sound signal does not contain the preset voice signal, whether the volume value of the environmental sound signal is larger than the volume value played by the current earphone can be further detected. If the volume value of the environment sound signal is detected to be larger than the volume value played by the current earphone, it is indicated that the current external environment sound is noisy, and the hearing enjoyment of wearing the earphone by the user is likely to be influenced, so that the volume value played by the earphone can be properly improved. If the volume value of the environmental sound signal is detected to be smaller than or equal to the volume value played by the current earphone, the volume adjusting operation is finished, and the sound signal in the environment is collected continuously.
Optionally, the volume played by the headphones may be increased to a volume V ″, where V ═ V τ, V is the current volume played by the headphones (i.e., the volume played before the increase), τ is the high volume coefficient, and τ is a number greater than 1. For example, if the current playing volume of the headphone is 50 db, the high volume coefficient δ is 1.2, and the adjusted playing volume of the headphone is 60 db. If the current playing volume of the earphone is 50 db and the high volume coefficient δ is 1.3, the adjusted playing volume of the earphone is 65 db.
Optionally, the volume played by the headset may be increased to a predetermined volume value, where the predetermined volume value is a fixed value, such as 55 db, 60 db, 65 db, 70 db, or other values. It is understood that the preset volume value is within a safe volume range that the human ear can bear, and the preset volume value can be adaptively adjusted according to the actual requirement and/or application scenario of the user. For example, if the current playing volume of the earphone is 40 db and the preset volume value is 60 db, the adjusted playing volume of the earphone is 60 db. If the current playing volume of the earphone is 50 decibels and the preset volume value is 60 decibels, the adjusted playing volume of the earphone is 60 decibels.
Optionally, the volume played by the earphone may be increased to be the same as the volume value of the ambient sound signal. For example, if the current playing volume of the earphone is 50 db, and the volume value of the environmental sound signal is 60 db, the adjusted playing volume of the earphone is 60 db. If the current playing volume of the earphone is 50 db, and the volume value of the environmental sound signal is 70 db, the adjusted playing volume of the earphone is 70 db. The playing volume of the adjusted earphone cannot be higher than the maximum safe volume value which can be borne by human ears. For example, assuming that the maximum safe volume value that the human ear can bear is 80 db, if the volume value of the environmental sound signal exceeds 80 db, the volume of the earphone is adjusted to 80 db for safety.
Therefore, by implementing the method described in fig. 3, when the user uses the earphone to perform the sound reproduction operation, the user can also consider the external environment sound at the same time, thereby being beneficial to avoiding the situation that the user misses important information due to wearing the earphone, and greatly improving the convenience of using the earphone. In addition, when external environment sound is too noisy and influences the hearing enjoyment that the user wears the earphone, the volume value of earphone broadcast can be improved by adaptability, not only great improvement the user use the intelligence and the flexibility of earphone, but also promoted user's hearing impression.
The embodiment of the present application further provides a device for adaptively adjusting the volume of playing back an earphone, which can be used to execute the method for adaptively adjusting the volume of playing back an earphone provided in the foregoing embodiment. The apparatus may be applied to a mobile terminal, i.e. the apparatus may be a mobile terminal or a part of a mobile terminal. The mobile terminal is connected to an earphone. As shown in fig. 4, the apparatus may include:
a collecting unit 41, configured to collect an ambient sound signal in an earphone playing mode;
a determining unit 42, configured to analyze the ambient sound signal, and determine whether the ambient sound signal includes a preset speech signal;
an adjusting unit 43, configured to adjust the earphone playing volume when the determining unit 42 determines that the ambient sound signal includes the preset voice signal, so that the earphone playing volume is decreased;
and the output unit 44 is used for sending voice prompt information to the user through the earphone at the volume before adjustment.
Optionally, the determining unit 42 may be specifically configured to analyze the environmental sound signal, and determine whether the environmental sound signal includes a voice signal emitted by a preset target object;
accordingly, the adjusting unit 43 is specifically configured to adjust the earphone playing volume when the determining unit 42 determines that the environmental sound signal includes the voice signal emitted by the preset target object, so that the earphone playing volume is decreased.
Optionally, the collecting unit 41 may be specifically configured to determine an environment type of an environment in which the mobile terminal is currently located, and collect the environmental sound signal in the earphone playing mode when the environment type belongs to the preset environment type.
Optionally, the determining unit 42 may be specifically configured to analyze the ambient sound signal, and determine whether the ambient sound signal includes a preset speech signal matching a preset environment type;
accordingly, the adjusting unit 43 is specifically configured to adjust the earphone playing volume when the determining unit 42 determines that the environmental sound signal includes a preset voice signal matching the preset environmental type, so that the earphone playing volume is decreased.
Referring to fig. 5, another adaptive earphone volume adjusting apparatus is provided in the present embodiment. The device can further include, on the basis of the device shown in fig. 4:
an obtaining unit 45 for obtaining a volume value of the ambient sound signal;
a detecting unit 46, configured to detect whether the volume value of the ambient sound signal is greater than the volume value played by the earphone when the determining unit 42 determines that the ambient sound signal does not include the preset voice signal;
the adjusting unit 43 may be further configured to adjust the earphone playing volume to increase the earphone playing volume when the detecting unit 46 detects that the volume value of the ambient sound signal is greater than the volume value of the earphone playing volume.
The devices shown in fig. 4 and 5 can allow a user to consider external environment sound when the user uses the earphone to perform sound reproduction operation, thereby being beneficial to avoiding the situation that the user misses important information due to wearing the earphone, and greatly improving the convenience of the user in using the earphone. In addition, when external environment sound is too noisy and influences the hearing enjoyment that the user wears the earphone, the volume value of earphone broadcast can be improved by adaptability, not only great improvement the user use the intelligence and the flexibility of earphone, but also promoted user's hearing impression.
The embodiment of the application also provides a mobile terminal, and the mobile terminal can be used for executing the self-adaptive adjustment method for the playing volume of the earphone provided by the embodiment of the application. As shown in fig. 6, the mobile terminal 600 may include: at least one processor 601, such as a Central Processing Unit (CPU), at least one communication interface 602, memory 603, and the like. Wherein the components are communicatively coupled via one or more buses 604. Those skilled in the art will appreciate that the configuration of the mobile terminal shown in fig. 6 is not limited to the embodiments of the present application, and may be a bus structure, a star structure, a combination of more or less components than those shown, or a different arrangement of components. Wherein:
in this embodiment, the communication interface 602 may include a wired communication interface, a wireless communication interface, and the like, and may be configured to perform communication interaction with the headset, for example, to receive voice data collected by a microphone of the headset, and/or to transmit the voice data to the headset for output, and the like.
In the embodiment of the present application, the memory 603 may be a high-speed RAM memory, or may be a non-volatile memory (non-volatile memory), for example, at least one disk memory. The memory 603 may optionally be at least one storage device located remotely from the processor 601. As shown in fig. 6, the memory 603 may include one or more programs, data, and the like, and the embodiment of the present application is not limited thereto.
In the mobile terminal shown in fig. 6, the processor 601 may be configured to invoke one or more programs stored in the memory 603 to perform the following operations:
collecting environmental sound signals in an earphone play mode;
analyzing the environmental sound signal, and determining whether the environmental sound signal contains a preset voice signal stored in the memory 603;
if the environmental sound signal contains the preset voice signal stored in the memory 603, adjusting the playing volume of the earphone so as to reduce the playing volume of the earphone;
the communication interface 602 is controlled to send a voice prompt to the user through the headset at the adjusted front volume.
One or more microphones (not shown in the figure) may be built in the mobile terminal 600, and the ambient sound signal is collected through the one or more microphones built in the mobile terminal 600; or in case of an earphone equipped with a microphone, the mobile terminal 600 may control the earphone microphone to collect the ambient sound signal through the communication interface 602.
Optionally, the specific implementation of the processor 601 analyzing the environmental sound signal to determine whether the environmental sound signal includes the preset speech signal stored in the memory 603 may be:
analyzing the environmental sound signal, and determining whether the environmental sound signal contains a voice signal sent by a preset target object stored in the memory 603;
if the environmental sound signal includes a preset voice signal stored in the memory 603, the specific implementation manner of adjusting the earphone playing volume by the processor 601 to reduce the earphone playing volume may be:
if the ambient sound signal includes a voice signal sent by a preset target object stored in the memory 603, the earphone playing volume is adjusted so that the earphone playing volume is reduced.
Optionally, the specific implementation of the processor 601 in the earphone playing mode to collect the ambient sound signal may be:
determining the environment type of the environment in which the mobile terminal 600 is currently located;
when the environment type belongs to the preset environment type, the environment sound signal is collected in the earphone playing mode.
Optionally, the specific implementation of the processor 601 analyzing the environmental sound signal to determine whether the environmental sound signal includes the preset speech signal stored in the memory 603 may be:
analyzing the environmental sound signal, and determining whether the environmental sound signal contains a preset voice signal matched with the preset environment type stored in the memory 603;
if the environmental sound signal includes a preset voice signal stored in the memory 603, the specific implementation manner of adjusting the playing volume of the earphone so as to decrease the playing volume of the earphone may be:
if the environmental sound signal includes a preset voice signal matching the preset environmental type stored in the memory 603, the earphone playing volume is adjusted to decrease the earphone playing volume.
Optionally, the processor 601 may be further configured to call one or more programs stored in the memory 603 to perform the following operations:
acquiring a volume value of the environmental sound signal;
when determining that the environmental sound signal does not contain the preset voice signal stored in the memory 603, detecting whether the volume value of the environmental sound signal is greater than the volume value played by the earphone;
if the volume value of the environment sound signal is larger than the volume value played by the earphone, the playing volume of the earphone is adjusted so as to increase the playing volume of the earphone.
Specifically, the mobile terminal described in this embodiment of the present application may implement part or all of the processes in the embodiment of the method for adaptively adjusting the volume of the played back sound of the earphone described in this application in conjunction with fig. 2 or fig. 3.
The modules or sub-modules in all embodiments of the present Application may be implemented by a general-purpose Integrated Circuit, such as a CPU, or by an ASIC (Application Specific Integrated Circuit).
The embodiment of the present application also provides a computer readable storage medium, where the computer readable storage medium stores a computer program for electronic data exchange, and the computer program causes a computer to perform some or all of the steps described in the adaptive volume adjustment method for earphone playing provided by the embodiment of the present application. The computer may comprise a mobile terminal.
Embodiments of the present application also provide a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform some or all of the steps described in the adaptive volume adjustment method for playing back a headphone according to embodiments of the present application. The computer program product may be a software installation package and the computer may comprise a mobile terminal.
It should be noted that, for simplicity of description, the above-mentioned embodiments of the method are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the order of acts described, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The units in the device of the embodiment of the application can be combined, divided and deleted according to actual needs.
It will be understood by those skilled in the art that all or part of the steps in the methods of the embodiments described above may be implemented by hardware instructions of a program, and the program may be stored in a computer-readable storage medium, where the storage medium includes Read-Only Memory (ROM), Random Access Memory (RAM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), One-time Programmable Read-Only Memory (OTPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory (CD-ROM), or other Memory, such as a magnetic disk, or a combination thereof, A tape memory, or any other medium readable by a computer that can be used to carry or store data.
The foregoing describes in detail a method and a related apparatus for adaptively adjusting the volume of playing sound of an earphone according to an embodiment of the present application, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the foregoing embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A method for adaptively adjusting the volume of an earphone is applied to a mobile terminal, wherein the mobile terminal is connected with the earphone, and the method comprises the following steps:
collecting environmental sound signals in an earphone play mode;
analyzing the environment sound signal, and determining whether the environment sound signal contains a preset voice signal;
if the environmental sound signal contains the preset voice signal, adjusting the playing volume of the earphone so as to reduce the playing volume of the earphone;
and sending voice prompt information to the user through the earphone by using the volume before adjustment.
2. The method of claim 1, wherein the parsing the ambient sound signal to determine whether the ambient sound signal contains a predetermined speech signal comprises:
analyzing the environment sound signal, and determining whether the environment sound signal contains a voice signal sent by a preset target object;
wherein, if the environmental sound signal includes the preset voice signal, adjusting the earphone playing volume to reduce the earphone playing volume, including:
and if the environment sound signal contains the voice signal sent by the preset target object, adjusting the playing volume of the earphone so as to reduce the playing volume of the earphone.
3. The method of claim 1, wherein collecting the ambient sound signal in the headphone playback mode comprises:
determining the environment type of the environment where the mobile terminal is currently located;
and when the environment type belongs to a preset environment type, acquiring an environment sound signal in an earphone play mode.
4. The method of claim 3, wherein the parsing the ambient sound signal to determine whether the ambient sound signal contains a predetermined speech signal comprises:
analyzing the environment sound signal, and determining whether the environment sound signal contains a preset voice signal matched with the preset environment type;
wherein, if the environmental sound signal includes the preset voice signal, adjusting the earphone playing volume to reduce the earphone playing volume, including:
and if the environment sound signal contains a preset voice signal matched with the preset environment type, adjusting the playing volume of the earphone so as to reduce the playing volume of the earphone.
5. The method according to any one of claims 1-4, further comprising:
acquiring a volume value of the environment sound signal;
when the environmental sound signal is determined not to contain the preset voice signal, detecting whether the volume value of the environmental sound signal is larger than the volume value played by the earphone or not;
if the volume value of the environment sound signal is larger than the volume value played by the earphone, adjusting the playing volume of the earphone so as to increase the playing volume of the earphone.
6. An adaptive adjusting device for playing volume of an earphone, the device is applied to a mobile terminal, the mobile terminal is connected with the earphone, and the device comprises:
the acquisition unit is used for acquiring the environmental sound signal in the earphone play mode;
the determining unit is used for analyzing the environment sound signal and determining whether the environment sound signal contains a preset voice signal;
the adjusting unit is used for adjusting the playing volume of the earphone when the determining unit determines that the environment sound signal contains the preset voice signal, so that the playing volume of the earphone is reduced;
and the output unit is used for sending voice prompt information to the user through the earphone according to the volume before adjustment.
7. The apparatus of claim 6,
the determining unit is specifically configured to analyze the environmental sound signal, and determine whether the environmental sound signal includes a voice signal emitted by a preset target object;
the adjusting unit is specifically configured to adjust the earphone playing volume when the determining unit determines that the environmental sound signal includes a voice signal sent by the preset target object, so that the earphone playing volume is reduced.
8. The apparatus according to claim 6, wherein the collecting unit is specifically configured to determine an environment type of an environment in which the mobile terminal is currently located, and collect the ambient sound signal in the earphone playback mode when the environment type belongs to a preset environment type.
9. The apparatus of claim 8,
the determining unit is specifically configured to analyze the environmental sound signal, and determine whether the environmental sound signal includes a preset voice signal matching the preset environment type;
the adjusting unit is specifically configured to adjust the earphone playing volume when the determining unit determines that the environmental sound signal includes a preset voice signal matched with the preset environment type, so that the earphone playing volume is reduced.
10. The apparatus of any of claims 6-9, further comprising:
an acquisition unit configured to acquire a volume value of the ambient sound signal;
the detection unit is used for detecting whether the volume value of the environment sound signal is larger than the volume value played by the earphone or not when the determination unit determines that the environment sound signal does not contain the preset voice signal;
the adjusting unit is further configured to adjust the earphone playing volume when the detecting unit detects that the volume value of the ambient sound signal is greater than the volume value of the earphone playing, so that the earphone playing volume is increased.
CN202010481086.XA 2020-05-31 2020-05-31 Adaptive adjustment method for playing volume of earphone and related device Pending CN112788179A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010481086.XA CN112788179A (en) 2020-05-31 2020-05-31 Adaptive adjustment method for playing volume of earphone and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010481086.XA CN112788179A (en) 2020-05-31 2020-05-31 Adaptive adjustment method for playing volume of earphone and related device

Publications (1)

Publication Number Publication Date
CN112788179A true CN112788179A (en) 2021-05-11

Family

ID=75749124

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010481086.XA Pending CN112788179A (en) 2020-05-31 2020-05-31 Adaptive adjustment method for playing volume of earphone and related device

Country Status (1)

Country Link
CN (1) CN112788179A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114564764A (en) * 2022-02-23 2022-05-31 中国农业银行股份有限公司 Password input method, device, equipment and storage medium
CN115209387A (en) * 2022-07-05 2022-10-18 深圳市鸿鑫达电子科技有限公司 Communication method, device, host equipment and storage medium for voice teaching

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103825993A (en) * 2014-03-11 2014-05-28 宇龙计算机通信科技(深圳)有限公司 Method and device for treating environment sound during conversation
CN107948801A (en) * 2017-12-21 2018-04-20 广东小天才科技有限公司 Earphone control method and earphone
EP3547710A1 (en) * 2018-03-30 2019-10-02 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for processing signals, terminal device, and non-transitory computer-readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103825993A (en) * 2014-03-11 2014-05-28 宇龙计算机通信科技(深圳)有限公司 Method and device for treating environment sound during conversation
CN107948801A (en) * 2017-12-21 2018-04-20 广东小天才科技有限公司 Earphone control method and earphone
EP3547710A1 (en) * 2018-03-30 2019-10-02 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for processing signals, terminal device, and non-transitory computer-readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114564764A (en) * 2022-02-23 2022-05-31 中国农业银行股份有限公司 Password input method, device, equipment and storage medium
CN115209387A (en) * 2022-07-05 2022-10-18 深圳市鸿鑫达电子科技有限公司 Communication method, device, host equipment and storage medium for voice teaching

Similar Documents

Publication Publication Date Title
CN110678921B (en) Dynamic text-to-speech responses from smart speakers
CN107580113B (en) Prompting method, prompting device, storage medium and terminal
CN102172044B (en) Control method and apparatus for audio output
CN111464905A (en) Hearing enhancement method and system based on intelligent wearable device and wearable device
CN108550367A (en) A kind of portable intelligent interactive voice control device, method and system
CN110602594A (en) Earphone device with specific environment sound reminding mode
CN112822585B (en) Audio playing method, device and system of in-ear earphone
CN113096677B (en) Intelligent noise reduction method and related equipment
WO2021159369A1 (en) Hearing aid method and apparatus for noise reduction, chip, earphone and storage medium
CN109413537A (en) Audio signal playback method, device and earphone
CN106210960A (en) There is the Headphone device of local call situation affirmation mode
CN113038337B (en) Audio playing method, wireless earphone and computer readable storage medium
CN106170108A (en) There is the Headphone device of decibel indicating mode
CN106658256A (en) Earphone, terminal and terminal control method
CN111510822A (en) Sound control system, device, method and computer readable storage medium thereof
WO2022227655A1 (en) Sound playing method and apparatus, and electronic device and readable storage medium
CN108595003A (en) Function control method and related equipment
US20240357278A1 (en) Operation control method of headset, ring headset and storage medium
CN104754462A (en) Automatic regulating device and method for volume and earphone
CN112788179A (en) Adaptive adjustment method for playing volume of earphone and related device
CN114710730B (en) Volume prompt method, device, earphone and storage medium
WO2022135071A1 (en) Earphone playback control method and apparatus, and electronic device and storage medium
CN115209298A (en) Audio playing method, device, earphone and storage medium
CN109195044B (en) Noise reduction earphone, call terminal, noise reduction control method and recording method
CN109361987B (en) Sports earphone and control method, device and equipment thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210511