CN108897516B - Wearable device volume adjustment method and related product - Google Patents

Wearable device volume adjustment method and related product Download PDF

Info

Publication number
CN108897516B
CN108897516B CN201810606206.7A CN201810606206A CN108897516B CN 108897516 B CN108897516 B CN 108897516B CN 201810606206 A CN201810606206 A CN 201810606206A CN 108897516 B CN108897516 B CN 108897516B
Authority
CN
China
Prior art keywords
volume
adjustment
interval
wearable device
intervals
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.)
Expired - Fee Related
Application number
CN201810606206.7A
Other languages
Chinese (zh)
Other versions
CN108897516A (en
Inventor
张海平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810606206.7A priority Critical patent/CN108897516B/en
Publication of CN108897516A publication Critical patent/CN108897516A/en
Application granted granted Critical
Publication of CN108897516B publication Critical patent/CN108897516B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application discloses a wearable device volume adjustment method and a related product, wherein the method comprises the following steps: establishing wireless connection with electronic equipment, and receiving an audio file through the wireless connection; detect wait to play the volume of interval in the audio file, if first volume in waiting to play the volume of interval is higher than first volume threshold, draws the first adjustment interval that satisfies the settlement condition before the first volume, will first adjustment interval divides into a plurality of adjustment subintervals according to the volume value, right a plurality of adjustment subintervals adopt different volume adjustment coefficient to reduce the volume, obtain the second adjustment interval after the adjustment audio file need be played during first adjustment interval, play the second adjustment interval. The technical scheme provided by the application has the advantage of high user experience.

Description

Wearable device volume adjustment method and related product
Technical Field
The application relates to the technical field of mobile terminal accessories, in particular to a wearable device volume adjusting method and a related product.
Background
With the popularization and application of smart phones, users increasingly rely on smart phones, and wearable devices, such as wireless earphones, smart watches, smart bracelets and other devices, are also widely applied with the rise of smart phones. For wearable equipment, here take wireless headset as an example, wireless headset has the advantage of being connected with the smart mobile phone conveniently, and to wireless headset, it can't carry out the regulation of volume automatically, so wireless headset can't carry out intelligent volume control, has influenced user's experience degree.
Disclosure of Invention
The embodiment of the application provides a wearable device volume adjustment method and a wearable device, so that intelligent volume control can be performed, and user experience is improved.
In a first aspect, an embodiment of the present application provides a wearable device, where the wearable device includes: the device comprises a processing component, an audio playing component and a wireless transceiver; wherein, the processing component is respectively connected with the audio playing component and the wireless transceiver;
the wireless transceiver is used for keeping wireless connection with the electronic equipment and receiving the audio file through the wireless connection;
the processing part is used for detecting the volume of a to-be-played interval in the audio file, if the first volume in the volume of the to-be-played interval is higher than a first volume threshold value, extracting a first adjustment interval meeting a set condition before the first volume, dividing the first adjustment interval into a plurality of adjustment sub-intervals according to the volume value, reducing the volume by adopting different volume adjustment coefficients in the plurality of adjustment sub-intervals to obtain an adjusted second adjustment interval, and controlling the audio playing part to play the second adjustment interval when the audio file needs to be played in the first adjustment interval.
In a second aspect, a wearable device volume adjustment method is provided, which is applied to the wearable device, and the wearable device includes: the device comprises a processing component, an audio playing component and a wireless transceiver; the method comprises the following steps:
establishing wireless connection with electronic equipment, and receiving an audio file through the wireless connection;
detect wait to play the volume of interval in the audio file, if first volume in waiting to play the volume of interval is higher than first volume threshold, draws the first adjustment interval that satisfies the settlement condition before the first volume, will first adjustment interval divides into a plurality of adjustment subintervals according to the volume value, right a plurality of adjustment subintervals adopt different volume adjustment coefficient to reduce the volume, obtain the second adjustment interval after the adjustment audio file need be played during first adjustment interval, play the second adjustment interval.
In a third aspect, a computer-readable storage medium is provided, which stores a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method provided in the second aspect.
In a fourth aspect, there is provided a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform the method provided by the second aspect
It can be seen that, according to the technical scheme provided by the application, after an audio file is obtained, a first volume of the audio file, which is greater than a first volume threshold, is detected, then a first adjustment interval meeting a set condition is extracted, the first adjustment interval is divided into a plurality of adjustment sub-intervals according to the volume value, different volume adjustment coefficients are set for the plurality of adjustment sub-intervals to reduce the volume, so that an adjusted second adjustment interval is obtained, the first adjustment interval is replaced by the second adjustment interval, so that the first volume is lower than the volume interval, and sudden change cannot be caused in the volume of the first volume due to the fact that the volume adjustment is the volume adjustment of the whole adjustment interval, so that the adjustment of the volume of the audio is softer, the distortion rate of the volume is reduced, and the user experience degree is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of a network architecture of a wearable device and a wireless communication device.
Fig. 1a is a schematic structural diagram of a wireless headset provided in the present application.
Fig. 1b is another schematic structural diagram of a wireless headset provided in the present application.
Fig. 2 is a schematic structural diagram of a wireless headset provided in the present application.
Fig. 3 is a flowchart illustrating a wearable device volume adjustment method according to the present application.
Fig. 4 is a schematic structural diagram of a wearable device according to 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 inventive step, are within the scope of the present disclosure.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
In the wearable device provided in the first aspect,
the processing unit is specifically configured to extract audio data of a set time before the first volume as a first adjustment interval.
In the wearable device provided in the first aspect,
the set time is fixed time;
or the set time is calculated according to the following formula;
Figure BDA0001694388000000031
wherein T is the wearing time of the wearable device, T is the standard time, y is the first volume value,
Figure BDA0001694388000000032
is the average of all volumes of the audio file.
In the wearable device provided in the first aspect,
the processor is specifically configured to obtain a volume maximum value of each of the plurality of adjustment sub-intervals, extract n adjustment sub-intervals in which the volume maximum value is greater than a second volume threshold from the plurality of adjustment sub-intervals, arrange the volume maximum values of the n adjustment sub-intervals in an ascending order to obtain n arranged adjustment sub-intervals, and reduce the volume by adopting a monotonically decreasing manner to obtain a second adjustment interval for the volume adjustment coefficients of the n arranged adjustment sub-intervals, where the maximum value of the volume adjustment coefficients of the n arranged adjustment sub-intervals is less than 1, and the second volume threshold is less than the first volume threshold.
In the wearable device provided in the first aspect,
the processor is specifically configured to extract audio data between the first volume and a zeroth volume as a first adjustment interval, where the zeroth volume is a volume greater than a first volume threshold.
In the wearable device volume adjustment method provided in the second aspect,
the first adjustment interval meeting the setting condition before the first volume is extracted specifically includes:
and extracting audio data of a set time before the first volume as a first adjustment interval.
In the wearable device volume adjustment method provided in the second aspect,
the set time is fixed time;
or the set time is calculated according to the following formula;
Figure BDA0001694388000000041
wherein T is the wearing duration of the wearable device, T is the standard duration, and y is the first volume value,
Figure BDA0001694388000000042
Is the average of all volumes of the audio file.
In the wearable device volume adjustment method provided in the second aspect,
the method comprises the steps of obtaining the volume maximum value of each adjusting subinterval of a plurality of adjusting subintervals, extracting n adjusting subintervals with the volume maximum value larger than a second volume threshold value from the adjusting subintervals, carrying out ascending arrangement on the volume maximum values of the n adjusting subintervals to obtain n arranged adjusting subintervals, and reducing the volume by adopting a monotone decreasing mode on the volume adjusting coefficients of the n arranged adjusting subintervals to obtain a second adjusting interval, wherein the maximum value of the volume adjusting coefficients of the n arranged adjusting subintervals is smaller than 1, and the second volume threshold value is smaller than the first volume threshold value.
In the wearable device volume adjustment method provided in the second aspect, the first adjustment interval that satisfies the setting condition before the extracting of the first volume specifically includes:
and extracting audio data between the first volume and a zeroth volume as a first adjustment interval, wherein the zeroth volume is a volume greater than a first volume threshold.
The wireless communication device according to the embodiment of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like. Of course, in other applications, the wireless communication device may also be a network side device, such as a base station, an access point, and the like. For convenience of description, the above-mentioned devices are collectively referred to as wireless communication devices.
Referring to fig. 1, fig. 1 is a schematic diagram of a network architecture disclosed in an embodiment of the present application, where the network architecture may include an electronic device and a wireless headset, where the wireless headset may be communicatively connected to the electronic device through a wireless network (e.g., bluetooth, infrared, or WiFi). It should be noted that the wireless headset may include one or more earplugs, and the embodiments of the present application are not limited thereto. In a specific implementation, the wireless headset may send a pairing request to the electronic device, and the electronic device may receive the pairing request sent by the wearable device, where the wearable device includes at least one independent component, and in response to the pairing request, detect a number of components included in the wearable device, and display information of the wearable device, such as an electric quantity, a pairing number, and the like, according to the number of components.
Fig. 1a is a structural diagram of a wireless headset according to an embodiment of the present disclosure, as shown in fig. 1a, two earplugs may be completely separated from each other. As shown in fig. 1a, the wireless headset includes: two earplugs, each earplug comprising: an earbud housing 121, a speaker disposed on a surface of the earbud housing 121, the earbud further comprising: the wireless transceiver 122, a processing chip (not shown), and a battery (not shown), wherein the processing chip is electrically connected to the touch pad, the wireless transceiver, and the speaker, specifically, the electrical connection may be through a bus, but in practical applications, the electrical connection may also be through other connection methods.
Referring to fig. 1b, fig. 1b is a schematic structural diagram of an electronic device 100 disclosed in the embodiment of the present application, where the electronic device 100 includes a storage and processing circuit 110, and a communication circuit 120 and an audio component 140 connected to the storage and processing circuit 110, and a display component 130 or a touch component may also be disposed in some specific electronic devices 100.
The electronic device 100 may include control circuitry, which may include storage and processing circuitry 110. The storage and processing circuitry 110 may be a memory, such as a hard drive memory, a non-volatile memory (e.g., flash memory or other electronically programmable read-only memory used to form a solid state drive, etc.), a volatile memory (e.g., static or dynamic random access memory, etc.), etc., and the embodiments of the present application are not limited thereto. Processing circuitry in storage and processing circuitry 110 may be used to control the operation of electronic device 100. The processing circuitry may be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.
The storage and processing circuitry 110 may be used to run software in the electronic device 100, such as Voice Over Internet Protocol (VOIP) telephone call applications, simultaneous interpretation functions, media playing applications, operating system functions, and so forth. Such software may be used to perform control operations such as, for example, camera-based image capture, ambient light measurement based on an ambient light sensor, proximity sensor measurement based on a proximity sensor, information display functions implemented based on a status indicator such as a status indicator light of a light emitting diode, touch event detection based on a touch sensor, operations associated with performing wireless communication functions, operations associated with collecting and generating audio signals, control operations associated with collecting and processing button press event data, and other functions in the electronic device 100, to name a few.
The electronic device 100 may also include input-output circuitry 150. The input-output circuit 150 may be used to enable the electronic device 100 to input and output data, i.e., to allow the electronic device 100 to receive data from an external device and also to allow the electronic device 100 to output data from the electronic device 100 to the external device. The input-output circuit 150 may further include a sensor 170. The sensors 170 may include ambient light sensors, optical and capacitive based proximity sensors, touch sensors (e.g., optical based touch sensors and/or capacitive touch sensors, where the touch sensors may be part of a touch display screen or may be used independently as a touch sensor structure), acceleration sensors, and other sensors, among others.
Input-output circuitry 150 may also include a touch sensor array (i.e., display 130 may be a touch display screen). The touch sensor may be a capacitive touch sensor formed by a transparent touch sensor electrode (e.g., an Indium Tin Oxide (ITO) electrode) array, or may be a touch sensor formed using other touch technologies, such as acoustic wave touch, pressure sensitive touch, resistive touch, optical touch, and the like, and the embodiments of the present application are not limited thereto.
The electronic device 100 may also include an audio component 140. The audio component 140 may be used to provide audio input and output functionality for the electronic device 100. The audio components 140 in the electronic device 100 may include a speaker, a microphone, a buzzer, a tone generator, and other components for generating and detecting sound.
The communication circuit 120 may be used to provide the electronic device 100 with the capability to communicate with external devices. The communication circuit 120 may include analog and digital input-output interface circuits, and wireless communication circuits based on radio frequency signals and/or optical signals. The wireless communication circuitry in communication circuitry 120 may include radio-frequency transceiver circuitry, power amplifier circuitry, low noise amplifiers, switches, filters, and antennas. For example, the wireless Communication circuitry in Communication circuitry 120 may include circuitry to support Near Field Communication (NFC) by transmitting and receiving Near Field coupled electromagnetic signals. For example, the communication circuit 120 may include a near field communication antenna and a near field communication transceiver. The communications circuitry 120 may also include a cellular telephone transceiver and antenna, a wireless local area network transceiver circuitry and antenna, and so forth.
The electronic device 100 may further include a battery, power management circuitry, and other input-output units 160. The input-output unit 160 may include buttons, joysticks, click wheels, scroll wheels, touch pads, keypads, keyboards, cameras, light emitting diodes or other status indicators, and the like.
A user may input commands through input-output circuitry 150 to control the operation of electronic device 100, and may use output data of input-output circuitry 150 to enable receipt of status information and other outputs from electronic device 100.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a wearable device provided in the present application, as shown in fig. 2, the wearable device includes: a first earplug and a second earplug, wherein the first earplug or the second earplug may comprise: a processing component 201, an audio playing component 202 and a wireless transceiver 203; wherein, the processing unit 201 is connected to the audio playing unit 202 and the wireless transceiver 203, respectively.
A wireless transceiver 203 for maintaining a wireless connection with the electronic device and receiving audio files through the wireless connection;
the wireless connection may specifically be a bluetooth connection, a wifi connection, a radio frequency connection, or other wireless connection manners, and certainly in practical applications, other wireless connection manners may also be adopted.
The audio file may be specifically an individual audio file, and certainly may also be a file of an audio portion in a video file, and the present application is not limited to what manner the audio file is obtained.
The processing unit 201 is configured to detect the volume of a to-be-played interval in the audio file, if a first volume in the volume of the to-be-played interval is higher than a first volume threshold, extract a first adjustment interval that meets a set condition before the first volume, divide the first adjustment interval into a plurality of adjustment sub-intervals according to the volume value, reduce the volume by using different volume adjustment coefficients for the plurality of adjustment sub-intervals, obtain an adjusted second adjustment interval, and control the audio playing unit to play the second adjustment interval when the audio file needs to play the first adjustment interval.
The first volume threshold may be a fixed value set by a user, for example, 90 db, or may be a variable value in practical applications, that is, a value that varies according to the wearing time of the wearable device.
According to the technical scheme, after the audio file is obtained, the first volume of the audio file, of which the volume is larger than the first volume threshold value, is detected, the first adjusting interval meeting the set condition is extracted, the first adjusting interval is divided into a plurality of adjusting sub-intervals according to the volume value, different volume adjusting coefficients are set for the plurality of adjusting sub-intervals to reduce the volume, so that the adjusted second adjusting interval is obtained, the first adjusting interval is replaced by the second adjusting interval, the first volume is lower than the volume interval, and sudden change cannot be caused to the volume of the first volume due to the fact that the volume is adjusted to the volume of the whole adjusting interval, so that the adjustment of the volume of the audio is softer, the distortion rate of the volume is reduced, and the user experience degree is improved.
Optionally, the processing unit 201 is specifically configured to extract the audio data of the set time before the first volume as the first adjustment interval. The setting time may be set by a user, and in practical applications, the setting time may also be dynamically adjusted according to the wearing time of the wearable device, and the adjustment method may specifically be:
Figure BDA0001694388000000081
wherein T is the wearing time of the wearable device, T is the standard time (constant), y is the first volume value,
Figure BDA0001694388000000082
is the average of all volumes of the audio file.
The set time is dynamically adjusted through the formula, the set time can be adjusted according to the use time and the volume of the user, and therefore the first adjustment interval is controlled to be more reasonable.
The wearable device takes a bluetooth headset as an example, the longer the wearable device is, the greater the influence on ears is, otherwise, the softer the audio file is required, and the longer the set time is, the longer the first adjustment interval is increased, the longer the audio data can be adjusted inevitably, so that the distortion rate of the audio file is smaller, and the sound change is smaller.
Optionally, the processing unit 201 is specifically configured to extract audio data between zeroth volume before the first volume as the first adjustment interval. The zeroth volume is greater than the first volume threshold.
In the mode, the audio data between the two audio data and the first volume threshold are extracted to be used as the first adjusting interval, the range of the first adjusting interval is larger, the distortion rate of the audio file can be smaller, and the sound change is smaller.
Optionally, the above reducing the volume by using different volume adjustment coefficients for the multiple adjustment sub-intervals, and obtaining the adjusted second adjustment interval may specifically include:
the processing unit 201 is configured to obtain a maximum value of the volume of each of the plurality of adjustment sub-intervals, extract n adjustment sub-intervals in which the maximum value of the volume is greater than the second volume threshold from the plurality of adjustment sub-intervals, arrange the maximum values of the volume of the n adjustment sub-intervals in an ascending order to obtain n arranged adjustment sub-intervals, and reduce the volume of the n arranged adjustment sub-intervals by adopting a monotonically decreasing manner for the volume adjustment coefficients of the n arranged adjustment sub-intervals, where the maximum value of the volume adjustment coefficients of the n arranged adjustment sub-intervals is less than 1. The second volume threshold is less than the first volume threshold.
The volume adjustment coefficients may be classified into a plurality of adjustment sub-intervals according to the maximum volume value, that is, the adjustment sub-intervals larger than the second volume threshold are classified into a group, which may not be adjusted because the volume value itself is small, and the adjustment sub-intervals with the larger maximum volume value are classified into another group, that is, n adjustment sub-intervals, and then the n adjustment sub-intervals are arranged in an ascending order according to the maximum volume value, and then the monotonically decreasing volume adjustment coefficient is multiplied by the arranged n adjustment sub-intervals.
In the following, a practical example is described, the multiple adjustment intervals here take 5 adjustment sub-intervals as an example, and for convenience of description, the 5 adjustment sub-intervals here are respectively sub-interval 1, sub-interval 2, sub-interval 3, sub-interval 4, and sub-interval 5; the corresponding maximum volume values may be: assuming that the second volume threshold is 60 decibels, the volume may not be adjusted because the subinterval 1 and the subinterval 2 are smaller than the second volume threshold, that is, the volume adjustment coefficient is 1, and the interval 3, the subinterval 4, and the subinterval 5 may be adjusted in a manner of decreasing the volume adjustment coefficient, specifically, the volume adjustment coefficient may be 0.9 for the interval 3, the maximum decibel number of the interval is 54 decibels, and the volume adjustment coefficient may be 0.8 for the interval 4, and the maximum decibel number of the interval is: 56 db, the loudness adjustment factor may be 0.75 for interval 5, with the maximum decibels: 60 decibels. Through the adjustment mode, the difference value of the maximum volume between the intervals is reduced, but the corresponding volume is still increased progressively, and the sound effect of the audio file is not changed, so that the method has the advantages of small volume change, soft sound and high user experience.
Referring to fig. 3, fig. 3 provides a method for adjusting the volume of a wearable device, the method is applied to the wearable device, and the wearable device includes: the device comprises a processing component, an audio playing component and a wireless transceiver; the method comprises the following steps:
step S301, establishing wireless connection with electronic equipment, and receiving an audio file through the wireless connection;
step S302, detecting the volume of a to-be-played interval in the audio file, and if a first volume in the volume of the to-be-played interval is higher than a first volume threshold, extracting a first adjustment interval which meets a set condition before the first volume;
step S303, dividing the first adjustment interval into a plurality of adjustment sub-intervals according to the volume value, reducing the volume of the plurality of adjustment sub-intervals by using different volume adjustment coefficients to obtain an adjusted second adjustment interval, and playing the second adjustment interval when the audio file needs to play the first adjustment interval.
The first volume threshold may be a fixed value set by a user, for example, 90 db, or may be a variable value in practical applications, that is, a value that varies according to the wearing time of the wearable device.
According to the technical scheme, after the audio file is obtained, the first volume of the audio file, of which the volume is larger than the first volume threshold value, is detected, the first adjusting interval meeting the set condition is extracted, the first adjusting interval is divided into a plurality of adjusting sub-intervals according to the volume value, different volume adjusting coefficients are set for the plurality of adjusting sub-intervals to reduce the volume, so that the adjusted second adjusting interval is obtained, the first adjusting interval is replaced by the second adjusting interval, the first volume is lower than the volume interval, and sudden change cannot be caused to the volume of the first volume due to the fact that the volume is adjusted to the volume of the whole adjusting interval, so that the adjustment of the volume of the audio is softer, the distortion rate of the volume is reduced, and the user experience degree is improved.
Optionally, the above-mentioned extracting the first adjustment interval which meets the setting condition before the first volume may specifically be extracting audio data of the setting time before the first volume as the first adjustment interval. The setting time may be set by a user, and in practical applications, the setting time may also be dynamically adjusted according to the wearing time of the wearable device, and the adjustment method may specifically be:
Figure BDA0001694388000000101
wherein T is the wearing time of the wearable device, T is the standard time (constant), y is the first volume value,
Figure BDA0001694388000000102
is the average of all volumes of the audio file.
The set time is dynamically adjusted through the formula, the set time can be adjusted according to the use time and the volume of the user, and therefore the first adjustment interval is controlled to be more reasonable.
The wearable device takes a bluetooth headset as an example, the longer the wearable device is, the greater the influence on ears is, otherwise, the softer the audio file is required, and the longer the set time is, the longer the first adjustment interval is increased, the longer the audio data can be adjusted inevitably, so that the distortion rate of the audio file is smaller, and the sound change is smaller.
Optionally, the first adjustment interval satisfying the setting condition before the first volume is extracted may be specifically that audio data between zeroth volumes before the first volume is extracted as the first adjustment interval. The zeroth volume is greater than the first volume threshold.
In the mode, the audio data between the two audio data and the first volume threshold are extracted to be used as the first adjusting interval, the range of the first adjusting interval is larger, the distortion rate of the audio file can be smaller, and the sound change is smaller.
Optionally, the above reducing the volume by using different volume adjustment coefficients for the multiple adjustment sub-intervals, and obtaining the adjusted second adjustment interval may specifically include:
the method comprises the steps of obtaining the volume maximum value of each adjusting subinterval of a plurality of adjusting subintervals, extracting n adjusting subintervals with the volume maximum value larger than a second volume threshold value from the adjusting subintervals, carrying out ascending arrangement on the volume maximum values of the n adjusting subintervals to obtain n arranged adjusting subintervals, and reducing the volume by adopting a monotone decreasing mode on the volume adjusting coefficients of the n arranged adjusting subintervals to obtain the second adjusting interval, wherein the maximum value of the volume adjusting coefficients of the n arranged adjusting subintervals is smaller than 1. The second volume threshold is less than the first volume threshold.
The volume adjustment coefficients may be classified into a plurality of adjustment sub-intervals according to the maximum volume value, that is, the adjustment sub-intervals larger than the second volume threshold are classified into a group, which may not be adjusted because the volume value itself is small, and the adjustment sub-intervals with the larger maximum volume value are classified into another group, that is, n adjustment sub-intervals, and then the n adjustment sub-intervals are arranged in an ascending order according to the maximum volume value, and then the monotonically decreasing volume adjustment coefficient is multiplied by the arranged n adjustment sub-intervals.
In the following, a practical example is described, the multiple adjustment intervals here take 5 adjustment sub-intervals as an example, and for convenience of description, the 5 adjustment sub-intervals here are respectively sub-interval 1, sub-interval 2, sub-interval 3, sub-interval 4, and sub-interval 5; the corresponding maximum volume values may be: assuming that the second volume threshold is 60 decibels, the volume may not be adjusted because the subinterval 1 and the subinterval 2 are smaller than the second volume threshold, that is, the volume adjustment coefficient is 1, and the interval 3, the subinterval 4, and the subinterval 5 may be adjusted in a manner of decreasing the volume adjustment coefficient, specifically, the volume adjustment coefficient may be 0.9 for the interval 3, the maximum decibel number of the interval is 54 decibels, and the volume adjustment coefficient may be 0.8 for the interval 4, and the maximum decibel number of the interval is: 56 db, the loudness adjustment factor may be 0.75 for interval 5, with the maximum decibels: 60 decibels. Through the adjustment mode, the difference value of the maximum volume between the intervals is reduced, but the corresponding volume is still increased progressively, and the sound effect of the audio file is not changed, so that the method has the advantages of small volume change, soft sound and high user experience.
Fig. 4 is a block diagram illustrating a partial structure of a wearable device connected to a mobile terminal provided in an embodiment of the present application. Referring to fig. 4, the wearable device includes: radio Frequency (RF) circuit 910, memory 920, input unit 930, sensor 950, audio collector 960, Wireless Fidelity (WiFi) module 970, application processor AP980, power supply 990, and the like. Those skilled in the art will appreciate that the wearable device configuration shown in fig. 4 does not constitute a limitation of the wearable device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components, e.g., the rf circuit 910 may be connected to a single or multiple antennas.
The following specifically describes each constituent component of the wearable device with reference to fig. 4:
the input unit 930 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 930 may include a touch display 933 and other input devices 932. In particular, other input devices 932 may include, but are not limited to, one or more of physical keys, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a joystick, and the like. Wherein the content of the first and second substances,
the radio frequency circuit 910 is configured to maintain a wireless connection with an electronic device, and receive an audio file through the wireless connection;
an application processor AP980 is used for detecting the volume of a section to be played in the audio file, if the first volume in the volume of the section to be played is higher than a first volume threshold value, the first adjustment section meeting the set condition before the first volume is extracted, the first adjustment section is divided into a plurality of adjustment sub-sections according to the volume value, the volume is reduced by adopting different volume adjustment coefficients in the plurality of adjustment sub-sections, the adjusted second adjustment section is obtained, the audio file needs to be played during the first adjustment section, the audio playing part is controlled to play the second adjustment section.
The application processor AP980 is specifically configured to extract audio data of a set time before the first volume as a first adjustment interval.
The application processor AP980 is specifically used for obtaining the volume maximum value of each adjustment subinterval of a plurality of adjustment subintervals, extracting n adjustment subintervals with the volume maximum values larger than a second volume threshold value from the plurality of adjustment subintervals, and carrying out ascending arrangement on the volume maximum values of the n adjustment subintervals to obtain n adjustment subintervals after arrangement, and carrying out volume reduction on the volume adjustment coefficients of the n adjustment subintervals after arrangement in a monotone decreasing mode to obtain a second adjustment interval, wherein the maximum value of the volume adjustment coefficients of the n adjustment subintervals after arrangement is smaller than 1, and the second volume threshold value is smaller than the first volume threshold value.
The application processor AP980 is specifically configured to extract audio data between the first volume and a zeroth volume as a first adjustment interval, where the zeroth volume is a volume greater than a first volume threshold.
The AP980 is a control center of the wearable device, connects various parts of the entire wearable device with various interfaces and lines, executes various functions of the wearable device and processes data by running or executing software programs and/or modules stored in the memory 920 and calling data stored in the memory 920, thereby monitoring the wearable device as a whole. Optionally, AP980 may include one or more processing units; alternatively, the AP980 may integrate an application processor that handles primarily the operating system, user interface, and applications, etc., and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into the AP 980.
Further, the memory 920 may include high speed random access memory, and may also include non-volatile memory, such as at least one flash memory device, or other volatile solid state storage device.
RF circuitry 910 may be used for the reception and transmission of information. In general, the RF circuit 910 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 910 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol including, but not limited to, bluetooth, wifi, gsm, gprs, cdma, wcdma, lte, air interface, etc.
The wearable device may also include at least one sensor 950, such as an ultrasonic sensor, an angle sensor, a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, where the ambient light sensor may detect whether the wearable device is in an ear insertion state according to the brightness of ambient light, the luminance of the touch display screen is adjusted according to the ear insertion state, and the proximity sensor may turn off the touch display screen and/or backlight when the wearable device moves to the ear. As one type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), and the like for recognizing the attitude of the wearable device; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the wearable device, detailed descriptions thereof are omitted.
Audio collector 960, speaker 961, microphone 962 may provide an audio interface between the user and the wearable device. The audio collector 960 can transmit the received electrical signal converted from the audio data to the speaker 961, and the audio data is converted into a sound signal by the speaker 961 for playing; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal, and the electrical signal is received by the audio collector 960 and converted into audio data, and the audio data is processed by the audio data playing AP980, and then sent to, for example, a mobile phone through the RF circuit 910, or played to the memory 920 for further processing.
WiFi belongs to short distance wireless transmission technology, and the wearable device can help the user to send and receive data and the like through the WiFi module 970, which provides wireless broadband internet access for the user. Although fig. 4 shows the WiFi module 970, it is understood that it does not belong to the essential constitution of the wearable device, and may be omitted entirely as needed within the scope of not changing the essence of the application.
The wearable device can further comprise a bluetooth module, the bluetooth module is used for realizing connection with the electronic device, the bluetooth module can be separately arranged, and in practical application, the bluetooth module can be integrated in an application processor due to different selected application processors.
The wearable device also includes a power supply 990 (e.g., a battery) for supplying power to various components, and optionally, the power supply may be logically connected to the AP980 via a power management system, so that functions of managing charging, discharging, and power consumption are implemented via the power management system.
Although not shown, the wearable device may further include a camera, a light supplement device, a light sensor, and the like, which are not described herein again.
It can be seen that, according to the technical scheme provided by the application, after an audio file is obtained, a first volume of the audio file, which is greater than a first volume threshold, is detected, then a first adjustment interval meeting a set condition is extracted, the first adjustment interval is divided into a plurality of adjustment sub-intervals according to the volume value, different volume adjustment coefficients are set for the plurality of adjustment sub-intervals to reduce the volume, so that an adjusted second adjustment interval is obtained, the first adjustment interval is replaced by the second adjustment interval, so that the first volume is lower than the volume interval, and sudden change cannot be caused in the volume of the first volume due to the fact that the volume adjustment is the volume adjustment of the whole adjustment interval, so that the adjustment of the volume of the audio is softer, the distortion rate of the volume is reduced, and the user experience degree is improved.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to perform part or all of the steps of any one of the wearable device volume adjustment methods described in the above method embodiments.
Embodiments of the present application also provide a computer program product, which 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 of any one of the wearable device volume adjustment methods as described in the above method embodiments.
In the foregoing 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.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may be implemented in the form of a software program module.
The foregoing is an implementation of the embodiments of the present application, and it should be noted that, for those skilled in the art, several modifications and decorations can be made without departing from the principle of the embodiments of the present application, and these modifications and decorations are also regarded as the protection scope of the present application.

