CN112770001A - Output volume regulation method, device and computer readable storage medium - Google Patents

Output volume regulation method, device and computer readable storage medium Download PDF

Info

Publication number
CN112770001A
CN112770001A CN202011504671.3A CN202011504671A CN112770001A CN 112770001 A CN112770001 A CN 112770001A CN 202011504671 A CN202011504671 A CN 202011504671A CN 112770001 A CN112770001 A CN 112770001A
Authority
CN
China
Prior art keywords
volume
audio
detection signal
output
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
CN202011504671.3A
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN202011504671.3A priority Critical patent/CN112770001A/en
Publication of CN112770001A publication Critical patent/CN112770001A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/605Portable telephones adapted for handsfree use involving control of the receiver volume to provide a dual operational mode at close or far distance from the user
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The invention discloses an output volume regulation method, equipment and a computer readable storage medium, wherein the method comprises the following steps: detecting whether an external audio acquired by the equipment contains a preset detection signal in real time when the equipment is in an audio output process; if the external audio is detected to contain the detection signal, turning down the output volume of the audio according to a preset first volume regulation relation; and then, after the volume of the audio output is reduced according to the first volume regulation relation, if the external audio is detected to no longer contain the detection signal, the output volume of the audio is increased according to a preset second volume regulation relation. The humanized volume control scheme is realized, so that the user is in a relatively closed auditory environment, the external environment warning sound and the prompt sound cannot be omitted, the volume of the user can be dynamically adjusted according to the broadcasting state of the specific sound of the external environment, and the user experience is enhanced.

Description

