CN107783752A - A kind of voice drawing method and device - Google Patents

A kind of voice drawing method and device Download PDF

Info

Publication number
CN107783752A
CN107783752A CN201610754036.8A CN201610754036A CN107783752A CN 107783752 A CN107783752 A CN 107783752A CN 201610754036 A CN201610754036 A CN 201610754036A CN 107783752 A CN107783752 A CN 107783752A
Authority
CN
China
Prior art keywords
application
sound
voice
compacting
value
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
CN201610754036.8A
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.)
Sanechips Technology Co Ltd
Shenzhen ZTE Microelectronics Technology Co Ltd
Original Assignee
Shenzhen ZTE Microelectronics 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 Shenzhen ZTE Microelectronics Technology Co Ltd filed Critical Shenzhen ZTE Microelectronics Technology Co Ltd
Priority to CN201610754036.8A priority Critical patent/CN107783752A/en
Priority to PCT/CN2017/091813 priority patent/WO2018040731A1/en
Publication of CN107783752A publication Critical patent/CN107783752A/en
Pending legal-status Critical Current

Links

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (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)
  • Multimedia (AREA)
  • Telephone Function (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The embodiment of the invention discloses a kind of voice drawing method, methods described includes:Whether detection terminal starts the first application with voice compacting attribute;If so, then between first application run-time, the voice for carrying out reducing volume respectively to the sound for needing downtrodden at least one second application in terminal is suppressed.The embodiment of the present invention also discloses a kind of voice pressure setting simultaneously.

Description

A kind of voice drawing method and device
Technical field
The present invention relates to audio frequency control technology, more particularly to a kind of voice drawing method and device.
Background technology
At present, in the end product with audio output function, it may appear that the situation of multiple applications work simultaneously, now Multiple sound occur while export, cause user auditory masking problem occur, can not realize that some prominent user currently most feels The effect of the sound of interest.
The content of the invention
In order to solve the above technical problems, the embodiment of the present invention it is expected to provide a kind of voice drawing method and device, to extremely Small part fully solves above-mentioned technical problem.
The technical proposal of the invention is realized in this way:
On the one hand, the embodiment of the present invention provides a kind of voice drawing method, and methods described includes:
Whether detection terminal starts the first application with voice compacting attribute;
If so, then between first application run-time, to needing downtrodden at least one second application in terminal Sound reduce the voice compacting of volume.
In one embodiment, methods described also includes:
The sounding situation of described first application is monitored;
If monitoring the first application pause sounding, the sound of at least one second application after voice is suppressed The volume that sound is returned to before compacting;
If monitoring, first application continues sounding, continues to carry out language to the sound of at least one second application Sound press system.
In one embodiment, first application and each second application are respectively provided with a blanket factor;It is described right The sound of downtrodden at least one second application is needed reduce the voice compacting of volume in terminal, including:
Current all more than one second applications in opening of end of scan;
Obtain the blanket factor of first application and each second application;
Blanket factor is less than the blanket factor of the described first application application be defined as needing it is downtrodden at least one Second application;
The sound of at least one second application downtrodden to the needs determined carries out reducing respectively the voice compacting of volume.
Specifically, the blanket factor sets storage previously according to the sound type of application;The application of alternative sounds type Different blanket factors is corresponded to respectively, and the blanket factor of the application of same sound type is identical;Wherein, the blanket factor value For 0-1.0.
Further, the sound of downtrodden at least one second application of the needs of described pair of determination carries out voice pressure respectively System, including:
The currently playing volume value of reading terminals;
Compare the currently playing volume value and predetermined value size;
When the currently playing volume value is more than or equal to the predetermined value, will be pressed at least one second application The sound for the second application that coefficient processed is 0 is reduced to first threshold, is not 0 by blanket factor at least one second application Second application sound be reduced to Second Threshold;
When the currently playing volume value is less than the predetermined value, it is by being suppressed at least one second application Number is arranged to the 3rd threshold value for the sound of 0 the second application, by the of blanket factor at least one second application for 0 The sound of two applications is reduced to the 4th threshold value;
Wherein, the predetermined value is related to terminal system max volume value, and is less than terminal system max volume value;It is described 3rd threshold value is less than the 4th threshold value, and the 4th threshold value is less than the first threshold, and the first threshold is less than described the Two threshold values, the Second Threshold are less than the currently playing volume value.
On the other hand, the embodiment of the present invention provides a kind of voice pressure setting, and described device includes:
Trigger module is suppressed, whether starts the first application with voice compacting attribute for detection terminal;
Voice compression module, for when the compacting trigger module detects that first application starts, described the Between one application run-time, carry out reducing the language of volume respectively to the sound for needing downtrodden at least one second application in terminal Sound press system.
In one embodiment, described device also includes:
Speech monitoring module, for being monitored to the sounding situation of the described first application;
Voice recovery module, for when the speech monitoring module monitors are to the first application pause sounding, by language The sound that the sound of at least one second application after sound press system returns to before compacting respectively;
The voice compression module, it is additionally operable to continue sounding to the described first application in the speech monitoring module monitors When, continue to carry out voice compacting respectively to the sound of at least one second application.
Specifically, first application and each second application are respectively provided with a blanket factor;The voice pressing die Block includes:
Scan module, for current all more than one second applications in opening of end of scan;
Acquisition module, for obtaining the blanket factor of first application and each second application;
Determining module, it is defined as needing to be pressed for blanket factor to be less than to the application of blanket factor of the described first application At least one second application of system;
Sound compression module, the sound of downtrodden at least one second application of needs for being determined to the determining module Cent does not carry out reducing the voice compacting of volume.
In one embodiment, the blanket factor sets storage previously according to the sound type of application;Alternative sounds class The application of type corresponds to different blanket factors respectively, and the blanket factor of the application of same sound type is identical;Wherein, the compacting Coefficient value is 0-1.0.
In one embodiment, the sound compression module includes:
Volume read module, the volume value currently playing for reading terminals;
Volume comparison module, for the currently playing volume value and predetermined value size;
Audio Control Module, for when the currently playing volume value is more than or equal to the predetermined value, will described in extremely The sound for the second application that blanket factor is 0 is reduced to first threshold in few one second application, by described at least one second Sound of the blanket factor not for 0 the second application is reduced to Second Threshold in;
When the currently playing volume value is less than the predetermined value, it is by being suppressed at least one second application Number is arranged to the 3rd threshold value for the sound of 0 the second application, by the of blanket factor at least one second application for 0 The sound of two applications is reduced to the 4th threshold value;
Wherein, the predetermined value is related to terminal system max volume value, and is less than terminal system max volume value;It is described 3rd threshold value is less than the 4th threshold value, and the 4th threshold value is less than the first threshold, and the first threshold is less than described the Two threshold values, the Second Threshold are less than the currently playing volume value.
The embodiments of the invention provide a kind of voice drawing method and device, whether detection terminal starts is suppressed with voice First application of attribute, if then between first application run-time, to needing downtrodden at least one second in terminal The sound of application carries out reducing respectively the voice compacting of volume, that is, starts voice pressing function, with protrusion first application Sound.So, the embodiment of the present invention can avoid the occurrence of multiple sound while output causes user the problem of auditory masking occur, Realize the effect for the sound that some prominent user is currently most interested in.
Brief description of the drawings
Fig. 1 is the voice drawing method flow chart shown in the embodiment of the present invention;
Fig. 2 is another voice drawing method flow chart shown in the embodiment of the present invention;
Fig. 3 is another voice drawing method flow chart shown in the embodiment of the present invention;
Fig. 4 is another voice drawing method flow chart shown in the embodiment of the present invention;
Fig. 5 is application scenarios schematic diagram of the embodiment of the present invention;
Fig. 6 is the voice pressure setting schematic diagram shown in the embodiment of the present invention;
Fig. 7 is another voice pressure setting schematic diagram shown in the embodiment of the present invention;
Fig. 8 is another voice pressure setting schematic diagram shown in the embodiment of the present invention;
Fig. 9 is another voice pressure setting schematic diagram shown in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes.
The each embodiment of the present invention, the sound of the other application outside the application being currently most interested in by suppressing reduction user Sound, to protrude the sound for the application that user is currently most interested in, in the environment for being related to multiple application operations, to the voice of application Output carries out intelligent control, and the embodiment of the present invention can accomplish the sound of accurate compacting other application.So, when with audio When occurring multiple applications while the situation of work in the end product of output function, multiple sound can be avoided the occurrence of while exported Cause user the problem of auditory masking occur, realize the effect for the sound that some prominent user is currently most interested in.With reference to Accompanying drawing illustrates each embodiment of the present invention.
Fig. 1 is the voice drawing method flow chart shown in the embodiment of the present invention, and methods described includes:
Whether S101, detection terminal start the first application with voice compacting attribute.
In the embodiment of the present invention, the terminal can be any terminal with audio output function, as speech communication is whole End, Visual communications terminal, vehicle device or all-in-one car-mounted terminal etc..The first application with voice compacting attribute can be to use The currently most interested application that family is set, the application can send sound, such as vehicle mounted guidance application, when detecting car When navigation application on mounted terminal starts, then wake-up information is sent, start voice pressing function, that is, trigger voice pressing operation.
S102, if so, then between first application run-time, to needed in terminal downtrodden at least one second should Sound carries out reducing respectively the voice compacting of volume.
Exemplary, after navigation application opens triggering voice pressing operation, during navigation application runs work, to car The downtrodden other application of needs such as music player, radio, the video player etc. run on mounted terminal carries out language respectively Sound press system, volume is reduced with the sound of the protrusion navigation application.After navigation application is closed and exited, voice compacting work(is closed Can, have the first of voice compacting attribute to apply if being again started up navigation application or other, triggering again starts voice pressure Function processed.The embodiment of the present invention can the voice of application that is currently most interested in of Intelligent Recognition user, then suppress other application Audio output.These downtrodden voices, and the current unconcerned speech data of user.The embodiment of the present invention can avoid There are multiple sound while output causes user the problem of auditory masking occur, realize what some prominent user was currently most interested in The effect of sound.
Fig. 2 is another voice drawing method flow chart shown in the embodiment of the present invention, on the basis of above-described embodiment, Methods described also includes:
S201, the sounding situation to the described first application are monitored;
Here, such as can be during navigation application work, the sound that is sent to it is monitored, and judges that its navigation should With whether also working.
If S202, monitoring the first application pause sounding, described at least one second after voice is suppressed should The sound that sound returns to before compacting respectively;
Here, such as when navigation application power cut-off is exited, or navigation application certain section of time stopped during operation When there is no sounding, then before the sound of such as music player downtrodden before, radio application is returned into compacting respectively Sound.
If S203, monitoring that first application continues sounding, continue the sound at least one second application Voice compacting is carried out respectively.
Such as navigation application certain section of time stopped sounding during operation here, then will before it is downtrodden such as music The sound that the sound of the applications such as player, radio returns to before compacting respectively, and a period of time then starts to continue to send out Sound, then voice compacting is carried out respectively to the sound of such as application such as music player, radio again immediately.
In the present embodiment, after the prerequisite of triggering voice compacting, i.e., terminal starts first with voice compacting attribute Using and after triggering voice pressing operation, according to the different category of the application (i.e. the application in opening) of current active itself Property, using different audio drawing methods, after Intelligent Measurement completes audio compacting, it is desirable to be able to recover to be pressed the sound of application Normal play., it is necessary to which application to sending compacting demand, i.e., supervise to navigation application after the completion of each voice compacting action Survey, if this applies kept producing sound, continue to suppress the application in compacting queue;Otherwise, then compacting team is recovered The speech play applied in row.In the application scenarios of reality, the application for having compacting demand there may be lasting sounding, Huo Zhe Continue sounding in short time, pause sounding again, just need in this case the application to compacting queue carry out compacting speech play, Recover speech play, carry out voice compacting again, recover the operation of the circulations such as broadcasting again.In this case, the embodiment of the present invention It can accomplish accurately and rapidly to toggle in the state of suppressing and recovering to play, until sending having applied for compacting demand Exit entirely, voice pressing function, which is closed, enters resting state.
Specifically, when needing the application of application i.e. first for carrying out voice compacting to other application to start, voice pressure is waken up Function processed, current all applications in opening are scanned immediately, and obtain the blanket factor of these applications, then according to this The blanket factor applied a bit confirms that voice output needs downtrodden percentage.Now to monitor the voice output of the first application Situation, it is necessary to feelings by other downtrodden application recoveries to before being pressed immediately when first application no voice output Condition, the frequent switching back and forth between suppressing and being pressed, the embodiment of the present invention, which can be realized, quickly to be toggled, and will not cause product Crash or the high situation of CPU occupation rates.
Fig. 3 is another voice drawing method flow chart shown in the embodiment of the present invention, in the base of above-mentioned each embodiment On plinth, first application and each second application are respectively provided with a blanket factor;It is described downtrodden to being needed in terminal The sound of at least one second application carries out reducing respectively the voice compacting of volume, including:
Current all more than one second applications in opening of S301, end of scan;
Exemplary, user starts the application for needing that voice compacting is carried out to other application, such as navigation application, wakes up voice Pressing function, to currently open such as music player, radio application etc. be scanned, if it find that currently open should Have in and open media player, be then added in follow-up queue to be pressed.
S302, the blanket factor for obtaining first application and each second application;
Exemplary, the blanket factor sets storage previously according to the sound type of application, and alternative sounds type is answered With different blanket factors is corresponded to respectively, the blanket factor of the application of same sound type is identical;Wherein, the blanket factor takes It is worth for 0-1.0.
Specifically, carrying out voice compacting for convenience, application all types of in terminal android system is carried out point Group.The mode of packet is mainly based upon the sound type using output.In the present embodiment, for music player, video playback Device, radio etc. are incorporated into as one group, referred to as MUSIC groups, and the blanket factor of the group is arranged into 0;Notice for system, The application such as give the correct time divides NOTIFICATION groups into, and the blanket factor of the application of the group is arranged into 0.4.For navigation, alarm clock, The tinkle of bells etc. is applied, and is incorporated into as SONIFICATION groups, and the blanket factor of this group application is arranged into 0.8;Phone, bluetooth are connected Scoop out and divide PHONE groups into (predominantly car phone), and the blanket factor of this group is arranged to highest 1.0.Certainly, originally The blanket factor value of application packet and each group in inventive embodiments is not limited to this, can be according to user individual needs It is specific to set.
S303, the blanket factor that blanket factor is less than to the described first application application be defined as needing it is downtrodden at least One second application;
Here it is possible to it will determine to need downtrodden second application to be put into compacting queue.
S304, the sound of at least one second application downtrodden to the needs determined carry out reducing respectively the voice of volume Compacting.
Here it is possible to carrying out compacting one by one to the application in compacting queue reduces volume or Jing Yin.
It is exemplary, it is necessary to when the application such as navigation application that voice compacting is carried out to other application starts, message can be sent And wake up voice pressing function, otherwise voice pressing function is not activated by, so will not occupied terminal CPU resource.Start language After sound pressing function, current active application is inquired about, and obtains the blanket factor of current active application.If MUSIC groups are answered With then blanket factor is 0.If also had in active application in the presence of compacting attribute information, blanket factor is applied according to two Size decides whether application being added in compacting queue.To blanket factor than it is being currently up and need to other application carry out The application that the blanket factor of the application of voice compacting is low carries out voice compacting, such as, the blanket factor for the application being currently up is 0.8, then application of the blanket factor less than 0.8 is added in the compacting queue, such as the process name of application is added to the pressure In queue processed.For blanket factor than it is being currently up and need to other application carry out voice compacting application blanket factor High application, then the process name of the application is not put into compacting queue, is not responding to this compacting action.Such as preceding startup The blanket factor of application is 0.8, then application of the blanket factor higher than 0.8 will not then be added to the compacting queue, not make any pressure System operation.
It is specifically described with reference to Fig. 4 to how to suppress using voice.Fig. 4 is another shown in the embodiment of the present invention Kind voice drawing method flow chart, on the basis of embodiment illustrated in fig. 3, the needs of described pair of determination are downtrodden at least one The sound of second application carries out reducing respectively the voice compacting of volume, including:
The currently playing volume value of S3041, reading terminals;
Here, such as can be by calling the currently playing volume value of terminal android system reading terminals, such as navigation should With currently playing volume value.
Currently playing volume value described in S3042, comparison and predetermined value size;Wherein, the predetermined value and terminal system Max volume value is related, and is less than terminal system max volume value.Such as predetermined value can be terminal system max volume value N%, N can for example take 50, be certainly not limited to this.
S3043, when the currently playing volume value is more than or equal to the predetermined value, i.e., currently playing volume value compared with When big, the sound of the second application that blanket factor is 0 at least one second application is reduced to first threshold, by described in Sound of the blanket factor not for 0 the second application is reduced to Second Threshold at least one second application.
Here, the sound for suppressing the application such as music player that blanket factor in queue is 0 is reduced to first threshold, will Sound of the blanket factor not for the notice of 0 application such as system is reduced to Second Threshold in compacting queue, and the first threshold is small In the Second Threshold, the Second Threshold is less than the currently playing volume value.I.e. according to different groups of application using not Same pressing mode reduces volume.
S3044, when the currently playing volume value is less than the predetermined value, i.e., currently playing volume value is smaller When, the sound of the second application that blanket factor is 0 at least one second application is arranged to the 3rd threshold value, by described in extremely Sound of the blanket factor not for 0 the second application is reduced to the 4th threshold value in few one second application.
Here, the sound for suppressing the application such as music player that blanket factor in queue is 0 is reduced to the 3rd threshold value, will Sound of the blanket factor not for the notice of 0 application such as system is reduced to the 4th threshold value in compacting queue, and the 3rd threshold value is small In the 4th threshold value, the 4th threshold value is less than the first threshold.
Exemplary, current system max volume value is read into terminal Android system, and this value is preserved Come.Then currently playing volume value is read, confirms the relation of currently playing volume value and system max volume value:
If currently playing volume value is more than or equal to the 50% of system max volume value, answering in queue to be pressed is traveled through With.If the blanket factor for suppressing the application in queue is 0, the voice output of these applications is reduced to currently playing sound The 20% of value, i.e. first threshold.If the application blanket factor suppressed in queue is not 0, by the volume decrease of each application It is low for currently playing volume value 50% and be multiplied by the ratios of two application blanket factors, i.e. Second Threshold;
If currently playing volume value is less than the 50% of system max volume value, if the compacting of the application in compacting queue Coefficient is 0, then the voice output for applying these is directly disposed as to Jing Yin, i.e. the 3rd threshold value.If suppress answering in queue It is not 0 with blanket factor, then the volume of the application is reduced to the 10% of currently playing volume value, i.e. the 4th threshold value.Need Illustrate, first threshold described in the embodiment of the present invention, the Second Threshold, the 3rd threshold value and the 4th threshold value Specific value is not limited to this, as long as the sound that can reduce downtrodden application highlights the sound of first application i.e. Can.
In another embodiment, methods described also includes:When detecting that terminal not actuated described first is applied, do not send out Go out to wake up information;It is corresponding, do not start work when the voice compression module does not receive the wake-up information, into dormancy State.Cpu resource is so not take up, reduces power consumption of terminal.
The embodiment of the invention discloses a kind of voice drawing method, the enabled condition of detection voice compacting, when enabled condition is touched After hair, accurate scanning simultaneously identifies institute's downtrodden application in need, and shape is enlivened to being currently at using new audio compacting algorithm The sound of the application of state carries out different degrees of compacting, to realize the effect of some prominent sound.
Fig. 5 is application scenarios schematic diagram of the embodiment of the present invention.The embodiment of the present invention is applied in vehicle device application scenarios, including Following steps:
Step 401, user start the high moral navigation application on car-mounted terminal, and high moral navigation application is to belong to have compacting attribute Application, so it start when will go wake up voice compression module.
After step 402, voice compression module are waken up, scanning is current to remove active in car-mounted terminal Android system answer With, and filtering out in these applications has which to open media player, and these applications are added into treating for oneself maintenance Queue is suppressed, and the blanket factor of these applications is also corresponded to and saved, the high application of blanket factor is eliminated into the compacting Queue.Because the blanket factor of high moral navigation is highest in the present embodiment, so, current all applications for having speech play It will be pressed.
Step 403, voice compression module monitor the voice output situation of high moral navigation application during work, with It is easy to implement to carry out voice compacting to other application by Android system and voice recovery is handled.
When step 404, voice compression module carry out voice compacting, Android system feeds back to voice compression module information, Such as actively apply relevant information, process number etc., and feed back the feedback information for implementing compacting success or not.
Step 405, voice compression module carry out language especially by Android system to the application that audio is currently played Sound press system, voice intercut, the operation such as speech silence.The voice intercuts carries out voice compacting and voice recovery to different application Processing procedure, be presented as the situation that voice intercuts, such as music player application now starts another pressure in sounding The high application of coefficient processed, such as the notice application of system, then compacting reduces the sound of music player and protrudes the notice of the system The sound of application, recover the sound of music player afterwards, be presented as the sound for the notice application for having intercutted a system.
Illustrated in the present embodiment by taking vehicle device system application scenarios as an example, be not used in the application for limiting the embodiment of the present invention Scene.The application scenarios of the embodiment of the present invention can be the application scenarios such as Visual communications, smart home.The embodiment of the present invention can be with Apply in some end products such as vehicle device, all-in-one, speech communication, the voice compacting of intelligent is realized, to each active The voice output of application effectively controlled, user can be made to have more preferable user when using these end products Experience.The embodiment of the present invention is realized more using in the case of simultaneous, to the voice of user's currently uninterested application Output is suppressed, and the voice of the application of prominent user's current interest, reaches more preferable Consumer's Experience.The embodiment of the present invention It can be used on the Android system product of the various terminals such as vehicle device system, integrated machine system.
Fig. 6 is a kind of voice pressure setting schematic diagram shown in the embodiment of the present invention, and described device includes:Suppress trigger mode Block 601 and voice compression module 602;Wherein,
The compacting trigger module 601, whether start the first application with voice compacting attribute for detection terminal;Institute Predicate sound compression module 602, for when the compacting trigger module 601 detects first startup, being answered described first With during operation, carry out reducing the voice pressure of volume respectively to the sound for needing downtrodden at least one second application in terminal System.
A kind of voice pressure setting provided in an embodiment of the present invention, detect that terminal starts the with voice compacting attribute During one application, start voice pressing function, it is downtrodden at least one to being needed in terminal between first application run-time The sound of second application carries out reducing respectively the voice compacting of volume, with the sound of protrusion first application.So, it is of the invention Embodiment can avoid the occurrence of multiple sound while output causes user the problem of auditory masking occur, realize some prominent user The currently effect of most interested sound.
Fig. 7 is another voice pressure setting schematic diagram shown in the embodiment of the present invention, and described device also includes voice and supervised Survey module 603 and voice recovery module 604;Wherein,
The speech monitoring module 603, for being monitored to the sounding situation of the described first application;
The voice recovery module 604, for monitoring the first application pause hair in the speech monitoring module 603 During sound, after voice is suppressed it is described it is at least one second application sound return to respectively compacting before sound;
The voice compression module 602, it is additionally operable to monitor that first application continues in the speech monitoring module 603 During sounding, continue to carry out voice compacting respectively to the sound of at least one second application.
Fig. 8 is another voice pressure setting schematic diagram shown in the embodiment of the present invention, and the voice compression module 602 is wrapped Include:Scan module 6021, acquisition module 602, determining module 6023 and sound compression module 6024;First application and each Second application is respectively provided with a blanket factor;Wherein,
The scan module 6021, for current all more than one second the answering in opening of end of scan With;
The acquisition module 6022, for obtaining the blanket factor of first application and each second application;
The determining module 6023, it is defined as blanket factor to be less than to the application of blanket factor of the described first application Need downtrodden at least one second application;
The sound compression module 6024, the needs for being determined to the determining module 6023 are downtrodden at least one The sound of second application carries out reducing respectively the voice compacting of volume.
Specifically, the blanket factor sets storage previously according to the sound type of application;The application of alternative sounds type Different blanket factors is corresponded to respectively, and the blanket factor of the application of same sound type is identical;Wherein, the blanket factor value For 0-1.0.
Specifically, carrying out voice compacting for convenience, application all types of in terminal android system is carried out point Group.The mode of packet is mainly based upon the sound type using output.In the present embodiment, for music player, video playback Device, radio etc. are incorporated into as one group, referred to as MUSIC groups, and the blanket factor of the group is arranged into 0;Notice for system, The application such as give the correct time divides NOTIFICATION groups into, and the blanket factor of the application of the group is arranged into 0.4.For navigation, alarm clock, The tinkle of bells etc. is applied, and is incorporated into as SONIFICATION groups, and the blanket factor of this group application is arranged into 0.8;Phone, bluetooth are connected Scoop out and divide PHONE groups into (predominantly car phone), and the blanket factor of this group is arranged to highest 1.0.Certainly, originally The blanket factor value of application packet and each group in inventive embodiments is not limited to this, can be according to user individual needs It is specific to set.
It is exemplary, it is necessary to when the application such as navigation application that voice compacting is carried out to other application starts, message can be sent And wake up voice pressing function, otherwise voice pressing function is not activated by, so will not occupied terminal CPU resource.Start language After sound pressing function, the scan for inquiries current active application of scan module 6021, acquisition module 6022 obtains current unlatching application Blanket factor, determining module 6023 work, if the application of MUSIC groups, then blanket factor is 0, if in active application Have in the presence of compacting attribute, then decide whether application being added in compacting queue using blanket factor size according to two.Sound Sound compression module 6024 to blanket factor than it is being currently up and need to other application carry out voice compacting application compacting The low application of coefficient carries out voice compacting.For example the blanket factor for the application being currently up is 0.8, then is less than blanket factor 0.8 application is added in the compacting queue, such as the process name of application is added in the compacting queue.For blanket factor Than being currently up and need to carry out other application the high application of blanket factor of the application of voice compacting, then this is not applied Process name be put into compacting queue in, be not responding to this compacting action.For example the blanket factor of the application of preceding startup is 0.8, then Application of the blanket factor higher than 0.8 will not then be added to the compacting queue, not make any pressing operation.
Fig. 9 be the embodiment of the present invention shown in another voice pressure setting schematic diagram, the sound compression module 6024 Including volume read module, volume comparison module and Audio Control Module;Wherein,
The volume read module, the volume value currently playing for reading terminals;
The volume comparison module, for the currently playing volume value and predetermined value size;
The Audio Control Module, for when the currently playing volume value is more than or equal to the predetermined value, by institute The sound for stating the second application that blanket factor is 0 at least one second application is reduced to first threshold, will be described at least one Sound of the blanket factor not for 0 the second application is reduced to Second Threshold in second application;
When the currently playing volume value is less than the predetermined value, it is by being suppressed at least one second application Number is arranged to the 3rd threshold value for the sound of 0 the second application, by the of blanket factor at least one second application for 0 The sound of two applications is reduced to the 4th threshold value;
Wherein, the predetermined value is related to terminal system max volume value, and is less than terminal system max volume value;It is described 3rd threshold value is less than the 4th threshold value, and the 4th threshold value is less than the first threshold, and the first threshold is less than described the Two threshold values, the Second Threshold are less than the currently playing volume value.
Exemplary, volume read module reads current system max volume value into terminal Android system, and by this Individual value saves, and then reads currently playing volume value.Volume comparison module confirms currently playing volume value and system The relation of max volume value:
If currently playing volume value is more than or equal to the 50% of system max volume value, Audio Control Module works, time The application gone through in queue to be pressed, if the blanket factor of the application in compacting queue is 0, by the voice output of these applications It is reduced to the 20% of currently playing volume value, i.e. first threshold.If it is not 0 to suppress the application blanket factor in queue, The volume of each application is reduced to the 50% of currently playing volume value and is multiplied by the ratios of two application blanket factors, i.e., the Two threshold values;
If currently playing volume value is less than the 50% of system max volume value, Audio Control Module work, if compacting The blanket factor of application in queue is 0, then the voice output for applying these is directly disposed as to Jing Yin, i.e. the 3rd threshold value; If the application blanket factor suppressed in queue is not 0, the volume of the application is reduced to currently playing volume value 10%, i.e. the 4th threshold value.It should be noted that first threshold described in the embodiment of the present invention, the Second Threshold, the described 3rd The specific value of threshold value and the 4th threshold value is not limited to this, as long as the sound that can reduce downtrodden application highlights The sound of first application.
In one embodiment, the compacting trigger module 601, it is additionally operable to detect that terminal not actuated described first should Used time, wake-up information is not sent;The voice compression module 602, it is additionally operable to not start when not receiving the wake-up information Work, into resting state.
It should be noted that said apparatus embodiment corresponds with embodiment of the method part, foregoing side is specifically referred to Description in method embodiment, here is omitted.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the shape of the embodiment in terms of the present invention can use hardware embodiment, software implementation or combination software and hardware Formula.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more to use storage The form for the computer program product that medium is implemented on (including but is not limited to magnetic disk storage and optical memory etc.).
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.

Claims (10)

1. a kind of voice drawing method, it is characterised in that methods described includes:
Whether detection terminal starts the first application with voice compacting attribute;
If so, then between first application run-time, the sound to needing downtrodden at least one second application in terminal Reduce the voice compacting of volume.
2. method according to claim 1, it is characterised in that methods described also includes:
The sounding situation of described first application is monitored;
If monitoring the first application pause sounding, the sound of at least one second application after voice is suppressed is extensive The multiple volume to before compacting;
If monitoring, first application continues sounding, continues to carry out voice pressure to the sound of at least one second application System.
3. method according to claim 1 or claim 2, it is characterised in that first application and each second application have There is a blanket factor;
The voice that the sound to needing downtrodden at least one second application in terminal reduce volume is suppressed, bag Include:
Current all more than one second applications in opening of end of scan;
Obtain the blanket factor of first application and each second application;
The application that blanket factor is less than to the blanket factor of the described first application is defined as needing downtrodden at least one second Using;
The sound of at least one second application downtrodden to the needs determined carries out reducing respectively the voice compacting of volume.
4. method according to claim 3, it is characterised in that the blanket factor is set previously according to the sound type of application Storage;
The application of alternative sounds type corresponds to different blanket factors, the blanket factor phase of the application of same sound type respectively Together;Wherein, the blanket factor value is 0-1.0.
5. method according to claim 4, it is characterised in that the needs downtrodden at least one second of described pair of determination should Sound carries out voice compacting respectively, including:
The currently playing volume value of reading terminals;
Compare the currently playing volume value and predetermined value size;
When the currently playing volume value is more than or equal to the predetermined value, it is by being suppressed at least one second application Number is reduced to first threshold for the sound of 0 the second application, by the of blanket factor at least one second application for 0 The sound of two applications is reduced to Second Threshold;
When the currently playing volume value is less than the predetermined value, it is by blanket factor at least one second application The sound of 0 the second application is arranged to the 3rd threshold value, should by second of blanket factor at least one second application not for 0 Sound is reduced to the 4th threshold value;
Wherein, the predetermined value is related to terminal system max volume value, and is less than terminal system max volume value;Described 3rd Threshold value is less than the 4th threshold value, and the 4th threshold value is less than the first threshold, and the first threshold is less than second threshold Value, the Second Threshold are less than the currently playing volume value.
6. a kind of voice pressure setting, it is characterised in that described device includes:
Trigger module is suppressed, whether starts the first application with voice compacting attribute for detection terminal;
Voice compression module, for when the compacting trigger module detects that first application starts, being answered described first With during operation, carry out reducing the voice pressure of volume respectively to the sound for needing downtrodden at least one second application in terminal System.
7. device according to claim 6, it is characterised in that described device also includes:
Speech monitoring module, for being monitored to the sounding situation of the described first application;
Voice recovery module, for when the speech monitoring module monitors are to the first application pause sounding, by voice pressure The sound that the sound of at least one second application after system returns to before compacting respectively;
The voice compression module, it is additionally operable to when the speech monitoring module monitors continue sounding to the described first application, after The continuous sound at least one second application carries out voice compacting respectively.
8. according to the described device of claim 6 or 7, it is characterised in that first application and each second application have There is a blanket factor;The voice compression module includes:
Scan module, for current all more than one second applications in opening of end of scan;
Acquisition module, for obtaining the blanket factor of first application and each second application;
Determining module, for blanket factor is less than the application of blanket factor of the described first application be defined as needing it is downtrodden At least one second application;
Sound compression module, the sound point of downtrodden at least one second application of needs for being determined to the determining module Do not carry out reducing the voice compacting of volume.
9. device according to claim 8, it is characterised in that the blanket factor is set previously according to the sound type of application Storage;
The application of alternative sounds type corresponds to different blanket factors, the blanket factor phase of the application of same sound type respectively Together;Wherein, the blanket factor value is 0-1.0.
10. device according to claim 9, it is characterised in that the sound compression module includes:
Volume read module, the volume value currently playing for reading terminals;
Volume comparison module, for the currently playing volume value and predetermined value size;
Audio Control Module, for when the currently playing volume value is more than or equal to the predetermined value, will described at least one The sound for the second application that blanket factor is 0 is reduced to first threshold in individual second application, by least one second application Sound of the middle blanket factor not for 0 the second application is reduced to Second Threshold;
When the currently playing volume value is less than the predetermined value, it is by blanket factor at least one second application The sound of 0 the second application is arranged to the 3rd threshold value, should by second of blanket factor at least one second application not for 0 Sound is reduced to the 4th threshold value;
Wherein, the predetermined value is related to terminal system max volume value, and is less than terminal system max volume value;Described 3rd Threshold value is less than the 4th threshold value, and the 4th threshold value is less than the first threshold, and the first threshold is less than second threshold Value, the Second Threshold are less than the currently playing volume value.
CN201610754036.8A 2016-08-29 2016-08-29 A kind of voice drawing method and device Pending CN107783752A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610754036.8A CN107783752A (en) 2016-08-29 2016-08-29 A kind of voice drawing method and device
PCT/CN2017/091813 WO2018040731A1 (en) 2016-08-29 2017-07-05 Voice suppression method, device, and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610754036.8A CN107783752A (en) 2016-08-29 2016-08-29 A kind of voice drawing method and device

Publications (1)

Publication Number Publication Date
CN107783752A true CN107783752A (en) 2018-03-09

Family

ID=61299981

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610754036.8A Pending CN107783752A (en) 2016-08-29 2016-08-29 A kind of voice drawing method and device

Country Status (2)

Country Link
CN (1) CN107783752A (en)
WO (1) WO2018040731A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102332279A (en) * 2011-07-15 2012-01-25 东莞市远峰科技有限公司 Switching method between navigation sound and music sound
CN103677703A (en) * 2012-09-18 2014-03-26 联想(北京)有限公司 Electronic equipment and volume adjusting method thereof
CN104133652A (en) * 2014-06-10 2014-11-05 腾讯科技(深圳)有限公司 Audio playing control method and terminal
US20150277850A1 (en) * 2014-03-25 2015-10-01 Rovi Guides, Inc. Systems and methods for automatically adjusting volume of a media asset based on navigation distance
CN105681973A (en) * 2016-03-14 2016-06-15 广州趣丸网络科技有限公司 Sound channel switching method and switching system of mobile terminal
CN105872209A (en) * 2016-03-25 2016-08-17 联想(北京)有限公司 Information processing method and electronic device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104427083B (en) * 2013-08-19 2019-06-28 腾讯科技(深圳)有限公司 The method and apparatus for adjusting volume

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102332279A (en) * 2011-07-15 2012-01-25 东莞市远峰科技有限公司 Switching method between navigation sound and music sound
CN103677703A (en) * 2012-09-18 2014-03-26 联想(北京)有限公司 Electronic equipment and volume adjusting method thereof
US20150277850A1 (en) * 2014-03-25 2015-10-01 Rovi Guides, Inc. Systems and methods for automatically adjusting volume of a media asset based on navigation distance
CN104133652A (en) * 2014-06-10 2014-11-05 腾讯科技(深圳)有限公司 Audio playing control method and terminal
CN105681973A (en) * 2016-03-14 2016-06-15 广州趣丸网络科技有限公司 Sound channel switching method and switching system of mobile terminal
CN105872209A (en) * 2016-03-25 2016-08-17 联想(北京)有限公司 Information processing method and electronic device

Also Published As

Publication number Publication date
WO2018040731A1 (en) 2018-03-08

Similar Documents

Publication Publication Date Title
CN107273130B (en) Method, device and terminal for accelerating interface drawing
US10603586B2 (en) Voice communication method and system in game applications
CN110784858B (en) Bluetooth device control method and device, electronic device and storage medium
US11200899B2 (en) Voice processing method, apparatus and device
CN111462744B (en) Voice interaction method and device, electronic equipment and storage medium
US11936605B2 (en) Message processing method, apparatus and electronic device
CN109032732B (en) Notification display method and device, storage medium and electronic equipment
CN111510755A (en) Audio and video switching method and device, computer equipment and readable storage medium
CN106558305A (en) voice data processing method and device
CN111341315A (en) Voice control method, device, computer equipment and storage medium
CN109753262B (en) Frame display processing method and device, terminal equipment and storage medium
CN111063375A (en) Music playing control system, method, equipment and medium
CN106850605A (en) A kind of data processing method and device
CN113220365A (en) Control method and control device
CN107783752A (en) A kind of voice drawing method and device
CN110281952A (en) Control system and method, apparatus, storage medium, electronic device
CN106886399B (en) Background cleaning method and mobile terminal
CN114327714A (en) Application program control method, device, equipment and medium
CN115396990A (en) Power consumption control method and device
CN114339325A (en) Multi-engine dynamic wallpaper playing method and device based on android system
CN109147783B (en) Voice recognition method, medium and system based on Karaoke system
CN109885798A (en) A kind of page furbishing method of Android application
CN112423099A (en) Video loading method and device and electronic equipment
CN112468679B (en) Method and device for synchronously playing audio and video courseware and electronic equipment
CN114666514B (en) Data processing method, device, electronic equipment and storage medium

Legal Events

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

Application publication date: 20180309