Claims (9)

1. A wearable device, characterized in that the wearable device comprises: the device comprises a processing component, an audio playing component and a wireless transceiver; wherein, the processing component is respectively connected with the audio playing component and the wireless transceiver;
the wireless transceiver is used for keeping wireless connection with the electronic equipment and receiving the audio file through the wireless connection;
the processing component is configured to detect the volume of a to-be-played interval in the audio file, if a first volume in the volume of the to-be-played interval is higher than a first volume threshold, extract a first adjustment interval that meets a set condition before the first volume, divide the first adjustment interval into a plurality of adjustment sub-intervals according to the volume value, reduce the volume by using different volume adjustment coefficients for the plurality of adjustment sub-intervals, obtain an adjusted second adjustment interval, and control the audio playing component to play the second adjustment interval when the audio file needs to play the first adjustment interval;
the processing component is specifically configured to obtain a maximum value of volume of each of the multiple adjustment sub-intervals, extract n adjustment sub-intervals in which the maximum value of volume is greater than a second volume threshold from the multiple adjustment sub-intervals, arrange the maximum values of volume of the n adjustment sub-intervals in an ascending order to obtain n arranged adjustment sub-intervals, and reduce volume by adopting a monotonically decreasing manner on the volume adjustment coefficients of the n arranged adjustment sub-intervals to obtain a second adjustment interval, where the maximum value of the volume adjustment coefficients of the n arranged adjustment sub-intervals is less than 1, and the second volume threshold is less than the first volume threshold.
2. The wearable device according to claim 1,
the processing unit is specifically configured to extract audio data of a set time before the first volume as a first adjustment interval.
3. The wearable device according to claim 2,
the set time is fixed time;
or the set time is calculated according to the following formula;
Figure FDA0002876675870000011
wherein T is the wearing time of the wearable device, T is the standard time, y is the first volume value,
Figure FDA0002876675870000012
is the average of all volumes of the audio file.
4. The wearable device according to claim 1,
the processing component is specifically configured to extract audio data between the first volume and a zeroth volume as a first adjustment interval, where the zeroth volume is a volume greater than a first volume threshold.
5. A wearable device volume adjustment method, applied to a wearable device, the wearable device including: the device comprises a processing component, an audio playing component and a wireless transceiver; the method comprises the following steps:
establishing wireless connection with electronic equipment, and receiving an audio file through the wireless connection;
detecting the volume of a to-be-played interval in the audio file, if a first volume in the volume of the to-be-played interval is higher than a first volume threshold, extracting a first adjustment interval which is in front of the first volume and meets a set condition, dividing the first adjustment interval into a plurality of adjustment sub-intervals according to the volume value, reducing the volume by adopting different volume adjustment coefficients for the plurality of adjustment sub-intervals to obtain an adjusted second adjustment interval, and playing the second adjustment interval when the audio file needs to play the first adjustment interval;
wherein, to a plurality of adjustment subintervals adopt different volume adjustment coefficient to reduce the volume, obtain the second adjustment interval after the adjustment specifically including:
the method comprises the steps of obtaining the volume maximum value of each adjusting subinterval of a plurality of adjusting subintervals, extracting n adjusting subintervals with the volume maximum value larger than a second volume threshold value from the adjusting subintervals, carrying out ascending arrangement on the volume maximum values of the n adjusting subintervals to obtain n arranged adjusting subintervals, and reducing the volume by adopting a monotone decreasing mode on the volume adjusting coefficients of the n arranged adjusting subintervals to obtain a second adjusting interval, wherein the maximum value of the volume adjusting coefficients of the n arranged adjusting subintervals is smaller than 1, and the second volume threshold value is smaller than the first volume threshold value.
6. The method according to claim 5, wherein the extracting the first adjustment interval satisfying the setting condition before the first volume specifically comprises:
and extracting audio data of a set time before the first volume as a first adjustment interval.
7. The method of claim 6,
the set time is fixed time;
or the set time is calculated according to the following formula;
Figure FDA0002876675870000021
wherein T is the wearing time of the wearable device, T is the standard time, y is the first volume value,
Figure FDA0002876675870000022
is the average of all volumes of the audio file.
8. The method according to claim 5, wherein the extracting the first adjustment interval satisfying the setting condition before the first volume specifically comprises:
and extracting audio data between the first volume and a zeroth volume as a first adjustment interval, wherein the zeroth volume is a volume greater than a first volume threshold.
9. A computer-readable storage medium, characterized in that it stores a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method according to any one of claims 5-8.
CN201810606206.7A 2018-06-13 2018-06-13 Wearable device volume adjustment method and related product Expired - Fee Related CN108897516B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810606206.7A CN108897516B (en) 2018-06-13 2018-06-13 Wearable device volume adjustment method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810606206.7A CN108897516B (en) 2018-06-13 2018-06-13 Wearable device volume adjustment method and related product

