[go: up one dir, main page]

CN106201426B - Volume control method and device - Google Patents

Volume control method and device Download PDF

Info

Publication number
CN106201426B
CN106201426B CN201610550893.6A CN201610550893A CN106201426B CN 106201426 B CN106201426 B CN 106201426B CN 201610550893 A CN201610550893 A CN 201610550893A CN 106201426 B CN106201426 B CN 106201426B
Authority
CN
China
Prior art keywords
task
volume
playing
audio
frequence player
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.)
Active
Application number
CN201610550893.6A
Other languages
Chinese (zh)
Other versions
CN106201426A (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.)
Yuanxin Information Technology Group Co ltd
Original Assignee
Yuanxin Technology
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 Yuanxin Technology filed Critical Yuanxin Technology
Priority to CN201610550893.6A priority Critical patent/CN106201426B/en
Publication of CN106201426A publication Critical patent/CN106201426A/en
Application granted granted Critical
Publication of CN106201426B publication Critical patent/CN106201426B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a volume control method and a volume control device, wherein the method comprises the following steps: when detecting that the audio playing equipment is switched, acquiring an equipment identifier of the switched audio playing equipment; searching in a pre-stored equipment volume database to determine volume information which is matched with the equipment identification and corresponds to the task types of the multiple playing tasks; updating a task volume database based on the searched volume information corresponding to the task types of the plurality of play tasks; and controlling the switched audio playing equipment to execute the playing tasks based on the volume information corresponding to the task types of the plurality of playing tasks in the updated task volume database. The technical scheme of the invention solves the problem that the volume of the audio playing is larger or smaller after the audio playing equipment is switched.

Description

