[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN105592222A - Device and method for automatically adjusting volume of terminal - Google Patents

Device and method for automatically adjusting volume of terminal Download PDF

Info

Publication number
CN105592222A
CN105592222A CN201510967174.XA CN201510967174A CN105592222A CN 105592222 A CN105592222 A CN 105592222A CN 201510967174 A CN201510967174 A CN 201510967174A CN 105592222 A CN105592222 A CN 105592222A
Authority
CN
China
Prior art keywords
sound
volume
yield value
value
stack
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510967174.XA
Other languages
Chinese (zh)
Inventor
王冲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201510967174.XA priority Critical patent/CN105592222A/en
Publication of CN105592222A publication Critical patent/CN105592222A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a device and method for automatically adjusting the volume of a terminal. The method comprises steps of: acquiring the PCM data of a current audio source and reading a volume gain value corresponding to the current equipment volume; superposing the volume gain value onto the audio gain value of the PCM data of the current audio source; correcting a superposed audio gain value if the superposed audio gain value is greater than a preset maximum value. The method acquires the PCM data of the current audio source, superposes the preset volume gain value onto the audio gain value carried in the PCM data, and corrects the superposed audio gain value if the superposed audio gain value is beyond a range, thereby automatically adjusting the output volume in the audio source and enabling different audio sources to output basically consistent volume.

Description

A kind of device and method of automatic adjustment terminal volume
Technical field
The present invention relates to multimedia technology field, relate in particular to a kind of device and method of automatic adjustment terminal volume.
Background technology
Sound is as one of terminal multi-media important behaviour form the most, and user is also improving day by day for the pursuit of sound tonequality, volume. Especially, for the volume of terminal voice output, PCM (the PulseCodeModulation of different audio files, pulse code modulation) gain be different, but terminal is the same to the control handling process of volume, so just cause under same level of sound volume, the volume that different audio files shows is different, in the process that user has to play at different audio files, meets self demand to volume by adjusting terminal volume button. For this problem, also there are at present some solutions, such as the distance by sensor scrutineer and terminal, distance is large just tunes up volume automatically, and distance is little just turns volume down automatically; Also or carry out noise measuring with the Mike of terminal, noise is large just tunes up volume automatically, and noise is little just turns volume automatically down. These solution common ground are all to carry out passive judgement to external environment condition by hardware, inconsistent to the size adjustment of volume.
Summary of the invention
Main purpose of the present invention is to propose a kind of device and method of automatic adjustment terminal volume, is intended to automatically adjust output volume size, makes the basically identical volume output of realizing of different sources of sound.
For achieving the above object, the present invention proposes a kind of device of automatic adjustment terminal volume, comprising:
Data capture unit, for obtaining the PCM data of current source of sound, reads volume gain value corresponding to current device volume;
Data superpositing unit, for the sound yield value of the PCM data of current source of sound that described volume gain value is added to;
Data correction unit, in the time that the sound yield value after stack exceeds default maximum, revises the sound yield value after stack.
Wherein, described data correction unit, specifically for:
In the time that the sound yield value after stack exceeds default maximum, be default maximum by the sound gain value correction after stack.
Wherein, described default maximum is-1db.
Wherein, described device also comprises:
Yield value updating block, for upgrading the actual value added of sound yield value after revising to replace described volume gain value.
Wherein, described device, also comprises:
Yield value is preset unit, for default volume gain value corresponding to each device voice volume.
In addition, for achieving the above object, the invention allows for a kind of method of automatic adjustment terminal volume, comprising:
Obtain the PCM data of current source of sound, read volume gain value corresponding to current device volume;
By the be added to sound yield value of PCM data of current source of sound of described volume gain value;
In the time that the sound yield value after stack exceeds default maximum, the sound yield value after stack is revised.
Wherein, described in the time that the sound yield value after stack exceeds default maximum, the sound yield value after stack is revised, be specially:
In the time that the sound yield value after stack exceeds default maximum, be default maximum by the sound gain value correction after stack.
Wherein, described default maximum is-1db.
Wherein, when the described sound yield value when the sound yield value after stack exceeds default maximum, after the sound yield value after stack is revised, also comprise:
The actual value added of sound yield value after revising is upgraded and replaced described volume gain value.
Wherein, described method, also comprises:
Default volume gain value corresponding to each device voice volume.
The device and method of automatic adjustment terminal volume proposed by the invention, by obtaining the PCM data of current source of sound, the volume gain value that superposes default to the sound yield value carrying in PCM data, if stack goes beyond the scope, sound yield value after stack is revised, realize the automatic adjustment output volume size in sound source, made the basically identical volume output of realizing of different sources of sound.
Brief description of the drawings
Fig. 1 is the hardware configuration schematic diagram of realizing an optional mobile terminal of each embodiment of the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the method flow diagram of method first embodiment of a kind of automatic adjustment terminal output volume size of the present invention;
Fig. 4 is the method flow diagram of method second embodiment of a kind of automatic adjustment terminal output volume size of the present invention;
Fig. 5 is the block diagram of device first embodiment of a kind of automatic adjustment terminal output volume size of the present invention;
Fig. 6 is the block diagram of device second embodiment of a kind of automatic adjustment terminal output volume size of the present invention.
Realization, functional characteristics and the advantage of the object of the invention, in connection with embodiment, are described further with reference to accompanying drawing.
Detailed description of the invention
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
The mobile terminal of realizing each embodiment of the present invention is described referring now to accompanying drawing. In follow-up description, use the suffix such as " module ", " parts " or " unit " that is used for representing element only in order to be conducive to explanation of the present invention, itself do not have specific meaning. Therefore, " module " can mixedly be used with " parts ".
Mobile terminal can be implemented with various forms. For example, the terminal of describing in the present invention can comprise such as the mobile terminal of mobile phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP (portable media player), guider etc. and such as the fixed terminal of digital TV, desktop computer etc. Suppose that terminal is mobile terminal below. But, it will be appreciated by those skilled in the art that the element except being used in particular for mobile object, structure according to the embodiment of the present invention also can be applied to the terminal of fixed type.
Fig. 1 is the hardware configuration schematic diagram of realizing an optional mobile terminal of each embodiment of the present invention.
Mobile terminal 100 can comprise wireless communication unit 110, A/V (audio/video) input block 120, user input unit 130, output unit 150, memory 160, interface unit 170, controller 180 and power subsystem 190 etc. Fig. 1 shows the mobile terminal with various assemblies, it should be understood that, and does not require all assemblies that illustrate of enforcement. Can alternatively implement more or less assembly. Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assemblies, and it allows the radio communication between mobile terminal 100 and wireless communication system or network. For example, wireless communication unit can comprise at least one in broadcast reception module 111, mobile communication module 112, wireless Internet module 113, junction service module 114 and positional information module 115.
Broadcast reception module 111 via broadcast channel from external broadcasting management server receiving broadcast signal and/or broadcast related information. Broadcast channel can comprise satellite channel and/or terrestrial channel. Broadcast management server can be generate and send the server of broadcast singal and/or broadcast related information or receive before the broadcast singal that generates and/or broadcast related information and send it to the server of terminal. Broadcast singal can comprise TV broadcast singal, radio signals, data broadcasting signal etc. And broadcast singal may further include the broadcast singal with TV or radio signals combination. Broadcast related information also can provide via mobile communications network, and in this case, broadcast related information can be received by mobile communication module 112. Broadcast singal can exist with various forms, for example, it can exist with the form of electronic service guidebooks (ESG) of the electronic program guides of DMB (DMB) (EPG), digital video broadcast-handheld (DVB-H) etc. Broadcast reception module 111 can be by being used various types of broadcast systems to receive signal broadcast. Especially, broadcast reception module 111 can be by being used such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), DVB-hand-held (DVB-H), forward link media (MediaFLO) the digit broadcasting system receiving digital broadcast of Radio Data System, received terrestrial digital broadcasting integrated service (ISDB-T) etc. Broadcast reception module 111 can be constructed to be applicable to providing various broadcast systems and the above-mentioned digit broadcasting system of broadcast singal. The broadcast singal receiving via broadcast reception module 111 and/or broadcast related information can be stored in memory 160 (or storage medium of other type).
Mobile communication module 112 sends to radio signal for example, in base station (, access point, Node B etc.), exterior terminal and server at least one and/or receives radio signals from it. Such radio signal can comprise voice call signal, video calling signal or the various types of data according to text and/or Multimedia Message transmission and/or reception.
Wireless Internet module 113 is supported the Wi-Fi (Wireless Internet Access) of mobile terminal. This module can be inner or be externally couple to terminal. The related Wi-Fi (Wireless Internet Access) technology of this module can comprise WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave access), HSDPA (high-speed downlink packet access) etc.
Junction service module 114 is the modules for supporting junction service. Some examples of short-range communication technology comprise bluetoothTM, RF identification (RFID), Infrared Data Association (IrDA), ultra broadband (UWB), purple honeybeeTMEtc..
Positional information module 115 is the modules for checking or obtain the positional information of mobile terminal. The typical case of positional information module is GPS (global positioning system). According to current technology, GPS module 115 is calculated from the range information of three or more satellites and correct time information and for the information application triangulation calculating, thus according to longitude, latitude and pin-point accuracy calculate three-dimensional current location information. Current, use three satellites and by using position that an other satellite correction calculation goes out and the error of temporal information for the method for calculating location and temporal information. In addition, GPS module 115 can be carried out computational speed information by calculating continuously in real time current location information.
A/V input block 120 is for audio reception or vision signal. A/V input block 120 can comprise camera 121 and microphone 122, and camera 121 is processed the view data of the static images being obtained by image capture apparatus in Video Capture pattern or image capture mode or video. Picture frame after treatment may be displayed on display module 151. Can be stored in memory 160 (or other storage medium) or send via wireless communication unit 110 through camera 121 picture frame after treatment, can provide two or more cameras 121 according to the structure of mobile terminal, in this programme, need more camera to realize IMAQ and the Correlation method for data processing to control volume. Microphone 122 can receive sound (voice data) via microphone in telephone relation pattern, logging mode, speech recognition mode etc. operational mode, and can be voice data by such acoustic processing. Audio frequency after treatment (voice) data can be converted to the formatted output that can send to via mobile communication module 112 mobile communication base station in the situation that of telephone relation pattern. Microphone 122 can be implemented various types of noises and eliminate (or inhibition) algorithm to eliminate noise or the interference that (or inhibition) produces in receiving and sending the process of audio signal.
User input unit 130 can generate key input data to control the various operations of mobile terminal according to the order of user's input. User input unit 130 allows user to input various types of information, and can comprise keyboard, pot young sheet, touch pad (for example, detecting due to the touch-sensitive assembly of variation that is touched the resistance that causes, pressure, electric capacity etc.), roller, rocking bar etc. Especially, in the time that touch pad is superimposed upon on display module 151 with the form of layer, can form touch-screen.
Interface unit 170 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100. For example, external device (ED) can comprise wired or wireless head-band earphone port, external power source (or battery charger) port, wired or wireless FPDP, memory card port, for connecting the port, audio frequency I/O (I/O) port, video i/o port, ear port of the device with identification module etc. Identification module can be that storage is used the various information of mobile terminal 100 and can comprise subscriber identification module (UIM), client identification module (SIM), general client identification module (USIM) etc. for authentication of users. In addition, the device (being called " recognition device " below) with identification module can be taked the form of smart card, and therefore, recognition device can be connected with mobile terminal 100 via port or other jockey. Interface unit 170 can be transferred to one or more elements in mobile terminal 100 or can be for transmit data between mobile terminal and external device (ED) for receiving for example, from the input (, data message, electric power etc.) of external device (ED) and by the input receiving.
In addition, in the time that mobile terminal 100 is connected with external base, interface unit 170 can be provided to electric power the path of mobile terminal 100 or can be transferred to the path of mobile terminal from the various command signals of base input by it as allowing from base by it as allowing. Can whether be arranged on exactly the signal base with acting on identification mobile terminal from various command signals or the electric power of base input. Output unit 150 is constructed to provide output signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.) with vision, audio frequency and/or tactile manner. Output unit 150 can comprise display module 151, audio frequency output module 152 etc.
Display module 151 may be displayed on the information of processing in mobile terminal 100. For example, when mobile terminal 100 is during in telephone relation pattern, display module 151 can show with call or other (for example, text messaging, multimedia file are downloaded etc.) relevant user interface (UI) or graphic user interface (GUI) of communicating by letter. When mobile terminal 100 is during in video calling pattern or image capture mode, display module 151 can the image of display capture and/or the image of reception, the UI that video or image and correlation function are shown or GUI etc.
Meanwhile, in the time that display module 151 and touch pad superpose to form touch-screen with the form of layer each other, display module 151 can be used as input unit and output device. Display module 151 can comprise at least one in liquid crystal display (LCD), thin film transistor (TFT) LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. Some in these displays can be constructed to transparence to allow user to watch from outside, and this can be called transparent display, and typical transparent display can be for example TOLED (transparent organic light emitting diode) display etc. According to the specific embodiment of wanting, mobile terminal 100 can comprise two or more display modules (or other display unit), for example, mobile terminal can comprise outside display module (not shown) and inner display module (not shown). Touch-screen can be used for detecting touch input pressure and touch input position and touch input area.
Audio frequency output module 152 can be in the time that mobile terminal be under the isotypes such as call signal receiving mode, call mode, logging mode, speech recognition mode, broadcast reception pattern, by voice data convert audio signals that receive wireless communication unit 110 or storage in memory 160 and be output as sound. For example, and audio frequency output module 152 can provide the specific function of carrying out to mobile terminal 100 relevant audio frequency output (, call signal receives sound, message sink sound etc.). Audio frequency output module 152 can comprise loudspeaker, buzzer etc.
Memory 160 can be stored the processing carried out by controller 180 and software program of control operation etc., or can temporarily store the data (for example, telephone directory, message, still image, video etc.) that oneself maybe will export through output. And memory 160 can be stored the vibration of variety of way and the data of audio signal exported about in the time that touch is applied to touch-screen.
Memory 160 can comprise the storage medium of at least one type, described storage medium comprises flash memory, hard disk, multimedia card, card type memory (for example, SD or DX memory etc.), random access storage device (RAM), static random-access memory (SRAM), read-only storage (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc. And mobile terminal 100 can cooperate with the network storage device of the memory function that is connected execute store 160 by network.
Controller 180 is controlled the overall operation of mobile terminal conventionally. For example, controller 180 execution control and the processing relevant to voice call, data communication, video calling etc. In addition, controller 180 can comprise the multi-media module 1810 for reproducing (or playback) multi-medium data, and multi-media module 181 can be configured in controller 180, or can be configured to separate with controller 180. Controller 180 can pattern recognition processing, is identified as character or image so that the handwriting input of carrying out on touch-screen or picture are drawn to input.
Power subsystem 190 receives external power or internal power and the each element of operation and the required suitable electric power of assembly is provided under the control of controller 180.
Various embodiment described herein can be implemented with the computer-readable medium that uses for example computer software, hardware or its any combination. For hardware implementation, at least one that embodiment described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, controller, microcontroller, microprocessor, be designed to carry out in the electronic unit of function described herein implemented, in some cases, such embodiment can be implemented in controller 180. For implement software, can implement with allowing the independent software module of carrying out at least one function or operation such as the embodiment of process or function. Software code can be implemented by the software application (or program) of writing with any suitable programming language, and software code can be stored in memory 160 and by controller 180 and carry out.
So far, oneself through according to its functional description mobile terminal. Below, for the sake of brevity, will describe such as the slide type mobile terminal in various types of mobile terminals of folded form, board-type, oscillating-type, slide type mobile terminal etc. as example. Therefore, the present invention can be applied to the mobile terminal of any type, and is not limited to slide type mobile terminal.
Mobile terminal 100 can be constructed to utilize via frame or grouping and send operating with wireless communication system and satellite-based communication system such as wired of data as shown in Figure 1.
The communication system that wherein can operate according to mobile terminal of the present invention is described referring now to Fig. 2.
Such communication system can be used different air interfaces and/or physical layer. For example, the air interface being used by communication system comprises for example frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and UMTS (UMTS) (Long Term Evolution (LTE) especially), global system for mobile communications (GSM) etc. As non-limiting example, description below relates to cdma communication system, but such instruction is equally applicable to the system of other type.
With reference to figure 2, cdma wireless communication system can comprise multiple mobile terminals 100, multiple base station (BS) 270, base station controller (BSC) 275 and mobile switching centre (MSC) 280. MSC280 is constructed to form interface with Public Switched Telephony Network (PSTN) 290. MSC280 is also constructed to and the BSC275 formation interface that can be couple to via back haul link base station 270. Back haul link can be constructed according to any in some interfaces that oneself knows, and described interface comprises for example E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL. Will be appreciated that system can comprise multiple BSC2750 as shown in Figure 2.
Each BS270 can serve one or more subregions (or region), by multidirectional antenna or each subregion of antenna cover of pointing to specific direction radially away from BS270. Or each subregion can be by two or more antenna covers for diversity reception. Each BS270 can be constructed to support multiple frequencies to distribute, and the distribution of each frequency has specific frequency spectrum (for example, 1.25MHz, 5MHz etc.).
Subregion can be called as CDMA Channel with intersecting of frequency distribution. BS270 also can be called as base station transceiver subsystem (BTS) or other equivalent terms. Under these circumstances, term " base station " can be for broadly representing single BSC275 and at least one BS270. Base station also can be called as " cellular station ". Or each subregion of particular B S270 can be called as multiple cellular stations.
As shown in Figure 2, broadcsting transmitter (BT) 295 sends to broadcast singal the mobile terminal 100 operating in system. Broadcast reception module as shown in Figure 1 111 is arranged on mobile terminal 100 and sentences the broadcast singal that reception is sent by BT295. In Fig. 2, show several global positioning systems (GPS) satellite 300. Satellite 300 helps at least one in the multiple mobile terminals 100 in location.
In Fig. 2, describe multiple satellites 300, but understood, can utilize the satellite of any number to obtain useful locating information. GPS module 115 is constructed to coordinate to obtain with satellite 300 locating information of wanting conventionally as shown in Figure 1. Substitute GPS tracking technique or outside GPS tracking technique, can use other technology of position that can tracking mobile terminal. In addition, at least one gps satellite 300 can optionally or extraly be processed satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link signal from various mobile terminals 100. Mobile terminal 100 participates in communicating by letter of call, information receiving and transmitting and other type conventionally. Each reverse link signal that certain base station 270 receives is processed in particular B S270. The data that obtain are forwarded to relevant BSC275. BSC provides call resource to distribute and comprise the mobile management function of the coordination of the soft switching process between BS270. BSC275 is also routed to MSC280 by the data that receive, and it is provided for forming with PSTN290 the extra route service of interface. Similarly, PSTN290 and MSC280 form interface, and MSC and BSC275 form interface, and BSC275 correspondingly controls BS270 forward link signals is sent to mobile terminal 100.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the method for automatic adjustment terminal output volume size of the present invention is proposed.
Please refer to Fig. 3, it is the method flow diagram of method first embodiment of a kind of automatic adjustment terminal output volume size of the present invention, and as shown in the figure, the method comprises the following steps:
S11: obtain the PCM data of current source of sound, read volume gain value corresponding to current device volume.
The process of voice output is substantially as follows: obtain source of sound, source of sound is decoded, the voice data that decoding is obtained is exported by audio frequency output module 152. Source of sound can be TV input source HDMI (HighDefinitionMultimediaInterface, HDMI), TV signal source or CVBS (CompositeVideoBroadcastSignal, Composite Video Broadcast Signal). The PCM data of voice signal are by simulated audio signal digitlization by pulse code modulation.
The sound yield value that carries source of sound in PCM data, sound yield value can obtain in several ways, for example, be directly recorded in audio files, or for example the voice signal of source of sound sampled, and obtains the voice signal value of some PCM sampled points; The voice signal value of some PCM sampled points is asked square divided by the value of sampling number, and the value of asking square is taken the logarithm taking 10 the end of as, then logarithm value is multiplied by 10, obtains the sound yield value of the voice signal of source of sound, sound yield value can be considered as the inborn broadcast sound volume size of source of sound.
For terminal, also possesses the function of sound size adjustment, the power of the voice output of the current setting of terminal is called current device volume, for example radio can be considered the adjusting to device voice volume by volume adjusting switch to the adjusting of volume, and device voice volume can be considered as the size of the posteriori broadcast sound volume of source of sound.
The size of the sound of the actual output of terminal is received congenital impact and the impact day after tomorrow simultaneously, the namely impression of sound yield value and the impact of device voice volume in PCM data, both comprehensive volumes that finally obtains actual output.
And for source of sound, the size of sound yield value is different, this also causes different sources of sound under identical device voice volume, finally to have different output volumes, embody in actual scene, the broadcasting of for example TV programme, under identical device voice volume, in the time of switching TV channel, the sound that television channel before may switching broadcasts is just that people feels proper volume, but the sound perception that the television channel after switching broadcasts is strong especially or sound is not almost heard. Thus, may, at the suitable device voice volume of last television channel, after switching TV channel, need to adjust by remote manual control the device voice volume of television set, listen to being applicable to. This situation is also embodied in source of sound equally in the use procedure of mobile terminal or personal computer.
The main purpose of this programme design is and reduces the difference that sound that this different source of sound causes due to the sound yield value difference of self in the time playing is play, and makes after sound yield value and device voice volume stack output volume approach or consistent. Because device voice volume can regulate, under the device voice volumes of different sizes, the size that sound yield value need to regulate is also different, so distinct device is separately to having volume gain value for the source of sound adjustment that superposes.
S12: by the be added to sound yield value of PCM data of current source of sound of described volume gain value.
As mentioned before, the sound yield value of PCM data may directly be recorded in PCM data or need to calculate according to PCM data with the form of data. The direct form record with data, directly read, if need to be according to the calculating of sampling of PCM data, for example, sampling precision is 2 bytes, i.e. 65536 sampled points, sampling per second 44100 times,, the voice signal value of obtaining some PCM sampled points is x, the gain computing formula of the voice signal of input source is:
dB=10*lg[(x/65536)2]。
Certainly, the account form of this sound yield value is a kind of optimal way, is not limited in taking 10 the end of as and calculates, also can be by other the truth of a matter, and sampling precision can be equally also other numerical value, is not limited to 2 bytes.
S13: in the time that the sound yield value after stack exceeds default maximum, the sound yield value after stack is revised.
For sound source data, after original sound yield value stack volume gain value, amplitude may exceed 0db, and sound just there will be slicing phenomenon like this, be exactly noise and distorsion at the actual sound of hearing of people's ear, and being bigger than assorted sound also may damage audio frequency output module 152 excessively. So for the situation that exceedes 0db, can again adjust to the gain of PCM data, revise the sound yield value after stack.
The method of the automatic adjustment terminal output volume size of the present embodiment, by obtaining the PCM data of current source of sound, the volume gain value that superposes default to the sound yield value carrying in PCM data, if stack goes beyond the scope, sound yield value after stack is revised, realize the automatic adjustment output volume size in sound source, made the basically identical volume output of realizing of different sources of sound.
Please refer to Fig. 4, it is the method flow diagram of method second embodiment of a kind of automatic adjustment terminal output volume size of the present invention, and as shown in the figure, the method comprises the following steps:
S21: default volume gain value corresponding to each device voice volume.
For different terminals, arranging of its device voice volume is different, and thus, for different terminals, it is also different to the adjustment of source of sound, need to arrange separately volume gain value. And different user is also different to the impression of sound. The user habit sound for example having is larger, and some user habit sound is smaller; Some users like the music of rock and roll style, the music of some user habits rural area style, and it is different that the custom of this personalization and demand all cause the demand of sound size, specifically arranged voluntarily by user.
S22: obtain the PCM data of current source of sound, read volume gain value corresponding to current device volume.
S23: by the be added to sound yield value of PCM data of current source of sound of volume gain value.
S24: in the time that the sound yield value after stack exceeds default maximum, be default maximum by the sound gain value correction after stack.
Default maximum can be determined according to the acoustic processing ability of audio frequency output module 152, the acoustic processing ability of the audio frequency output module 152 for example having is strong, to the sound effect that can export high-quality of various sound yield values, can be to the default larger higher limit of terminal; In like manner, a little less than the acoustic processing ability of some audio frequency output modules 152, very poor for the sound effect of the too large voice output of amplitude, now need the higher limit of suitable control terminal, avoid distorsion and noise. But, no matter the acoustic processing ability of audio frequency output module 152 is how, had better not exceed-1db of default maximum.
S25: the actual value added of sound yield value after revising is upgraded and replaced described volume gain value.
For a source of sound, in PCM data, obtaining of sound yield value is a lasting process, in order to maintain the linear change of sound in whole process, actual value added can be upgraded and replaced volume gain value. The sound yield value obtaining for follow-up sampling directly superposes by the volume gain value after upgrading. Make continuous PCM gain retention wire sexual intercourse, prevent from making because yield value changes the gain difference of the PCM data use in different time points, and cause sound to modify tone.
S26: the source of sound after output is adjusted.
Sound yield value output by the source of sound after adjusting based on after adjusting, for example audio frequency output module 152 of output main body. It should be noted that, be only interim adjustment to the adjustment of sound yield value in this programme, do not change the initial data of source of sound.
It is emphasized that in this programme, method is described based on mobile terminal, realize but itself be not limited to mobile terminal, other for example TV, Baffle Box of Bluetooth, personal computer, vehicle-mounted sound box all can be used for realizing the scheme of this programme.
In adjustment process specific to actual source of sound, suppose that default peaked maximum is-1db, exists two audio file A and B; The PCM waveform of A and B is in full accord, and wherein the maximum amplitude of A is-3db, and the maximum amplitude of B is-10db. Be 5db if user selects default volume gain value, after adjusting to the method for step S24 according to step S22, the maximum amplitude after the first adjustment of A is+2db, and this amplitude has exceeded maximum, is now modified to-1db, and the actual value added of A is 2db; The maximum amplitude that B is first after adjusting is-5db, and without correction, the two maximum amplitude difference of A and B is 4db. If predefined yield value is 10db, after adjusting to the method for step S24 according to step S22, the maximum amplitude of A is-1db, and the maximum amplitude of B is-1db, and the two does not have difference, and in this case, the actual value added of A is 2db, and the actual value added of B is 9db. Can find out that from comparative result above predefined yield value is larger, after adjustment reach volume uniformity time the volume difference exported just less, and volume value is larger.
The method of the automatic adjustment terminal output volume size of the present embodiment, by obtaining the PCM data of current source of sound, the volume gain value that superposes default to the sound yield value carrying in PCM data, if stack goes beyond the scope, sound yield value after stack is revised, realize the automatic adjustment output volume size in sound source, made the basically identical volume output of realizing of different sources of sound; And actual value added is upgraded and replaced volume value added, ensure the sound linear change of source of sound, maintain the output effect of sound.
The present invention further provides a kind of device of automatic adjustment terminal output volume size, the embodiment of device realizes based on the embodiment of aforesaid method, and not most description in the embodiment of device please refer to the embodiment of aforesaid method.
Please refer to Fig. 5, it is the block diagram of device first embodiment of a kind of automatic adjustment terminal output volume size of the present invention, and as shown in the figure, this device, comprising:
Data capture unit 10, for obtaining the PCM data of current source of sound, reads volume gain value corresponding to current device volume;
Data superpositing unit 20, for the sound yield value of the PCM data of current source of sound that described volume gain value is added to;
Data correction unit 30, in the time that the sound yield value after stack exceeds default maximum, revises the sound yield value after stack.
The device of the automatic adjustment terminal output volume size of the present embodiment, by obtaining the PCM data of current source of sound, the volume gain value that superposes default to the sound yield value carrying in PCM data, if stack goes beyond the scope, sound yield value after stack is revised, realize the automatic adjustment output volume size in sound source, made the basically identical volume output of realizing of different sources of sound.
Please refer to Fig. 6, it is the block diagram of device second embodiment of a kind of automatic adjustment terminal output volume size of the present invention, and as shown in the figure, this device, comprising:
Data capture unit 10, for obtaining the PCM data of current source of sound, reads volume gain value corresponding to current device volume;
Data superpositing unit 20, for the sound yield value of the PCM data of current source of sound that described volume gain value is added to;
Data correction unit 30, in the time that the sound yield value after stack exceeds default maximum, revises the sound yield value after stack.
Wherein, described data correction unit 30, specifically for:
In the time that the sound yield value after stack exceeds default maximum, be default maximum by the sound gain value correction after stack.
Wherein, described default maximum is-1db.
Wherein, described device also comprises:
Yield value updating block 40, for upgrading the actual value added of sound yield value after revising to replace described volume gain value.
Wherein, described device, also comprises:
Yield value is preset unit 00, for default volume gain value corresponding to each device voice volume.
Wherein, described device, also comprises:
Source of sound broadcast unit 50, for exporting the source of sound after adjustment.
The device of the automatic adjustment terminal output volume size of the present embodiment, by obtaining the PCM data of current source of sound, the volume gain value that superposes default to the sound yield value carrying in PCM data, if stack goes beyond the scope, sound yield value after stack is revised, realize the automatic adjustment output volume size in sound source, made the basically identical volume output of realizing of different sources of sound; And actual value added is upgraded and replaced volume value added, ensure the sound linear change of source of sound, maintain the output effect of sound.
The device of the automatic adjustment terminal output volume size that above-described embodiment provides belongs to same design with the embodiment of the method for automatically adjusting terminal output volume size, its specific implementation process refers to embodiment of the method, and the technical characterictic in embodiment of the method is all corresponding applicable in device embodiment, repeats no more here.
It should be noted that, in this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the device that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or device. The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, article or the device that comprises this key element and also have other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that above-described embodiment method can add essential general hardware platform by software and realize, can certainly pass through hardware, but in a lot of situation, the former is better embodiment. Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in a storage medium (as ROM/RAM, magnetic disc, CD), comprise that some instructions (can be mobile phones in order to make a station terminal equipment, computer, server, air-conditioner, or the network equipment etc.) carry out the method described in each embodiment of the present invention.
These are only the preferred embodiments of the present invention; not thereby limit the scope of the claims of the present invention; every equivalent structure or conversion of equivalent flow process that utilizes description of the present invention and accompanying drawing content to do; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. a device of automatically adjusting terminal volume, is characterized in that, comprising:
Data capture unit, for obtaining the PCM data of current source of sound, reads current device volume correspondenceVolume gain value;
Data superpositing unit, for the sound of the PCM data of current source of sound that described volume gain value is added toSound yield value;
Data correction unit, in the time that the sound yield value after stack exceeds default maximum, to foldedSound yield value after adding is revised.
2. device according to claim 1, is characterized in that, described data correction unit is concreteBe used for:
In the time that the sound yield value after stack exceeds default maximum, the sound yield value after stack is repaiiedIt is being just default maximum.
3. device according to claim 2, is characterized in that, described default maximum is-1db.
4. device according to claim 1, is characterized in that, described device also comprises:
Yield value updating block, described in replacing the actual value added renewal of sound yield value after revisingVolume gain value.
5. device according to claim 1, is characterized in that, described device, also comprises:
Yield value is preset unit, for default volume gain value corresponding to each device voice volume.
6. a method of automatically adjusting terminal volume, is characterized in that, comprising:
Obtain the PCM data of current source of sound, read volume gain value corresponding to current device volume;
By the be added to sound yield value of PCM data of current source of sound of described volume gain value;
In the time that the sound yield value after stack exceeds default maximum, the sound yield value after stack is enteredRow is revised.
7. method according to claim 6, is characterized in that, described when the sound gain after stackWhen value exceeds default maximum, the sound yield value after stack is revised, is specially:
In the time that the sound yield value after stack exceeds default maximum, the sound yield value after stack is repaiiedIt is being just default maximum.
8. method according to claim 7, is characterized in that, described default maximum is-1db.
9. method according to claim 1, is characterized in that, described when the sound gain after stackWhen the sound yield value of value exceeds default maximum, after the sound yield value after stack is revised,Also comprise:
The actual value added of sound yield value after revising is upgraded and replaced described volume gain value.
10. method according to claim 6, is characterized in that, described method, also comprises:
Default volume gain value corresponding to each device voice volume.
CN201510967174.XA 2015-12-22 2015-12-22 Device and method for automatically adjusting volume of terminal Pending CN105592222A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510967174.XA CN105592222A (en) 2015-12-22 2015-12-22 Device and method for automatically adjusting volume of terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510967174.XA CN105592222A (en) 2015-12-22 2015-12-22 Device and method for automatically adjusting volume of terminal

Publications (1)

Publication Number Publication Date
CN105592222A true CN105592222A (en) 2016-05-18

Family

ID=55931412

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510967174.XA Pending CN105592222A (en) 2015-12-22 2015-12-22 Device and method for automatically adjusting volume of terminal

Country Status (1)

Country Link
CN (1) CN105592222A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107566618A (en) * 2017-08-18 2018-01-09 广东欧珀移动通信有限公司 volume adjusting method, device, terminal device and storage medium
CN111510559A (en) * 2020-04-30 2020-08-07 宋彦震 Method for adaptively adjusting sound magnitude of caller according to environment noise amplitude and caller sound frequency
CN111986696A (en) * 2020-08-27 2020-11-24 湖南融视文化创意有限公司 Method for efficiently processing song volume balance

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101267189A (en) * 2008-04-16 2008-09-17 深圳华为通信技术有限公司 Automatic volume adjusting device, method and mobile terminal
CN103414443A (en) * 2013-08-27 2013-11-27 广州顶毅电子有限公司 Automatic volume control method and automatic volume control system
CN103701419A (en) * 2013-12-06 2014-04-02 乐视致新电子科技(天津)有限公司 Volume regulating method and device
CN103716437A (en) * 2012-09-28 2014-04-09 华为终端有限公司 Sound quality and volume control method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101267189A (en) * 2008-04-16 2008-09-17 深圳华为通信技术有限公司 Automatic volume adjusting device, method and mobile terminal
CN103716437A (en) * 2012-09-28 2014-04-09 华为终端有限公司 Sound quality and volume control method and apparatus
CN103414443A (en) * 2013-08-27 2013-11-27 广州顶毅电子有限公司 Automatic volume control method and automatic volume control system
CN103701419A (en) * 2013-12-06 2014-04-02 乐视致新电子科技(天津)有限公司 Volume regulating method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107566618A (en) * 2017-08-18 2018-01-09 广东欧珀移动通信有限公司 volume adjusting method, device, terminal device and storage medium
CN111510559A (en) * 2020-04-30 2020-08-07 宋彦震 Method for adaptively adjusting sound magnitude of caller according to environment noise amplitude and caller sound frequency
CN111510559B (en) * 2020-04-30 2021-07-13 宋彦震 Method for adaptively adjusting sound magnitude of caller according to environment noise amplitude and caller sound frequency
CN111986696A (en) * 2020-08-27 2020-11-24 湖南融视文化创意有限公司 Method for efficiently processing song volume balance
CN111986696B (en) * 2020-08-27 2023-07-07 湖南融视文化创意有限公司 Method for efficiently processing song volume balance

Similar Documents

Publication Publication Date Title
CN104917890A (en) Mobile terminal and volume adjusting method
CN105338424A (en) Video processing method and system
CN105159533A (en) Mobile terminal and automatic verification code input method thereof
CN104660827A (en) Method and terminal for message reminding
CN104954553A (en) Mobile terminal split-screen display method and device
CN105183308A (en) Picture display method and apparatus
CN104902097A (en) Method and device for adjusting parameters of mobile terminal and mobile terminal
CN104735255A (en) Split screen display method and system
CN105119825A (en) Data transmission device and data transmission method
CN104967744A (en) Method and device for adjusting terminal parameters
CN105263049A (en) Video cropping device based on frame coordinate, method and mobile terminal
CN104968033A (en) Terminal network processing method and apparatus
CN104993180A (en) Terminal charging method and device
CN104902098A (en) Method and system for switching sidebar of mobile terminal
CN105763732A (en) Mobile terminal and volume control method
CN105306631A (en) Antenna and mobile terminal
CN104883685A (en) Network access method and device
CN105101294A (en) Data transmission device and method
CN104915127A (en) Touch key setting method and device, and mobile terminal
CN104917233A (en) Charging control method, device and system
CN105187664A (en) Control device and method for audio output equipment
CN105242554A (en) Terminal control method and apparatus
CN105120070A (en) Methods and terminal for playing music during call
CN105245725A (en) Device and method for implementing scene alarm clock and mobile terminal
CN104811565A (en) Voice change communication realization method and terminal

Legal Events

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

Application publication date: 20160518