Publications (2)

Publication Number Publication Date
CN108897516A CN108897516A (en) 2018-11-27
CN108897516B true CN108897516B (en) 2021-04-09

Family

ID=64345935

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810606206.7A Expired - Fee Related CN108897516B (en) 2018-06-13 2018-06-13 Wearable device volume adjustment method and related product

Country Status (1)

Country Link
CN (1) CN108897516B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI691894B (en) * 2019-01-10 2020-04-21 美律實業股份有限公司 Method for automatically lowering volume and electronic device applied thereto
CN110058837B (en) * 2019-04-22 2022-05-03 维沃移动通信有限公司 Audio output method and terminal
CN114286218A (en) 2020-09-28 2022-04-05 南宁富联富桂精密工业有限公司 Wireless earphone and method for improving endurance of wireless earphone
CN112289340B (en) * 2020-11-03 2024-05-07 北京猿力未来科技有限公司 Audio detection method and device
CN116996812B (en) * 2023-09-26 2023-12-19 成都赛力斯科技有限公司 Steering-based volume adjusting method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2135888Y (en) * 1992-05-18 1993-06-09 喻光强 Earphone volume safety device
CN103618514A (en) * 2013-10-31 2014-03-05 小米科技有限责任公司 Volume adjustment method, device and electronic equipment
CN107465824A (en) * 2017-08-18 2017-12-12 广东欧珀移动通信有限公司 volume adjusting method, device, mobile terminal and storage medium
CN107493500A (en) * 2017-08-03 2017-12-19 北京小米移动软件有限公司 Multimedia resource player method and device
CN107508983A (en) * 2017-08-18 2017-12-22 广东欧珀移动通信有限公司 volume adjusting method, device, storage medium and terminal device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2135888Y (en) * 1992-05-18 1993-06-09 喻光强 Earphone volume safety device
CN103618514A (en) * 2013-10-31 2014-03-05 小米科技有限责任公司 Volume adjustment method, device and electronic equipment
CN107493500A (en) * 2017-08-03 2017-12-19 北京小米移动软件有限公司 Multimedia resource player method and device
CN107465824A (en) * 2017-08-18 2017-12-12 广东欧珀移动通信有限公司 volume adjusting method, device, mobile terminal and storage medium
CN107508983A (en) * 2017-08-18 2017-12-22 广东欧珀移动通信有限公司 volume adjusting method, device, storage medium and terminal device