Output volume regulation method, device and computer readable storage medium
Technical Field
The present invention relates to the field of mobile communications, and in particular, to a method and apparatus for adjusting and controlling output volume, and a computer-readable storage medium.
Background
In the prior art, with the continuous development of intelligent terminal devices, a user has more and more time to listen to music or watch videos by using devices such as a mobile phone. Among them, in some public places, in a scene that needs to remind users in a certain range with sound, sometimes it is omitted because users wear earphones, for example, typical scene one: in a running train carriage, a user wears earphones to listen to music, and sounds of reminding (such as front arrival) and warning (such as danger information) of a train are omitted due to the masking of the sound of the earphones; typical scenario two: in a square, a user wears earphones to listen to songs, and broadcast prompts and warning sounds on the square are omitted due to the fact that the earphone sounds are covered.
Therefore, it can be seen that, in the prior art, for a user in a closed auditory environment, great inconvenience may be caused by missing an external environment warning tone, a prompt tone, and the like, and the experience of the user is not good.
Disclosure of Invention
In order to solve the technical defects in the prior art, the invention provides an output volume control method, which comprises the following steps:
detecting whether an external audio acquired by the equipment contains a preset detection signal in real time when the equipment is in an audio output process;
if the external audio is detected to contain the detection signal, turning down the output volume of the audio according to a preset first volume regulation relation;
after the volume of the audio output is reduced according to the first volume regulation relation, continuously detecting whether the external audio contains the detection signal;
and if the external audio is detected to no longer contain the detection signal, increasing the output volume of the audio according to a preset second volume regulation relation.
Optionally, before detecting whether external audio acquired by the device contains a preset detection signal in real time while the device is in an audio output process, the method includes:
determining a target scene to be reminded;
and acquiring reminding voice in the target scene.
Optionally, before the device detects whether the external audio acquired by the device contains a preset detection signal in real time while the device is in an audio output process, the method further includes:
acquiring voice characteristics of the reminding voice;
and generating the corresponding detection signal according to the voice characteristics.
Optionally, the detecting, in the audio output process of the device, whether the external audio acquired by the device contains a preset detection signal in real time includes:
detecting whether the device performs the audio output process through an enclosed audio output component;
and if the audio output process is executed through the closed audio output assembly, detecting whether the external audio acquired by the equipment contains a preset detection signal in real time.
Optionally, if it is detected that the external audio includes the detection signal, turning down the output volume of the audio according to a preset first volume regulation relationship, including:
presetting a detection window corresponding to the detection signal, and presetting a first volume regulation relation between a first current volume value and a target volume value, wherein the first current volume value is larger than the target volume value;
and when the detection window detects that the external audio contains the detection signal, the output volume of the audio is reduced according to the first volume regulation relation.
Optionally, after the volume of the audio output is reduced according to the first volume control relationship, continuously detecting whether the external audio includes the detection signal includes:
continuously detecting whether the external audio contains the detection signal according to the detection window in a circulating way;
and if the external audio frequency is detected to contain the detection signal by a plurality of continuous detection windows, keeping the output volume of the audio frequency which is adjusted to be small.
Optionally, if it is detected that the external audio does not include the detection signal any more, turning up the output volume of the audio according to a preset second volume control relationship includes:
presetting a second volume regulation relation between a second current volume value and a target volume value, wherein the second current volume value is smaller than the target volume value;
if the detection signal is not detected in the external audio in any detection window, the output volume of the audio is increased according to the second volume regulation relation.
Optionally, if it is detected that the external audio does not include the detection signal any more, turning up the output volume of the audio according to a preset second volume control relationship, further includes:
determining a delay time of the target volume;
if the detection signal is not detected in the external audio in any detection window, the output volume of the audio is increased according to the second volume regulation and control relation after the delay time.
The present invention also proposes an output volume control device comprising a memory, a processor and a computer program stored on said memory and executable on said processor, said computer program implementing the steps of the output volume control method as defined in any one of the above when executed by said processor.
The present invention also provides a computer-readable storage medium having an output volume control program stored thereon, where the output volume control program, when executed by a processor, implements the steps of the output volume control method as set forth in any one of the above.
By implementing the output volume control method, the device and the computer readable storage medium, whether the external audio acquired by the device contains the preset detection signal or not is detected in real time when the device is in the audio output process; if the external audio is detected to contain the detection signal, turning down the output volume of the audio according to a preset first volume regulation relation; then, after the volume of the audio output is reduced according to the first volume regulation relation, continuously detecting whether the external audio contains the detection signal; and if the external audio is detected to no longer contain the detection signal, increasing the output volume of the audio according to a preset second volume regulation relation. The humanized volume control scheme is realized, so that the user is in a relatively closed auditory environment, the external environment warning sound and the prompt sound cannot be omitted, the volume of the user can be dynamically adjusted according to the broadcasting state of the specific sound of the external environment, and the user experience is enhanced.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
fig. 1 is a schematic diagram of a hardware structure of a mobile terminal according to the present invention;
fig. 2 is a communication network system architecture diagram provided by an embodiment of the present invention;
FIG. 3 is a flow chart of a first embodiment of an output volume control method according to the present invention;
FIG. 4 is a flow chart of a second embodiment of an output volume control method according to the present invention;
FIG. 5 is a flow chart of a third embodiment of an output volume control method according to the present invention;
FIG. 6 is a flow chart of a fourth embodiment of an output volume control method according to the present invention;
fig. 7 is a flowchart of a fifth embodiment of an output volume control method according to the present invention;
fig. 8 is a flowchart of a sixth embodiment of an output volume control method according to the present invention;
fig. 9 is a flowchart of a seventh embodiment of an output volume control method according to the present invention;
fig. 10 is a flowchart of an eighth embodiment of an output volume control method according to the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of 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 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 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, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and communication network system, the present invention provides various embodiments of the method.
Example one
Fig. 3 is a flowchart of a first embodiment of an output volume control method according to the present invention. An output volume control method, the method comprising:
s1, detecting whether the external audio acquired by the equipment contains a preset detection signal in real time in the audio output process of the equipment;
s2, if the external audio is detected to contain the detection signal, turning down the output volume of the audio according to a preset first volume regulation relation;
s3, after the volume of the audio output is reduced according to the first volume regulation relation, continuously detecting whether the external audio contains the detection signal;
and S4, if the external audio is detected to no longer contain the detection signal, turning up the output volume of the audio according to a preset second volume regulation relation.
Optionally, in this embodiment, the device may be a mobile terminal device such as a mobile phone, and further, when the device is in audio output, it may be understood that an external device such as an earphone and a headset connected to the mobile terminal device outputs audio, and at this time, because the user is in a closed audio output environment, suggestive sound of an external environment may be missed, so this embodiment will specifically solve this problem;
optionally, in this embodiment, when a mobile terminal device such as a mobile phone is in an earphone to answer a call or the earphone listens to voice information, since the ear of the user is close to the earphone of the device, especially when the user is in an environment similar to a closed audio output environment when the user is in a tight fit, suggestive sound of the external environment may also be missed, so this embodiment will also specifically solve this problem;
optionally, in this embodiment, in the process of outputting the audio by the device, it is detected in real time whether the external audio acquired by the device includes a preset detection signal, where the preset detection signal is voice information that needs to be acquired and is preset by a user, for example, broadcast information of a train station, broadcast information of an airport, arrival information of a bus, and the like;
optionally, in this embodiment, if it is detected that the external audio includes the detection signal, the output volume of the audio is reduced according to a preset first volume regulation relationship, it should be noted that, in this embodiment, when the detection signals corresponding to the broadcast information of the train station, the broadcast information of the airport, the arrival information of the bus and the like are identified, the output volume of the audio starts to be reduced and is in a continuously reduced state, and at this time, the user may more clearly obtain the broadcast information of the train station, the broadcast information of the airport, the arrival information of the bus and the like in the external environment;
optionally, in this embodiment, after the volume of the audio output is reduced according to the first volume regulation relationship, it is continuously detected whether the external audio includes the detection signal, where the purpose of the continuous detection is to enable a user to continuously listen to subsequent specific information contents, such as broadcast information of a train station, broadcast information of an airport, arrival information of a bus, and the like, in an external environment, and therefore, a smaller output volume needs to be maintained for a period of time;
optionally, in this embodiment, after the volume of the audio output is reduced according to the first volume regulation relationship, it is continuously detected whether the external audio includes the detection signal; if the external audio is detected to no longer contain the detection signal, the output volume of the audio is increased according to a preset second volume regulation and control relationship, and it can be understood that when a user knows the subsequent specific information contents of the broadcasting information of the railway station, the broadcasting information of the airport, the arrival information of the bus and the like in the external environment, that is, when the subsequent specific information contents of the broadcasting information of the railway station, the broadcasting information of the airport, the arrival information of the bus and the like in the external environment are broadcasted, the user does not need to listen to the external sound again, and at the moment, the original output volume of the user can be recovered;
optionally, in this embodiment, for setting and determining the detection signal, the terminal outputs sound by using a reverse sound wave and a window function, which can actively detect a specific signal outside the device, so as to actively turn down the sound output volume of the device, so as to ensure that the user does not influence the acquisition of important information due to the sound production of the device when using the device;
optionally, in this embodiment, the device itself has a microphone, or an earphone, an earplug, and the like connected to the device also have a microphone, taking the earphone as an example, on this basis, first, a detection signal is preset, that is, a feature signal to be detected may be a sound to be prompted, such as an alarm prompt sound, a train arrival prompt, and the like, and these special sounds need to be stored in a feature signal detection module of the earphone in advance; then, (2) presetting a detection formula of a detection signal, wherein the waveform of a signal recorded by an earphone microphone is determined, then presetting a backward wave F (x) of the detection signal, determining the window length t of the detection signal and the moving distance delta t of a window function each time, and finally determining a judgment threshold theta of the window function; in the implementation process, a microphone recording signal of the earphone includes all external sounds, wherein a preset detection signal of the embodiment may exist, optionally, a set θ value is assumed to be 0.2, the window function acquires two θ values, which are θ 1 and θ 2, respectively, in the moving process, where θ 1 is close to 0 and is smaller than the judgment threshold value 0.2, so that the preset detection signal is detected in this case; and when theta 2 is larger than 0.2, the situation considers that the preset detection signal is not detected, at the moment, the movement is continued by delta t, the theta value of the next window is calculated, whether the preset detection signal is detected is determined, when the preset detection signal is not detected, the volume is recovered, and when the preset detection signal is detected, the volume is reduced. Wherein, n is the moving frequency of the window function, the calculation mode of the judgment threshold is as follows:
Figure BDA0002844526560000111
the method has the advantages that whether the external audio acquired by the equipment contains a preset detection signal or not is detected in real time when the equipment is in the audio output process; if the external audio is detected to contain the detection signal, turning down the output volume of the audio according to a preset first volume regulation relation; then, after the volume of the audio output is reduced according to the first volume regulation relation, continuously detecting whether the external audio contains the detection signal; and if the external audio is detected to no longer contain the detection signal, increasing the output volume of the audio according to a preset second volume regulation relation. The humanized volume control scheme is realized, so that the user is in a relatively closed auditory environment, the external environment warning sound and the prompt sound cannot be omitted, the volume of the user can be dynamically adjusted according to the broadcasting state of the specific sound of the external environment, and the user experience is enhanced.
Example two
Fig. 4 is a flowchart of a second embodiment of an output volume control method according to the present invention, where based on the above embodiments, before detecting whether external audio acquired by a device includes a preset detection signal in real time during an audio output process of the device, the method includes:
s01, determining a target scene to be reminded;
and S02, acquiring the reminding voice in the target scene.
Optionally, in this embodiment, the target scene includes a train station, an airport, a bus, and other places with typical broadcast or warning sound;
optionally, in this embodiment, the reminding voice includes two aspects, that is, the starting voice of the reminding voice, for example, beginning music of the information starts to be broadcasted in the scene of a train station, an airport, and a bus, and that is, text sound after the beginning music ends in the scene of a train station, an airport, and a bus;
optionally, in this embodiment, in a train station, an airport, and a bus scene, the number of trains and flights corresponding to the user are used as the second reminding voice;
optionally, in this embodiment, in a train station, an airport, and a bus scene, the beginning music before the train number and the flight corresponding to the user is used as the first reminding voice.
The method has the advantages that the target scene to be reminded is determined; and then, acquiring reminding voice under the target scene. The more humanized volume control scheme is realized, a definite basis is provided for the warning tone and the prompt tone, so that the user is in a relatively closed auditory environment, the external environment warning tone and the prompt tone cannot be omitted, the volume of the user can be dynamically adjusted according to the broadcasting state of the specific sound of the external environment, and the user experience is enhanced.
EXAMPLE III
Fig. 5 is a flowchart of a third embodiment of an output volume control method according to the present invention, where based on the above embodiments, before the device detects whether an external audio acquired by the device contains a preset detection signal in real time during an audio output process, the method further includes:
s03, acquiring the voice characteristics of the reminding voice;
and S04, generating the corresponding detection signal according to the voice characteristics.
Optionally, in this embodiment, the voice feature of the reminding voice is obtained, where the voice feature also includes two aspects, that is, determining the rhythm feature of the train number and the beginning music before the flight corresponding to the user in the scene of the train station, the airport, and the bus, and that of the letter, the number, and the like of the train number and the flight corresponding to the user in the scene of the train station, the airport, and the bus;
optionally, in this embodiment, the corresponding detection signals are generated according to the voice features, wherein a second detection signal and a first detection signal corresponding to the above two aspects are respectively determined;
optionally, in this embodiment, according to the window function determination scheme of the foregoing embodiment, different determination thresholds are respectively set for the first detection signal and the second detection signal, so as to improve accuracy and timeliness of detection.
The embodiment has the advantages that the voice characteristics of the reminding voice are obtained; then, the corresponding detection signal is generated according to the voice feature. The more humanized volume regulation and control scheme is realized, a determination basis is provided for the detection signal, so that the user is in a relatively closed auditory environment, external environment warning sound and prompt sound cannot be omitted, the volume of the user can be dynamically adjusted according to the broadcasting state of the specific sound of the external environment, and the user experience is enhanced.
Example four
Fig. 6 is a flowchart of a fourth embodiment of an output volume control method according to the present invention, where based on the above embodiments, the detecting whether an external audio acquired by a device contains a preset detection signal in real time during an audio output process of the device includes:
s11, detecting whether the device executes the audio output process through a closed audio output component;
and S12, if the audio output process is executed through the closed audio output assembly, detecting whether the external audio acquired by the equipment contains a preset detection signal in real time.
Optionally, in this embodiment, if the audio output process is executed through the closed audio output component, whether an external audio acquired by the device includes a preset detection signal is detected in real time, where the closed audio output component includes a closed audio output speaker such as an earphone and an earplug;
optionally, in this embodiment, if the audio output is not executed by the closed audio output component, but in the process of listening to the sound of the earphone with a loud sound or a close fitting degree by the earphone of the device, it is also detected in real time whether the external audio acquired by the device includes a preset detection signal;
optionally, in this embodiment, if the closed audio output component is used to perform the audio output and watch a video through a device, it is also detected in real time whether an external audio acquired by the device includes a preset detection signal, where the closed audio output component includes a closed audio output speaker such as an earphone and an earplug;
optionally, in this embodiment, if the audio output is performed by the closed audio output component and the manual adjustment process of the output volume is performed by the device, it is also detected in real time whether the external audio acquired by the device contains a preset detection signal, where the closed audio output component includes a closed audio output speaker such as an earphone or an earplug, so as to avoid the subsequent influence on the volume output regulation and control of the present scheme due to the manual adjustment of the volume.
The embodiment has the advantages that the audio output process is executed by detecting whether the equipment passes through the closed audio output component; and if the audio output process is executed through the closed audio output assembly, detecting whether the external audio acquired by the equipment contains a preset detection signal in real time. The more humanized volume regulation and control scheme is realized, the detection opportunity of the detection signal is determined, the user is in a relatively closed auditory environment, the external environment warning sound and the prompt sound cannot be omitted, the volume of the user can be dynamically adjusted according to the broadcasting state of the specific sound of the external environment, and the user experience is enhanced.
EXAMPLE five
Fig. 7 is a flowchart of a fifth embodiment of an output volume control method according to the present invention, where based on the above embodiments, if it is detected that the external audio includes the detection signal, the step of turning down the output volume of the audio according to a preset first volume control relationship includes:
s21, presetting a detection window corresponding to the detection signal, and presetting a first volume regulation relation between a first current volume value and a target volume value, wherein the first current volume value is larger than the target volume value;
and S22, when the detection window detects that the external audio contains the detection signal, turning down the output volume of the audio according to the first volume regulation and control relation.
Optionally, in this embodiment, the current volume is divided into a plurality of volume level ranges, and correspondingly, the target volume value is also correspondingly divided into a plurality of volume level ranges;
optionally, in this embodiment, if the current volume is at a higher volume level before being adjusted, the adjusted target volume value is also at a higher corresponding volume level correspondingly;
optionally, in this embodiment, if the current volume is at a plurality of dynamic volume levels before being adjusted, correspondingly, the adjusted target volume value is also at a plurality of dynamic higher corresponding volume levels;
optionally, in this embodiment, if the current volume is at a higher volume level before being adjusted, and correspondingly, the adjusted target volume value is also at a higher corresponding volume level, at this time, a manual adjustment instruction of the user is received, and the target volume value is manually adjusted through the instruction, so that the user can further listen to a warning sound or warning sound of the external environment.
The embodiment has the advantages that a detection window corresponding to the detection signal is preset, and a first volume regulation relation between a first current volume value and a target volume value is preset, wherein the first current volume value is larger than the target volume value; and then, when the detection window detects that the external audio contains the detection signal, the output volume of the audio is reduced according to the first volume regulation and control relation. The more humanized volume regulation and control scheme is realized, the regulation and control mode of the output volume is determined, so that the user is in a relatively closed auditory environment, external environment warning sound and prompt sound cannot be omitted, the volume of the user can be dynamically adjusted according to the broadcasting state of the specific sound of the external environment, and the user experience is enhanced.
EXAMPLE six
Fig. 8 is a flowchart of a sixth embodiment of an output volume control method according to the present invention, where based on the above embodiments, after the volume of the audio output is reduced according to the first volume control relationship, continuously detecting whether the external audio includes the detection signal includes the following steps:
s31, continuously detecting whether the external audio contains the detection signal according to the detection window in a circulating mode;
and S32, if the detection signals are detected to be contained in the external audio by a plurality of continuous detection windows, keeping the output volume of the audio which is adjusted to be small.
Optionally, in this embodiment, if the external audio is detected by a plurality of continuous detection windows to include the detection signal, the reduced output volume of the audio is maintained, and at this time, the output state of the original audio is maintained, and manual adjustment of the volume of the original audio by a user is received;
optionally, in this embodiment, if the external audio includes the first detection signal detected by a plurality of consecutive detection windows, the adjusted down output volume of the audio is maintained;
optionally, in this embodiment, if the external audio includes the second detection signal detected by a plurality of consecutive detection windows, the adjusted-down output volume of the audio is maintained;
optionally, in this embodiment, if the external audio includes the first detection signal and the second detection signal that appear continuously or alternately in a plurality of continuous detection windows, the adjusted down output volume of the audio is maintained.
The embodiment has the advantages that whether the external audio contains the detection signal is detected in a circulating mode by continuously pressing the detection window; and if the external audio frequency is detected to contain the detection signal by a plurality of continuous detection windows, keeping the output volume of the audio frequency which is adjusted to be small. The more humanized volume control scheme is realized, the holding condition after the volume control is output is determined, so that the user is in a relatively closed auditory environment, the external environment warning sound and the prompting sound cannot be omitted, the volume of the user can be dynamically adjusted according to the broadcasting state of the specific sound of the external environment, and the user experience is enhanced.
EXAMPLE seven
Fig. 9 is a flowchart of a seventh embodiment of an output volume control method according to the present invention, where based on the above embodiments, if it is detected that the external audio does not include the detection signal any more, the increasing the output volume of the audio according to a preset second volume control relationship includes:
s41, presetting a second volume regulation relation between a second current volume value and a target volume value, wherein the second current volume value is smaller than the target volume value;
and S42, if the detection signal is not detected in the external audio in any detection window, increasing the output volume of the audio according to the second volume regulation relation.
Optionally, in this embodiment, the current second volume is divided into a plurality of volume level ranges, and correspondingly, the target volume value is also correspondingly divided into a plurality of volume level ranges;
optionally, in this embodiment, if the current second volume is at a higher volume level before being adjusted, the adjusted target volume value is also at a higher corresponding volume level correspondingly;
optionally, in this embodiment, if the current second volume is at a plurality of dynamic volume levels before being adjusted, correspondingly, the adjusted target volume value is also at a plurality of dynamic higher corresponding volume levels;
optionally, in this embodiment, if it is not detected that the external audio includes the first detection signal or the second detection signal in any of the detection windows, the output volume of the audio is increased according to the second volume adjustment relationship, and similarly, a manual adjustment instruction of a user is received, and the output volume of the audio is further increased or increased in advance through the instruction.
The method has the advantages that a second volume regulation relation between a second current volume value and a target volume value is preset, wherein the second current volume value is smaller than the target volume value; and then, if the detection signal is not detected in the external audio in any detection window, the output volume of the audio is increased according to the second volume regulation relation. The more humanized volume control scheme is realized, the recovery condition after the volume control is output is determined, so that the user is in a relatively closed auditory environment, the external environment warning tone and the prompt tone cannot be omitted, the volume of the user can be dynamically adjusted according to the broadcasting state of the specific sound of the external environment, and the user experience is enhanced.
Example eight
Fig. 10 is a flowchart of an eighth embodiment of the output volume control method according to the present invention, where based on the above embodiments, if it is detected that the external audio does not include the detection signal any more, the method increases the output volume of the audio according to a preset second volume control relationship, further including:
s43, determining the delay time of the target volume;
and S44, if the detection signal is not detected in the external audio in any detection window, increasing the output volume of the audio according to the second volume regulation relationship after the delay time.
Optionally, in this embodiment, if it is not detected that the external audio includes the first detection signal in any of the detection windows, the output volume of the audio is increased according to the second volume regulation relationship after a first delay time;
optionally, in this embodiment, if it is not detected that the external audio includes the second detection signal in any of the detection windows, the output volume of the audio is increased according to the second volume regulation relationship after a second delay time;
optionally, in this embodiment, in the above embodiment, different delay times are respectively determined for the first detection signal and the second detection signal, so that a user has sufficient time to receive the heard voice information, and the differentiated delay times are more beneficial for the user to record or perceive information with different importance degrees, specifically, for example, the first detection signal corresponds to a longer delay time, and the first detection signal only needs to be shorter or does not need to set the delay time.
The method has the advantages that the delay time of the target volume is determined; and then, if the detection signal is not detected in the external audio in any detection window, the output volume of the audio is increased according to the second volume regulation and control relation after the delay time. The more humanized volume control scheme is realized, the delay control mode after the volume control is output is determined, so that the user is in a relatively closed auditory environment, external environment warning sound and prompt sound cannot be omitted, the volume of the user can be dynamically adjusted according to the broadcasting state of the specific sound of the external environment, and the user experience is enhanced.
Example nine
Based on the foregoing embodiments, the present invention further provides an output volume control device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the output volume control method according to any one of the above.
It should be noted that the device embodiment and the method embodiment belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment, and technical features in the method embodiment are correspondingly applicable in the device embodiment, which is not described herein again.
Example ten
Based on the foregoing embodiments, the present invention further provides a computer-readable storage medium, where an output volume control program is stored, and when the output volume control program is executed by a processor, the steps of the output volume control method according to any one of the foregoing embodiments are implemented.
It should be noted that the media embodiment and the method embodiment belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment, and technical features in the method embodiment are correspondingly applicable in the media embodiment, which is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. An output volume control method, comprising:
detecting whether an external audio acquired by the equipment contains a preset detection signal in real time when the equipment is in an audio output process;
if the external audio is detected to contain the detection signal, turning down the output volume of the audio according to a preset first volume regulation relation;
after the volume of the audio output is reduced according to the first volume regulation relation, continuously detecting whether the external audio contains the detection signal;
and if the external audio is detected to no longer contain the detection signal, increasing the output volume of the audio according to a preset second volume regulation relation.
2. The output volume control method according to claim 1, wherein before detecting whether the external audio acquired by the device contains a preset detection signal in real time while the device is in an audio output process, the method comprises:
determining a target scene to be reminded;
and acquiring reminding voice in the target scene.
3. The output volume control method according to claim 2, wherein before detecting whether the external audio acquired by the device contains a preset detection signal in real time while the device is in an audio output process, the method further comprises:
acquiring voice characteristics of the reminding voice;
and generating the corresponding detection signal according to the voice characteristics.
4. The output volume control method according to claim 3, wherein the detecting whether the external audio acquired by the device contains a preset detection signal in real time while the device is in an audio output process includes:
detecting whether the device performs the audio output process through an enclosed audio output component;
and if the audio output process is executed through the closed audio output assembly, detecting whether the external audio acquired by the equipment contains a preset detection signal in real time.
5. The method as claimed in claim 4, wherein the step of turning down the output volume of the audio according to a preset first volume control relationship if it is detected that the external audio includes the detection signal comprises:
presetting a detection window corresponding to the detection signal, and presetting a first volume regulation relation between a first current volume value and a target volume value, wherein the first current volume value is larger than the target volume value;
and when the detection window detects that the external audio contains the detection signal, the output volume of the audio is reduced according to the first volume regulation relation.
6. The method of claim 5, wherein the step of continuously detecting whether the external audio includes the detection signal after the step of reducing the volume of the audio output according to the first volume control relationship comprises:
continuously detecting whether the external audio contains the detection signal according to the detection window in a circulating way;
and if the external audio frequency is detected to contain the detection signal by a plurality of continuous detection windows, keeping the output volume of the audio frequency which is adjusted to be small.
7. The method as claimed in claim 6, wherein the step of turning up the output volume of the audio according to a preset second volume control relationship if it is detected that the external audio does not include the detection signal any more comprises:
presetting a second volume regulation relation between a second current volume value and a target volume value, wherein the second current volume value is smaller than the target volume value;
if the detection signal is not detected in the external audio in any detection window, the output volume of the audio is increased according to the second volume regulation relation.
8. The method as claimed in claim 7, wherein if it is detected that the external audio does not include the detection signal, the method increases the output volume of the audio according to a preset second volume control relationship, further comprising:
determining a delay time of the target volume;
if the detection signal is not detected in the external audio in any detection window, the output volume of the audio is increased according to the second volume regulation and control relation after the delay time.
9. An output volume adjusting device, characterized in that the device comprises a memory, a processor and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, implements the steps of the output volume adjusting method according to any one of claims 1 to 8.
10. A computer-readable storage medium, having an output volume control program stored thereon, which when executed by a processor implements the steps of the output volume control method according to any one of claims 1 to 8.
CN202011504671.3A 2020-12-18 2020-12-18 Output volume regulation method, device and computer readable storage medium Pending CN112770001A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011504671.3A CN112770001A (en) 2020-12-18 2020-12-18 Output volume regulation method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011504671.3A CN112770001A (en) 2020-12-18 2020-12-18 Output volume regulation method, device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112770001A true CN112770001A (en) 2021-05-07