The method and device of volume control
Technical field
The present invention relates to terminal device technical fields, specifically, the present invention relates to a kind of method of volume control and A kind of device of volume control.
Background technique
In recent years, the new industry with the rapid development of electronic industry and the communication technology, based on data, speech, video Business development is swift and violent.The fast development of microelectric technique, computer hardware technique handles the work to become increasingly complex for terminal device It lays the foundation, realization possibility is provided for terminal device personalization, so that terminal gets rid of network to a certain extent It restricts, can have stronger and stronger function.In addition, user itself also has urgent demand to terminal, it is desirable to terminal function It is more powerful, more flexible, simpler and more direct.The development of information technology makes terminal technology move towards intelligence, mobile, multifunction.
In this day and age, user executes audio player operation by terminal device.Inevitably, in the mistake for playing audio Cheng Zhong, in order to leave alone be in public arena other people, playback frequency outside loudspeaker can be adjusted to playback in earphone by user Frequently.However, the audio broadcast sound volume after adjustment audio-frequence player device can become bigger than normal or less than normal, especially if the audio plays sound Amount becomes very large burst ofly when, the auditory effect of user can be seriously reduced, or even scaring arrives user.
Therefore, it is necessary to which it is bigger than normal to solve the audio broadcast sound volume after switching audio-frequence player device to provide a kind of technical solution Or problem less than normal.
Summary of the invention
To overcome above-mentioned technical problem or at least being partially solved above-mentioned technical problem, spy proposes following technical scheme:
One embodiment of the present of invention proposes a kind of method of volume control, comprising:
When detecting that audio-frequence player device switches, the device identification of the audio-frequence player device after obtaining switching;
It is searched in the device voice volume database prestored with determining matching with device identification with multiple playing tasks The corresponding information volume of task type;
Based on the information volume corresponding with the task type of multiple playing tasks found come more new task volume data Library;
Based on the information volume corresponding with the task type of multiple playing tasks in updated task volume data library, Playing task is executed to control the audio-frequence player device after switching.
The sound corresponding with the task type of multiple playing tasks being preferably based in updated task volume data library Information is measured, executes playing task to control the audio-frequence player device after switching, comprising:
Determine the task type of currently playing task;
Information volume corresponding with fixed task type is found in task volume data library;
Based on the information volume found, the audio-frequence player device after control switching executes playing task.
Optionally, this method further include:
When detecting volume adjustment operation, the broadcasting of information volume, current occupancy audio playing resource adjusted is obtained The device identification of the task type of task and currently used audio-frequence player device;
Based on information volume adjusted, the current playing task for occupying audio playing resource task type with get Device identification, Lai Gengxin device voice volume database.
Optionally, if the task type of the current playing task for occupying audio playing resource, method has not been obtained further include:
Task type and the device identification that gets based on information volume adjusted, the playing task of system default, To update device voice volume database.
Optionally, method further include:
When detecting volume adjustment operation, whether judgement is currently carrying out playing task;
If so, executing playing task with information volume adjusted.
Preferably, the task type of playing task includes incoming call jingle bell, notice jingle bell, alarm clock jingle bell, multimedia, system At least one of in sound, keypad tone.
Another embodiment of the present invention proposes a kind of device of volume control, comprising:
First obtains module, for when detecting that audio-frequence player device switches, the audio after obtaining switching to be played The device identification of equipment;
Searching module, in the device voice volume database prestored search with determine match with device identification with it is more The corresponding information volume of the task type of a playing task;
First update module, for based on the information volume corresponding with the task type of multiple playing tasks found come More new task volume data library;
Control module, for based on the task type phase with multiple playing tasks in updated task volume data library The information volume answered executes playing task to control the audio-frequence player device after switching.
Preferably, control module includes:
Type determining units, for determining the task type of currently playing task;
Information searching unit, for finding volume corresponding with fixed task type in task volume data library Information;
Victim control unit, for based on the information volume found, the audio-frequence player device execution after control switching to be broadcast Let alone business.
Optionally, the device further include:
Second obtains module, for when detecting volume adjustment operation, obtaining information volume, currently occupancy adjusted The device identification of the task type of the playing task of audio playing resource and currently used audio-frequence player device;
Second update module, for based on information volume adjusted, the current playing task for occupying audio playing resource Task type and the device identification that gets, Lai Gengxin device voice volume database.
Optionally, device further include:
Judgment module, for when detecting volume adjustment operation, whether judgement to be currently carrying out playing task;
Task execution module when for being currently executing playing task, executes broadcasting with information volume adjusted Task.
Technical solution of the present invention solves the audio broadcast sound volume after switching audio-frequence player device and bigger than normal or less than normal asks Topic.When detecting that audio-frequence player device switches, search in the device voice volume database that prestores with determining and device identification phase Matched information volume corresponding with the task type of multiple playing tasks, the audio-frequence player device after switching is with pre-stored Corresponding with the task type of multiple playing tasks volume executes the operation that audio plays, wherein it is pre-stored with it is more The corresponding volume of the task type of a playing task is previous multiple for the audio-frequence player device execution after switching respectively The play operation of the task type of playing task is adjusted and finds the volume for meeting user's sense of hearing comfort level, so, switching The audio that audio-frequence player device afterwards can make user receive in such a way that the volume executes the operation that audio plays Volume it is moderate, and the size of volume is got by reading the information volume in corresponding database, user Without being adjusted or selecting manually, therefore the present invention program realizes the volume adjustment operation of intelligence and automation, to increase Add user experience.
The additional aspect of the present invention and advantage will be set forth in part in the description, these will become from the following description Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, in which:
Fig. 1 is the flow diagram of the method for the volume control of one embodiment of the invention;
Fig. 2 is the flow diagram of the method for the volume control of a preferred embodiment of the invention;
Fig. 3 is the structural schematic diagram of the device of the volume control of another embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, and for explaining only the invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in specification of the invention Diction " comprising " refer to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition Other one or more features, integer, step, operation, element, component and/or their group.It should be understood that when we claim member Part is " connected " or when " coupled " to another element, it can be directly connected or coupled to other elements, or there may also be Intermediary element.In addition, " connection " used herein or " coupling " may include being wirelessly connected or wirelessly coupling.It is used herein to arrange Diction "and/or" includes one or more associated wholes for listing item or any cell and all combinations.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art Language and scientific term), there is meaning identical with the general understanding of those of ordinary skill in fields of the present invention.Should also Understand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art The consistent meaning of meaning, and unless idealization or meaning too formal otherwise will not be used by specific definitions as here To explain.
Those skilled in the art of the present technique are appreciated that " terminal " used herein above, " terminal device " both include wireless communication The equipment of number receiver, only has the equipment of the wireless signal receiver of non-emissive ability, and including receiving and emitting hardware Equipment, have on bidirectional communication link, can carry out two-way communication reception and emit hardware equipment.This equipment It may include: honeycomb or other communication equipments, shown with single line display or multi-line display or without multi-line The honeycomb of device or other communication equipments;PCS (Personal Communications Service, PCS Personal Communications System), can With combine voice, data processing, fax and/or communication ability;PDA (Personal Digital Assistant, it is personal Digital assistants), it may include radio frequency receiver, pager, the Internet/intranet access, web browser, notepad, day It goes through and/or GPS (Global Positioning System, global positioning system) receiver;Conventional laptop and/or palm Type computer or other equipment, have and/or the conventional laptop including radio frequency receiver and/or palmtop computer or its His equipment." terminal " used herein above, " terminal device " can be it is portable, can transport, be mounted on the vehicles (aviation, Sea-freight and/or land) in, or be suitable for and/or be configured in local runtime, and/or with distribution form, operate in the earth And/or any other position operation in space." terminal " used herein above, " terminal device " can also be communication terminal, on Network termination, music/video playback terminal, such as can be PDA, MID (Mobile Internet Device, mobile Internet Equipment) and/or mobile phone with music/video playing function, it is also possible to the equipment such as smart television, set-top box.
Fig. 1 is the flow diagram of the method for the volume control of one embodiment of the invention.
Step S110: when detecting that audio-frequence player device switches, the equipment of the audio-frequence player device after obtaining switching Mark.
Specifically, audio-frequence player device includes but is not limited to loudspeaker, built-in earpiece, peripheral earphone etc..It is possible, firstly, to be Each audio-frequence player device on terminal device distributes corresponding device identification respectively;Secondly, will be played with each audio The corresponding device identification of equipment is separately recorded in audio-frequence player device list;Then, detect that audio-frequence player device is cut Operation is changed, thus when triggering call back function, based on parameter corresponding in call back function in record and each audio-frequence player device pair The device identification of the audio-frequence player device after switching is determined in the audio-frequence player device list for the device identification answered.
Step S120: it is searched in the device voice volume database prestored to determine that is matched with device identification broadcasts with multiple Let alone the corresponding information volume of task type of business.
Wherein, equipment corresponding with each audio-frequence player device is stored in association in advance in device voice volume database Mark and each audio-frequence player device play the newest information volume of each task type.
It should be noted that the audio-frequence player device before switching with multiple play before switching audio-frequence player device to appoint Corresponding first volume of the task type of business executes audio player operation, after switching audio-frequence player device, if after switching Audio-frequence player device is still executed with the first volume corresponding with the task type of multiple playing tasks, that is, identical power grade The volume of audio player operation, the then audio that the audio-frequence player device after switching plays can become bigger than normal or less than normal.Therefore, at this In inventive embodiments, that the audio-frequence player device after switching is matched with the pre-stored audio-frequence player device with after switching, And corresponding with the task type of multiple playing tasks the second volume executes the operation that audio plays, wherein it is pre-stored with Corresponding second volume of the task type of multiple playing tasks is that the previous audio-frequence player device for after switching is adjusted simultaneously The volume for meeting user's sense of hearing comfort level is found, so, the audio-frequence player device after switching is with the task with multiple playing tasks The volume for the audio that the mode that corresponding second volume of type executes audio player operation can make user receive is moderate, from And increase user experience.
For example, the outer lug when detecting that audio-frequence player device is switched to peripheral earphone by loudspeaker, after obtaining switching The device identification " earphone " of machine;Then, it is searched and device identification " earphone " in the device voice volume database prestored The information volume corresponding with the task type of multiple playing tasks to match be " earphone- send a telegram here jingle bell -5, Earphone- notify jingle bell -5, earphone- alarm clock jingle bell -5, earphone- multimedia -3, earphone- system sound -2, Earphone- keypad tone -2 ", wherein the volume that peripheral earphone executes multimedia operation is 3.
Step S130: based on the information volume corresponding with the task type of multiple playing tasks found come more new task Volume data library.
For example, terminal device detects that the peripheral earphone for executing incoming call jingle bell play operation with volume " 3 " is switched to loudspeaking Device executes the play operation of same task type, the device identification " Speaker " of the loudspeaker after obtaining switching;Then, pre- The task type phase with multiple playing tasks to match with device identification " Speaker " is searched in the device voice volume database deposited The information volume answered be " Speaker- send a telegram here jingle bell -5, Speaker- notify jingle bell -5, Speaker- alarm clock jingle bell -5, Speaker- multimedia -3, Speaker- system sound -2, Speaker- keypad tone -2 ";Subsequently, based on the loudspeaker found Information volume corresponding with the task type of multiple playing tasks comes more new task volume data library.Wherein, task volume data Library is for correspondingly storing the information volume found and incoming call jingle bell, notice jingle bell, alarm clock jingle bell, multimedia, system The database of the task types such as sound, keypad tone.It should be noted that if currently occupying the playing task of audio playing resource Task type is different, then its corresponding information volume is also different, for example, volume corresponding with task type " incoming call jingle bell " is " 5 ", and volume corresponding with task type " multimedia " is " 3 ", it is generally the case that setting and task type " incoming call jingle bell " phase The volume answered is greater than volume corresponding with other task types, to be in apart from terminal device farther out or environmental noise as user When larger, user is more effectively notified to have to be electrically accessed.Therefore, it is necessary to based on the task with multiple playing tasks found The corresponding information volume of type comes more new task volume data library, to distinguish information volume corresponding to different task type.
Step S140: based on corresponding with the task type of multiple playing tasks in updated task volume data library Information volume executes playing task to control the audio-frequence player device after switching.
Preferably, as shown in Fig. 2, the task type phase based on each playing task being stored in task volume data library Corresponding information volume includes step S141, step to control the step of audio-frequence player device after switching executes playing task S142 and step S143: step S141: determining the task type of currently playing task;Step S142: in task volume data library In find information volume corresponding with fixed task type;Step S143: based on the information volume found, control is cut Audio-frequence player device after changing executes playing task.
For example, present terminal equipment does not play any audio and Foreground and Background does not open any occupancy audio playing resource yet Application program, the loudspeaker when detecting that audio-frequence player device is switched to loudspeaker by peripheral earphone, after obtaining switching Device identification " Speaker ";Then, it searches in the device voice volume database prestored and matches with device identification " Speaker " Information volume corresponding with the task type of multiple playing tasks be " Speaker- send a telegram here jingle bell -5, Speaker- notice ring Bell -5, Speaker- alarm clock jingle bell -5, Speaker- multimedia -3, Speaker- system sound -2, Speaker- keypad tone -2 "; " come subsequently, based on the information volume corresponding with the task type of multiple playing tasks to match with device identification " Speaker " Electric jingle bell -5, notice jingle bell -5, alarm clock jingle bell -5, multimedia -3, system sound -2, keypad tone -2 " more new task volume data library; Then, terminal device has to be electrically accessed, and detects the incoming call access operation and the switching of audio-frequence player device does not occur again When operation, determine that the task type of currently playing task is " incoming call jingle bell ";Then, found in task volume data library with Task type " incoming call jingle bell " corresponding information volume " 5 ";Finally, control loudspeaker is with volume " 5 " execution " incoming call jingle bell " Play operation.
In another example when detecting that acquisition switches when switching back into loudspeaker by other audio-frequence player devices in addition to loudspeaker The device identification " Speaker " of loudspeaker afterwards;Then, it searches in the device voice volume database prestored with determining and equipment mark Know " Speaker " match information volume corresponding with the task type of multiple playing tasks " Speaker- send a telegram here jingle bell -4, Speaker- notify jingle bell -5, Speaker- alarm clock jingle bell -5, Speaker- multimedia -3, Speaker- system sound -2, Speaker- keypad tone -2 ";Then, based on find information volume corresponding with the task type of multiple playing tasks " come Electric jingle bell -4, notice jingle bell -5, alarm clock jingle bell -5, multimedia -3, system sound -2, keypad tone -2 " carrys out more new task volume data Library;Finally, determining task type " more matchmakers of currently playing task when detecting that executing music by loudspeaker operates Body ", it is updated include information " incoming call jingle bell -4, notice jingle bell -5, alarm clock jingle bell -5, multimedia -3, system sound -2, press It is " 3 " that information volume corresponding with fixed task type " multimedia " is found in the task volume data library of key sound -2 ", Based on the information volume " 3 " found, controls loudspeaker and execute music task.
Optionally, the method for the embodiment of the present invention further includes step S150 and step S160: step S150: detecting volume When adjustment operation, obtain information volume adjusted, the current playing task for occupying audio playing resource task type and work as The device identification of the preceding audio-frequence player device used;Step S160: it is played based on information volume adjusted, the current audio that occupies The task type of the playing task of resource and the device identification got, Lai Gengxin device voice volume database.
Preferably, the task type of playing task includes but is not limited to send a telegram here jingle bell, notice jingle bell, alarm clock jingle bell, more matchmakers Body, system sound, in keypad tone at least one of.
For example, terminal device, which is currently passing through loudspeaker, executes music operation with volume " 3 ", when detecting volume When operation is turned up, the task type of the information volume " 5 " after being turned up, the current playing task for occupying audio playing resource is obtained The device identification " Speaker " of " multimedia " and currently used audio-frequence player device loudspeaker;Then, based on the sound after height-regulating The device identification of amount information " 5 ", task type " multimedia " and loudspeaker of the current playing task for occupying audio playing resource " Speaker ", Lai Gengxin device voice volume database, so that updated device voice volume database includes that " Speaker- incoming call is rung Bell -4, Speaker- notice jingle bell -5, Speaker- alarm clock jingle bell -5, Speaker- multimedia -5, Speaker- system sound -2, The information of Speaker- keypad tone -2 ".It should be noted that when detecting volume adjustment operation every time, after adjustment being based on Information volume, the current playing task for occupying audio playing resource task type and the device identification that gets, Lai Gengxin Therefore device voice volume database stores corresponding with each audio-frequence player device in association in device voice volume database Device identification and each audio-frequence player device play the newest information volume of each task type.Device voice volume data in the updated The volume corresponding with the task type of multiple playing tasks stored in library is to broadcast respectively for the audio after switching in the past The play operation for putting the task type that equipment executes multiple playing tasks, which is adjusted and finds, meets user itself sense of hearing habit With the volume of sense of hearing comfort level, so, audio-frequence player device after switching executes operation that audio plays with the volume The volume for the audio that mode can make user receive is moderate, is very bonded the sense organ comfort level of user.
Optionally, the method for the embodiment of the present invention further includes step S170: being based on information volume adjusted, system default Playing task task type and the device identification that gets, Lai Gengxin device voice volume database.
It should be noted that if audio being currently played or starts the application journey for occupying audio playing resource Sequence, then it is available to arrive the task type for currently occupying the playing task of audio playing resource;If not playing any sound currently Frequency and Foreground and Background do not open any application program for occupying audio playing resource yet, then fail to get currently occupancy audio and broadcast Put the task type of the playing task of resource, therefore, can task type based on the playing task of the system default got, Information volume adjusted and the device identification got, Lai Gengxin device voice volume database.For example, not playing any sound currently When frequency and Foreground and Background do not open any application program for occupying audio playing resource, the task class of the playing task of system default Type is " incoming call jingle bell ", then the task type " incoming call jingle bell " based on information volume adjusted, the playing task of system default With the device identification got, Lai Gengxin device voice volume database.
Optionally, the method for the embodiment of the present invention further includes step S180 and step S190: step S180: detecting volume When adjustment operation, whether judgement is currently carrying out playing task;Step S190: if so, being come with information volume adjusted Execute playing task.
For example, terminal device currently pass through loudspeaker with volume " 3 " execute music operation, when detect volume be turned up When operation, the information volume " 5 " after being turned up is obtained;Then, judge to determine and be currently executing music operation, then control is raised Sound device is operated with volume " 5 " the Lai Zhihang music after being turned up.
Technical solution of the present invention solves the audio broadcast sound volume after switching audio-frequence player device and bigger than normal or less than normal asks Topic.When detecting that audio-frequence player device switches, search in the device voice volume database that prestores with determining and device identification phase Matched information volume corresponding with the task type of multiple playing tasks, the audio-frequence player device after switching is with pre-stored Corresponding with the task type of multiple playing tasks volume executes the operation that audio plays, wherein it is pre-stored with it is more The corresponding volume of the task type of a playing task is previous multiple for the audio-frequence player device execution after switching respectively The play operation of the task type of playing task is adjusted and finds the volume for meeting user's sense of hearing comfort level, so, switching The audio that audio-frequence player device afterwards can make user receive in such a way that the volume executes the operation that audio plays Volume it is moderate, and the size of volume is got by reading the information volume in corresponding database, user Without being adjusted or selecting manually, therefore the present invention program realizes the volume adjustment operation of intelligence and automation, to increase Add user experience.
Fig. 3 is the structural schematic diagram of the device of the volume control of another embodiment of the present invention.
When first acquisition module 310 detects that audio-frequence player device switches, the audio-frequence player device after obtaining switching Device identification.
Specifically, audio-frequence player device includes but is not limited to loudspeaker, built-in earpiece, peripheral earphone etc..It is possible, firstly, to be Each audio-frequence player device on terminal device distributes corresponding device identification respectively;Secondly, will be played with each audio The corresponding device identification of equipment is separately recorded in audio-frequence player device list;Then, detect that audio-frequence player device is cut Operation is changed, thus when triggering call back function, based on parameter corresponding in call back function in record and each audio-frequence player device pair The device identification of the audio-frequence player device after switching is determined in the audio-frequence player device list for the device identification answered.
Searching module 320 searched in the device voice volume database prestored with determine match with device identification with it is multiple The corresponding information volume of the task type of playing task.
Wherein, equipment corresponding with each audio-frequence player device is stored in association in advance in device voice volume database Mark and each audio-frequence player device play the newest information volume of each task type.
It should be noted that the audio-frequence player device before switching with multiple play before switching audio-frequence player device to appoint Corresponding first volume of the task type of business executes audio player operation, after switching audio-frequence player device, if after switching Audio-frequence player device is still executed with the first volume corresponding with the task type of multiple playing tasks, that is, identical power grade The volume of audio player operation, the then audio that the audio-frequence player device after switching plays can become bigger than normal or less than normal.Therefore, at this In inventive embodiments, that the audio-frequence player device after switching is matched with the pre-stored audio-frequence player device with after switching, And corresponding with the task type of multiple playing tasks the second volume executes the operation that audio plays, wherein it is pre-stored with Corresponding second volume of the task type of multiple playing tasks is that the previous audio-frequence player device for after switching is adjusted simultaneously The volume for meeting user's sense of hearing comfort level is found, so, the audio-frequence player device after switching is with the task with multiple playing tasks The volume for the audio that the mode that corresponding second volume of type executes audio player operation can make user receive is moderate, from And increase user experience.
For example, the outer lug when detecting that audio-frequence player device is switched to peripheral earphone by loudspeaker, after obtaining switching The device identification " earphone " of machine;Then, it is searched and device identification " earphone " in the device voice volume database prestored The information volume corresponding with the task type of multiple playing tasks to match be " earphone- send a telegram here jingle bell -5, Earphone- notify jingle bell -5, earphone- alarm clock jingle bell -5, earphone- multimedia -3, earphone- system sound -2, Earphone- keypad tone -2 ", wherein the volume that peripheral earphone executes multimedia operation is 3.
First update module 330 is based on the information volume corresponding with the task type of multiple playing tasks found come more New task volume data library.
For example, terminal device detects that the peripheral earphone for executing incoming call jingle bell play operation with volume " 3 " is switched to loudspeaking Device executes the play operation of same task type, the device identification " Speaker " of the loudspeaker after obtaining switching;Then, pre- The task type phase with multiple playing tasks to match with device identification " Speaker " is searched in the device voice volume database deposited The information volume answered be " Speaker- send a telegram here jingle bell -5, Speaker- notify jingle bell -5, Speaker- alarm clock jingle bell -5, Speaker- multimedia -3, Speaker- system sound-amount 2, Speaker- keypad tone -2 ";Subsequently, based on the loudspeaker found Information volume corresponding with the task type of multiple playing tasks come more new task volume data library.Wherein, task volume number According to library be for correspondingly store the information volume found with incoming call jingle bell, notice jingle bell, alarm clock jingle bell, multimedia, be The database of the task types such as system sound, keypad tone.It should be noted that if currently occupying the playing task of audio playing resource Task type it is different, then its corresponding information volume is also different, for example, volume corresponding with task type " incoming call jingle bell " For " 5 ", and volume corresponding with task type " multimedia " is " 3 ", it is generally the case that setting and task type " incoming call jingle bell " Corresponding volume is greater than volume corresponding with other task types, to be in apart from terminal device farther out or environment is made an uproar as user When sound is larger, user is more effectively notified to have to be electrically accessed.Therefore, it is necessary to based on times with multiple playing tasks found The corresponding information volume of service type comes more new task volume data library, to distinguish information volume corresponding to different task type.
Control module 340 is based on corresponding to the task type of multiple playing tasks in updated task volume data library Information volume, come control switching after audio-frequence player device execute playing task.
Preferably, control module 340 includes type determining units, information searching unit and victim control unit: type is true Order member determines the task type of currently playing task;Information searching unit finds and has determined that in task volume data library The corresponding information volume of task type;Victim control unit based on the information volume found, broadcast by the audio after control switching It puts equipment and executes playing task.
For example, present terminal equipment does not play any audio and Foreground and Background does not open any occupancy audio playing resource yet Application program, the loudspeaker when detecting that audio-frequence player device is switched to loudspeaker by peripheral earphone, after obtaining switching Device identification " Speaker ";Then, it searches in the device voice volume database prestored and matches with device identification " Speaker " Information volume corresponding with the task type of multiple playing tasks be " Speaker- send a telegram here jingle bell -5, Speaker- notice ring Bell -5, Speaker- alarm clock jingle bell -5, Speaker- multimedia -3, Speaker- system sound -2, Speaker- keypad tone -2 "; " come subsequently, based on the information volume corresponding with the task type of multiple playing tasks to match with device identification " Speaker " Electric jingle bell -5, notice jingle bell -5, alarm clock jingle bell -5, multimedia -3, system sound -2, keypad tone -2 " more new task volume data library; Then, terminal device has to be electrically accessed, and detects the incoming call access operation and the switching of audio-frequence player device does not occur again When operation, determine that the task type of currently playing task is " incoming call jingle bell ";Then, found in task volume data library with Task type " incoming call jingle bell " corresponding information volume " 5 ";Finally, control loudspeaker is with volume " 5 " execution " incoming call jingle bell " Play operation.
In another example when detecting that acquisition switches when switching back into loudspeaker by other audio-frequence player devices in addition to loudspeaker The device identification " Speaker " of loudspeaker afterwards;Then, it searches in the device voice volume database prestored with determining and equipment mark Know " Speaker " match information volume corresponding with the task type of multiple playing tasks " Speaker- send a telegram here jingle bell -4, Speaker- notify jingle bell -5, Speaker- alarm clock jingle bell -5, Speaker- multimedia -3, Speaker- system sound -2, Speaker- keypad tone -2 ";Then, based on find information volume corresponding with the task type of multiple playing tasks " come Electric jingle bell -4, notice jingle bell -5, alarm clock jingle bell -5, multimedia -3, system sound -2, keypad tone -2 " carrys out more new task volume data Library;Finally, determining task type " more matchmakers of currently playing task when detecting that executing music by loudspeaker operates Body ", it is updated include information " incoming call jingle bell -4, notice jingle bell -5, alarm clock jingle bell -5, multimedia -3, system sound -2, press It is " 3 " that information volume corresponding with fixed task type " multimedia " is found in the task volume data library of key sound -2 ", Based on the information volume " 3 " found, controls loudspeaker and execute music task.
Optionally, the device of the embodiment of the present invention further includes the second acquisition module and the second update module: second obtains mould When block detects volume adjustment operation, information volume adjusted, the current playing task for occupying audio playing resource are obtained The device identification of task type and currently used audio-frequence player device;Second update module be based on information volume adjusted, The task type of the current playing task for occupying audio playing resource and the device identification got, Lai Gengxin device voice volume data Library.
Preferably, the task type of playing task includes but is not limited to send a telegram here jingle bell, notice jingle bell, alarm clock jingle bell, more matchmakers Body, system sound, in keypad tone at least one of.
For example, terminal device, which is currently passing through loudspeaker, executes music operation with volume " 3 ", when detecting volume When operation is turned up, the task type of the information volume " 5 " after being turned up, the current playing task for occupying audio playing resource is obtained The device identification " Speaker " of " multimedia " and currently used audio-frequence player device loudspeaker;Then, based on the sound after height-regulating The device identification of amount information " 5 ", task type " multimedia " and loudspeaker of the current playing task for occupying audio playing resource " Speaker ", Lai Gengxin device voice volume database, so that updated device voice volume database includes that " Speaker- incoming call is rung Bell -4, Speaker- notice jingle bell -5, Speaker- alarm clock jingle bell -5, Speaker- multimedia -5, Speaker- system sound -2, The information of Speaker- keypad tone -2 ".It should be noted that when detecting volume adjustment operation every time, after adjustment being based on Information volume, the current playing task for occupying audio playing resource task type and the device identification that gets, Lai Gengxin Therefore device voice volume database stores corresponding with each audio-frequence player device in association in device voice volume database Device identification and each audio-frequence player device play the newest information volume of each task type.
Optionally, the device of the embodiment of the present invention further includes third update module: third update module is based on adjusted Task type and the device identification that gets of information volume, the playing task of system default, Lai Gengxin device voice volume database.
It should be noted that if audio being currently played or starts the application journey for occupying audio playing resource Sequence, then it is available to arrive the task type for currently occupying the playing task of audio playing resource;If not playing any sound currently Frequency and Foreground and Background do not open any application program for occupying audio playing resource yet, then fail to get currently occupancy audio and broadcast Put the task type of the playing task of resource, therefore, can task type based on the playing task of the system default got, Information volume adjusted and the device identification got, Lai Gengxin device voice volume database.For example, not playing any sound currently When frequency and Foreground and Background do not open any application program for occupying audio playing resource, the task class of the playing task of system default Type is " incoming call jingle bell ", then the task type " incoming call jingle bell " based on information volume adjusted, the playing task of system default With the device identification got, Lai Gengxin device voice volume database.
Optionally, the device of the embodiment of the present invention further includes judgment module and task execution module: judgment module detects When volume adjustment operates, whether judgement is currently carrying out playing task;Task execution module is being currently executing broadcasting times When business, playing task is executed with information volume adjusted.
For example, terminal device currently pass through loudspeaker with volume " 3 " execute music operation, when detect volume be turned up When operation, the information volume " 5 " after being turned up is obtained;Then, judge to determine and be currently executing music operation, then control is raised Sound device is operated with volume " 5 " the Lai Zhihang music after being turned up.
Technical solution of the present invention solves the audio broadcast sound volume after switching audio-frequence player device and bigger than normal or less than normal asks Topic.When detecting that audio-frequence player device switches, search in the device voice volume database that prestores with determining and device identification phase Matched information volume corresponding with the task type of multiple playing tasks, the audio-frequence player device after switching is with pre-stored Corresponding with the task type of multiple playing tasks volume executes the operation that audio plays, wherein it is pre-stored with it is more The corresponding volume of the task type of a playing task is previous multiple for the audio-frequence player device execution after switching respectively The play operation of the task type of playing task is adjusted and finds the volume for meeting user's sense of hearing comfort level, so, switching The audio that audio-frequence player device afterwards can make user receive in such a way that the volume executes the operation that audio plays Volume it is moderate, and the size of volume is got by reading the information volume in corresponding database, user Without being adjusted or selecting manually, therefore the present invention program realizes the volume adjustment operation of intelligence and automation, to increase Add user experience.
Those skilled in the art of the present technique are appreciated that the present invention includes being related to for executing in operation described herein One or more equipment.These equipment can specially design and manufacture for required purpose, or also may include general Known device in computer.These equipment have the computer program being stored in it, these computer programs are selectively Activation or reconstruct.Such computer program can be stored in equipment (for example, computer) readable medium or be stored in It e-command and is coupled in any kind of medium of bus respectively suitable for storage, the computer-readable medium includes but not Be limited to any kind of disk (including floppy disk, hard disk, CD, CD-ROM and magneto-optic disk), ROM (Read-Only Memory, only Read memory), RAM (Random Access Memory, immediately memory), EPROM (Erasable Programmable Read-Only Memory, Erarable Programmable Read only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory, Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or light card Piece.It is, readable medium includes by equipment (for example, computer) with any Jie for the form storage or transmission information that can be read Matter.
Those skilled in the art of the present technique be appreciated that can be realized with computer program instructions these structure charts and/or The combination of each frame and these structure charts and/or the frame in block diagram and/or flow graph in block diagram and/or flow graph.This technology neck Field technique personnel be appreciated that these computer program instructions can be supplied to general purpose computer, special purpose computer or other The processor of programmable data processing method is realized, to pass through the processing of computer or other programmable data processing methods The scheme specified in frame or multiple frames of the device to execute structure chart and/or block diagram and/or flow graph disclosed by the invention.
Those skilled in the art of the present technique have been appreciated that in the present invention the various operations crossed by discussion, method, in process Steps, measures, and schemes can be replaced, changed, combined or be deleted.Further, each with having been crossed by discussion in the present invention Kind of operation, method, other steps, measures, and schemes in process may also be alternated, changed, rearranged, decomposed, combined or deleted. Further, in the prior art to have and the step in various operations, method disclosed in the present invention, process, measure, scheme It may also be alternated, changed, rearranged, decomposed, combined or deleted.
The above is only some embodiments of the invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (10)

1. a kind of method of volume control characterized by comprising
When detecting that audio-frequence player device switches, the device identification of the audio-frequence player device after obtaining switching;
It is searched in the device voice volume database prestored with determining matching with the device identification with multiple playing tasks The corresponding information volume of task type;
Based on the information volume corresponding with the task type of multiple playing tasks found come more new task volume data library;
Based on the information volume corresponding with the task type of multiple playing tasks in updated task volume data library, Playing task is executed to control the audio-frequence player device after switching.
2. the method according to claim 1, wherein based in updated task volume data library with The corresponding information volume of the task type of multiple playing tasks executes playing task to control the audio-frequence player device after switching, Include:
Determine the task type of currently playing task;
Information volume corresponding with fixed task type is found in task volume data library;
Based on the information volume found, the audio-frequence player device after control switching executes playing task.
3. the method according to claim 1, wherein this method further include:
When detecting volume adjustment operation, information volume adjusted, the current playing task for occupying audio playing resource are obtained Task type and currently used audio-frequence player device device identification;
Based on the information volume adjusted, the current playing task for occupying audio playing resource task type with get Device identification, to update the device voice volume database.
4. according to the method described in claim 3, it is characterized in that, if the current broadcasting for occupying audio playing resource has not been obtained The task type of task, the method also includes:
Task type and the device identification that gets based on the information volume adjusted, the playing task of system default, To update the device voice volume database.
5. according to the method described in claim 3, it is characterized in that, the method also includes:
When detecting volume adjustment operation, whether judgement is currently carrying out playing task;
If so, executing playing task with the information volume adjusted.
6. method according to claim 1-5, which is characterized in that the task type of the playing task includes more Media, system sound, in keypad tone at least one of, the system sound include incoming call jingle bell, notice jingle bell, in alarm clock jingle bell extremely One item missing.
7. a kind of device of volume control characterized by comprising
First obtains module, for the audio-frequence player device when detecting that audio-frequence player device switches, after obtaining switching Device identification;
Searching module, in the device voice volume database prestored search with determine match with the device identification with it is more The corresponding information volume of the task type of a playing task;
First update module, for being updated based on the information volume corresponding with the task type of multiple playing tasks found Task volume data library;
Control module, for based on the task type phase with multiple playing tasks in updated task volume data library The information volume answered executes playing task to control the audio-frequence player device after switching.
8. device according to claim 7, which is characterized in that the control module includes:
Type determining units, for determining the task type of currently playing task;
Information searching unit, for finding volume corresponding with fixed task type in task volume data library Information;
Victim control unit, for based on the information volume found, the audio-frequence player device after control switching to execute broadcasting and appoints Business.
9. device according to claim 7, which is characterized in that the device further include:
Second obtains module, for obtaining information volume adjusted, currently occupying audio when detecting volume adjustment operation The device identification of the task type of the playing task of playing resource and currently used audio-frequence player device;
Second update module, for based on the information volume adjusted, the current playing task for occupying audio playing resource Task type and the device identification that gets, to update the device voice volume database.
10. device according to claim 9, which is characterized in that described device further include:
Judgment module, for when detecting volume adjustment operation, whether judgement to be currently carrying out playing task;
Task execution module when for being currently executing playing task, executes broadcasting with the information volume adjusted Task.
CN201610550893.6A 2016-07-14 2016-07-14 Volume control method and device Active CN106201426B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610550893.6A CN106201426B (en) 2016-07-14 2016-07-14 Volume control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610550893.6A CN106201426B (en) 2016-07-14 2016-07-14 Volume control method and device

Publications (2)

Publication Number Publication Date
CN106201426A CN106201426A (en) 2016-12-07
CN106201426B true CN106201426B (en) 2019-04-02

Family

ID=57477261

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610550893.6A Active CN106201426B (en) 2016-07-14 2016-07-14 Volume control method and device

Country Status (1)

Country Link
CN (1) CN106201426B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106792370B (en) * 2017-02-20 2021-01-29 广州视源电子科技股份有限公司 Volume control method and device
CN106954138A (en) * 2017-03-23 2017-07-14 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN107507634A (en) * 2017-08-22 2017-12-22 维沃移动通信有限公司 A kind of method for playing music and electronic equipment
CN113010139B (en) * 2021-03-10 2023-09-05 北京奇艺世纪科技有限公司 Screen projection method and device and electronic equipment
CN115113843A (en) * 2021-03-22 2022-09-27 上海擎感智能科技有限公司 Adjustment method, system, device and medium for vehicle audio playback equipment
CN120407845A (en) * 2025-07-07 2025-08-01 南京乐韵瑞信息技术有限公司 Audio playback method, device, equipment and storage medium with context-maintaining continuity

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4613966B2 (en) * 2008-02-18 2011-01-19 オンキヨー株式会社 Volume adjusting device and volume adjusting program
CN103458114A (en) * 2013-08-20 2013-12-18 小米科技有限责任公司 Method, equipment and terminal for switching multimedia steams
CN104335559A (en) * 2014-04-04 2015-02-04 华为终端有限公司 Method for adjusting volume automatically, volume adjusting apparatus and electronic apparatus
CN104602045A (en) * 2015-02-12 2015-05-06 三星电子(中国)研发中心 Automatic sound configuration method, system and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200623619A (en) * 2004-12-30 2006-07-01 Inventec Appliances Corp Intelligent volume switching method used for multimedia

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4613966B2 (en) * 2008-02-18 2011-01-19 オンキヨー株式会社 Volume adjusting device and volume adjusting program
CN103458114A (en) * 2013-08-20 2013-12-18 小米科技有限责任公司 Method, equipment and terminal for switching multimedia steams
CN104335559A (en) * 2014-04-04 2015-02-04 华为终端有限公司 Method for adjusting volume automatically, volume adjusting apparatus and electronic apparatus
CN104602045A (en) * 2015-02-12 2015-05-06 三星电子(中国)研发中心 Automatic sound configuration method, system and device

Also Published As

Publication number Publication date
CN106201426A (en) 2016-12-07

Similar Documents

Publication Publication Date Title
CN106201426B (en) Volume control method and device
CN102948082B (en) Collection of letters mode changing method in mobile communication terminal and utilize its mobile communication terminal
CN102891706A (en) Mobile terminal and method of controlling the same
US20080269961A1 (en) Vehicular audio/visual device, vehicular audio/visual system, device identification method, program, and computer-readable storage medium
CN101741978A (en) Portable terminal, audio output control method, and audio output control program
CN105208194A (en) Voice broadcast device and method
CN105100428A (en) Linkman display method and system
CN110290441A (en) A kind of wireless headset control method, device and wireless headset and storage medium
JP4883132B2 (en) Sound output control device
US20080176584A1 (en) Wireless landmark-based operation of a wireless device
CN101170370A (en) Broadcast receiver and method of controlling operation of the broadcast receiver
CN101939665A (en) System and method for providing location assistance data using a radio transmission
CN105872207A (en) Communication terminal and event prompting method thereof
CN103618829B (en) System and method for timing starting of FM radio on basis of mobile phone alarm
KR20060089805A (en) Portable phone book storage device, calling method using the same and mobile phone
CN105635916A (en) Audio processing method and apparatus
US7403895B2 (en) Control system outputting received speech with display of a predetermined effect or image corresponding to its ambient noise power spectrum
CN106878284A (en) Method and device for controlling media playing function in multiple systems
CN204190795U (en) A kind of Automobile networked system and vehicle
CN105976807A (en) Music playing device and method
JP4635851B2 (en) Broadcast receiver and program
CN111159462B (en) Method and terminal for playing songs
JP4131857B2 (en) Mobile phone, mobile phone alarm output method and program thereof.
WO2016014498A1 (en) Automatic audio-path determination for a peripheral speaker
JP5861889B2 (en) Local broadcasting system and local broadcasting method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210129

Address after: 101300 room 153, 1 / F, building 17, 16 Caixiang East Road, Nancai Town, Shunyi District, Beijing

Patentee after: Yuanxin Information Technology Group Co.,Ltd.

Address before: 100176 room 2222, building D, building 33, 99 Kechuang 14th Street, Beijing Economic and Technological Development Zone, Beijing

Patentee before: BEIJING YUANXIN SCIENCE & TECHNOLOGY Co.,Ltd.

EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20161207

Assignee: Beijing Yuanxin Junsheng Technology Co.,Ltd.

Assignor: Yuanxin Information Technology Group Co.,Ltd.

Contract record no.: X2021110000018

Denomination of invention: Method and device of volume control

Granted publication date: 20190402

License type: Common License

Record date: 20210531