CN108897516A - A kind of wearable device method for regulation of sound volume and Related product - Google Patents

A kind of wearable device method for regulation of sound volume and Related product Download PDF

Info

Publication number
CN108897516A
CN108897516A CN201810606206.7A CN201810606206A CN108897516A CN 108897516 A CN108897516 A CN 108897516A CN 201810606206 A CN201810606206 A CN 201810606206A CN 108897516 A CN108897516 A CN 108897516A
Authority
CN
China
Prior art keywords
volume
adjustment
section
subinterval
wearable device
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.)
Granted
Application number
CN201810606206.7A
Other languages
Chinese (zh)
Other versions
CN108897516B (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

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

Abstract

The embodiment of the present application discloses a kind of wearable device method for regulation of sound volume and Related product, and described method includes following steps:It establishes and is wirelessly connected with electronic equipment, audio file is received by the wireless connection;Detect the volume in section to be played in the audio file, the first volume in such as volume in the section to be played is higher than the first volume threshold, the first adjustment section that satisfaction before extracting first volume imposes a condition, the first adjustment section is divided into multiple adjustment subintervals by volume value, volume is reduced using different volume adjustment coefficients to the multiple adjustment subinterval, second adjustment section after being adjusted, when the audio file needs to play the first adjustment section, the second adjustment section is played.Technical solution provided by the present application has the advantages that user experience is high.

Description

A kind of wearable device method for regulation of sound volume and Related product
Technical field
This application involves Mobile terminal accessory technical fields, and in particular to a kind of wearable device method for regulation of sound volume and phase Close product.
Background technique
As universal and application, the user of smart phone more and more rely on smart phone, wearable device, example Such as, wireless headset, smartwatch, Intelligent bracelet etc. equipment are widely used also with the rise of smart phone.It is right In wearable device, here by taking wireless headset as an example, wireless headset has the advantages that connect convenience with smart phone, for nothing Line earphone, the adjusting that can not carry out volume automatically affect user's so wireless headset can not carry out Intelligent volume control Experience Degree.
Summary of the invention
The embodiment of the present application provides a kind of wearable device method for regulation of sound volume and wearable device, to carry out intelligence Energy volume control, improves user experience.
In a first aspect, the embodiment of the present application provides a kind of wearable device, the wearable device includes:Processing unit Part, audio playback component and wireless transceiver;Wherein, the processing component is received with the audio playback component and without the line Hair device is separately connected;
The wireless transceiver receives audio text by the wireless connection for keeping being wirelessly connected with electronic equipment Part;
The processing component, for detecting the volume in section to be played in the audio file, such as section to be played Volume in the first volume be higher than the first volume threshold, what the satisfaction before extracting first volume imposed a condition first adjusts Between main plot, the first adjustment section is divided into multiple adjustment subintervals by volume value, the multiple adjustment subinterval is adopted Volume is reduced with different volume adjustment coefficients, the second adjustment section after being adjusted needs to play in the audio file When the first adjustment section, controls the audio playback component and play the second adjustment section.
Second aspect, provides a kind of wearable device method for regulation of sound volume, the method apply with it is described wearable Equipment, the wearable device include:Processing component, audio playback component and wireless transceiver;The method includes as follows Step:
It establishes and is wirelessly connected with electronic equipment, audio file is received by the wireless connection;
The volume for detecting section to be played in the audio file, as the section to be played volume in the first volume Higher than the first adjustment section that the first volume threshold, the satisfaction before extracting first volume impose a condition, by described first It adjusts section and is divided into multiple adjustment subintervals by volume value, different volume adjustment systems is used to the multiple adjustment subinterval Number reduction volume, the second adjustment section after being adjusted, when the audio file needs to play the first adjustment section, Play the second adjustment section.
The third aspect, provides a kind of computer readable storage medium, and storage is used for the computer journey of electronic data interchange Sequence, wherein the computer program makes computer execute the method that two aspects provide.
Fourth aspect, provides a kind of computer program product, and the computer program product includes storing computer journey The non-transient computer readable storage medium of sequence, the computer program are operable to that computer is made to execute second aspect offer Method
It is greater than as can be seen that technical solution provided by the present application after obtaining audio file, detects volume in audio file Then first volume of the first volume threshold extracts the first adjustment section for meeting and imposing a condition, then by the first adjustment area Between by volume value be divided into multiple adjustment subintervals, setting different volume adjustment coefficients to multiple adjustment subintervals reduces volume Second adjustment section after being adjusted, with second adjustment section replacement the first adjustment section so that first volume is lower than Volume section will not be caused due to the adjustment for being adjusted to entirely to adjust the volume in section of the volume in the volume of the first volume Mutation can make the adjustment of the volume of audio than milder in this way, reduce the distortion rate of volume, improve user experience.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the network architecture schematic diagram of a kind of wearable device and wireless telecom equipment.
Fig. 1 a is a kind of structural schematic diagram of wireless headset provided by the present application.
Fig. 1 b is a kind of another structural schematic diagram of wireless headset provided by the present application.
Fig. 2 is a kind of structural schematic diagram of wireless headset provided by the present application.
Fig. 3 is the flow diagram of the wearable device method for regulation of sound volume of the application.
Fig. 4 is a kind of structural schematic diagram of wearable device of the application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, those of ordinary skill in the art are obtained every other under that premise of not paying creative labor Embodiment shall fall in the protection scope of this application.
The description and claims of this application and term " first " in above-mentioned attached drawing, " second " etc. are for distinguishing Different objects, are not use to describe a particular order.In addition, term " includes " and " having " and their any deformations, it is intended that It is to cover and non-exclusive includes.Such as the process, method, system, product or equipment for containing a series of steps or units do not have It is defined in listed step or unit, but optionally further comprising the step of not listing or unit, or optionally also wrap Include other step or units intrinsic for these process, methods, product or equipment.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments It is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
In the wearable device that first aspect provides,
The processing component is adjusted specifically for the audio data of setting time before extracting first volume as first Between main plot.
In the wearable device that first aspect provides,
The setting time is the set time;
Or the setting time is calculated according to following formula;
Wherein, t is the wearing duration of the wearable device, and T is standard duration, and y is the first volume value,For audio The average value of all volumes of file.
In the wearable device that first aspect provides,
The processor, the volume maximum value in each adjustment subinterval specifically for obtaining multiple adjustment subintervals, from The n adjustment subinterval that volume maximum value is greater than the second volume threshold is extracted in multiple adjustment subintervals, by n adjustment The volume maximum value in section carries out n adjustment subinterval after ascending order is arranged, to n adjustment after the arrangement The volume adjustment coefficient in section reduces volume using monotone decreasing mode and obtains second adjustment section, wherein the n after the arrangement For the maximum value of the volume adjustment coefficient in a adjustment subinterval less than 1, second volume threshold is less than first volume threshold.
In the wearable device that first aspect provides,
The processor is adjusted specifically for extracting the audio data between first volume and the 0th volume as first Between main plot, the 0th volume is the volume greater than the first volume threshold.
In the wearable device method for regulation of sound volume that second aspect provides,
The first adjustment section that satisfaction before extraction first volume imposes a condition specifically includes:
The audio data of setting time before first volume is extracted as the first adjustment section.
In the wearable device method for regulation of sound volume that second aspect provides,
The setting time is the set time;
Or the setting time is calculated according to following formula;
Wherein, t is the wearing duration of the wearable device, and T is standard duration, and y is the first volume value,For audio The average value of all volumes of file.
In the wearable device method for regulation of sound volume that second aspect provides,
The volume maximum value for obtaining each adjustment subinterval in multiple adjustment subintervals, is extracted from multiple adjustment subintervals Volume maximum value is greater than n adjustment subinterval of the second volume threshold, and the volume maximum value that described n adjusts subinterval is carried out Ascending order arranged after n adjustment subinterval, the volume adjustment coefficient in n after arrangement adjustment subinterval is adopted Volume is reduced with monotone decreasing mode and obtains second adjustment section, wherein the volume tune in n adjustment subinterval after the arrangement For the maximum value of integral coefficient less than 1, second volume threshold is less than first volume threshold.
In the wearable device method for regulation of sound volume that second aspect provides, before extraction first volume Meet the first adjustment section to impose a condition to specifically include:
The audio data between first volume and the 0th volume is extracted as the first adjustment section, the 0th volume For the volume greater than the first volume threshold.
Wireless telecom equipment involved by the embodiment of the present application may include various hand-held with wireless communication function Equipment, wearable device, calculates equipment or is connected to other processing equipments of radio modem mobile unit, and each The user equipment (User Equipment, UE) of kind form, mobile station (Mobile Station, MS), terminal device (terminal device) etc..Certainly in other application, above-mentioned wireless telecom equipment can also be network side equipment, example Such as base station, access point network side equipment.For convenience of description, apparatus mentioned above is referred to as wireless telecom equipment.
Referring to Fig. 1, Fig. 1 is that a kind of network architecture schematic diagram, the network architecture disclosed in the embodiment of the present application can wrap Include electronic equipment and wireless headset, wherein wireless headset can by wireless network (for example, bluetooth, infrared ray or WiFi) with Electronic equipment communication connection.It should be noted that wireless headset may include one or more earplug, the embodiment of the present application is not made It limits.In specific implementation, wireless headset can send pairing request to electronic equipment method, and electronic equipment can receive by wearable device The pairing request of transmission, wearable device include at least one individual components, respond pairing request, and detection wearable device includes Number of components, information of wearable device, such as electricity, pairing quantity etc. are shown according to number of components.
As shown in Figure 1a, Fig. 1 a is a kind of structure chart of wireless headset provided by the embodiments of the present application, as shown in Figure 1a, Two earplugs can be kept completely separate setting.As shown in Figure 1a, which includes:Two earplugs, each earplug include:Earplug Shell 121, the loudspeaker that 121 surface of earpiece is arranged in, the earplug can also include:Wireless transceiver 122, processing chip (being not drawn into figure) and battery (being not drawn into figure), it is electric between the processing chip and Trackpad, wireless transceiver and loudspeaker Connection, specifically, the mode of the electrical connection can be connected by bus mode, certainly in practical applications, above-mentioned electrical connection It is also possible to connect by other connection types.
Fig. 1 b is please referred to, Fig. 1 b is the structural schematic diagram of a kind of electronic equipment 100 disclosed in the embodiment of the present application, and electronics is set Standby 100 include storage and processing circuit 110, and the telecommunication circuit 120 and audio that connect with the storage and processing circuit 110 Component 140, wherein in some specific electronic equipments 100, display component 130 or touch control component can also be set.
Electronic equipment 100 may include control circuit, which may include storage and processing circuit 110.This is deposited Storage and processing circuit 110 can store device, such as hard drive memory, nonvolatile memory (such as flash memory or it is used for shape At other electrically programmable read only memories etc. of solid state drive), volatile memory (such as either statically or dynamically arbitrary access Memory etc.) etc., the embodiment of the present application is with no restriction.Processing circuit in storage and processing circuit 110 can be used for controlling electricity The operating of sub- equipment 100.The processing circuit can microprocessor based on one or more, microcontroller, digital signal processor, Baseband processor, power management unit, audio codec chip, specific integrated circuit, display-driver Ics etc. come It realizes.
Storage and processing circuit 110 can be used for running the software in electronic equipment 100, such as voice over internet protocol (Voice over Internet Protocol, VOIP) call application program, simultaneous interpretation function, media play application Program, operation system function etc..These softwares can be used for executing some control operations, for example, the image based on camera is adopted Collection, the ambient light measurement based on ambient light sensor, the proximity sensor measurement based on proximity sensor, based on such as luminous two The information display function that the positioning indicators such as the status indicator lamp of pole pipe are realized, the touch event detection based on touch sensor, Operation associated with wireless communication function is executed, operation associated with collecting and generating audio signal, with collection and processing Other functions etc. in the associated control operation of button press event data and electronic equipment 100, the embodiment of the present application is not It is restricted.
Electronic equipment 100 can also include input-output circuit 150.Input-output circuit 150 can be used for setting electronics Standby 100 realization data are output and input, i.e. permission electronic equipment 100 allows electronic equipment from outer equipment receiving data and also 100 export data to external equipment from electronic equipment 100.Input-output circuit 150 may further include sensor 170. Sensor 170 may include ambient light sensor, the proximity sensor based on light and capacitor, and touch sensor is (for example, be based on light Touch sensor and/or capacitive touch sensors, wherein touch sensor can be a part of touching display screen, can also Independently to be used as a touch sensor arrangement), acceleration transducer and other sensors etc..
Input-output circuit 150 can also include that touch sensor array (is shown that is, display 130 can be touch-control Screen).Touch sensor can be the electricity formed by transparent touch sensor electrode (such as tin indium oxide (ITO) electrode) array Appearance formula touch sensor, or can be the touch sensor formed using other touching techniques, such as sound wave touch-control, pressure-sensitive touching It touches, resistive touch, optical touch etc., the embodiment of the present application is with no restriction.
Electronic equipment 100 can also include audio component 140.Audio component 140 can be used for providing for electronic equipment 100 Audio input and output function.Audio component 140 in electronic equipment 100 may include loudspeaker, microphone, buzzer, sound Adjust generator and other for generating and detecting the component of sound.
Telecommunication circuit 120 can be used for providing the ability with external device communication for electronic equipment 100.Telecommunication circuit 120 It may include analog- and digital- input-output interface circuit, and the radio communication circuit based on radiofrequency signal and/or optical signal. Radio communication circuit in telecommunication circuit 120 may include radio-frequency transceiver circuitry, power amplifier circuit, low noise amplification Device, switch, filter and antenna.For example, the radio communication circuit in telecommunication circuit 120 may include for passing through transmitting The circuit of near-field communication (Near Field Communication, NFC) is supported with near-field coupling electromagnetic signal is received.Example Such as, telecommunication circuit 120 may include near-field communication aerial and near-field communication transceiver.Telecommunication circuit 120 can also include honeycomb Telephone transceiver and antenna, wireless lan transceiver circuit and antenna etc..
Electronic equipment 100 can further include battery, power management circuitry and other input-output units 160.It is defeated Enter-output unit 160 may include button, control stick, click wheel, scroll wheel, touch tablet, keypad, keyboard, camera, hair Optical diode or other positioning indicators etc..
User can input a command for the operation of controlling electronic devices 100 by input-output circuit 150, and can be with Status information and other outputs from electronic equipment 100 are received using the output data of input-output circuit 150 to realize.
Referring to Fig.2, Fig. 2 is a kind of structural schematic diagram of wearable device provided by the present application, as shown in Fig. 2, this can Wearable device includes:First earplug and the second earplug, wherein the first earplug or the second earplug may include:Processing component 201, audio playback component 202 and wireless transceiver 203;Wherein, the processing component 201 and the audio playback component 202 and Wireless transceiver 203 is separately connected.
Wireless transceiver 203 receives audio file by the wireless connection for keeping being wirelessly connected with electronic equipment;
Above-mentioned wireless connection is specifically as follows, bluetooth connection, wifi connection, radio frequency connection etc. radio connection, when So in practical applications, the specific of above-mentioned wireless connection can also not limited to using other radio connections, the application Mode.
Above-mentioned audio file is specifically as follows, individual audio file, naturally it is also possible to for the audio portion in video file The file divided, the application do not limit to above-mentioned audio file and are obtained by which kind of mode.
Processing component 201, for detecting the volume in section to be played in the audio file, such as the volume in the section to be played In the first volume be higher than the first volume threshold, extract the first adjustment section that the satisfaction before first volume imposes a condition, Multiple adjustment subintervals are divided by volume value to the first adjustment section, different volume tune is used to multiple adjustment subintervals Integral coefficient reduction volume, the second adjustment section after being adjusted, when the audio file needs to play the first adjustment section, It controls the audio playback component and plays the second adjustment section.
Above-mentioned first volume threshold is specifically as follows, fixed value set by user, such as 90 decibels, certainly in practical application In, or variable, i.e., the value changed according to the wear time of wearable device.
Technical solution provided by the present application detects volume in audio file and is greater than the first volume threshold after obtaining audio file Then first volume of value extracts the first adjustment section for meeting and imposing a condition, volume value then is pressed in the first adjustment section Multiple adjustment subintervals are divided into, setting different volume adjustment coefficient to multiple adjustment subintervals reduces after volume is adjusted Second adjustment section, with second adjustment section replace the first adjustment section so that first volume be lower than volume section, Due to the adjustment for being adjusted to entirely to adjust the volume in section of the volume, will not cause to be mutated in the volume of the first volume, in this way It can make the adjustment of the volume of audio than milder, reduce the distortion rate of volume, improve user experience.
Optionally, the first adjustment section that the satisfaction before said extracted first volume imposes a condition is specifically as follows, Processing component 201, specifically for extracting the audio data of setting time before first volume as the first adjustment section.It is above-mentioned Setting time can be by user's sets itself, certainly in practical applications, and above-mentioned setting time can also be wearable according to this The wear time of equipment dynamically adjusts, and adjustment mode is specifically as follows:
Wherein, t is the wearing duration of wearable device, and T is standard duration (constant), and y is the first volume value,For sound The average value of all volumes of frequency file.
Setting time dynamically is adjusted by above-mentioned formula, when can use time and volume according to user to setting Between be adjusted, in this way control the first adjustment section it is more reasonable.
The calculating of above-mentioned setting time based on the ratio worn between duration and standard duration, then consider the first volume with The ratio of average volume, for wearable device by taking bluetooth headset as an example, wear time is longer, and the influence for ear is bigger, Conversely, it needs audio file softer, when setting time here is long, since the first adjustment section increases, necessarily may be used To adjust long audio data, so that the distortion rate of audio file is smaller, sound variation is smaller.
Optionally, the first adjustment section that the satisfaction before said extracted first volume imposes a condition is specifically as follows, Processing component 201, specifically for extracting the audio data between the 0th volume before first volume as the first adjustment area Between.0th volume is greater than the first volume threshold.
Aforesaid way extracts the audio data between two and the first volume threshold as the first adjustment section, The range in this first adjustment section is larger, enables to the distortion rate of audio file smaller, sound variation is smaller.
Optionally, above-mentioned that volume is reduced using different volume adjustment coefficients to multiple adjustment subintervals, after being adjusted Second adjustment section can specifically include:
Processing component 201, the volume maximum value in each adjustment subintervals for obtaining multiple adjustment subintervals, from multiple It adjusts and extracts the n adjustment subinterval that volume maximum value is greater than the second volume threshold in subinterval, n is adjusted the sound in subinterval Amount maximum value carries out n adjustment subinterval after ascending order is arranged, to the volume tune in n adjustment subinterval after arrangement Integral coefficient reduces volume using monotone decreasing mode, and wherein n after the arrangement adjusts the volume adjustment coefficient in subinterval most Big value is less than 1.Second volume threshold is less than the first volume threshold.
The mode of above-mentioned volume adjustment coefficient can be to be first depending on volume maximum value to be divided multiple adjustment subintervals Class is divided into one kind greater than the second volume threshold, this classification is because the value of its volume is inherently smaller, then it can not be into Row adjustment, the bigger adjustment section of volume maximum value is divided into another kind of, i.e., n adjustment subinterval, then to n adjustment section Ascending order arrangement is carried out by volume maximum value, then using the volume adjustment coefficient of monotone decreasing multiplied by n adjustment after arrangement Section.
Illustrate below by an actual example, multiple adjustment sections here are by taking 5 adjustment subintervals as an example Facilitate explanation, 5 adjustment subintervals here are respectively subinterval 1, subinterval 2, subinterval 3, subinterval 4, subinterval 5; Its corresponding max volume value can be respectively:50 decibels, 55 decibels, 61 decibels, 70 decibels, 80 decibels, it is assumed that the second volume Threshold value is 60 decibels, then since subinterval 1 and subinterval 2 are less than second volume threshold, can without the adjustment of volume, I.e. the volume adjustment coefficient is 1, can use volume adjustment coefficient decreasing fashion tune for section 3, subinterval 4, subinterval 5 It is whole, specifically, can be 0.9 for 3 volume adjustment coefficient of section, maximum decibels are 54 decibels, for 4 volume tune of section Integral coefficient can be 0.8, and maximum decibels are:56 decibels, can be 0.75 for 5 volume adjustment coefficient of section, maximum Decibels are:60 decibels.By such adjustment mode, the difference of the max volume between section is reduced, but it is corresponded to Volume be still incremental, and the audio for having not been changed its audio file itself, so it is small with volume change, sound is soft With the high advantage of user experience.
A kind of wearable device method for regulation of sound volume is provided refering to Fig. 3, Fig. 3, the method is applied and worn with described Formula equipment is worn, the wearable device includes:Processing component, audio playback component and wireless transceiver;The method includes Following steps:
Step S301, it establishes and is wirelessly connected with electronic equipment, audio file is received by the wireless connection;
Step S302, the volume for detecting section to be played in the audio file, as the section to be played volume in The first volume be higher than the first volume threshold, the first adjustment section that the satisfaction before extracting first volume imposes a condition;
Step S303, the first adjustment section is divided into multiple adjustment subintervals by volume value, to the multiple tune Whole subinterval reduces volume, the second adjustment section after being adjusted, in the audio text using different volume adjustment coefficients When part needs to play the first adjustment section, the second adjustment section is played.
Above-mentioned first volume threshold is specifically as follows, fixed value set by user, such as 90 decibels, certainly in practical application In, or variable, i.e., the value changed according to the wear time of wearable device.
Technical solution provided by the present application detects volume in audio file and is greater than the first volume threshold after obtaining audio file Then first volume of value extracts the first adjustment section for meeting and imposing a condition, volume value then is pressed in the first adjustment section Multiple adjustment subintervals are divided into, setting different volume adjustment coefficient to multiple adjustment subintervals reduces after volume is adjusted Second adjustment section, with second adjustment section replace the first adjustment section so that first volume be lower than volume section, Due to the adjustment for being adjusted to entirely to adjust the volume in section of the volume, will not cause to be mutated in the volume of the first volume, in this way It can make the adjustment of the volume of audio than milder, reduce the distortion rate of volume, improve user experience.
Optionally, the first adjustment section that the satisfaction before said extracted first volume imposes a condition is specifically as follows, The audio data of setting time before first volume is extracted as the first adjustment section.Above-mentioned setting time can be by user certainly Row setting, certainly in practical applications, above-mentioned setting time can also according to the wearable device wear time it is dynamic Adjustment, adjustment mode are specifically as follows:
Wherein, t is the wearing duration of wearable device, and T is standard duration (constant), and y is the first volume value,For sound The average value of all volumes of frequency file.
Setting time dynamically is adjusted by above-mentioned formula, when can use time and volume according to user to setting Between be adjusted, in this way control the first adjustment section it is more reasonable.
The calculating of above-mentioned setting time based on the ratio worn between duration and standard duration, then consider the first volume with The ratio of average volume, for wearable device by taking bluetooth headset as an example, wear time is longer, and the influence for ear is bigger, Conversely, it needs audio file softer, when setting time here is long, since the first adjustment section increases, necessarily may be used To adjust long audio data, so that the distortion rate of audio file is smaller, sound variation is smaller.
Optionally, the first adjustment section that the satisfaction before said extracted first volume imposes a condition is specifically as follows, The audio data between the 0th volume before first volume is extracted as the first adjustment section.0th volume is greater than first Volume threshold.
Aforesaid way extracts the audio data between two and the first volume threshold as the first adjustment section, The range in this first adjustment section is larger, enables to the distortion rate of audio file smaller, sound variation is smaller.
Optionally, above-mentioned that volume is reduced using different volume adjustment coefficients to multiple adjustment subintervals, after being adjusted Second adjustment section can specifically include:
The volume maximum value for obtaining each adjustment subinterval in multiple adjustment subintervals, is extracted from multiple adjustment subintervals Volume maximum value is greater than n adjustment subinterval of the second volume threshold, and the volume maximum value that n adjusts subinterval is carried out ascending order The volume adjustment coefficient in n adjustment subinterval after arrangement is passed in n adjustment subinterval after being arranged using dullness The mode of subtracting reduces volume and obtains second adjustment section, and wherein n after the arrangement adjusts the volume adjustment coefficient in subinterval most Big value is less than 1.Second volume threshold is less than the first volume threshold.
The mode of above-mentioned volume adjustment coefficient can be to be first depending on volume maximum value to be divided multiple adjustment subintervals Class is divided into one kind greater than the second volume threshold, this classification is because the value of its volume is inherently smaller, then it can not be into Row adjustment, the bigger adjustment section of volume maximum value is divided into another kind of, i.e., n adjustment subinterval, then to n adjustment section Ascending order arrangement is carried out by volume maximum value, then using the volume adjustment coefficient of monotone decreasing multiplied by n adjustment after arrangement Section.
Illustrate below by an actual example, multiple adjustment sections here are by taking 5 adjustment subintervals as an example Facilitate explanation, 5 adjustment subintervals here are respectively subinterval 1, subinterval 2, subinterval 3, subinterval 4, subinterval 5; Its corresponding max volume value can be respectively:50 decibels, 55 decibels, 61 decibels, 70 decibels, 80 decibels, it is assumed that the second volume Threshold value is 60 decibels, then since subinterval 1 and subinterval 2 are less than second volume threshold, can without the adjustment of volume, I.e. the volume adjustment coefficient is 1, can use volume adjustment coefficient decreasing fashion tune for section 3, subinterval 4, subinterval 5 It is whole, specifically, can be 0.9 for 3 volume adjustment coefficient of section, maximum decibels are 54 decibels, for 4 volume tune of section Integral coefficient can be 0.8, and maximum decibels are:56 decibels, can be 0.75 for 5 volume adjustment coefficient of section, maximum Decibels are:60 decibels.By such adjustment mode, the difference of the max volume between section is reduced, but it is corresponded to Volume be still incremental, and the audio for having not been changed its audio file itself, so it is small with volume change, sound is soft With the high advantage of user experience.
Fig. 4 shows the part-structure for the wearable device connecting with mobile terminal provided by the embodiments of the present application Block diagram.With reference to Fig. 4, wearable device includes:Radio frequency (Radio Frequency, RF) circuit 910, memory 920, input Unit 930, sensor 950, audio collection device 960, Wireless Fidelity (Wireless Fidelity, WiFi) module 970, application The components such as processor AP980, power supply 990.It will be understood by those skilled in the art that wearable device structure shown in Fig. 4 The restriction to wearable device is not constituted, may include components more more or fewer than diagram, or combine certain components, Or different component layouts, such as the radio circuit 910 can connect single or more antenna.
It is specifically introduced below with reference to each component parts of the Fig. 4 to wearable device:
Input unit 930 can be used for receiving the number or character information of input, and generate with the user setting of mobile phone with And the related key signals input of function control.Specifically, input unit 930 may include touching display screen 933 and other inputs Equipment 932.Specifically, other input equipments 932 can include but is not limited to physical button, function key (for example press by volume control Key, switch key etc.), trace ball, one of operating stick etc. or a variety of.Wherein,
Radio circuit 910 receives audio file by the wireless connection for keeping being wirelessly connected with electronic equipment;
Application processor AP980, for detecting the volume in section to be played in the audio file, such as area to be played Between volume in the first volume be higher than the first volume threshold, the satisfaction before extracting first volume impose a condition first Section is adjusted, the first adjustment section is divided into multiple adjustment subintervals by volume value, to the multiple adjustment subinterval Volume is reduced using different volume adjustment coefficients, the second adjustment section after being adjusted is broadcast in audio file needs When putting the first adjustment section, controls the audio playback component and play the second adjustment section.
Application processor AP980, specifically for extracting the audio data of setting time before first volume as the One adjustment section.
Application processor AP980, it is maximum specifically for obtaining the volume in each adjustment subinterval in multiple adjustment subintervals Value extracts the n adjustment subinterval that volume maximum value is greater than the second volume threshold, by the n from multiple adjustment subintervals The volume maximum value in adjustment subinterval carries out n adjustment subinterval after ascending order is arranged, to n after the arrangement The volume adjustment coefficient in adjustment subinterval reduces volume using monotone decreasing mode and obtains second adjustment section, wherein the arrangement For the maximum value of the volume adjustment coefficient in n adjustment subinterval afterwards less than 1, second volume threshold is less than first volume Threshold value.
Application processor AP980 is specifically used for extracting the audio data between first volume and the 0th volume as the One adjustment section, the 0th volume are the volume greater than the first volume threshold.
AP980 is the control centre of wearable device, utilizes various interfaces and the entire wearable device of connection Various pieces, by running or execute the software program and/or module that are stored in memory 920, and call and be stored in Data in memory 920 execute the various functions and processing data of wearable device, to carry out to wearable device Integral monitoring.Optionally, AP980 may include one or more processing units;Optionally, AP980 can integrate application processor and Modem processor, wherein the main processing operation system of application processor, user interface and application program etc., modulation /demodulation Processor mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into AP980.
In addition, memory 920 may include high-speed random access memory, it can also include nonvolatile memory, example Such as at least one flush memory device or other volatile solid-state parts.
RF circuit 910 can be used for sending and receiving for information.In general, RF circuit 910 includes but is not limited to antenna, at least one A amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuit 910 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication Standard or agreement, including but not limited to bluetooth, wifi, global system for mobile communications, general packet radio service, CDMA, Wideband code division multiple access, is newly eated dishes without rice or wine at long term evolution.
Wearable device may also include at least one sensor 950, such as ultrasonic sensor, angular transducer, light Sensor, motion sensor and other sensors.Specifically, optical sensor may include ambient light sensor and close sensing Device, wherein ambient light sensor can detecte whether wearable device is located according to the light and shade of ambient light, motion sensor In slotting ear state, the brightness for adjusting touching display screen according to the slotting ear state, proximity sensor can be moved in wearable device When moving in one's ear, touching display screen and/or backlight are closed.As a kind of motion sensor, accelerometer sensor is detectable each The size of (generally three axis) acceleration, can detect that size and the direction of gravity, can be used to identify can on a direction when static The application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of wearable device posture, Vibration identification correlation function (such as pedometer, percussion) etc.;It is the gyroscope that can also configure as wearable device, barometer, hygrometer, thermometer, red The other sensors such as outside line sensor, details are not described herein.
Audio collection device 960, loudspeaker 961, microphone 962 can provide the audio between user and wearable device and connect Mouthful.Electric signal after the audio data received conversion can be transferred to loudspeaker 961, by loudspeaker by audio collection device 960 961 are converted to voice signal broadcasting;On the other hand, the voice signal of collection is converted to electric signal by microphone 962, is adopted by audio Storage 960 is converted to audio data after receiving, then after audio data is played AP980 processing, through RF circuit 910 to be sent to ratio It plays to memory 920 such as mobile phone, or by audio data to be further processed.
WiFi belongs to short range wireless transmission technology, and wearable device can help user to receive by WiFi module 970 Data etc. are sent out, it provides wireless broadband internet access for user.It, can be with although Fig. 4 shows WiFi module 970 Understand, and be not belonging to must be configured into for wearable device, is can according to need completely in the essence for not changing application In the range of and omit.
The wearable device can also include bluetooth module, and the bluetooth module is for realizing the company between electronic equipment It connects, which can be separately provided, and certainly in practical applications, since the application processor of selection is different, can also collect At in application processor.
Wearable device further includes the power supply 990 (such as battery) powered to all parts, and optionally, power supply can lead to It is logically contiguous with AP980 to cross power-supply management system, to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.
Although being not shown, wearable device can also be including camera, light compensating apparatus, light sensor etc., herein not It repeats again.
It is greater than as can be seen that technical solution provided by the present application after obtaining audio file, detects volume in audio file Then first volume of the first volume threshold extracts the first adjustment section for meeting and imposing a condition, then by the first adjustment area Between by volume value be divided into multiple adjustment subintervals, setting different volume adjustment coefficients to multiple adjustment subintervals reduces volume Second adjustment section after being adjusted, with second adjustment section replacement the first adjustment section so that first volume is lower than Volume section will not be caused due to the adjustment for being adjusted to entirely to adjust the volume in section of the volume in the volume of the first volume Mutation can make the adjustment of the volume of audio than milder in this way, reduce the distortion rate of volume, improve user experience.
The embodiment of the present application also provides a kind of computer storage medium, wherein computer storage medium storage is for electricity The computer program of subdata exchange, it is as any in recorded in above method embodiment which execute computer A kind of some or all of wearable device method for regulation of sound volume step.
The embodiment of the present application also provides a kind of computer program product, and the computer program product includes storing calculating The non-transient computer readable storage medium of machine program, the computer program are operable to that computer is made to execute such as above-mentioned side Some or all of any wearable device method for regulation of sound volume recorded in method embodiment step.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way It realizes.For example, the apparatus embodiments described above are merely exemplary, such as the division of the unit, it is only a kind of Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit, It can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also be realized in the form of software program module.
It is the embodiment of the embodiment of the present application above, it is noted that those skilled in the art are come It says, under the premise of not departing from the embodiment of the present application principle, several improvements and modifications can also be made, these improvements and modifications It is considered as the protection scope of the application.

Claims (12)

1. a kind of wearable device, which is characterized in that the wearable device includes:Processing component, audio playback component And wireless transceiver;Wherein, the processing component is separately connected with the audio playback component and without the line transceiver;
The wireless transceiver receives audio file by the wireless connection for keeping being wirelessly connected with electronic equipment;
The processing component, for detecting the volume in section to be played in the audio file, such as sound in the section to be played The first volume in amount is higher than the first volume threshold, the first adjustment area that the satisfaction before extracting first volume imposes a condition Between, the first adjustment section is divided into multiple adjustment subintervals by volume value, to the multiple adjustment subinterval using not Same volume adjustment coefficient reduces volume, and the second adjustment section after being adjusted needs described in broadcasting in the audio file When the first adjustment section, controls the audio playback component and play the second adjustment section.
2. wearable device according to claim 1, which is characterized in that
The processing component, specifically for extracting the audio data of setting time before first volume as the first adjustment area Between.
3. wearable device according to claim 2, which is characterized in that
The setting time is the set time;
Or the setting time is calculated according to following formula;
Wherein, t is the wearing duration of the wearable device, and T is standard duration, and y is the first volume value,For audio file All volumes average value.
4. wearable device according to claim 1, which is characterized in that
The processing component, the volume maximum value in each adjustment subintervals specifically for obtaining multiple adjustment subintervals, from more The n adjustment subinterval that volume maximum value is greater than the second volume threshold is extracted in a adjustment subinterval, by the n adjustment sub-district Between volume maximum value carry out ascending order arranged after n adjustment subinterval, to n adjustment sub-district after the arrangement Between volume adjustment coefficient reduce volume using monotone decreasing mode and obtain second adjustment section, wherein the n after the arrangement The maximum value of the volume adjustment coefficient in subinterval is adjusted less than 1, second volume threshold is less than first volume threshold.
5. wearable device according to claim 1, which is characterized in that
The processing component, specifically for extracting the audio data between first volume and the 0th volume as the first adjustment Section, the 0th volume are the volume greater than the first volume threshold.
6. a kind of wearable device method for regulation of sound volume, which is characterized in that the method apply with the wearable device, The wearable device includes:Processing component, audio playback component and wireless transceiver;Described method includes following steps:
It establishes and is wirelessly connected with electronic equipment, audio file is received by the wireless connection;
The volume for detecting section to be played in the audio file, as the section to be played volume in the first volume be higher than First volume threshold, the first adjustment section that the satisfaction before extracting first volume imposes a condition, by the first adjustment Section is divided into multiple adjustment subintervals by volume value, is dropped to the multiple adjustment subinterval using different volume adjustment coefficients Amount of bass, the second adjustment section after being adjusted are played when the audio file needs to play the first adjustment section The second adjustment section.
7. according to the method described in claim 6, it is characterized in that, the satisfaction setting item extracted before first volume The first adjustment section of part specifically includes:
The audio data of setting time before first volume is extracted as the first adjustment section.
8. the method according to the description of claim 7 is characterized in that
The setting time is the set time;
Or the setting time is calculated according to following formula;
Wherein, t is the wearing duration of the wearable device, and T is standard duration, and y is the first volume value,For audio file All volumes average value.
9. according to the method described in claim 6, it is characterized in that, using different volume tune to the multiple adjustment subinterval Integral coefficient reduces volume, and the second adjustment section after being adjusted specifically includes:
The volume maximum value for obtaining each adjustment subinterval in multiple adjustment subintervals, extracts volume from multiple adjustment subintervals Maximum value is greater than n adjustment subinterval of the second volume threshold, and the volume maximum value that described n adjusts subinterval is carried out ascending order N adjustment subinterval after being arranged uses the volume adjustment coefficient in n adjustment subinterval after the arrangement single It adjusts decreasing fashion to reduce volume and obtains second adjustment section, wherein the volume adjustment system in n adjustment subinterval after the arrangement For several maximum values less than 1, second volume threshold is less than first volume threshold.
10. according to the method described in claim 6, it is characterized in that, the satisfaction setting extracted before first volume The first adjustment section of condition specifically includes:
The audio data between first volume and the 0th volume is extracted as the first adjustment section, the 0th volume is big In the volume of the first volume threshold.
11. a kind of computer readable storage medium, which is characterized in that it stores the computer program for being used for electronic data interchange, Wherein, the computer program makes computer execute such as the described in any item methods of claim 6-10.
12. a kind of computer program product, which is characterized in that the computer program product includes storing computer program Non-transient computer readable storage medium, the computer program are operable to that computer is made to execute such as claim 6-10 Method described in one.
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 true CN108897516A (en) 2018-11-27
CN108897516B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109857365A (en) * 2019-01-10 2019-06-07 美律电子(深圳)有限公司 Method for automatically adjusting and reducing volume and electronic device
CN110058837A (en) * 2019-04-22 2019-07-26 维沃移动通信有限公司 A kind of audio-frequency inputting method and terminal
CN112289340A (en) * 2020-11-03 2021-01-29 北京猿力未来科技有限公司 Audio detection method and device
US11265642B1 (en) 2020-09-28 2022-03-01 Nanning Fugui Precision Industrial Co., Ltd. Method for improving electrical endurance of batteries of wireless headphones and the wireless headphones
CN116996812A (en) * 2023-09-26 2023-11-03 成都赛力斯科技有限公司 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

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109857365A (en) * 2019-01-10 2019-06-07 美律电子(深圳)有限公司 Method for automatically adjusting and reducing volume and electronic device
CN110058837A (en) * 2019-04-22 2019-07-26 维沃移动通信有限公司 A kind of audio-frequency inputting method and terminal
CN110058837B (en) * 2019-04-22 2022-05-03 维沃移动通信有限公司 Audio output method and terminal
US11265642B1 (en) 2020-09-28 2022-03-01 Nanning Fugui Precision Industrial Co., Ltd. Method for improving electrical endurance of batteries of wireless headphones and the wireless headphones
US11528549B2 (en) 2020-09-28 2022-12-13 Nanning Fulian Fugui Precision Industrial Co., Ltd. Method for improving electrical endurance of batteries of wireless headphones and the wireless headphones
CN112289340A (en) * 2020-11-03 2021-01-29 北京猿力未来科技有限公司 Audio detection method and device
CN112289340B (en) * 2020-11-03 2024-05-07 北京猿力未来科技有限公司 Audio detection method and device
CN116996812A (en) * 2023-09-26 2023-11-03 成都赛力斯科技有限公司 Steering-based volume adjusting method and device, electronic equipment and storage medium
CN116996812B (en) * 2023-09-26 2023-12-19 成都赛力斯科技有限公司 Steering-based volume adjusting method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN108897516B (en) 2021-04-09

Similar Documents

Publication Publication Date Title
CN108897516A (en) A kind of wearable device method for regulation of sound volume and Related product
CN109768810A (en) A kind of signal processing circuit, terminal device and signal processing method
CN108649991B (en) A kind of processing method and mobile terminal of harmonic wave interference
CN110413315A (en) A kind of application control method and electronic equipment
CN109547054A (en) Signal control circuit, terminal device and signal control method
CN109561420A (en) A kind of method and relevant device of emergency help
CN107678989B (en) UART (Universal asynchronous receiver transmitter) and USB (Universal Serial bus) multiplexing circuit and mobile terminal
CN109150221B (en) Master-slave switching method for wearable equipment and related product
CN110289885A (en) A kind of antenna tuning method and terminal
CN107196041B (en) Antenna device and three-section type mobile terminal
CN108769387A (en) Application control method and relevant device
CN110381544A (en) A kind of data transfer control method, device and terminal device
CN108600887B (en) Touch control method based on wireless earphone and related product
CN110366275A (en) A kind of method and terminal reducing multiple network mutual interference
CN109274441A (en) A kind of tuning methods and terminal device
CN108834013B (en) Wearable equipment electric quantity balancing method and related product
CN114077414A (en) Audio playing control method and device, electronic equipment and storage medium
CN108882084B (en) Wearable equipment electric quantity balancing method and related product
CN108881558B (en) Mobile terminal and FM anti-jamming circuit thereof
CN109121034A (en) Master-slave switching method and Related product based on volume
CN208539895U (en) A kind of anti-jamming circuit and mobile terminal
CN108955758A (en) The wearing detection method and Related product of wearable device
CN108668018A (en) Mobile terminal, method for controlling volume and Related product
CN108649671B (en) Wireless charging circuit and wearable equipment
CN105929960A (en) Fingerprint module based volume control method and mobile 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