Family

ID=75694964

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011504671.3A Pending CN112770001A (en) 2020-12-18 2020-12-18 Output volume regulation method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112770001A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174977A (en) * 2022-06-30 2022-10-11 广东长虹电子有限公司 Method and system for reminding viewer of being called by television

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104158506A (en) * 2014-07-29 2014-11-19 腾讯科技(深圳)有限公司 Method, device and terminal for adjusting volume
CN104954555A (en) * 2015-05-18 2015-09-30 百度在线网络技术(北京)有限公司 Volume adjusting method and system
CN106445459A (en) * 2016-10-12 2017-02-22 深圳市金立通信设备有限公司 Method for controlling audio playing of earphones and terminal
CN107231473A (en) * 2017-05-23 2017-10-03 努比亚技术有限公司 A kind of audio output regulation and control method, equipment and computer-readable recording medium
CN109298845A (en) * 2018-09-21 2019-02-01 努比亚技术有限公司 Terminal control method, terminal and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104158506A (en) * 2014-07-29 2014-11-19 腾讯科技(深圳)有限公司 Method, device and terminal for adjusting volume
CN104954555A (en) * 2015-05-18 2015-09-30 百度在线网络技术(北京)有限公司 Volume adjusting method and system
CN106445459A (en) * 2016-10-12 2017-02-22 深圳市金立通信设备有限公司 Method for controlling audio playing of earphones and terminal
CN107231473A (en) * 2017-05-23 2017-10-03 努比亚技术有限公司 A kind of audio output regulation and control method, equipment and computer-readable recording medium
CN109298845A (en) * 2018-09-21 2019-02-01 努比亚技术有限公司 Terminal control method, terminal and computer readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174977A (en) * 2022-06-30 2022-10-11 广东长虹电子有限公司 Method and system for reminding viewer of being called by television