Also Published As

Publication number Publication date
CN108897516A (en) 2018-11-27

Similar Documents

Publication Publication Date Title
CN109040887B (en) Master-slave earphone switching control method and related product
CN108897516B (en) Wearable device volume adjustment method and related product
CN109511037B (en) Earphone volume adjusting method and device and computer readable storage medium
CN109150221B (en) Master-slave switching method for wearable equipment and related product
CN109561420B (en) Emergency help-seeking method and related equipment
CN108196815B (en) Method for adjusting call sound and mobile terminal
CN108834013B (en) Wearable equipment electric quantity balancing method and related product
CN111371705B (en) Download task execution method and electronic device
CN109348055B (en) Display control method, display control device, electronic apparatus, and readable storage medium
CN109067965B (en) Translation method, translation device, wearable device and storage medium
CN110336623B (en) Power detection method and device and mobile terminal
CN108833683B (en) Dynamic antenna adjustment implementation method and related product
CN108600887B (en) Touch control method based on wireless earphone and related product
CN111093137B (en) Volume control method, volume control equipment and computer readable storage medium
CN108882084B (en) Wearable equipment electric quantity balancing method and related product
CN109121034B (en) Master-slave switching method based on volume and related product
CN114077414A (en) Audio playing control method and device, electronic equipment and storage medium
CN111614329A (en) Power amplifier, electronic equipment, voltage control method and device
CN109698711B (en) Radio frequency module and terminal equipment
CN108668018B (en) Mobile terminal, volume control method and related product
CN108810261B (en) Antenna switching method in call and related product
CN112712815A (en) Software-based pop sound suppression method, terminal and computer readable medium
CN110190641B (en) Charging control circuit, terminal equipment and data line
CN108234745B (en) Signal receiving method, mobile terminal and computer readable storage medium
CN112367425B (en) Volume adjusting method and device and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210409