Similar Documents

Publication Publication Date Title
CN109511037B (en) Earphone volume adjusting method and device and computer readable storage medium
CN107231473B (en) Audio output regulation and control method, equipment and computer readable storage medium
CN112394896B (en) Reverse screen-throwing frame rate control method, device and computer readable storage medium
CN112004174B (en) Noise reduction control method, device and computer readable storage medium
CN109144441B (en) Screen adjusting method, terminal and computer readable storage medium
CN107295270B (en) Image brightness value determination method and device, terminal and computer-readable storage medium
CN109710159B (en) Flexible screen response method and device and computer readable storage medium
CN109584897B (en) Video noise reduction method, mobile terminal and computer readable storage medium
CN108234751B (en) Automatic danger detection method, mobile terminal and computer readable storage medium
CN109491577B (en) Holding interaction method and device and computer readable storage medium
CN110069122B (en) Screen control method, terminal and computer readable storage medium
CN112437472B (en) Network switching method, equipment and computer readable storage medium
CN112667339B (en) Screen refresh rate setting method, terminal and computer readable medium
CN112102780B (en) Display frame rate regulation and control method, device and computer readable storage medium
CN107517487B (en) Call control method and mobile terminal
CN109561221B (en) Call control method, device and computer readable storage medium
CN112423211A (en) Multi-audio transmission control method, equipment and computer readable storage medium
CN108076230B (en) Call volume adjusting method, mobile terminal and computer readable storage medium
CN108897451B (en) Main and auxiliary display screen identification method, mobile terminal and computer readable storage medium
CN108040311B (en) Audio playing method, terminal and computer readable storage medium
CN112770001A (en) Output volume regulation method, device and computer readable storage medium
CN107743204B (en) Exposure processing method, terminal, and computer-readable storage medium
CN108196924B (en) Brightness adjusting method, terminal and computer readable storage medium
CN107995365B (en) Method for outputting prompt tone by terminal, mobile terminal and computer readable storage medium
CN112532787B (en) Earphone audio data processing method, mobile terminal and computer readable storage medium

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