WO2015090163A1 - Method and device for controlling output volume of audio in playing device - Google Patents

Method and device for controlling output volume of audio in playing device Download PDF

Info

Publication number
WO2015090163A1
WO2015090163A1 PCT/CN2014/093760 CN2014093760W WO2015090163A1 WO 2015090163 A1 WO2015090163 A1 WO 2015090163A1 CN 2014093760 W CN2014093760 W CN 2014093760W WO 2015090163 A1 WO2015090163 A1 WO 2015090163A1
Authority
WO
WIPO (PCT)
Prior art keywords
volume
audio
user
played
noise
Prior art date
Application number
PCT/CN2014/093760
Other languages
French (fr)
Chinese (zh)
Inventor
谢剑
戴俊
陈玉祯
张悦
Original Assignee
北京百度网讯科技有限公司
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 北京百度网讯科技有限公司 filed Critical 北京百度网讯科技有限公司
Publication of WO2015090163A1 publication Critical patent/WO2015090163A1/en

Links

Images

Classifications

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

Definitions

  • the present invention relates to the field of computer technologies, and in particular, to a method and apparatus for controlling an output volume of audio in a playback device.
  • the playback device does not take into account the different needs of the user for the comfort volume when outputting the audio, and thus cannot play the audio at a volume that the user feels comfortable when the received audio volume is too large or too small.
  • the influence of the noise and the distance between the user and the playback device on the output volume of the audio is not comprehensively considered, so that the output of the audio to be played cannot be determined by combining the noise in the current environment and the distance between the user and the playback device.
  • volume in the real-time (such as mobile phone or real-time voice call) and non-real-time (such as WeChat, E-mail, etc.) voice communication in the call center or mobile device communication, the communication voice is not based on the communication party.
  • the volume is intelligently adjusted, so that the user needs to manually adjust the volume according to the volume of the other party, which greatly reduces the quality of the user experience.
  • a method for controlling an output volume of an audio to be played in a playback device comprising the steps of:
  • volume control device for controlling an output volume of an audio to be played in a playback device, wherein the volume control device comprises:
  • a first obtaining device configured to acquire a user user's comfortable volume
  • a second acquiring device configured to acquire playing environment information of the playing device
  • determining means for determining an output volume of the to-be-played audio based on the playing environment information and the user comfort volume to play the to-be-played audio.
  • the present invention has the following advantages: 1) obtaining the user's comfortable volume selected by the user to determine the output volume of the audio to be played based on the user's comfortable volume, so that the audio volume that the user listens to is comfortable. 2) Combining the environment playing information to determine the output volume of the audio to be played, so it is possible to determine the influence of the noise in the current environment and the distance between the user and the playing device on the output volume, and adjust the volume of the audio to be played accordingly to ensure The user can clearly listen to the audio to be played at a more comfortable volume.
  • FIG. 1 is a flow chart showing a method for controlling the output volume of audio in a playback device in accordance with the present invention
  • FIG. 2 is a block diagram showing the structure of a volume control device for controlling the output volume of audio in a playback device in accordance with the present invention.
  • FIG. 1 is a flow chart showing a method for controlling the output volume of audio to be played in a playback device in accordance with the present invention.
  • the method according to the invention comprises a step S1, a step S2 and a step S3.
  • the audio to be played includes audio data that needs to be played in the playback device.
  • the to-be-played audio includes but is not limited to any of the following:
  • voice audio when calling a call for example, the audio of the other party when the mobile phone is talking, and, for example, the audio of the incoming call received by the call center;
  • the method according to the invention is implemented by a volume control device.
  • the volume control device is included in a playback control plug-in.
  • the playback control plug-in can be loaded into various independently operable programs such as various operating systems, software, applications (APPs), etc., to enable the loaded program to perform corresponding processing as described herein for the audio to be played.
  • APPs applications
  • the playback control plug-in can be constructed by combining an existing plug-in with the volume control device, for example, the volume control device is included in an existing WeChat plug-in to obtain the playback control plug-in or the like.
  • the method according to the invention is implemented by a volume control device included in the playback device.
  • the playback device includes an electronic device capable of automatically performing numerical calculation and/or information processing according to an instruction set or stored in advance, the hardware of which includes but is not limited to a microprocessor, an application specific integrated circuit (ASIC), a programmable gate Arrays (FPGAs), digital processors (DSPs), embedded devices, and more.
  • the playback device includes a network device and/or a user device.
  • the network device includes, but is not limited to, a single network server, a server group composed of multiple network servers, or a cloud computing-based cloud composed of a large number of hosts or network servers, where the cloud computing is distributed computing.
  • a super virtual computer consisting of a group of loosely coupled computers.
  • the user equipment includes, but is not limited to, any electronic product that can interact with a user through a keyboard, a mouse, a remote controller, a touch panel, or a voice control device, such as a personal computer, a tablet computer, a smart phone, or a PDA. , game consoles, or IPTV.
  • the network in which the user equipment and the network device are located includes, but is not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, a VPN network, and the like.
  • the playback device further includes a sound output device such as a speaker or the like.
  • the user equipment, the network equipment, and the network are only examples. Other existing or future user equipment, network equipment, and networks may be applicable to the present invention, and should also be included in the scope of the present invention. And is included here by reference.
  • step S1 the volume control device acquires a user of a current user. Comfortable volume.
  • the user comfort volume is used to indicate the volume that the user feels comfortable.
  • the manner in which the volume control device acquires the user's comfortable volume of the current user includes at least one of the following:
  • the volume control device plays example audio, wherein the example audio belongs to an example audio set, the audio set includes a plurality of example audios respectively belonging to different volume sections; then, the volume control device acquires a user to the example An adjustment command of the audio; and selecting a new example audio according to the adjustment instruction of the sample audio by the user.
  • the volume control means repeats the above steps until the user confirms that the volume section of the played example audio is the user comfort volume section; then the volume control means acquires the volume in the comfort volume section selected by the user as the user comfort volume.
  • the volume control means selects audio of a volume section adjacent to the played example audio as new example audio according to the user's adjustment instruction to the example audio.
  • the volume control device collects the audio of the volume segment [x, y] at a predetermined volume interval m to obtain a plurality of example audios, and selects an example from the plurality of instance audios based on the principle of binary search. Audio and play to gradually determine the volume section that the user feels comfortable with. Specifically, the volume control device first plays example audio in which the start value of the volume section in the plurality of example audio corresponds to the intermediate position of [x, y].
  • the volume control device determines, according to the adjustment instruction of the user, that the search range is [a, x] (if it is too large) or [a+m, y] (if it is too small), and selects a new example audio within the search range and Playback, the starting value of the volume section of the new example audio corresponds to the middle position of the search range.
  • the volume control device repeats the above steps of playing the example audio and selecting a new example audio according to the user's adjustment command according to the user's subsequent adjustment instruction until the user confirms that the volume portion of the played example audio is the user comfort volume segment.
  • the volume control device collects the audio at a volume interval of 20 decibels (db, decibel) to 80 db at 6 db to obtain 10 sample audios corresponding to the volume segment: [20db, 26db ], [26db, 32db], [32db, 38db], ... [74db, 80db]. Then, the volume control device selects the example audio corresponding to the volume segment [44db, 50db] of the intermediate position to play, and obtains the adjustment instruction of the sample audio to the user, which is "large", and the volume control device selects [20db, 50db ] Select the sample audio of the middle volume section [32db, 38db] in the volume range and play it.
  • the volume control device obtains the user's adjustment instruction for the example audio "small” again, and the volume control device determines that the intermediate volume segment between [38db, 50db] is the volume segment [44db, 50db], and selects Its corresponding example audio is played, and the volume control device obtains the user's adjustment command as "OK", and the volume control means the volume section [44db, 50db] of the example audio as the user comfort volume section.
  • the volume control device acquires a selection operation in which the user further selects "46db" in the volume section, and determines that the user's user comfort volume is 46 db.
  • step S2 the volume control device acquires the playback environment information of the playback device.
  • the playing environment information includes but is not limited to at least one of the following:
  • the playback distance which includes the distance between the playback device and the receiving location.
  • the receiving position is a position of a human ear.
  • the position of the obstacle in front of the playback device is taken as the receiving position.
  • the manner in which the volume control device acquires the playing environment information of the playing device includes at least one of the following:
  • the playback environment information includes an ambient noise volume
  • the volume control device acquires ambient noise audio by detecting ambient noise to determine an ambient noise volume.
  • the volume control device samples and acquires noise audio corresponding to a playing environment in which the playback device is located, and then the volume control device decodes the noise audio into a predetermined grid. Audio data to determine the ambient noise volume of the noisy audio.
  • the volume control device decodes the noise audio into a Pulse Code Modulation (PCM) format.
  • PCM Pulse Code Modulation
  • the volume control means determines the ambient noise volume of the noisy audio based on the audio data decoded into a predetermined format based on the following formula:
  • SPL Noise
  • n the amplitude of the noise audio
  • a (k) the amplitude relative magnitude of the k-th sample of the noise audio.
  • the playback environment information includes a play distance
  • the volume control device determines the play distance by detecting the distance between itself and the obstacle. For example, the volume control device acquires the distance of the playback device from the obstacle in front of it by the sensing device in the playback device and uses the distance as the playback distance.
  • step S3 the volume control device determines an output volume of the to-be-played audio based on the playback environment information and the user comfort volume to play the to-be-played audio.
  • the volume control device determines the output volume of the to-be-played audio based on the playback environment information and the user comfort volume, and the manner of playing the to-be-played audio includes but is not limited to any of the following:
  • the volume control means determines the output volume value of the audio to be played based on the playback environment information and the user comfort volume, and based on predetermined operational rules.
  • the standard distance is used to represent the distance most suitable for the user to listen to the audio.
  • user A receives audio from user B and user C via WeChat in the handset.
  • the output volume of the audio it is possible to flexibly adjust the output volume of the audio to be played according to the environment playing information of the environment in which the user A is located and the comfort volume preferred by the user A, so that the user A is no matter what In a variety of environments, the audio played can be listened to clearly and comfortably.
  • the volume control device determines an output volume of the to-be-played audio based on the playback environment information, the original volume of the audio to be played, and the user comfort volume to play the to-be-played audio.
  • the manner in which the volume control device obtains the original volume includes, but is not limited to, any of the following:
  • step S2 The process of decoding the ambient noise audio by the middle volume control device is the same or similar, and will not be described here;
  • the volume control device determines the output volume of the to-be-played audio based on the playback environment information, the original volume of the to-be-played audio, and the user's comfort volume, to play the to-be-played audio, including but not limited to Any of the following:
  • the volume control device first determines the volume gain corresponding to the ambient noise volume and the original volume based on the ambient noise volume and the original volume of the audio to be played. Then, the volume control means determines the output volume of the audio to be played based on the volume gain and the user comfort volume.
  • the volume gain is used to indicate a gain required by the to-be-played audio in the presence of ambient noise of different volume segments.
  • the volume control device obtains that the user's comfort volume is 40 db, the ambient noise volume is 35 db, and the original volume of the audio to be played is 30 db. Then, the volume control device queries in the correspondence between the pre-stored audio volume segment, the noise volume segment, and the volume gain, and obtains a corresponding volume gain of 3 db. Then, the volume control device determines that the output volume of the audio to be played is the sum of the user's comfort volume and volume gain, that is, 43 db.
  • the manner in which the corresponding relationship is obtained is similar to or the same as the manner in which the volume is obtained in the subsequent preferred embodiment.
  • the volume control device determines the output volume of the audio to be played based on the ambient noise volume, the user comfort volume, and the playback distance.
  • the playing environment information includes an ambient noise volume and a playing distance
  • the volume control device first determines a volume gain corresponding to the ambient noise volume and the original volume according to the ambient noise volume and the original volume of the audio to be played.
  • the volume control means determines the output volume of the audio to be played based on the volume gain, the playback distance, and the user comfort volume.
  • the volume control means determines a noise volume section corresponding to the ambient noise volume, and an audio volume section corresponding to the original volume of the audio to be played. Then, the volume control means determines the average volume of the sound corresponding to the noise volume section of the ambient noise volume and the audio volume section of the original volume based on the volume correspondence. Next, the volume control device determines the volume gain of the audio to be played based on the original volume and the average comfort volume.
  • the foregoing volume correspondence relationship is used to indicate a correspondence relationship between an audio volume section, a noise volume section, and an average comfort volume corresponding to the test audio.
  • the manner in which the volume control device acquires the volume correspondence includes, but is not limited to, any one of the following:
  • the volume control means determines the output volume of the audio to be played based on the volume gain, the play distance, and the user comfort volume based on the following formula.
  • SPL (Actual) represents the output volume
  • SPL (Standard) represents the user comfort volume
  • L represents the playback distance
  • L standard represents the standard distance
  • SPL (Noise_gain) represents the volume gain.
  • the standard distance is a preset sound output distance, and preferably, the standard distance may be determined according to user usage habits. For example, the average value of the distance between the ear and the speaker of the mobile phone when the user history uses the mobile phone is taken as the standard distance; for example, the distance value input by the user is taken as the standard distance or the like.
  • the volume correspondence stored in the mobile phone of the user D is as shown in Table 1 below.
  • the volume control device in the mobile phone determines that the current ambient noise volume is 43 db, and the original volume of the call audio from the customer service A is light, which is 37 db.
  • the volume control device determines, according to the volume correspondence relationship shown in Table 1 above, that the noise volume segment corresponding to the current ambient noise volume is 40 db to 60 db, and the audio volume segment corresponding to the original volume is 20 db to 50 db, and The volume corresponding to the query, the corresponding average comfort volume is 46db.
  • 9db.
  • the volume control device determines the output volume of the to-be-played audio is 52db according to the acquired user comfort volume 35db, the playback distance of 4cm, the pre-stored standard distance of 3cm, and the determined volume gain of 9db;
  • the device outputs audio from the customer service A to the user D at a volume of 52 db.
  • the volume control device measures the original volume of the audio and/or the playing environment information every predetermined time period, and updates the output based on the newly obtained original volume and/or playing environment information accordingly. Volume value. To cope with changes in various influencing factors in real-time calls.
  • the volume control device during the conversation between the user D and the customer service A, when the volume control device is measured again at a predetermined time interval, it is determined that the original volume of the call audio of the customer service A becomes 70 db, that is, the customer service A The volume becomes louder. Then, the volume control device continues to determine that the noise volume segment corresponding to the current ambient noise volume is 40 db to 60 db according to the volume correspondence relationship shown in Table 1 above, and the audio volume segment corresponding to the original volume is 50 db to 80 db, and The volume corresponding to the query, the corresponding average comfort volume is 58db.
  • 12db. Then, the volume control device according to the obtained user comfort volume 35db, the play distance 4cm, the pre-stored standard distance 3cm and the determined volume gain 12db, and the preliminary output volume of the to-be-played audio is determined to be 55db by formula (2). The volume of the volume control device 55db outputs the audio from the customer service A to the user D.
  • the mode of the present invention it is possible to further adjust the audio of different original sounds, so that regardless of the size of the original audio, for the answering party, such as the user D, the volume that is heard is always in a relatively comfortable area. Therefore, it is possible to avoid a situation in which the user experience is reduced due to the speaker's volume being too large or too small, so that the user can listen to the audio more clearly.
  • the manner in which the volume control device determines the output volume of the audio to be played according to the volume gain, the play distance, and the user comfort volume specifically includes: the volume control device according to the volume gain Determining the volume control information of the to-be-played audio by the playback distance, the user comfort volume, and the original volume, and then adjusting the original volume based on the volume control information to obtain the to-be-supplied The output volume of the audio is played.
  • the volume control information includes a difference between the output volume and the original volume.
  • the volume control information includes a proportional relationship between the output volume and the original volume.
  • volume control device determines the volume control information based on the following formula:
  • Control param represents volume control information
  • SPL (Actual) represents output volume
  • SPL (original) represents original volume
  • the volume control is based on Equation (3) and the Control param is 5.62. Then, the volume control device adjusts the energy value of the audio to be played back to 5.62 times the original to play the to-be-played audio. It should be noted that the above examples are only for better explaining the technical solution of the present invention, and are not limited to the present invention. Those skilled in the art should understand that any environmental noise is determined according to the ambient noise volume and the original volume of the audio to be played. The volume gain corresponding to the volume and the original volume. Next, the volume control means determines the implementation of the output volume of the audio to be played based on the volume gain, the playback distance, and the user's comfort volume, all of which are included in the scope of the present invention.
  • the method according to the invention further comprises a step S4 (not shown).
  • step S4 the volume control means presents processing related information.
  • the processing related information is used to prompt the user for the processed state of the original volume of the audio to be played.
  • the processed state includes but is not limited to any one of the following:
  • the processing related information includes, but is not limited to, at least one of the following forms:
  • the playback device includes a network device, and a volume control device belonging to the network device determines the output volume of the audio to be played based on the playback environment information and the user comfort volume; The original volume of the audio to be played is updated to the output volume; and the updated audio to be played is sent to the user equipment for playing the to-be-played audio.
  • the VoIP server such as the cloud ROM server, receives the playback environment information fed back by the user equipment, including: a playback distance of 5 cm, and an ambient noise volume of 55 db. Then, the volume control device in the cloud ROM server obtains the user comfort volume corresponding to the user of the user equipment is 31 db, and the original volume of the call audio sent to the user equipment is 56 db, and the standard distance is 2 cm. Moreover, the volume correspondence relationship stored in the cloud ROM server is as shown in Table 1.
  • the volume control device queries according to the volume correspondence relationship, and obtains an average comfort volume corresponding to the ambient noise volume of the user equipment and the original volume of the call audio is 58 db, and the volume control device obtains the original volume according to the average comfort volume 58db.
  • the difference between the 56db is 2db
  • the volume gain of the call audio is determined to be 2db
  • the output volume is 48db according to the formula (2) according to the obtained volume gain, play distance and user comfort volume.
  • the volume control device updates the attribute of the original volume of the call audio to 48 db, and sends the updated call audio to the user equipment for playing the to-be-played audio, thereby ensuring that the user can be more comfortable.
  • the volume of the call from the party is clearly heard under the volume.
  • the method according to the present embodiment further includes step S5 (not shown), step S6 (not shown), and step S7 (not shown).
  • step S5 the volume control device plays a plurality of test audios.
  • the test audio includes selecting one candidate audio from among a plurality of candidate audios and selecting one candidate noise from the plurality of candidate noises, wherein the plurality of candidate audios respectively correspond to at least one audio volume segment, the plurality of The noise audio corresponds to at least one noise volume section.
  • step S6 the volume control device respectively acquires one or more user comfort volumes corresponding to the respective test audios.
  • the manner in which the volume control device obtains the user's comfortable volume corresponding to the test audio is the same as or similar to the manner in which the volume control device obtains the user's user's comfortable volume in the foregoing step S1, and details are not described herein again.
  • step S7 the volume control means respectively determines an average comfort volume corresponding to each test audio according to one or more user comfort volumes of the respective test audios, and saves an audio volume section of the candidate audio in the test audio. And a volume corresponding relationship between the noise volume section of the candidate noise in the test audio and the average comfort volume corresponding to the test audio.
  • the candidate audio includes Audio_1 and Audio_2, and the candidate noise includes Noise_1 to Noise_4, and the volume sections included in each are as shown in Table 2.
  • the volume control means obtains the test audios Test_1 to Test_8 as shown in Table 3 based on any combination of the respective candidate audios and the respective candidate noises.
  • the volume control device plays the plurality of test audios Test_1, and then the volume control device acquires three user comfort volumes 20db, 28db, 24db corresponding to the test audio Test_1, and determines the test audio test_1 according to the three user comfort volumes.
  • the average comfort volume is 24db, and the volume section [20db, 50db] of the candidate audio of the test audio Test_1 is saved, the noise volume section of the candidate noise of the test audio Test_1 [20db, 40db], and the average comfort volume obtained by the 24db are three.
  • the volume The control device performs similar operations on the test audios Test_2 to Test_8, respectively, to obtain an audio volume section of the candidate audio in each test audio, and a noise volume section of the candidate noise in the test audio as shown in Table 3. And the volume correspondence of the average comfort volume corresponding to the test audio.
  • Test audio Audio volume section Noise volume section Average comfort volume Test_1 [20db, 50db] [20db, 40db] twenty four Test_2 [20db, 50db] [40db, 60db] 46 Test_3 [20db, 50db] [60db, 80db] 63 Test_4 [20db, 50db] [80db,100db] 85 Test_5 [50db, 80db] [20db, 40db] 54 Test_6 [50db, 80db] [40db, 60db] 55 Test_7 [50db, 80db] [60db, 80db] 68 Test_8 [50db, 80db] [80db,100db] 82
  • any one of the test audios is played and one or the corresponding one of the test audios is respectively obtained.
  • a plurality of user comfort volumes, determining an average comfort volume corresponding to each test audio, and saving candidate audio in the test audio The implementation of the audio volume section, the noise volume section of the candidate noise in the test audio, and the volume correspondence of the average comfort volume corresponding to the test audio are all included in the scope of the present invention.
  • the user's comfort volume selected by the user is obtained, and the output volume of the audio to be played is determined based on the user's comfortable volume, so that the audio volume that the user listens to is the volume that the user feels comfortable; the environment playback information is determined to be played.
  • the output volume of the audio so it is possible to determine the influence of the noise in the current environment and the distance between the user and the playback device on the output volume, and adjust the volume of the audio to be played to ensure that the user can listen clearly at a relatively comfortable volume. To the audio to be played.
  • the volume control device includes a first acquisition device 1, a second acquisition device 2, and a determination device 3.
  • the first acquisition device 1 acquires the user comfort volume of the current user.
  • the user comfort volume is used to indicate the volume that the user feels comfortable.
  • the manner in which the first acquiring device 1 acquires the user's comfortable volume of the current user includes at least one of the following:
  • the first obtaining device 1 includes a second playing device (not shown), a second child acquiring device (not shown), a selecting device (not shown), a seventh child determining device (not shown), and a eighth child.
  • the second playback device plays example audio
  • the example audio belongs to an example audio set
  • the audio set includes a plurality of example audios respectively belonging to different volume sections
  • the second sub-acquisition device acquires adjustment of the example audio by the user
  • An instruction device selects a new example audio based on the user's adjustment instruction to the example audio.
  • the seventh sub-determining means confirms that the volume section of the played example audio is the user comfort volume section; the eighth sub-acquisition means acquires the volume in the comfort volume section selected by the user as the user comfort volume.
  • the selecting means selects audio of a volume section adjacent to the played example audio as new example audio according to the user's adjustment instruction to the example audio.
  • the volume control means is at a predetermined volume interval m, and the volume section is [x,
  • the audio of y] is acquired to obtain a plurality of example audios, and the example audio is selected from the plurality of example audios based on the principle of binary search and played to gradually determine the volume section that the user feels comfortable with.
  • the second playback device plays example audio in which the start value of the volume section in the plurality of example audio corresponds to the intermediate position of [x, y].
  • the selection device determines, according to the adjustment instruction of the user, that the search range is [a, x] (if it is too large) or [a+m, y] (if it is too small), and selects a new example audio and plays in the search range.
  • the starting value of the volume section of the new example audio corresponds to the middle position of the search range.
  • the volume control device repeats the step of playing the example audio and selecting a new example audio according to the user's adjustment instruction according to the user's subsequent adjustment instruction until the seventh sub-determination device confirms that the volume portion of the played example audio is the user comfort volume area. segment.
  • the volume control device collects the audio at a volume interval of 20 decibels (db, decibel) to 80 db at 6 db to obtain 10 sample audios corresponding to the volume segment: [20db, 26db ], [26db, 32db], [32db, 38db], ... [74db, 80db].
  • the second playback device selects the example audio corresponding to the volume segment [44db, 50db] of the intermediate position for playing, and the second sub-acquisition device acquires the adjustment command of the sample audio for the user to be "large", then the selection device selects The example audio of the middle volume section [32db, 38db] is selected within the volume range of [20db, 50db] and the example audio is played by the second playback device.
  • the second sub-acquisition device obtains the adjustment instruction “small” of the sample audio by the user again, and the volume control device determines that the intermediate volume segment between [38db, 50db] is the volume segment [44db, 50db], And selecting its corresponding example audio for playing, and the second sub-acquisition device control device obtains the adjustment instruction of the user as “determining”, and the seventh sub-determining device uses the volume segment [44db, 50db] of the example audio as the user. Comfortable volume section.
  • the eighth sub-acquisition device acquires a selection operation in which the user further selects "46db" in the volume section, and determines that the user's user comfort volume is 46 db.
  • the second obtaining device 2 acquires playing environment information of the playing device.
  • the playing environment information includes but is not limited to at least one of the following:
  • the playback distance which includes the distance between the playback device and the receiving location.
  • the receiving position is a position of a human ear.
  • the position of the obstacle in front of the playback device is taken as the receiving position.
  • the manner in which the second obtaining device 2 acquires the playing environment information of the playing device includes at least one of the following:
  • the playback environment information includes an ambient noise volume
  • the second acquisition device 2 acquires ambient noise audio by detecting ambient noise to determine an ambient noise volume.
  • the second acquisition device 2 includes an acquisition device (not shown) and a decoding device (not shown).
  • the collecting device samples and acquires noise audio corresponding to the playing environment in which the playing device is located, and then the decoding device decodes the noise audio into audio data of a predetermined format to determine an ambient noise volume of the noise audio.
  • the decoding device modulates a Pulse Code Modulation (PCM) format.
  • PCM Pulse Code Modulation
  • the decoding means determines the ambient noise volume of the noisy audio based on the audio data decoded into a predetermined format based on the following formula:
  • SPL Noise
  • n the amplitude of the noise audio
  • a (k) the amplitude relative magnitude of the k-th sample of the noise audio.
  • the playback environment information includes a play distance
  • the second acquisition device 2 determines the play distance by detecting the distance between itself and the obstacle. For example, the second acquisition device 2 acquires the distance of the playback device from the obstacle in front of it by the sensing device in the playback device, and uses the distance as the playback distance.
  • the determining device 3 determines an output volume of the to-be-played audio based on the playing environment information and the user comfort volume to play the to-be-played audio.
  • the determining means 3 determines based on the playing environment information and the user comfort volume
  • the manner of playing the output volume of the to-be-played audio to play the to-be-played audio includes but is not limited to any of the following:
  • the determining means 3 determines the output volume value of the audio to be played based on the playback environment information and the user comfort volume, and based on predetermined operational rules.
  • the standard distance is used to represent the distance most suitable for the user to listen to the audio.
  • user A receives audio from user B and user C via WeChat in the handset.
  • the output volume of the audio it is possible to flexibly adjust the output volume of the audio to be played according to the environment playing information of the environment in which the user A is located and the comfort volume preferred by the user A, so that the user A is no matter what In a variety of environments, the audio played can be listened to clearly and comfortably.
  • the determining device 3 determines an output volume of the to-be-played audio based on the playback environment information, the original volume of the audio to be played, and the user comfort volume to play the to-be-played audio.
  • the manner in which the volume control device obtains the original volume includes, but is not limited to, any of the following:
  • the determining device 3 determines the output volume of the to-be-played audio based on the playing environment information, the original amount of the to-be-played audio, and the user's comfort volume, and the manner in which the audio to be played is played is included, but not limited to the following. Any one:
  • the determining means 3 first determines the volume gain corresponding to the ambient noise volume and the original volume based on the ambient noise volume and the original volume of the audio to be played. Then, the determining means 3 determines the output volume of the audio to be played based on the volume gain and the user's comfort volume.
  • the volume gain is used to indicate a gain required by the to-be-played audio in the presence of ambient noise of different volume segments.
  • the first acquisition device 1 acquires that the user comfort volume is 40 db
  • the second acquisition device 2 acquires the ambient noise volume is 35 db
  • the original volume of the audio to be played is 30 db.
  • the determining device 3 queries in the correspondence between the pre-stored audio volume segment, the noise volume segment and the volume gain, and obtains a corresponding volume gain of 3 db.
  • the determining means 3 determines that the output volume of the audio to be played is the sum of the user's comfort volume and the volume gain, that is, 43 db.
  • the manner in which the corresponding relationship is obtained is similar to or the same as the manner in which the volume is obtained in the subsequent preferred embodiment.
  • the determining means 3 comprises an output determining means for determining the output volume of the audio to be played based on the ambient noise volume, the user comfort volume and the play distance.
  • the output determining device includes a first sub-determining device (not shown) and a second sub-determining device (not shown); wherein the first sub-determining device further includes a fourth sub-determining device (not shown), fifth Sub-determination means (not shown) and sixth sub-determination means (not shown).
  • the playing environment information includes an ambient noise volume and a playing distance.
  • the first sub-determining means determines a volume gain corresponding to the ambient noise volume and the original volume based on the ambient noise volume and the original volume of the audio to be played.
  • the second sub-determining device determines the audio to be played according to the volume gain, the playing distance, and the user comfort volume. The output volume.
  • the fourth sub-determining means determines a noise volume section corresponding to the ambient noise volume, and an audio volume section corresponding to the original volume of the audio to be played. Then, the fifth sub-determining means determines the average volume of the comfort corresponding to the noise volume section of the ambient noise volume and the audio volume section of the original volume, based on the volume correspondence. Next, the sixth sub-determining means determines the volume gain of the audio to be played based on the original volume and the average comfort volume.
  • the foregoing volume correspondence relationship is used to indicate a correspondence relationship between an audio volume section, a noise volume section, and an average comfort volume corresponding to the test audio.
  • the manner in which the fifth sub-determination device acquires the volume correspondence relationship includes but is not limited to any one of the following:
  • the second sub-determining means determines the output volume of the audio to be played based on the volume gain, the play distance, and the user comfort volume based on the following formula.
  • SPL (Actual) represents the output volume
  • SPL (Standard) represents the user comfort volume
  • L represents the playback distance
  • L standard represents the standard distance
  • SPL (Noise_gain) represents the volume gain.
  • the standard distance is a preset sound output distance, and preferably, the standard distance may be determined according to user usage habits. For example, the average value of the distance between the ear and the speaker of the mobile phone when the user history uses the mobile phone is taken as the standard distance; for example, the distance value input by the user is taken as the standard distance or the like.
  • the volume correspondence stored in the mobile phone of the user D is as shown in Table 4 below.
  • the volume control device in the mobile phone determines that the current ambient noise volume is 43 db, and the original volume of the call audio from the customer service A is light, which is 37 db. Then, the fourth sub-determining device determines that the noise volume section corresponding to the current ambient noise volume is 40 db to 60 db according to the volume correspondence relationship shown in the above table 4, and the audio volume section corresponding to the original volume is 20 db to 50 db. Then, the fifth sub-determination device queries in the volume correspondence relationship, and the corresponding average comfort volume is 46db.
  • 9db.
  • the second sub-determination device is based on the user comfort volume 35db acquired by the first acquisition device 1, the playback distance acquired by the second acquisition device is 4 cm, the pre-stored standard distance is 3 cm, and the volume gain 9db determined by the sixth sub-determination device is The output volume of the audio to be played is determined to be 52 db by the formula (2); the volume control device outputs the audio from the customer service A to the user D at a volume of 52 db.
  • the volume control device measures the original volume of the audio and/or the playing environment information every predetermined time period, and updates the output based on the newly obtained original volume and/or playing environment information accordingly. Volume value. To cope with changes in various influencing factors in real-time calls.
  • the user D has called with the customer service A.
  • the volume control device is measured again at a predetermined time interval, it is determined that the original volume of the call audio of the customer service A becomes 70 db, that is, the volume of the customer service A becomes large.
  • the volume control device continues to determine that the noise volume segment corresponding to the current ambient noise volume is 40 db to 60 db according to the volume correspondence relationship shown in Table 1 above, and the audio volume segment corresponding to the original volume is 50 db to 80 db, and The volume corresponding to the query, the corresponding average comfort volume is 58db.
  • 12db. Then, the volume control device according to the obtained user comfort volume 35db, the play distance 4cm, the pre-stored standard distance 3cm and the determined volume gain 12db, and the preliminary output volume of the to-be-played audio is determined to be 55db by formula (2). The volume of the volume control device 55db outputs the audio from the customer service A to the user D.
  • the mode of the present invention it is possible to further adjust the audio of different original sounds, so that regardless of the size of the original audio, for the answering party, such as the user D, the volume that is heard is always in a relatively comfortable area. Therefore, it is possible to avoid a situation in which the user experience is reduced due to the speaker's volume being too large or too small, so that the user can listen to the audio more clearly.
  • the second sub-determining means further comprises an eighth sub-determining means (not shown) and a ninth sub-determining means (not shown).
  • the eighth sub-determining device determines volume control information of the to-be-played audio according to the volume gain, the play distance, the user comfort volume, and the original volume, and then the ninth sub-determining device is based on the The volume control information adjusts the original volume to obtain the output volume of the audio to be played.
  • the volume control information includes a volume adjustment value for adjusting the original volume to obtain an output volume.
  • the volume control information includes a difference between the output volume and the original volume.
  • the volume control information includes a proportional relationship between the output volume and the original volume.
  • the eighth sub-determining means determines the volume control information based on the following formula:
  • Control param represents volume control information
  • SPL (Actual) represents output volume
  • SPL (origina) represents original volume
  • the Control param obtained by the eighth sub-determination device according to the formula (3) is 5.62. Then, the ninth sub-determining device adjusts the energy value of the audio to be played back to 5.62 times the original to play the to-be-played audio.
  • the above examples are only for better explaining the technical solution of the present invention, and are not limited to the present invention.
  • any environmental noise is determined according to the ambient noise volume and the original volume of the audio to be played.
  • the volume gain corresponding to the volume and the original volume.
  • the volume control means determines the implementation of the output volume of the audio to be played based on the volume gain, the playback distance, and the user's comfort volume, all of which are included in the scope of the present invention.
  • the volume control device further comprises a presentation device (not shown).
  • the rendering device presents processing related information.
  • the processing related information is used to prompt the user for the processed state of the original volume of the audio to be played.
  • the processed state includes but is not limited to any one of the following:
  • the processing related information includes, but is not limited to, at least one of the following forms:
  • the rendering device presents the original volume value of the audio and the current output volume value, and, for example, presents the user with a message indicating that the audio has been subjected to volume conversion processing!
  • the presentation device continuously updates the size of the original volume value of the audio from the other party and the value of the output volume corresponding to the corresponding audio according to the voice size of the other party.
  • the rendering device respectively uses two sonic lines to indicate the original volume and output volume of the audio to be played, and utilizes the sound wave line. Bounce to display real-time changes in volume values; for example, when a WeChat audio is received, the rendering device first presents a red exclamation mark to the user to prompt the user to process the audio, and during processing, a red progress bar is displayed to indicate that processing is in progress. and When the processing is completed, a green check mark is displayed in front of the WeChat audio to prompt the user to complete the processing.
  • the playback device includes a network device, and a volume control device belonging to the network device determines the output volume of the audio to be played based on the playback environment information and the user comfort volume; The original volume of the audio to be played is updated to the output volume; and the updated audio to be played is sent to the user equipment for playing the to-be-played audio.
  • the VoIP server such as the cloud ROM server, receives the playback environment information fed back by the user equipment, including: a playback distance of 5 cm, and an ambient noise volume of 55 db. Then, the volume control device in the cloud ROM server obtains the user's comfortable volume corresponding to the user of the user equipment is 31 db, and the original volume of the audio to be played to be sent to the user equipment is 56 db, and the standard distance is 2 cm. Moreover, the volume correspondence relationship stored in the cloud ROM server is as shown in Table 4.
  • the volume control device queries according to the volume correspondence relationship, and obtains an average comfort volume corresponding to the ambient noise volume of the user equipment and the original volume of the audio to be played of the call is 58 db, and the volume control device obtains the average comfort volume 58 db according to the obtained
  • the difference between the original volume of 56db is 2db
  • the volume gain of the audio to be played is determined to be db
  • the output volume is 48db according to formula (2) according to the obtained volume gain, play distance and user comfort volume.
  • the volume control device updates the attribute of the original volume of the audio to be played back to 48 db, and sends the updated call pending audio to the user equipment for playing the to-be-played audio, thereby ensuring the user. It is able to clearly hear the call audio from the party at a more comfortable volume.
  • the volume control apparatus further includes a first playback device (not shown), a first sub-acquisition device (not shown), and a third sub-determination device. Set (not shown).
  • the first playing device plays a plurality of test audios.
  • the test audio includes selecting one candidate audio from a plurality of candidate audios and selecting one candidate noise from a plurality of candidate noises, wherein the plurality of candidate audios respectively correspond to at least one audio volume segment, the plurality of noise audios Corresponding to at least one noise volume segment.
  • the first sub-acquisition device respectively acquires one or more user comfort volumes corresponding to the respective test audios.
  • the manner in which the first sub-acquisition device obtains the user's comfortable volume corresponding to the test audio is the same as or similar to the manner in which the first acquisition device 1 obtains the user's user's comfortable volume.
  • the third sub-determining device respectively determines an average comfort volume corresponding to each test audio according to one or more user comfort volumes of the respective test audios, and saves an audio volume segment of the candidate audio in the test audio, The noise volume section of the candidate noise in the audio, and the volume correspondence of the average comfort volume corresponding to the test audio are tested.
  • the candidate audio includes Audio_1 and Audio_2, and the candidate noise includes Noise_1 to Noise_4, and the volume sections thereof are respectively included as shown in Table 5.
  • the volume control means obtains the test audios Test_1 to Test_8 as shown in Table 6 based on any combination of the respective candidate audios and the respective candidate noises.
  • the first playback device plays the plurality of test audios Test_1, and then the first sub-acquisition device acquires three user comfort volumes 20db, 28db, and 24db corresponding to the test audio Test_1.
  • the third sub-determining device determines, according to the three user comfort volume, that the average comfort volume corresponding to the test audio Test_1 is 24 db, and saves the volume segment of the candidate audio of the test audio Test_1 [20db, 50db], and the test audio Test_1 The volume corresponding to the noise volume section [20db, 40db] of the candidate noise and the average comfortable volume 24db obtained.
  • the first playback device, the first sub-acquisition device, and the third sub-determination device respectively perform similar operations on the test audios Test_2 to Test_8 to obtain the audio volume of the candidate audio in each test audio as shown in Table 6.
  • Test audio Audio volume section Noise volume section Average comfort volume Test_1 [20db, 50db] [20db, 40db] twenty four Test_2 [20db, 50db] [40db, 60db] 46 Test_3 [20db, 50db] [60db, 80db] 63 Test_4 [20db, 50db] [80db,100db] 85 Test_5 [50db, 80db] [20db, 40db] 54 Test_6 [50db, 80db] [40db, 60db] 55 Test_7 [50db, 80db] [60db, 80db] 68 Test_8 [50db, 80db] [80db,100db] 82
  • any one of the test audios is played and one or the corresponding one of the test audios is respectively obtained.
  • a plurality of user comfort volumes, determining an average comfort volume corresponding to each test audio, and saving an audio volume section of candidate audio in the test audio, a noise volume section of candidate noise in the test audio, and the The implementation of the volume correspondence of the average comfort volume corresponding to the test audio should be included in the scope of the present invention.
  • the output volume of the audio to be played is determined based on the user's comfortable volume, and the audio volume that the user listens to is obtained. It is the volume that it feels comfortable; combined with the environment playback information to determine the output volume of the audio to be played, so it is possible to determine the influence of the noise in the current environment and the distance between the user and the playback device on the output volume, and adjust the volume of the audio to be played accordingly. In order to ensure that the user can clearly listen to the audio to be played at a more comfortable volume.
  • the software program of the present invention can be executed by a processor to implement the steps or functions described above.
  • the software program (including related data structures) of the present invention can be stored in a computer readable recording medium such as a RAM memory, a magnetic or optical drive or a floppy disk and the like.
  • some of the steps or functions of the present invention may be implemented in hardware, for example, as a circuit that cooperates with a processor to perform various functions or steps.
  • a portion of the invention can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide a method and/or solution in accordance with the present invention.
  • the program instructions for invoking the method of the present invention may be stored in a fixed or removable recording medium and/or transmitted by a data stream in a broadcast or other signal bearing medium, and/or stored in a The working memory of the computer device in which the program instructions are run.
  • an embodiment in accordance with the present invention includes a device including a memory for storing computer program instructions and a processor for executing program instructions, wherein when the computer program instructions are executed by the processor, triggering
  • the apparatus operates based on the aforementioned methods and/or technical solutions in accordance with various embodiments of the present invention.

Abstract

Provided are a method and device for controlling output volume of audio in a playing device. The method comprises the following steps: acquiring user comfortable volume of a current user; acquiring playing environment information about a playing device; and, based on the playing environment information and the user comfortable volume, determining output volume of audio to be played, so as to play the audio to be played. By means of acquiring the user comfortable volume selected by the user, the output volume of the audio to be played is determined based on the user comfortable volume, so that the volume of audio listened to by the user is at a volume that the user feels comfortable. The influences on output volume caused by noises in the current environment and the distance between the user and the playing device can be determined, and the volume of the audio to be played is adjusted correspondingly, so as to ensure that the user can clearly listen to the audio to be played.

Description

一种在播放设备中控制音频的输出音量的方法和装置Method and device for controlling output volume of audio in a playback device 技术领域Technical field
本发明涉及计算机技术领域,尤其涉及一种用于在播放设备中控制音频的输出音量的方法和装置。The present invention relates to the field of computer technologies, and in particular, to a method and apparatus for controlling an output volume of audio in a playback device.
背景技术Background technique
现有技术中,播放设备在输出音频时,没有考虑到用户对舒适音量的不同需求,因而无法在接收到的音频音量过大或过小时,仍然以用户自己觉得舒适的音量来播放音频。并且,根据现有技术的方法,没有综合考虑噪声和用户与播放设备的距离对音频的输出音量的影响,从而无法结合当前环境中的噪声和用户与播放设备的距离来确定待播放音频的输出音量;另一方面,目前无论是呼叫中心还是移动设备通信中的实时(比如移动电话或者实时语音通话)和非实时(例如微信、易信等)的语音沟通中,都没能根据沟通方语音的音量进行智能的调节,从而使得用户需要手动的去根据对方的音量进行调整音量、大大的降低了用户体验的质量。In the prior art, the playback device does not take into account the different needs of the user for the comfort volume when outputting the audio, and thus cannot play the audio at a volume that the user feels comfortable when the received audio volume is too large or too small. Moreover, according to the method of the prior art, the influence of the noise and the distance between the user and the playback device on the output volume of the audio is not comprehensively considered, so that the output of the audio to be played cannot be determined by combining the noise in the current environment and the distance between the user and the playback device. Volume; on the other hand, in the real-time (such as mobile phone or real-time voice call) and non-real-time (such as WeChat, E-mail, etc.) voice communication in the call center or mobile device communication, the communication voice is not based on the communication party. The volume is intelligently adjusted, so that the user needs to manually adjust the volume according to the volume of the other party, which greatly reduces the quality of the user experience.
发明内容Summary of the invention
本发明的目的是提供一种用于在播放设备中控制音频的输出音量的方法和装置。It is an object of the present invention to provide a method and apparatus for controlling the output volume of audio in a playback device.
根据本发明的一个方面,提供了用于在播放设备中控制待播放音频的输出音量的方法,其中,所述方法包括以下步骤:According to an aspect of the invention, there is provided a method for controlling an output volume of an audio to be played in a playback device, wherein the method comprises the steps of:
a获取当前用户的用户舒适音量;a Get the user's user comfort volume;
b获取所述播放设备的播放环境信息;b acquiring playback environment information of the playback device;
c基于所述播放环境信息和所述用户舒适音量来确定所述待播放音频的输出音量,以播放所述待播放音频。c determining an output volume of the to-be-played audio based on the playback environment information and the user comfort volume to play the to-be-played audio.
根据本发明的一个方面,还提供了一种用于在播放设备中控制待播放音频的输出音量的音量控制装置,其中,所述音量控制装置包括: According to an aspect of the invention, there is also provided a volume control device for controlling an output volume of an audio to be played in a playback device, wherein the volume control device comprises:
第一获取装置,用于获取当前用户的用户舒适音量;a first obtaining device, configured to acquire a user user's comfortable volume;
第二获取装置,用于获取所述播放设备的播放环境信息;a second acquiring device, configured to acquire playing environment information of the playing device;
确定装置,用于基于所述播放环境信息和所述用户舒适音量来确定所述待播放音频的输出音量,以播放所述待播放音频。And determining means for determining an output volume of the to-be-played audio based on the playing environment information and the user comfort volume to play the to-be-played audio.
与现有技术相比,本发明具有以下优点:1)通过获取用户选择的用户舒适音量,以基于该用户舒适音量确定待播放音频的输出音量,使用户收听到的音频音量是其觉得舒适的音量;2)结合环境播放信息确定待播放音频的输出音量,故而能够确定当前环境中的噪声和用户与播放设备的距离对输出音量的影响,并对待播放音频的音量进行相应地调节,以保证用户能够在较为舒适的音量下清晰地收听到待播放音频。Compared with the prior art, the present invention has the following advantages: 1) obtaining the user's comfortable volume selected by the user to determine the output volume of the audio to be played based on the user's comfortable volume, so that the audio volume that the user listens to is comfortable. 2) Combining the environment playing information to determine the output volume of the audio to be played, so it is possible to determine the influence of the noise in the current environment and the distance between the user and the playing device on the output volume, and adjust the volume of the audio to be played accordingly to ensure The user can clearly listen to the audio to be played at a more comfortable volume.
附图说明DRAWINGS
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本发明的其它特征、目的和优点将会变得更明显:Other features, objects, and advantages of the present invention will become more apparent from the Detailed Description of Description
图1示意出了根据本发明的一种用于在播放设备中控制音频的输出音量的方法流程图;1 is a flow chart showing a method for controlling the output volume of audio in a playback device in accordance with the present invention;
图2示意出了根据本发明的一种用于在播放设备中控制音频的输出音量的音量控制装置的结构示意图。2 is a block diagram showing the structure of a volume control device for controlling the output volume of audio in a playback device in accordance with the present invention.
附图中相同或相似的附图标记代表相同或相似的部件。The same or similar reference numerals in the drawings denote the same or similar components.
具体实施方式detailed description
下面结合附图对本发明作进一步详细描述。The invention is further described in detail below with reference to the accompanying drawings.
图1示意出了根据本发明的一种用于在播放设备中控制待播放音频的输出音量的方法流程图。根据本发明的方法包括步骤S1、步骤S2和步骤S3。1 is a flow chart showing a method for controlling the output volume of audio to be played in a playback device in accordance with the present invention. The method according to the invention comprises a step S1, a step S2 and a step S3.
其中,所述待播放音频包括播放设备中需要被播放的音频数据。优选地,所述待播放音频包括但不限于以下任一种:The audio to be played includes audio data that needs to be played in the playback device. Preferably, the to-be-played audio includes but is not limited to any of the following:
1)呼叫通话时的语音音频,例如,手机通话时的对方的音频,又例如,呼叫中心所接收到的呼入电话的音频等; 1) voice audio when calling a call, for example, the audio of the other party when the mobile phone is talking, and, for example, the audio of the incoming call received by the call center;
2)经由网络传输的各类音频,如微信中的语音音频等;2) various types of audio transmitted via the network, such as voice and audio in WeChat;
3)存储于播放设备中的各类音频,如mp3等。3) Various types of audio stored in the playback device, such as mp3.
其中,根据本发明的方法通过音量控制装置来实现。Therein, the method according to the invention is implemented by a volume control device.
优选地,所述音量控制装置包含于播放控制插件中。所述播放控制插件可被加载至各类操作系统、软件、应用(APP)等可独立运行的程序中,以使被加载程序能够对待播放音频执行如本发明所述的相应处理。Preferably, the volume control device is included in a playback control plug-in. The playback control plug-in can be loaded into various independently operable programs such as various operating systems, software, applications (APPs), etc., to enable the loaded program to perform corresponding processing as described herein for the audio to be played.
更优选地,可通过将现有的插件与该音量控制装置相结合来构成所述播放控制插件,例如,在现有的微信插件中包含该音量控制装置,以获得该播放控制插件等。More preferably, the playback control plug-in can be constructed by combining an existing plug-in with the volume control device, for example, the volume control device is included in an existing WeChat plug-in to obtain the playback control plug-in or the like.
优选地,根据本发明的方法通过包含于播放设备中的音量控制装置来实现。所述播放设备包括一种能够按照事先设定或存储的指令,自动进行数值计算和/或信息处理的电子设备,其硬件包括但不限于微处理器、专用集成电路(ASIC)、可编程门阵列(FPGA)、数字处理器(DSP)、嵌入式设备等。所述播放设备包括网络设备和/或用户设备。其中,所述网络设备包括但不限于单个网络服务器、多个网络服务器组成的服务器组或基于云计算(Cloud Computing)的由大量主机或网络服务器构成的云,其中,云计算是分布式计算的一种,由一群松散耦合的计算机集组成的一个超级虚拟计算机。所述用户设备包括但不限于任何一种可与用户通过键盘、鼠标、遥控器、触摸板、或声控设备等方式进行人机交互的电子产品,例如,个人计算机、平板电脑、智能手机、PDA、游戏机、或IPTV等。其中,所述用户设备及网络设备所处的网络包括但不限于互联网、广域网、城域网、局域网、VPN网络等。Preferably, the method according to the invention is implemented by a volume control device included in the playback device. The playback device includes an electronic device capable of automatically performing numerical calculation and/or information processing according to an instruction set or stored in advance, the hardware of which includes but is not limited to a microprocessor, an application specific integrated circuit (ASIC), a programmable gate Arrays (FPGAs), digital processors (DSPs), embedded devices, and more. The playback device includes a network device and/or a user device. The network device includes, but is not limited to, a single network server, a server group composed of multiple network servers, or a cloud computing-based cloud composed of a large number of hosts or network servers, where the cloud computing is distributed computing. A super virtual computer consisting of a group of loosely coupled computers. The user equipment includes, but is not limited to, any electronic product that can interact with a user through a keyboard, a mouse, a remote controller, a touch panel, or a voice control device, such as a personal computer, a tablet computer, a smart phone, or a PDA. , game consoles, or IPTV. The network in which the user equipment and the network device are located includes, but is not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, a VPN network, and the like.
优选地,所述播放设备还包括声音输出装置,例如扬声器等。Preferably, the playback device further includes a sound output device such as a speaker or the like.
需要说明的是,所述用户设备、网络设备以及网络仅为举例,其他现有的或今后可能出现的用户设备、网络设备以及网络如可适用于本发明,也应包含在本发明保护范围以内,并以引用方式包含于此。It should be noted that the user equipment, the network equipment, and the network are only examples. Other existing or future user equipment, network equipment, and networks may be applicable to the present invention, and should also be included in the scope of the present invention. And is included here by reference.
参照图1,在步骤S1中,所述音量控制装置获取当前用户的用户 舒适音量。Referring to FIG. 1, in step S1, the volume control device acquires a user of a current user. Comfortable volume.
其中,所述用户舒适音量用于指示该用户觉得舒适的音量。Wherein, the user comfort volume is used to indicate the volume that the user feels comfortable.
其中,所述音量控制装置获取所述当前用户的用户舒适音量的方式包括以下至少任一种:The manner in which the volume control device acquires the user's comfortable volume of the current user includes at least one of the following:
1)通过读取预存的用户舒适音量来获取;1) Obtain by reading the pre-stored user comfort volume;
2)所述音量控制装置播放示例音频,其中,所述示例音频属于示例音频集,所述音频集中包含多个分别属于不同音量区段的示例音频;接着,音量控制装置获取用户对所述示例音频的调节指令;并根据所述用户对所述示例音频的调节指令,选择新的示例音频。音量控制装置重复上述步骤,直至用户确认所播放的示例音频的音量区段为用户舒适音量区段;则音量控制装置获取用户选择的所述舒适音量区段中的音量作为所述用户舒适音量。2) The volume control device plays example audio, wherein the example audio belongs to an example audio set, the audio set includes a plurality of example audios respectively belonging to different volume sections; then, the volume control device acquires a user to the example An adjustment command of the audio; and selecting a new example audio according to the adjustment instruction of the sample audio by the user. The volume control means repeats the above steps until the user confirms that the volume section of the played example audio is the user comfort volume section; then the volume control means acquires the volume in the comfort volume section selected by the user as the user comfort volume.
优选地,音量控制装置根据所述用户对所述示例音频的调节指令,选择与所播放的示例音频相邻音量区段的音频作为新的示例音频。Preferably, the volume control means selects audio of a volume section adjacent to the played example audio as new example audio according to the user's adjustment instruction to the example audio.
优选地,音量控制装置以预定的音量间隔m,对音量区段为[x,y]的音频进行采集,以获得多个示例音频,并基于二分查找的原理从该多个实例音频中选择示例音频并播放,从而逐步确定用户觉得舒适的音量区段。具体地,音量控制装置先播放多个示例音频中音量区段的起始值对应于[x,y]的中间位置的示例音频。接着,音量控制装置根据用户的调节指令确定查找范围是[a,x](如果偏大)或[a+m,y](如果偏小),并在该查找范围内选择新的示例音频并播放,该新的示例音频的音量区段的起始值对应于该查找范围的中间位置。音量控制装置根据用户的后续调剂指令,重复以上播放示例音频并根据用户的调节指令选择新的示例音频的步骤,直至用户确认所播放的示例音频的音量区段为用户舒适音量区段。Preferably, the volume control device collects the audio of the volume segment [x, y] at a predetermined volume interval m to obtain a plurality of example audios, and selects an example from the plurality of instance audios based on the principle of binary search. Audio and play to gradually determine the volume section that the user feels comfortable with. Specifically, the volume control device first plays example audio in which the start value of the volume section in the plurality of example audio corresponds to the intermediate position of [x, y]. Then, the volume control device determines, according to the adjustment instruction of the user, that the search range is [a, x] (if it is too large) or [a+m, y] (if it is too small), and selects a new example audio within the search range and Playback, the starting value of the volume section of the new example audio corresponds to the middle position of the search range. The volume control device repeats the above steps of playing the example audio and selecting a new example audio according to the user's adjustment command according to the user's subsequent adjustment instruction until the user confirms that the volume portion of the played example audio is the user comfort volume segment.
更优选地,音量控制装置可基于以下运算规则确定示例音频的音量区段的起始值s:确定的查找范围是[a,b],若a-b不能除尽2m,则s=a+m*(a-b/2m+1),若a-b能够除尽除2m,则s=a+m*(a-b/2m)。 More preferably, the volume control means may determine the starting value s of the volume section of the example audio based on the following operational rule: the determined search range is [a, b], and if ab cannot divide by 2 m, then s = a + m * (ab/2m+1), if ab can divide by 2m, then s=a+m*(ab/2m).
例如,音量控制装置通过对音量区段是20分贝(db,decibel))到80db的音频,以6db为音量间隔进行采集,以获得10个示例音频,其分别对应音量区段:[20db,26db],[26db,32db],[32db,38db],…[74db,80db]。则音量控制装置选择对应于中间位置的音量区段[44db,50db]的示例音频进行播放,并获取到用户对该示例音频的调节指令“偏大”,则音量控制装置选择在[20db,50db]的音量范围内选择中间的音量区段[32db,38db]的示例音频并播放。接着,音量控制装置再次获得用户对该示例音频的调节指令“偏小”,则音量控制装置确定在[38db,50db]之间的中间音量区段为音量区段[44db,50db],并选择其对应的示例音频进行播放,并且,音量控制装置获得用户的调节指令为“确定”,则音量控制装置该示例音频的音量区段[44db,50db]作为用户舒适音量区段。接着,音量控制装置获取用户进一步在该音量区段中选择“46db”的选择操作,确定该用户的用户舒适音量为46db。For example, the volume control device collects the audio at a volume interval of 20 decibels (db, decibel) to 80 db at 6 db to obtain 10 sample audios corresponding to the volume segment: [20db, 26db ], [26db, 32db], [32db, 38db], ... [74db, 80db]. Then, the volume control device selects the example audio corresponding to the volume segment [44db, 50db] of the intermediate position to play, and obtains the adjustment instruction of the sample audio to the user, which is "large", and the volume control device selects [20db, 50db ] Select the sample audio of the middle volume section [32db, 38db] in the volume range and play it. Then, the volume control device obtains the user's adjustment instruction for the example audio "small" again, and the volume control device determines that the intermediate volume segment between [38db, 50db] is the volume segment [44db, 50db], and selects Its corresponding example audio is played, and the volume control device obtains the user's adjustment command as "OK", and the volume control means the volume section [44db, 50db] of the example audio as the user comfort volume section. Next, the volume control device acquires a selection operation in which the user further selects "46db" in the volume section, and determines that the user's user comfort volume is 46 db.
需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,任何获取所述当前用户的用户舒适音量的方法的实现方式,均应包含在本发明的范围内。It should be noted that the foregoing examples are only for better explaining the technical solutions of the present invention, and are not intended to limit the present invention. Those skilled in the art should understand that any implementation manner of the method for obtaining the user's comfortable volume of the current user is It should be included in the scope of the invention.
接着,在步骤S2中,音量控制装置获取所述播放设备的播放环境信息。Next, in step S2, the volume control device acquires the playback environment information of the playback device.
其中,所述播放环境信息包括但不限于以下至少任一项:The playing environment information includes but is not limited to at least one of the following:
1)环境噪声音量;1) ambient noise volume;
2)播放距离,该播放距离包括播放设备与接收位置之间的距离。优选地,所述接收位置为人耳的位置。优选地,将播放设备前方的障碍物的位置作为接收位置。2) The playback distance, which includes the distance between the playback device and the receiving location. Preferably, the receiving position is a position of a human ear. Preferably, the position of the obstacle in front of the playback device is taken as the receiving position.
其中,音量控制装置获取所述播放设备的播放环境信息的方式包括以下至少任一种:The manner in which the volume control device acquires the playing environment information of the playing device includes at least one of the following:
1)所述播放环境信息包括环境噪声音量,所述音量控制装置通过检测环境噪声来获取环境噪声音频,以确定环境噪声音量。1) The playback environment information includes an ambient noise volume, and the volume control device acquires ambient noise audio by detecting ambient noise to determine an ambient noise volume.
具体地,音量控制装置采样获取与所述播放设备所处播放环境对应的噪声音频,然后,所述音量控制装置将所述噪声音频解码为预定格 式的音频数据,以确定所述噪声音频的环境噪声音量。Specifically, the volume control device samples and acquires noise audio corresponding to a playing environment in which the playback device is located, and then the volume control device decodes the noise audio into a predetermined grid. Audio data to determine the ambient noise volume of the noisy audio.
优选地,所述音量控制装置将噪声音频解码为脉码调制(PCM,Pulse Code Modulation)格式。Preferably, the volume control device decodes the noise audio into a Pulse Code Modulation (PCM) format.
优选地,所述音量控制装置根据解码为预定格式的音频数据,基于以下公式来确定所述噪声音频的环境噪声音量:Preferably, the volume control means determines the ambient noise volume of the noisy audio based on the audio data decoded into a predetermined format based on the following formula:
Figure PCTCN2014093760-appb-000001
Figure PCTCN2014093760-appb-000001
其中,SPL(Noise)表示环境噪声音量,n表示该噪声音频的振幅数量,A(k)表示噪声音频的第k个采样的振幅相对大小。Among them, SPL (Noise) represents the ambient noise volume, n represents the amplitude of the noise audio, and A (k) represents the amplitude relative magnitude of the k-th sample of the noise audio.
2)所述播放环境信息包括播放距离,音量控制装置通过检测自身与障碍物的距离来确定该播放距离。例如,音量控制装置通过播放设备中的传感装置获取到播放设备与其前方障碍物的距离,并将该距离作为播放距离。2) The playback environment information includes a play distance, and the volume control device determines the play distance by detecting the distance between itself and the obstacle. For example, the volume control device acquires the distance of the playback device from the obstacle in front of it by the sensing device in the playback device and uses the distance as the playback distance.
接着,在步骤S3中,音量控制装置基于所述播放环境信息和所述用户舒适音量来确定所述待播放音频的输出音量,以播放所述待播放音频。Next, in step S3, the volume control device determines an output volume of the to-be-played audio based on the playback environment information and the user comfort volume to play the to-be-played audio.
其中,音量控制装置基于所述播放环境信息和所述用户舒适音量来确定所述待播放音频的输出音量,以播放所述待播放音频的方式包括但不限于以下任一种:The volume control device determines the output volume of the to-be-played audio based on the playback environment information and the user comfort volume, and the manner of playing the to-be-played audio includes but is not limited to any of the following:
1)基于播放环境信息和用户舒适音量来确定待播放音频的输出音量。1) Determine the output volume of the audio to be played based on the playback environment information and the user comfort volume.
具体地,音量控制装置根据播放环境信息和用户舒适音量,并基于预定的运算规则,来确定待播放音频的输出音量值。Specifically, the volume control means determines the output volume value of the audio to be played based on the playback environment information and the user comfort volume, and based on predetermined operational rules.
例如,音量控制装置确定输出音量值=播放距离*用户舒适音量/标准距离。其中,所述标准距离用于表征最适合用户收听音频的距离。For example, the volume control device determines the output volume value = play distance * user comfort volume / standard distance. Wherein, the standard distance is used to represent the distance most suitable for the user to listen to the audio.
又例如,用户A通过手机中的微信接收来自用户B和用户C的音频。其中,用户A手机中的音量控制装置获得的用户A的用户舒适音量为32db,其中,输出音量=(1+环境噪声音量/用户舒适音量*100%)*用户舒适音量。在播放来自用户B的音频时,音量控制装置获取到用户A所在环境的环境噪声非常小,约为0db,则音量控制装置确定输出音量= 用户舒适音量=32db,并基于该输出音量来播放来自用户B的音频;接着,继续播放来自用户C的音频,此时,音量控制装置获取到用户A所在环境的环境噪声音量为8db,则音频控制装置确定输出音量=(1+8db/32db*100%)*32=40db,则此时音量控制装置以40db的音量来播放来自用户C的音频。显然,根据本发明的该种方式,能够根据用户A自身所处环境的环境播放信息以及用户A所偏好的舒适音量,灵活地对要播放的音频的输出音量进行调节,使得用户A无论在何种环境中,都能清晰、舒适地收听所播放的音频。As another example, user A receives audio from user B and user C via WeChat in the handset. The user comfort volume of the user A obtained by the volume control device in the user A mobile phone is 32 db, wherein the output volume=(1+ambient noise volume/user comfort volume*100%)* user comfort volume. When playing the audio from the user B, the volume control device obtains that the environment noise of the environment where the user A is located is very small, about 0 db, and the volume control device determines the output volume = The user comfort volume = 32db, and the audio from the user B is played based on the output volume; then, the audio from the user C is continued to be played. At this time, the volume control device obtains the ambient noise volume of the environment where the user A is located is 8 db, then the audio The control device determines the output volume = (1 + 8db / 32db * 100%) * 32 = 40db, then the volume control device plays the audio from the user C at a volume of 40db. Obviously, according to the manner of the present invention, it is possible to flexibly adjust the output volume of the audio to be played according to the environment playing information of the environment in which the user A is located and the comfort volume preferred by the user A, so that the user A is no matter what In a variety of environments, the audio played can be listened to clearly and comfortably.
2)音量控制装置基于所述播放环境信息、所述待播放音频的原始音量以及所述用户舒适音量来确定所述待播放音频的输出音量,以播放所述待播放音频。2) The volume control device determines an output volume of the to-be-played audio based on the playback environment information, the original volume of the audio to be played, and the user comfort volume to play the to-be-played audio.
其中,音量控制装置获取原始音量的方式包括但不限于以下任一种:The manner in which the volume control device obtains the original volume includes, but is not limited to, any of the following:
i)通过软件程序来获取待播放音频的音频数据,并将待播放音频的音频数据解码为预定格式的音频数据,以确定待播放音频的原始音量,该解码以确定原始音量的过程与步骤S2中音量控制装置解码环境噪声音频的过程相同或相似,此处不再赘述;i) obtaining audio data of the audio to be played by a software program, and decoding the audio data of the audio to be played into audio data of a predetermined format to determine the original volume of the audio to be played, the process of decoding to determine the original volume and step S2 The process of decoding the ambient noise audio by the middle volume control device is the same or similar, and will not be described here;
ii)通过与前述步骤S2中音量控制装置获取环境噪声音量相同或相似的方式来获取播放音频的音频数据,并将待播放音频的音频数据解码为预定格式的音频数据,以确定待播放音频的原始音量,此处不再赘述。Ii) acquiring audio data of the played audio by the same or similar manner as the volume of the ambient noise obtained by the volume control means in the foregoing step S2, and decoding the audio data of the audio to be played into audio data of a predetermined format to determine the audio to be played. The original volume is not described here.
其中,音量控制装置基于所述播放环境信息、所述待播放音频的原始音量以及所述用户舒适音量来确定所述待播放音频的输出音量,以播放所述待播放音频的方式包括但不限于以下任一种:The volume control device determines the output volume of the to-be-played audio based on the playback environment information, the original volume of the to-be-played audio, and the user's comfort volume, to play the to-be-played audio, including but not limited to Any of the following:
i)音量控制装置根据环境噪声音量和待播放音频的原始音量,先确定与环境噪声音量和原始音量对应的音量增益。然后,音量控制装置根据音量增益和用户舒适音量,来确定待播放音频的输出音量。i) The volume control device first determines the volume gain corresponding to the ambient noise volume and the original volume based on the ambient noise volume and the original volume of the audio to be played. Then, the volume control means determines the output volume of the audio to be played based on the volume gain and the user comfort volume.
其中,所述音量增益用于指示所述待播放音频在不同音量区段的环境噪声存在时所需要的增益。 The volume gain is used to indicate a gain required by the to-be-played audio in the presence of ambient noise of different volume segments.
例如,音量控制装置获取到用户舒适音量是40db,环境噪声音量是35db,并且待播放音频的原始音量是30db。接着,音量控制装置在预存的音频音量区段、噪声音量区段和音量增益三者的对应关系中查询,得到对应的音量增益是3db。然后,音量控制装置确定待播放音频的输出音量是用户舒适音量与音量增益的和,即43db。其中,所述对应关系的获取方式与后续优选实施例中获取音量对应关系的方式相似或相同。For example, the volume control device obtains that the user's comfort volume is 40 db, the ambient noise volume is 35 db, and the original volume of the audio to be played is 30 db. Then, the volume control device queries in the correspondence between the pre-stored audio volume segment, the noise volume segment, and the volume gain, and obtains a corresponding volume gain of 3 db. Then, the volume control device determines that the output volume of the audio to be played is the sum of the user's comfort volume and volume gain, that is, 43 db. The manner in which the corresponding relationship is obtained is similar to or the same as the manner in which the volume is obtained in the subsequent preferred embodiment.
ii)音量控制装置基于环境噪声音量、用户舒适音量和播放距离,来确定待播放音频的输出音量。Ii) The volume control device determines the output volume of the audio to be played based on the ambient noise volume, the user comfort volume, and the playback distance.
其中,所述播放环境信息包括环境噪声音量和播放距离,音量控制装置先根据环境噪声音量和待播放音频的原始音量,确定与环境噪声音量和原始音量对应的音量增益。接着,音量控制装置根据音量增益、播放距离以及所述用户舒适音量,来确定待播放音频的输出音量。The playing environment information includes an ambient noise volume and a playing distance, and the volume control device first determines a volume gain corresponding to the ambient noise volume and the original volume according to the ambient noise volume and the original volume of the audio to be played. Next, the volume control means determines the output volume of the audio to be played based on the volume gain, the playback distance, and the user comfort volume.
具体地,音量控制装置确定所述环境噪声音量对应的噪音音量区段,以及待播放音频的原始音量对应的音频音量区段。然后,音量控制装置根据音量对应关系,确定与环境噪声音量的噪音音量区段,以及所述原始音量的音频音量区段相对应的平均舒适音量。接着,音量控制装置根据所述原始音量以及所述平均舒适音量,来确定待播放音频的音量增益。Specifically, the volume control means determines a noise volume section corresponding to the ambient noise volume, and an audio volume section corresponding to the original volume of the audio to be played. Then, the volume control means determines the average volume of the sound corresponding to the noise volume section of the ambient noise volume and the audio volume section of the original volume based on the volume correspondence. Next, the volume control device determines the volume gain of the audio to be played based on the original volume and the average comfort volume.
其中,前述音量对应关系用于指示音频音量区段、噪音音量区段,以及与测试音频对应的平均舒适音量三者的对应关系。The foregoing volume correspondence relationship is used to indicate a correspondence relationship between an audio volume section, a noise volume section, and an average comfort volume corresponding to the test audio.
其中,音量控制控制装置获取所述音量对应关系的方式包括但不限于以下任一种:The manner in which the volume control device acquires the volume correspondence includes, but is not limited to, any one of the following:
i)读取预存的音量对应关系;i) reading the pre-stored volume correspondence;
ii)播放多个测试音频,分别获取与各个测试音频对应的一个或多个用户舒适音量,根据各个测试音频的一个或多个用户舒适音量,分别确定与各个测试音频对应的平均舒适音量,并保存测试音频中的候选音频的音频音量区段、测试音频中的候选噪声的噪声音量区段,以及测试音频对应的平均舒适音量三者的音量对应关系。其 中,该方式的具体实现将在后续优选实施例中予以详述,此处不再赘述。Ii) playing a plurality of test audios, respectively obtaining one or more user comfort volumes corresponding to the respective test audios, and determining an average comfort volume corresponding to each test audio according to one or more user comfort volumes of the respective test audios, and The volume volume section of the candidate audio in the test audio, the noise volume section of the candidate noise in the test audio, and the volume correspondence of the average comfort volume corresponding to the test audio are saved. Its The specific implementation of the mode will be detailed in the subsequent preferred embodiments, and details are not described herein again.
优选地,所述音量控制装置根据所述音量增益、所述播放距离以及所述用户舒适音量,基于以下公式来确定所述待播放音频的所述输出音量。Preferably, the volume control means determines the output volume of the audio to be played based on the volume gain, the play distance, and the user comfort volume based on the following formula.
Figure PCTCN2014093760-appb-000002
Figure PCTCN2014093760-appb-000002
其中,SPL(Actual)表示输出音量,SPL(Standard)表示用户舒适音量,L表示播放距离,Lstandard表示标准距离,SPL(Noise_gain)表示音量增益。Among them, SPL (Actual) represents the output volume, SPL (Standard) represents the user comfort volume, L represents the playback distance, L standard represents the standard distance, and SPL (Noise_gain) represents the volume gain.
其中,所述标准距离是预设的声音输出距离,优选地,标准距离可根据用户使用习惯来确定。例如,将用户历史使用手机时耳朵与手机扬声器之间的距离的平均值作为标准距离;又例如,将用户输入的距离值作为标准距离等。Wherein, the standard distance is a preset sound output distance, and preferably, the standard distance may be determined according to user usage habits. For example, the average value of the distance between the ear and the speaker of the mobile phone when the user history uses the mobile phone is taken as the standard distance; for example, the distance value input by the user is taken as the standard distance or the like.
根据本发明的第一示例,用户D的手机中存储的音量对应关系如下表1所示。According to the first example of the present invention, the volume correspondence stored in the mobile phone of the user D is as shown in Table 1 below.
表1Table 1
Figure PCTCN2014093760-appb-000003
Figure PCTCN2014093760-appb-000003
用户D通过该手机接听来自呼叫中心的客服甲的通话音频时,该手机中的音量控制装置确定当前的环境噪声音量为43db,来自客服甲的通话音频的原始音量较轻,为37db。则音量控制装置根据上表1所示的该音量对应关系,确定与当前的环境噪声音量对应的噪音音量区段是40db至60db,与原始音量对应的音频音量区段是20db至50db,并在该音量对应关系中查询,得到对应的平均舒适音量是46db。则音量控制 装置确定所述待播放音频的音量增益=|平均舒适音量-原始音量|=9db。接着,音量控制装置根据获取到的用户舒适音量35db,播放距离4cm,预存的标准距离3cm和已确定的音量增益9db,通过公式(2)确定该待播放音频的输出音量是52db;则音量控制装置以52db的音量向用户D输出来自客服甲的音频。When the user D answers the call audio of the customer service A from the call center through the mobile phone, the volume control device in the mobile phone determines that the current ambient noise volume is 43 db, and the original volume of the call audio from the customer service A is light, which is 37 db. The volume control device determines, according to the volume correspondence relationship shown in Table 1 above, that the noise volume segment corresponding to the current ambient noise volume is 40 db to 60 db, and the audio volume segment corresponding to the original volume is 20 db to 50 db, and The volume corresponding to the query, the corresponding average comfort volume is 46db. Volume control The device determines a volume gain of the audio to be played = | average comfort volume - original volume | = 9db. Then, the volume control device determines the output volume of the to-be-played audio is 52db according to the acquired user comfort volume 35db, the playback distance of 4cm, the pre-stored standard distance of 3cm, and the determined volume gain of 9db; The device outputs audio from the customer service A to the user D at a volume of 52 db.
优选地,在实时通话过程中,音量控制装置每隔预定时间段,对音频的原始音量和/或播放环境信息进行测量,并相应地基于新获得的原始音量和/或播放环境信息来更新输出音量值。以应对在实时通话中的多种影响因素的变化。Preferably, during a real-time call, the volume control device measures the original volume of the audio and/or the playing environment information every predetermined time period, and updates the output based on the newly obtained original volume and/or playing environment information accordingly. Volume value. To cope with changes in various influencing factors in real-time calls.
继续对本发明的第一示例进行说明,在用户D与该客服甲的通话过程中,当音量控制装置间隔预定时间再次测量时,确定客服甲的通话音频的原始音量变为70db,即客服甲的音量变大。则音量控制装置继续根据上表1所示的音量对应关系,确定与当前的环境噪声音量对应的噪音音量区段是40db至60db,与原始音量对应的音频音量区段是50db至80db,并在该音量对应关系中查询,得到对应的平均舒适音量是58db。则音量控制装置确定所述待播放音频的音量增益=|平均舒适音量-原始音量|=12db。接着,音量控制装置根据获取到的用户舒适音量35db,播放距离4cm,预存的标准距离3cm和已确定的音量增益12db,通过公式(2)初步确定该待播放音频的预计输出音量是55db,则音量控制装置55db的音量向用户D输出来自客服甲的音频。Continuing to explain the first example of the present invention, during the conversation between the user D and the customer service A, when the volume control device is measured again at a predetermined time interval, it is determined that the original volume of the call audio of the customer service A becomes 70 db, that is, the customer service A The volume becomes louder. Then, the volume control device continues to determine that the noise volume segment corresponding to the current ambient noise volume is 40 db to 60 db according to the volume correspondence relationship shown in Table 1 above, and the audio volume segment corresponding to the original volume is 50 db to 80 db, and The volume corresponding to the query, the corresponding average comfort volume is 58db. Then the volume control device determines the volume gain of the to-be-played audio=|average comfort volume-original volume|=12db. Then, the volume control device according to the obtained user comfort volume 35db, the play distance 4cm, the pre-stored standard distance 3cm and the determined volume gain 12db, and the preliminary output volume of the to-be-played audio is determined to be 55db by formula (2). The volume of the volume control device 55db outputs the audio from the customer service A to the user D.
根据本发明的方式,能够对于不同原始音量的音频做进一步调节,从而使得无论原始音频的大小如何,对于接听方,如用户D来说,其听到的音量总是在较为舒适的区域内,从而够避免由于说话方的音量过大或过小而降低用户体验的情况,使得用户能够更加清楚的接听音频。According to the mode of the present invention, it is possible to further adjust the audio of different original sounds, so that regardless of the size of the original audio, for the answering party, such as the user D, the volume that is heard is always in a relatively comfortable area. Therefore, it is possible to avoid a situation in which the user experience is reduced due to the speaker's volume being too large or too small, so that the user can listen to the audio more clearly.
优选地,所述音量控制装置根据所述音量增益、所述播放距离以及所述用户舒适音量,来确定所述待播放音频的所述输出音量的方式具体包括:音量控制装置根据所述音量增益、所述播放距离、所述用户舒适音量以及所述原始音量来确定所述待播放音频的音量控制信息,然后,基于所述音量控制信息对原始音量进行调节以获得所述待 播放音频的所述输出音量。Preferably, the manner in which the volume control device determines the output volume of the audio to be played according to the volume gain, the play distance, and the user comfort volume specifically includes: the volume control device according to the volume gain Determining the volume control information of the to-be-played audio by the playback distance, the user comfort volume, and the original volume, and then adjusting the original volume based on the volume control information to obtain the to-be-supplied The output volume of the audio is played.
优选地,所述音量控制信息包括输出音量与原始音量之间的差值。Preferably, the volume control information includes a difference between the output volume and the original volume.
优选地,所述音量控制信息包括输出音量与原始音量之间的比例关系。Preferably, the volume control information includes a proportional relationship between the output volume and the original volume.
其中,所述音量控制装置基于以下公式来确定所述音量控制信息:Wherein the volume control device determines the volume control information based on the following formula:
Figure PCTCN2014093760-appb-000004
Figure PCTCN2014093760-appb-000004
其中,Controlparam表示音量控制信息,SPL(Actual)表示输出音量,SPL(original)表示原始音量。Among them, Control param represents volume control information, SPL (Actual) represents output volume, and SPL (original) represents original volume.
例如,音量控制根据公式(3)得到的Controlparam是5.62。然后,音量控制装置将待播放音频的能量值调节为原来的5.62倍,以播放该待播放音频。需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,任何根据环境噪声音量和待播放音频的原始音量,确定与环境噪声音量和原始音量对应的音量增益。接着,音量控制装置根据音量增益、播放距离以及所述用户舒适音量,来确定待播放音频的输出音量的实现方式,均应包含在本发明的范围内。For example, the volume control is based on Equation (3) and the Control param is 5.62. Then, the volume control device adjusts the energy value of the audio to be played back to 5.62 times the original to play the to-be-played audio. It should be noted that the above examples are only for better explaining the technical solution of the present invention, and are not limited to the present invention. Those skilled in the art should understand that any environmental noise is determined according to the ambient noise volume and the original volume of the audio to be played. The volume gain corresponding to the volume and the original volume. Next, the volume control means determines the implementation of the output volume of the audio to be played based on the volume gain, the playback distance, and the user's comfort volume, all of which are included in the scope of the present invention.
根据本发明的一个优选实施方案,根据本发明的方法还包括步骤S4(图未示)。According to a preferred embodiment of the invention, the method according to the invention further comprises a step S4 (not shown).
在步骤S4中,音量控制装置呈现处理相关信息。其中,所述处理相关信息用于提示用户所述待播放音频的原始音量的被处理状态。In step S4, the volume control means presents processing related information. The processing related information is used to prompt the user for the processed state of the original volume of the audio to be played.
其中,所述被处理状态包括但不限于以下任一项:The processed state includes but is not limited to any one of the following:
1)将被处理;1) will be processed;
2)正在被处理;2) being processed;
3)已被处理。3) Has been processed.
优选地,所述处理相关信息包括但不限于以下至少任一种形式:Preferably, the processing related information includes, but is not limited to, at least one of the following forms:
1)文字信息;例如,在播放音频时,呈现该音频的原始音量值以及当前的输出音量值,又例如,向用户呈现“该音频已经过音量转换处理!”的提示信息等;再例如,在实时通话过程中,根据通话对方的语音大 小,持续地更新显示来自通话对方的音频的原始音量值大小,以及相应地对该音频进行相应处理后的输出音量的值的大小。1) text information; for example, when the audio is played, the original volume value of the audio and the current output volume value are presented, and, for example, the user is presented with the prompt message "The audio has been subjected to the volume conversion processing!"; for example, During the real-time call, according to the voice of the other party Small, continuously updating the size of the original volume value showing the audio from the other party, and the value of the output volume corresponding to the audio correspondingly.
2)用于指示原始音量已经过处理的图像和/或动画信息;例如,在播放过程中,分别用两条声波线来指示待播放音频的原始音量和输出音量,并利用声波线的跳动来显示音量值的实时变化;又例如,当接收到一个微信音频后,先向用户呈现红色叹号以提示用户将要处理该音频,在处理过程中,显示红色进度条以表示正在处理,并当处理完成后,在该微信音频前显示一个绿色的勾以提示用户处理完成等。2) for indicating image and/or animation information that the original volume has been processed; for example, during playback, two sound lines are used to indicate the original volume and output volume of the audio to be played, and the sound wave is used to jump Display real-time changes in volume values; for example, when a WeChat audio is received, a red exclamation mark is presented to the user to prompt the user to process the audio. During processing, a red progress bar is displayed to indicate that processing is in progress, and when processing is complete After that, a green tick is displayed in front of the WeChat audio to prompt the user to complete the process.
根据本发明的一个优选实施方案,所述播放设备包括网络设备,属于网络设备的音量控制装置基于所述播放环境信息和所述用户舒适音量来确定所述待播放音频的所述输出音量;将所述待播放音频的所述原始音量更新为所述输出音量;将更新后的所述待播放音频发送至用户设备,以供其播放所述待播放音频。According to a preferred embodiment of the present invention, the playback device includes a network device, and a volume control device belonging to the network device determines the output volume of the audio to be played based on the playback environment information and the user comfort volume; The original volume of the audio to be played is updated to the output volume; and the updated audio to be played is sent to the user equipment for playing the to-be-played audio.
网络电话服务器,例如云ROM服务器,接收到用户设备反馈的播放环境信息包括:播放距离5cm,环境噪声音量55db。接着,该云ROM服务器中的音量控制装置获取到该用户设备的用户对应的用户舒适音量为31db,用于发送至该用户设备的通话音频的原始音量为56db,标准距离为2cm。并且,该云ROM服务器中所存储的音量对应关系如表1所示。则音量控制装置根据该音量对应关系查询,得到与该用户设备的环境噪声音量以及该通话音频的原始音量对应的平均舒适音量为58db,则音量控制装置根据平均舒适音量58db与所获得的原始音量56db之间的差值2db,确定该通话音频的音量增益为2db,并根据所获得的音量增益、播放距离以及用户舒适音量,通过公式(2)得到输出音量为48db。接着,音量控制装置将该通话音频的原始音量的这一属性更新为48db,并将更新后的通话音频发送至用户设备,以供其播放所述待播放音频,从而保证该用户能够在较舒适的音量下清晰地收听到来自通话方的通话音频。The VoIP server, such as the cloud ROM server, receives the playback environment information fed back by the user equipment, including: a playback distance of 5 cm, and an ambient noise volume of 55 db. Then, the volume control device in the cloud ROM server obtains the user comfort volume corresponding to the user of the user equipment is 31 db, and the original volume of the call audio sent to the user equipment is 56 db, and the standard distance is 2 cm. Moreover, the volume correspondence relationship stored in the cloud ROM server is as shown in Table 1. Then, the volume control device queries according to the volume correspondence relationship, and obtains an average comfort volume corresponding to the ambient noise volume of the user equipment and the original volume of the call audio is 58 db, and the volume control device obtains the original volume according to the average comfort volume 58db. The difference between the 56db is 2db, and the volume gain of the call audio is determined to be 2db, and the output volume is 48db according to the formula (2) according to the obtained volume gain, play distance and user comfort volume. Then, the volume control device updates the attribute of the original volume of the call audio to 48 db, and sends the updated call audio to the user equipment for playing the to-be-played audio, thereby ensuring that the user can be more comfortable. The volume of the call from the party is clearly heard under the volume.
需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,任何确定所述待播放音 频的所述输出音量,将所述待播放音频的所述原始音量更新为所述输出音量,然后将更新后的所述待播放音频发送至用户设备的方法的实现方式,均应包含在本发明的范围内。It should be noted that the above examples are only for better explaining the technical solutions of the present invention, and are not intended to limit the present invention. Those skilled in the art should understand that any of the to-be-played tones is determined. The output volume of the frequency, the method of updating the original volume of the audio to be played to the output volume, and then transmitting the updated audio to be played to the user equipment, Within the scope of the invention.
根据本发明的又一优选实施例,根据本实施例的方法还包括步骤S5(图未示)、步骤S6(图未示)和步骤S7(图未示)。According to still another preferred embodiment of the present invention, the method according to the present embodiment further includes step S5 (not shown), step S6 (not shown), and step S7 (not shown).
在步骤S5中,音量控制装置播放多个测试音频。In step S5, the volume control device plays a plurality of test audios.
其中,所述测试音频包括由多个候选音频中选择一个候选音频以及由多个候选噪声中选择一个候选噪声,其中,所述多个候选音频分别对应至少一个音频音量区段,所述多个噪音音频分别对应至少一个噪声音量区段。The test audio includes selecting one candidate audio from among a plurality of candidate audios and selecting one candidate noise from the plurality of candidate noises, wherein the plurality of candidate audios respectively correspond to at least one audio volume segment, the plurality of The noise audio corresponds to at least one noise volume section.
接着,在步骤S6中,音量控制装置分别获取与各个测试音频对应的一个或多个用户舒适音量。Next, in step S6, the volume control device respectively acquires one or more user comfort volumes corresponding to the respective test audios.
其中,音量控制装置获取与测试音频对应的用户舒适音量的方式与前述步骤S1中音量控制装置获取当前用户的用户舒适音量的方式相同或相似,在此不再赘述。The manner in which the volume control device obtains the user's comfortable volume corresponding to the test audio is the same as or similar to the manner in which the volume control device obtains the user's user's comfortable volume in the foregoing step S1, and details are not described herein again.
接着,在步骤S7中,音量控制装置根据各个测试音频的一个或多个用户舒适音量,分别确定与各个测试音频对应的平均舒适音量,并保存所述测试音频中的候选音频的音频音量区段、所述测试音频中的候选噪声的噪声音量区段,以及所述测试音频对应的平均舒适音量三者的音量对应关系。Next, in step S7, the volume control means respectively determines an average comfort volume corresponding to each test audio according to one or more user comfort volumes of the respective test audios, and saves an audio volume section of the candidate audio in the test audio. And a volume corresponding relationship between the noise volume section of the candidate noise in the test audio and the average comfort volume corresponding to the test audio.
例如,候选音频包括Audio_1和Audio_2,候选噪声包括Noise_1到Noise_4,其各自包括的音量区段如表2所示。音量控制装置基于各个候选音频与各个候选噪声的任意组合,获得如表3所示的测试音频Test_1至Test_8。音量控制装置播放该多个测试音频Test_1,接着,音量控制装置获取与测试音频Test_1对应的三个用户舒适音量20db、28db、24db,并根据该三个用户舒适音量,确定与测试音频Test_1对应的平均舒适音量是24db,并保存测试音频Test_1的候选音频的音量区段[20db,50db]、测试音频Test_1的候选噪声的噪声音量区段[20db,40db]以及所获得的平均舒适音量24db这三者的音量对应关系。并且,音量 控制装置分别对测试音频Test_2至Test_8执行相似的操作,以获得如表3中所示的,各个测试音频中的候选音频的音频音量区段、所述测试音频中的候选噪声的噪声音量区段,以及测试音频对应的平均舒适音量三者的音量对应关系。For example, the candidate audio includes Audio_1 and Audio_2, and the candidate noise includes Noise_1 to Noise_4, and the volume sections included in each are as shown in Table 2. The volume control means obtains the test audios Test_1 to Test_8 as shown in Table 3 based on any combination of the respective candidate audios and the respective candidate noises. The volume control device plays the plurality of test audios Test_1, and then the volume control device acquires three user comfort volumes 20db, 28db, 24db corresponding to the test audio Test_1, and determines the test audio test_1 according to the three user comfort volumes. The average comfort volume is 24db, and the volume section [20db, 50db] of the candidate audio of the test audio Test_1 is saved, the noise volume section of the candidate noise of the test audio Test_1 [20db, 40db], and the average comfort volume obtained by the 24db are three. The volume correspondence of the person. And the volume The control device performs similar operations on the test audios Test_2 to Test_8, respectively, to obtain an audio volume section of the candidate audio in each test audio, and a noise volume section of the candidate noise in the test audio as shown in Table 3. And the volume correspondence of the average comfort volume corresponding to the test audio.
表2Table 2
候选音频Candidate audio 音频音量区段Audio volume section 候选噪声Candidate noise 噪声音量区段Noise volume section
Audio_1Audio_1 [20db,50db][20db, 50db] Noise_1Noise_1 [20db,40db][20db, 40db]
Audio_2Audio_2 [20db,50db][20db, 50db] Noise_2Noise_2 [40db,60db][40db, 60db]
    Noise_3Noise_3 [60db,80db][60db, 80db]
    Noise_4Noise_4 [80db,100db][80db,100db]
表3table 3
测试音频Test audio 音频音量区段Audio volume section 噪声音量区段Noise volume section 平均舒适音量Average comfort volume
Test_1Test_1 [20db,50db][20db, 50db] [20db,40db][20db, 40db] 24twenty four
Test_2Test_2 [20db,50db][20db, 50db] [40db,60db][40db, 60db] 4646
Test_3Test_3 [20db,50db][20db, 50db] [60db,80db][60db, 80db] 6363
Test_4Test_4 [20db,50db][20db, 50db] [80db,100db][80db,100db] 8585
Test_5Test_5 [50db,80db][50db, 80db] [20db,40db][20db, 40db] 5454
Test_6Test_6 [50db,80db][50db, 80db] [40db,60db][40db, 60db] 5555
Test_7Test_7 [50db,80db][50db, 80db] [60db,80db][60db, 80db] 6868
Test_8Test_8 [50db,80db][50db, 80db] [80db,100db][80db,100db] 8282
需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,任何播放多个测试音频并分别获取与各个测试音频对应的一个或多个用户舒适音量,确定与各个测试音频对应的平均舒适音量,并保存所述测试音频中的候选音频 的音频音量区段、所述测试音频中的候选噪声的噪声音量区段,以及所述测试音频对应的平均舒适音量三者的音量对应关系的实现方式,均应包含在本发明的范围内。It should be noted that the above examples are only for better explaining the technical solutions of the present invention, and are not intended to limit the present invention. Those skilled in the art should understand that any one of the test audios is played and one or the corresponding one of the test audios is respectively obtained. a plurality of user comfort volumes, determining an average comfort volume corresponding to each test audio, and saving candidate audio in the test audio The implementation of the audio volume section, the noise volume section of the candidate noise in the test audio, and the volume correspondence of the average comfort volume corresponding to the test audio are all included in the scope of the present invention.
根据本发明的方案,通过获取用户选择的用户舒适音量,以基于该用户舒适音量确定待播放音频的输出音量,使用户收听到的音频音量是其觉得舒适的音量;结合环境播放信息确定待播放音频的输出音量,故而能够确定当前环境中的噪声和用户与播放设备的距离对输出音量的影响,并对待播放音频的音量进行相应地调节,以保证用户能够在较为舒适的音量下清晰地收听到待播放音频。According to the solution of the present invention, the user's comfort volume selected by the user is obtained, and the output volume of the audio to be played is determined based on the user's comfortable volume, so that the audio volume that the user listens to is the volume that the user feels comfortable; the environment playback information is determined to be played. The output volume of the audio, so it is possible to determine the influence of the noise in the current environment and the distance between the user and the playback device on the output volume, and adjust the volume of the audio to be played to ensure that the user can listen clearly at a relatively comfortable volume. To the audio to be played.
图2示意出了根据本发明的一种用于在播放设备中控制音频的输出音量的音量控制装置的结构示意图。跟据本发明的音量控制装置包括第一获取装置1、第二获取装置2和确定装置3。2 is a block diagram showing the structure of a volume control device for controlling the output volume of audio in a playback device in accordance with the present invention. The volume control device according to the present invention includes a first acquisition device 1, a second acquisition device 2, and a determination device 3.
参照图2,第一获取装置1获取当前用户的用户舒适音量。Referring to FIG. 2, the first acquisition device 1 acquires the user comfort volume of the current user.
其中,所述用户舒适音量用于指示该用户觉得舒适的音量。Wherein, the user comfort volume is used to indicate the volume that the user feels comfortable.
其中,第一获取装置1获取所述当前用户的用户舒适音量的方式包括以下至少任一种:The manner in which the first acquiring device 1 acquires the user's comfortable volume of the current user includes at least one of the following:
1)通过读取预存的用户舒适音量;1) by reading the pre-stored user comfort volume;
2)第一获取装置1包括第二播放装置(图未示)第二子获取装置(图未示)、选择装置(图未示)、第七子确定装置(图未示)和第八子获取装置(图未示)。其中,第二播放装置播放示例音频,所述示例音频属于示例音频集,所述音频集中包含多个分别属于不同音量区段的示例音频;第二子获取装置获取用户对所述示例音频的调节指令;选择装置根据所述用户对所述示例音频的调节指令,选择新的示例音频。第七子确定装置确认所播放的示例音频的音量区段为用户舒适音量区段;第八子获取装置获取用户选择的所述舒适音量区段中的音量作为所述用户舒适音量。2) The first obtaining device 1 includes a second playing device (not shown), a second child acquiring device (not shown), a selecting device (not shown), a seventh child determining device (not shown), and a eighth child. Obtain the device (not shown). Wherein the second playback device plays example audio, the example audio belongs to an example audio set, the audio set includes a plurality of example audios respectively belonging to different volume sections; and the second sub-acquisition device acquires adjustment of the example audio by the user An instruction device selects a new example audio based on the user's adjustment instruction to the example audio. The seventh sub-determining means confirms that the volume section of the played example audio is the user comfort volume section; the eighth sub-acquisition means acquires the volume in the comfort volume section selected by the user as the user comfort volume.
优选地,选择装置根据所述用户对所述示例音频的调节指令,选择与所播放的示例音频相邻音量区段的音频作为新的示例音频。Preferably, the selecting means selects audio of a volume section adjacent to the played example audio as new example audio according to the user's adjustment instruction to the example audio.
优选地,音量控制装置以预定的音量间隔m,对音量区段为[x, y]的音频进行采集,以获得多个示例音频,并基于二分查找的原理从该多个实例音频中选择示例音频并播放,从而逐步确定用户觉得舒适的音量区段。具体地,第二播放装置播放多个示例音频中音量区段的起始值对应于[x,y]的中间位置的示例音频。接着,选择装置根据用户的调节指令确定查找范围是[a,x](如果偏大)或[a+m,y](如果偏小),并在该查找范围内选择新的示例音频并播放,该新的示例音频的音量区段的起始值对应于该查找范围的中间位置。音量控制装置根据用户的后续调剂指令,重复以上播放示例音频并根据用户的调节指令选择新的示例音频的步骤,直至第七子确定装置确认所播放的示例音频的音量区段为用户舒适音量区段。Preferably, the volume control means is at a predetermined volume interval m, and the volume section is [x, The audio of y] is acquired to obtain a plurality of example audios, and the example audio is selected from the plurality of example audios based on the principle of binary search and played to gradually determine the volume section that the user feels comfortable with. Specifically, the second playback device plays example audio in which the start value of the volume section in the plurality of example audio corresponds to the intermediate position of [x, y]. Then, the selection device determines, according to the adjustment instruction of the user, that the search range is [a, x] (if it is too large) or [a+m, y] (if it is too small), and selects a new example audio and plays in the search range. The starting value of the volume section of the new example audio corresponds to the middle position of the search range. The volume control device repeats the step of playing the example audio and selecting a new example audio according to the user's adjustment instruction according to the user's subsequent adjustment instruction until the seventh sub-determination device confirms that the volume portion of the played example audio is the user comfort volume area. segment.
更优选地,选择装置可基于以下运算规则确定示例音频的音量区段的起始值s:确定的查找范围是[a,b],若a-b不能除尽2m,则s=a+m*(a-b/2m+1),若a-b能够除尽除2m,则s=a+m*(a-b/2m)。More preferably, the selection means may determine the starting value s of the volume section of the example audio based on the following operational rule: the determined search range is [a, b], and if ab cannot divide by 2 m, then s = a + m * ( Ab/2m+1), if ab can divide by 2m, then s=a+m*(ab/2m).
例如,音量控制装置通过对音量区段是20分贝(db,decibel))到80db的音频,以6db为音量间隔进行采集,以获得10个示例音频,其分别对应音量区段:[20db,26db],[26db,32db],[32db,38db],…[74db,80db]。则第二播放装置选择对应于中间位置的音量区段[44db,50db]的示例音频进行播放,第二子获取装置获取到用户对该示例音频的调节指令“偏大”,则选择装置选择在[20db,50db]的音量范围内选择中间的音量区段[32db,38db]的示例音频并由第二播放装置播放该示例音频。接着,第二子获取装置再次获得用户对该示例音频的调节指令“偏小”,则音量控制装置确定在[38db,50db]之间的中间音量区段为音量区段[44db,50db],并选择其对应的示例音频进行播放,并且,第二子获取装置控制装置获得用户的调节指令为“确定”,则第七子确定装置将该示例音频的音量区段[44db,50db]作为用户舒适音量区段。接着,第八子获取装置获取用户进一步在该音量区段中选择“46db”的选择操作,确定该用户的用户舒适音量为46db。For example, the volume control device collects the audio at a volume interval of 20 decibels (db, decibel) to 80 db at 6 db to obtain 10 sample audios corresponding to the volume segment: [20db, 26db ], [26db, 32db], [32db, 38db], ... [74db, 80db]. Then, the second playback device selects the example audio corresponding to the volume segment [44db, 50db] of the intermediate position for playing, and the second sub-acquisition device acquires the adjustment command of the sample audio for the user to be "large", then the selection device selects The example audio of the middle volume section [32db, 38db] is selected within the volume range of [20db, 50db] and the example audio is played by the second playback device. Then, the second sub-acquisition device obtains the adjustment instruction “small” of the sample audio by the user again, and the volume control device determines that the intermediate volume segment between [38db, 50db] is the volume segment [44db, 50db], And selecting its corresponding example audio for playing, and the second sub-acquisition device control device obtains the adjustment instruction of the user as “determining”, and the seventh sub-determining device uses the volume segment [44db, 50db] of the example audio as the user. Comfortable volume section. Next, the eighth sub-acquisition device acquires a selection operation in which the user further selects "46db" in the volume section, and determines that the user's user comfort volume is 46 db.
需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,任何获取所述当前用户 的用户舒适音量的方法的实现方式,均应包含在本发明的范围内。It should be noted that the above examples are only for better explaining the technical solutions of the present invention, and are not intended to limit the present invention. Those skilled in the art should understand that any current user is obtained. The implementation of the method of user comfort volume should be included in the scope of the present invention.
接着,第二获取装置2获取所述播放设备的播放环境信息。Next, the second obtaining device 2 acquires playing environment information of the playing device.
其中,所述播放环境信息包括但不限于以下至少任一项:The playing environment information includes but is not limited to at least one of the following:
1)环境噪声音量;1) ambient noise volume;
2)播放距离,该播放距离包括播放设备与接收位置之间的距离。优选地,所述接收位置为人耳的位置。优选地,将播放设备前方的障碍物的位置作为接收位置。2) The playback distance, which includes the distance between the playback device and the receiving location. Preferably, the receiving position is a position of a human ear. Preferably, the position of the obstacle in front of the playback device is taken as the receiving position.
其中,第二获取装置2获取所述播放设备的播放环境信息的方式包括以下至少任一种:The manner in which the second obtaining device 2 acquires the playing environment information of the playing device includes at least one of the following:
1)所述播放环境信息包括环境噪声音量,第二获取装置2通过检测环境噪声来获取环境噪声音频,以确定环境噪声音量。第二获取装置2包括采集装置(图未示)和解码装置(图未示)。1) The playback environment information includes an ambient noise volume, and the second acquisition device 2 acquires ambient noise audio by detecting ambient noise to determine an ambient noise volume. The second acquisition device 2 includes an acquisition device (not shown) and a decoding device (not shown).
具体地,采集装置采样获取与所述播放设备所处播放环境对应的噪声音频,然后,解码装置将所述噪声音频解码为预定格式的音频数据,以确定所述噪声音频的环境噪声音量。Specifically, the collecting device samples and acquires noise audio corresponding to the playing environment in which the playing device is located, and then the decoding device decodes the noise audio into audio data of a predetermined format to determine an ambient noise volume of the noise audio.
优选地,解码装置将噪声音脉码调制(PCM,Pulse Code Modulation)格式。Preferably, the decoding device modulates a Pulse Code Modulation (PCM) format.
优选地,解码装置根据解码为预定格式的音频数据,基于以下公式来确定所述噪声音频的环境噪声音量:Preferably, the decoding means determines the ambient noise volume of the noisy audio based on the audio data decoded into a predetermined format based on the following formula:
Figure PCTCN2014093760-appb-000005
Figure PCTCN2014093760-appb-000005
其中,SPL(Noise)表示环境噪声音量,n表示该噪声音频的振幅数量,A(k)表示噪声音频的第k个采样的振幅相对大小。Among them, SPL (Noise) represents the ambient noise volume, n represents the amplitude of the noise audio, and A (k) represents the amplitude relative magnitude of the k-th sample of the noise audio.
2)所述播放环境信息包括播放距离,第二获取装置2通过检测自身与障碍物的距离来确定该播放距离。例如,第二获取装置2通过播放设备中的传感装置获取到播放设备与其前方障碍物的距离,并将该距离作为播放距离。2) The playback environment information includes a play distance, and the second acquisition device 2 determines the play distance by detecting the distance between itself and the obstacle. For example, the second acquisition device 2 acquires the distance of the playback device from the obstacle in front of it by the sensing device in the playback device, and uses the distance as the playback distance.
接着,确定装置3基于所述播放环境信息和所述用户舒适音量来确定所述待播放音频的输出音量,以播放所述待播放音频。Next, the determining device 3 determines an output volume of the to-be-played audio based on the playing environment information and the user comfort volume to play the to-be-played audio.
其中,确定装置3基于所述播放环境信息和所述用户舒适音量来确 定所述待播放音频的输出音量,以播放所述待播放音频的方式包括但不限于以下任一种:Wherein the determining means 3 determines based on the playing environment information and the user comfort volume The manner of playing the output volume of the to-be-played audio to play the to-be-played audio includes but is not limited to any of the following:
1)基于播放环境信息和用户舒适音量来确定待播放音频的输出音量。1) Determine the output volume of the audio to be played based on the playback environment information and the user comfort volume.
具体地,确定装置3根据播放环境信息和用户舒适音量,并基于预定的运算规则,来确定待播放音频的输出音量值。Specifically, the determining means 3 determines the output volume value of the audio to be played based on the playback environment information and the user comfort volume, and based on predetermined operational rules.
例如,确定装置3将确定输出音量值=播放距离*用户舒适音量/标准距离。其中,所述标准距离用于表征最适合用户收听音频的距离。For example, the determining device 3 will determine the output volume value = play distance * user comfort volume / standard distance. Wherein, the standard distance is used to represent the distance most suitable for the user to listen to the audio.
又例如,用户A通过手机中的微信接收来自用户B和用户C的音频。其中,用户A手机中的第一获取装置1获得的用户A的用户舒适音量为32db,其中,输出音量=(1+环境噪声音量/用户舒适音量*100%)*用户舒适音量。在播放来自用户B的音频时,第二获取装置2获取到用户A所在环境的环境噪声非常小,约为0db,则确定装置3确定输出音量=用户舒适音量=32db,则音量控制装置基于该输出音量来播放来自用户B的音频;接着,继续播放来自用户C的音频,此时,第二获取装置2获取到用户A所在环境的环境噪声音量为8db,则确定装置3确定输出音量=(1+8db/32db*100%)*32=40db,则此时音量控制装置以40db的音量来播放来自用户C的音频。显然,根据本发明的该种方式,能够根据用户A自身所处环境的环境播放信息以及用户A所偏好的舒适音量,灵活地对要播放的音频的输出音量进行调节,使得用户A无论在何种环境中,都能清晰、舒适地收听所播放的音频。As another example, user A receives audio from user B and user C via WeChat in the handset. The user comfort volume of the user A obtained by the first obtaining device 1 in the user A mobile phone is 32 db, wherein the output volume=(1+ambient noise volume/user comfort volume*100%)* user comfort volume. When the audio from the user B is played, the second acquisition device 2 acquires that the environment noise of the environment where the user A is located is very small, about 0 db, and the determining device 3 determines the output volume=user comfort volume=32 db, and the volume control device is based on The volume is output to play the audio from the user B; then, the audio from the user C is continued to be played. At this time, the second acquisition device 2 acquires the ambient noise volume of the environment in which the user A is located is 8 db, and the determining device 3 determines the output volume = ( 1+8db/32db*100%)*32=40db, then the volume control device plays the audio from user C at a volume of 40db. Obviously, according to the manner of the present invention, it is possible to flexibly adjust the output volume of the audio to be played according to the environment playing information of the environment in which the user A is located and the comfort volume preferred by the user A, so that the user A is no matter what In a variety of environments, the audio played can be listened to clearly and comfortably.
2)确定装置3基于所述播放环境信息、所述待播放音频的原始音量以及所述用户舒适音量来确定所述待播放音频的输出音量,以播放所述待播放音频。2) The determining device 3 determines an output volume of the to-be-played audio based on the playback environment information, the original volume of the audio to be played, and the user comfort volume to play the to-be-played audio.
其中,音量控制装置获取原始音量的方式包括但不限于以下任一种:The manner in which the volume control device obtains the original volume includes, but is not limited to, any of the following:
i)通过软件程序来获取待播放音频的音频数据,并将待播放音频的音频数据解码为预定格式的音频数据,以确定待播放音频的原始音量,该解码以确定原始音量的过程与步骤S2中音量控制装置解码 环境噪声音频的过程相同或相似,此处不再赘述;i) obtaining audio data of the audio to be played by a software program, and decoding the audio data of the audio to be played into audio data of a predetermined format to determine the original volume of the audio to be played, the process of decoding to determine the original volume and step S2 Medium volume control device decoding The process of ambient noise audio is the same or similar and will not be described here;
ii)通过与前述步骤S2中音量控制装置获取环境噪声音量相同或相似的方式来获取播放音频的音频数据,并将待播放音频的音频数据解码为预定格式的音频数据,以确定待播放音频的原始音量,此处不再赘述。Ii) acquiring audio data of the played audio by the same or similar manner as the volume of the ambient noise obtained by the volume control means in the foregoing step S2, and decoding the audio data of the audio to be played into audio data of a predetermined format to determine the audio to be played. The original volume is not described here.
其中,确定装置3基于所述播放环境信息、所述待播放音频的原始量以及所述用户舒适音量来确定所述待播放音频的输出音量,以播放述待播放音频的方式包括但不限于以下任一种:The determining device 3 determines the output volume of the to-be-played audio based on the playing environment information, the original amount of the to-be-played audio, and the user's comfort volume, and the manner in which the audio to be played is played is included, but not limited to the following. Any one:
i)确定装置3根据环境噪声音量和待播放音频的原始音量,先确定与环境噪声音量和原始音量对应的音量增益。然后,确定装置3根据音量增益和用户舒适音量,来确定待播放音频的输出音量。i) The determining means 3 first determines the volume gain corresponding to the ambient noise volume and the original volume based on the ambient noise volume and the original volume of the audio to be played. Then, the determining means 3 determines the output volume of the audio to be played based on the volume gain and the user's comfort volume.
其中,所述音量增益用于指示所述待播放音频在不同音量区段的环境噪声存在时所需要的增益。The volume gain is used to indicate a gain required by the to-be-played audio in the presence of ambient noise of different volume segments.
例如,第一获取装置1获取到用户舒适音量是40db,第二获取装置2获取到环境噪声音量是35db,并且待播放音频的原始音量是30db。接着,确定装置3在预存的音频音量区段、噪声音量区段和音量增益三者的对应关系中查询,得到对应的音量增益是3db。然后,确定装置3确定待播放音频的输出音量是用户舒适音量与音量增益的和,即43db。其中,所述对应关系的获取方式与后续优选实施例中获取音量对应关系的方式相似或相同。For example, the first acquisition device 1 acquires that the user comfort volume is 40 db, the second acquisition device 2 acquires the ambient noise volume is 35 db, and the original volume of the audio to be played is 30 db. Next, the determining device 3 queries in the correspondence between the pre-stored audio volume segment, the noise volume segment and the volume gain, and obtains a corresponding volume gain of 3 db. Then, the determining means 3 determines that the output volume of the audio to be played is the sum of the user's comfort volume and the volume gain, that is, 43 db. The manner in which the corresponding relationship is obtained is similar to or the same as the manner in which the volume is obtained in the subsequent preferred embodiment.
ii)确定装置3包括输出确定装置,该输出确定装置基于环境噪声音量、用户舒适音量和播放距离来确定待播放音频的输出音量。所述输出确定装置包括第一子确定装置(图未示)和第二子确定装置(图未示);其中,第一子确定装置进一步包括第四子确定装置(图未示)、第五子确定装置(图未示)和第六子确定装置(图未示)。Ii) The determining means 3 comprises an output determining means for determining the output volume of the audio to be played based on the ambient noise volume, the user comfort volume and the play distance. The output determining device includes a first sub-determining device (not shown) and a second sub-determining device (not shown); wherein the first sub-determining device further includes a fourth sub-determining device (not shown), fifth Sub-determination means (not shown) and sixth sub-determination means (not shown).
其中,所述播放环境信息包括环境噪声音量和播放距离。第一子确定装置根据环境噪声音量和待播放音频的原始音量,确定与环境噪声音量和原始音量对应的音量增益。接着,第二子确定装置根据音量增益、播放距离以及所述用户舒适音量,来确定待播放音频 的输出音量。The playing environment information includes an ambient noise volume and a playing distance. The first sub-determining means determines a volume gain corresponding to the ambient noise volume and the original volume based on the ambient noise volume and the original volume of the audio to be played. Next, the second sub-determining device determines the audio to be played according to the volume gain, the playing distance, and the user comfort volume. The output volume.
具体地,第四子确定装置确定所述环境噪声音量对应的噪音音量区段,以及待播放音频的原始音量对应的音频音量区段。然后,第五子确定装置根据音量对应关系,确定与环境噪声音量的噪音音量区段,以及所述原始音量的音频音量区段相对应的平均舒适音量。接着,第六子确定装置根据所述原始音量以及所述平均舒适音量,来确定待播放音频的音量增益。Specifically, the fourth sub-determining means determines a noise volume section corresponding to the ambient noise volume, and an audio volume section corresponding to the original volume of the audio to be played. Then, the fifth sub-determining means determines the average volume of the comfort corresponding to the noise volume section of the ambient noise volume and the audio volume section of the original volume, based on the volume correspondence. Next, the sixth sub-determining means determines the volume gain of the audio to be played based on the original volume and the average comfort volume.
其中,前述音量对应关系用于指示音频音量区段、噪音音量区段,以及与测试音频对应的平均舒适音量三者的对应关系。The foregoing volume correspondence relationship is used to indicate a correspondence relationship between an audio volume section, a noise volume section, and an average comfort volume corresponding to the test audio.
其中,第五子确定装置获取所述音量对应关系的方式包括但不限于以下任一种:The manner in which the fifth sub-determination device acquires the volume correspondence relationship includes but is not limited to any one of the following:
i)读取预存的音量对应关系;i) reading the pre-stored volume correspondence;
ii)播放多个测试音频,分别获取与各个测试音频对应的一个或多个用户舒适音量,根据各个测试音频的一个或多个用户舒适音量,分别确定与各个测试音频对应的平均舒适音量,并保存测试音频中的候选音频的音频音量区段、测试音频中的候选噪声的噪声音量区段,以及测试音频对应的平均舒适音量三者的音量对应关系。其中,该方式的具体实现将在后续优选实施例中予以详述,此处不再赘述。Ii) playing a plurality of test audios, respectively obtaining one or more user comfort volumes corresponding to the respective test audios, and determining an average comfort volume corresponding to each test audio according to one or more user comfort volumes of the respective test audios, and The volume volume section of the candidate audio in the test audio, the noise volume section of the candidate noise in the test audio, and the volume correspondence of the average comfort volume corresponding to the test audio are saved. The specific implementation of the method will be detailed in the subsequent preferred embodiments, and details are not described herein again.
优选地,第二子确定装置根据所述音量增益、所述播放距离以及所述用户舒适音量,基于以下公式来确定所述待播放音频的所述输出音量。Preferably, the second sub-determining means determines the output volume of the audio to be played based on the volume gain, the play distance, and the user comfort volume based on the following formula.
Figure PCTCN2014093760-appb-000006
Figure PCTCN2014093760-appb-000006
其中,SPL(Actual)表示输出音量,SPL(Standard)表示用户舒适音量,L表示播放距离,Lstandard表示标准距离,SPL(Noise_gain)表示音量增益。Among them, SPL (Actual) represents the output volume, SPL (Standard) represents the user comfort volume, L represents the playback distance, L standard represents the standard distance, and SPL (Noise_gain) represents the volume gain.
其中,所述标准距离是预设的声音输出距离,优选地,标准距离可根据用户使用习惯来确定。例如,将用户历史使用手机时耳朵与手机扬声器之间的距离的平均值作为标准距离;又例如,将用户输入的距离值作为标准距离等。 Wherein, the standard distance is a preset sound output distance, and preferably, the standard distance may be determined according to user usage habits. For example, the average value of the distance between the ear and the speaker of the mobile phone when the user history uses the mobile phone is taken as the standard distance; for example, the distance value input by the user is taken as the standard distance or the like.
根据本发明的第一示例,用户D的手机中存储的音量对应关系如下表4示。According to the first example of the present invention, the volume correspondence stored in the mobile phone of the user D is as shown in Table 4 below.
表4Table 4
Figure PCTCN2014093760-appb-000007
Figure PCTCN2014093760-appb-000007
用户D通过该手机接听来自呼叫中心的客服甲的通话音频时,该手机中的音量控制装置确定当前的环境噪声音量为43db,来自客服甲的通话音频的原始音量较轻,为37db。则第四子确定装置根据该上表4所示的音量对应关系,确定与当前的环境噪声音量对应的噪音音量区段是40db至60db,与原始音量对应的音频音量区段是20db至50db。接着,第五子确定装置在该音量对应关系中查询,得到对应的平均舒适音量是46db。则第六子确定装置确定所述待播放音频的音量增益=|平均舒适音量-原始音量|=9db。接着,第二子确定装置根据第一获取装置1获取到的用户舒适音量35db,第二获取装置获取到的播放距离4cm,预存的标准距离3cm和第六子确定装置已确定的音量增益9db,通过公式(2)确定该待播放音频的输出音量是52db;则音量控制装置以52db的音量向用户D输出来自客服甲的音频。When the user D answers the call audio of the customer service A from the call center through the mobile phone, the volume control device in the mobile phone determines that the current ambient noise volume is 43 db, and the original volume of the call audio from the customer service A is light, which is 37 db. Then, the fourth sub-determining device determines that the noise volume section corresponding to the current ambient noise volume is 40 db to 60 db according to the volume correspondence relationship shown in the above table 4, and the audio volume section corresponding to the original volume is 20 db to 50 db. Then, the fifth sub-determination device queries in the volume correspondence relationship, and the corresponding average comfort volume is 46db. Then, the sixth sub-determining means determines the volume gain of the to-be-played audio = | average comfort volume - original volume | = 9db. Next, the second sub-determination device is based on the user comfort volume 35db acquired by the first acquisition device 1, the playback distance acquired by the second acquisition device is 4 cm, the pre-stored standard distance is 3 cm, and the volume gain 9db determined by the sixth sub-determination device is The output volume of the audio to be played is determined to be 52 db by the formula (2); the volume control device outputs the audio from the customer service A to the user D at a volume of 52 db.
优选地,在实时通话过程中,音量控制装置每隔预定时间段,对音频的原始音量和/或播放环境信息进行测量,并相应地基于新获得的原始音量和/或播放环境信息来更新输出音量值。以应对在实时通话中的多种影响因素的变化。Preferably, during a real-time call, the volume control device measures the original volume of the audio and/or the playing environment information every predetermined time period, and updates the output based on the newly obtained original volume and/or playing environment information accordingly. Volume value. To cope with changes in various influencing factors in real-time calls.
继续对本发明的第一示例进行说明,在用户D与该客服甲的通话过 程中,当音量控制装置间隔预定时间再次测量时,确定客服甲的通话音频的原始音量变为70db,即客服甲的音量变大。则音量控制装置继续根据上表1所示的音量对应关系,确定与当前的环境噪声音量对应的噪音音量区段是40db至60db,与原始音量对应的音频音量区段是50db至80db,并在该音量对应关系中查询,得到对应的平均舒适音量是58db。则音量控制装置确定所述待播放音频的音量增益=|平均舒适音量-原始音量|=12db。接着,音量控制装置根据获取到的用户舒适音量35db,播放距离4cm,预存的标准距离3cm和已确定的音量增益12db,通过公式(2)初步确定该待播放音频的预计输出音量是55db,则音量控制装置55db的音量向用户D输出来自客服甲的音频。Continuing with the first example of the present invention, the user D has called with the customer service A. During the process, when the volume control device is measured again at a predetermined time interval, it is determined that the original volume of the call audio of the customer service A becomes 70 db, that is, the volume of the customer service A becomes large. Then, the volume control device continues to determine that the noise volume segment corresponding to the current ambient noise volume is 40 db to 60 db according to the volume correspondence relationship shown in Table 1 above, and the audio volume segment corresponding to the original volume is 50 db to 80 db, and The volume corresponding to the query, the corresponding average comfort volume is 58db. Then the volume control device determines the volume gain of the to-be-played audio=|average comfort volume-original volume|=12db. Then, the volume control device according to the obtained user comfort volume 35db, the play distance 4cm, the pre-stored standard distance 3cm and the determined volume gain 12db, and the preliminary output volume of the to-be-played audio is determined to be 55db by formula (2). The volume of the volume control device 55db outputs the audio from the customer service A to the user D.
根据本发明的方式,能够对于不同原始音量的音频做进一步调节,从而使得无论原始音频的大小如何,对于接听方,如用户D来说,其听到的音量总是在较为舒适的区域内,从而够避免由于说话方的音量过大或过小而降低用户体验的情况,使得用户能够更加清楚的接听音频。According to the mode of the present invention, it is possible to further adjust the audio of different original sounds, so that regardless of the size of the original audio, for the answering party, such as the user D, the volume that is heard is always in a relatively comfortable area. Therefore, it is possible to avoid a situation in which the user experience is reduced due to the speaker's volume being too large or too small, so that the user can listen to the audio more clearly.
优选地,第二子确定装置进一步包括第八子确定装置(图未示)和第九子确定装置(图未示)。其中,第八子确定装置根据所述音量增益、所述播放距离、所述用户舒适音量以及所述原始音量来确定所述待播放音频的音量控制信息,然后,第九子确定装置基于所述音量控制信息对原始音量进行调节以获得所述待播放音频的所述输出音量。Preferably, the second sub-determining means further comprises an eighth sub-determining means (not shown) and a ninth sub-determining means (not shown). The eighth sub-determining device determines volume control information of the to-be-played audio according to the volume gain, the play distance, the user comfort volume, and the original volume, and then the ninth sub-determining device is based on the The volume control information adjusts the original volume to obtain the output volume of the audio to be played.
其中,所述音量控制信息包括用于对原始音量进行调节以获得输出音量的音量调节值。Wherein, the volume control information includes a volume adjustment value for adjusting the original volume to obtain an output volume.
优选地,所述音量控制信息包括输出音量与原始音量之间的差值。Preferably, the volume control information includes a difference between the output volume and the original volume.
优选地,所述音量控制信息包括输出音量与原始音量之间的比例关系。Preferably, the volume control information includes a proportional relationship between the output volume and the original volume.
其中,第八子确定装置基于以下公式来确定所述音量控制信息:Wherein, the eighth sub-determining means determines the volume control information based on the following formula:
Figure PCTCN2014093760-appb-000008
Figure PCTCN2014093760-appb-000008
其中,Controlparam表示音量控制信息,SPL(Actual)表示输出音量,SPL(origina)表示原始音量。 Among them, Control param represents volume control information, SPL (Actual) represents output volume, and SPL (origina) represents original volume.
例如,第八子确定装置根据公式(3)得到的Controlparam是5.62。然后,第九子确定装置将待播放音频的能量值调节为原来的5.62倍,以播放该待播放音频。For example, the Control param obtained by the eighth sub-determination device according to the formula (3) is 5.62. Then, the ninth sub-determining device adjusts the energy value of the audio to be played back to 5.62 times the original to play the to-be-played audio.
需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,任何根据环境噪声音量和待播放音频的原始音量,确定与环境噪声音量和原始音量对应的音量增益。接着,音量控制装置根据音量增益、播放距离以及所述用户舒适音量,来确定待播放音频的输出音量的实现方式,均应包含在本发明的范围内。It should be noted that the above examples are only for better explaining the technical solution of the present invention, and are not limited to the present invention. Those skilled in the art should understand that any environmental noise is determined according to the ambient noise volume and the original volume of the audio to be played. The volume gain corresponding to the volume and the original volume. Next, the volume control means determines the implementation of the output volume of the audio to be played based on the volume gain, the playback distance, and the user's comfort volume, all of which are included in the scope of the present invention.
根据本发明的一个优选实施方案,根据本发明的音量控制装置还包括呈现装置(图未示)。According to a preferred embodiment of the invention, the volume control device according to the invention further comprises a presentation device (not shown).
呈现装置呈现处理相关信息。其中,所述处理相关信息用于提示用户所述待播放音频的原始音量的被处理状态。The rendering device presents processing related information. The processing related information is used to prompt the user for the processed state of the original volume of the audio to be played.
其中,所述被处理状态包括但不限于以下任一项:The processed state includes but is not limited to any one of the following:
1)将被处理;1) will be processed;
2)正在被处理;2) being processed;
3)已被处理。3) Has been processed.
优选地,所述处理相关信息包括但不限于以下至少任一种形式:Preferably, the processing related information includes, but is not limited to, at least one of the following forms:
1)文字信息;例如,在播放音频时,呈现装置呈现该音频的原始音量值以及当前的输出音量值,又例如,向用户呈现“该音频已经过音量转换处理!”的提示信息等;再例如,在实时通话过程中,呈现装置根据通话对方的语音大小,持续地更新显示来自通话对方的音频的原始音量值大小,以及相应地对该音频进行相应处理后的输出音量的值的大小。1) text information; for example, when playing audio, the rendering device presents the original volume value of the audio and the current output volume value, and, for example, presents the user with a message indicating that the audio has been subjected to volume conversion processing! For example, during a real-time call, the presentation device continuously updates the size of the original volume value of the audio from the other party and the value of the output volume corresponding to the corresponding audio according to the voice size of the other party.
2)用于指示原始音量已经过处理的图像和/或动画信息;例如,在播放过程中,呈现装置分别用两条声波线来指示待播放音频的原始音量和输出音量,并利用声波线的跳动来显示音量值的实时变化;又例如,当接收到一个微信音频后,呈现装置先向用户呈现红色叹号以提示用户将要处理该音频,在处理过程中,显示红色进度条以表示正在处理,并 当处理完成后,在该微信音频前显示一个绿色的勾以提示用户处理完成等。2) for indicating image and/or animation information that the original volume has been processed; for example, during playback, the rendering device respectively uses two sonic lines to indicate the original volume and output volume of the audio to be played, and utilizes the sound wave line. Bounce to display real-time changes in volume values; for example, when a WeChat audio is received, the rendering device first presents a red exclamation mark to the user to prompt the user to process the audio, and during processing, a red progress bar is displayed to indicate that processing is in progress. and When the processing is completed, a green check mark is displayed in front of the WeChat audio to prompt the user to complete the processing.
根据本发明的一个优选实施方案,所述播放设备包括网络设备,属于网络设备的音量控制装置基于所述播放环境信息和所述用户舒适音量来确定所述待播放音频的所述输出音量;将所述待播放音频的所述原始音量更新为所述输出音量;将更新后的所述待播放音频发送至用户设备,以供其播放所述待播放音频。According to a preferred embodiment of the present invention, the playback device includes a network device, and a volume control device belonging to the network device determines the output volume of the audio to be played based on the playback environment information and the user comfort volume; The original volume of the audio to be played is updated to the output volume; and the updated audio to be played is sent to the user equipment for playing the to-be-played audio.
网络电话服务器,例如云ROM服务器,接收到用户设备反馈的播放环境信息包括:播放距离5cm,环境噪声音量55db。接着,该云ROM服务器中的音量控制装置获取到该用户设备的用户对应的用户舒适音量为31db,用于发送至该用户设备的通话待播放音频的原始音量为56db,标准距离为2cm。并且,该云ROM服务器中所存储的音量对应关系如表4所示。则音量控制装置根据该音量对应关系查询,得到与该用户设备的环境噪声音量以及该通话待播放音频的原始音量对应的平均舒适音量为58db,则音量控制装置根据平均舒适音量58db与所获得的原始音量56db之间的差值2db,确定该通话待播放音频的音量增益为db,并根据所获得的音量增益、播放距离以及用户舒适音量,通过公式(2)得到输出音量为48db。接着,音量控制装置将该通话待播放音频的原始音量的这一属性更新为48db,并将更新后的通话待播放音频发送至用户设备,以供其播放所述待播放音频,从而保证该用户能够在较舒适的音量下清晰地收听到来自通话方的通话音频。The VoIP server, such as the cloud ROM server, receives the playback environment information fed back by the user equipment, including: a playback distance of 5 cm, and an ambient noise volume of 55 db. Then, the volume control device in the cloud ROM server obtains the user's comfortable volume corresponding to the user of the user equipment is 31 db, and the original volume of the audio to be played to be sent to the user equipment is 56 db, and the standard distance is 2 cm. Moreover, the volume correspondence relationship stored in the cloud ROM server is as shown in Table 4. Then, the volume control device queries according to the volume correspondence relationship, and obtains an average comfort volume corresponding to the ambient noise volume of the user equipment and the original volume of the audio to be played of the call is 58 db, and the volume control device obtains the average comfort volume 58 db according to the obtained The difference between the original volume of 56db is 2db, and the volume gain of the audio to be played is determined to be db, and the output volume is 48db according to formula (2) according to the obtained volume gain, play distance and user comfort volume. Then, the volume control device updates the attribute of the original volume of the audio to be played back to 48 db, and sends the updated call pending audio to the user equipment for playing the to-be-played audio, thereby ensuring the user. It is able to clearly hear the call audio from the party at a more comfortable volume.
需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,任何确定所述待播放音频的所述输出音量,将所述待播放音频的所述原始音量更新为所述输出音量,然后将更新后的所述待播放音频发送至用户设备的方法的实现方式,均应包含在本发明的范围内。It should be noted that the above examples are only for better explaining the technical solution of the present invention, and are not limited to the present invention. Those skilled in the art should understand that any determination of the output volume of the audio to be played will be The implementation of the method of updating the original volume of the played audio to the output volume and then transmitting the updated audio to be played to the user equipment is intended to be included within the scope of the present invention.
根据本发明的又一优选实施例,根据本发明的音量控制装置还包括第一播放装置(图未示)、第一子获取装置(图未示)和第三子确定装 置(图未示)。According to still another preferred embodiment of the present invention, the volume control apparatus according to the present invention further includes a first playback device (not shown), a first sub-acquisition device (not shown), and a third sub-determination device. Set (not shown).
其中,第一播放装置播放多个测试音频。所述测试音频包括由多个候选音频中选择一个候选音频以及由多个候选噪声中选择一个候选噪声,其中,所述多个候选音频分别对应至少一个音频音量区段,所述多个噪音音频分别对应至少一个噪声音量区段。The first playing device plays a plurality of test audios. The test audio includes selecting one candidate audio from a plurality of candidate audios and selecting one candidate noise from a plurality of candidate noises, wherein the plurality of candidate audios respectively correspond to at least one audio volume segment, the plurality of noise audios Corresponding to at least one noise volume segment.
接着,第一子获取装置分别获取与各个测试音频对应的一个或多个用户舒适音量。Then, the first sub-acquisition device respectively acquires one or more user comfort volumes corresponding to the respective test audios.
其中,第一子获取装置获取与测试音频对应的用户舒适音量的方式与前述第一获取装置1获取当前用户的用户舒适音量的方式相同或相似,在此不再赘述。The manner in which the first sub-acquisition device obtains the user's comfortable volume corresponding to the test audio is the same as or similar to the manner in which the first acquisition device 1 obtains the user's user's comfortable volume.
接着,第三子确定装置根据各个测试音频的一个或多个用户舒适音量,分别确定与各个测试音频对应的平均舒适音量,并保存所述测试音频中的候选音频的音频音量区段、所述测试音频中的候选噪声的噪声音量区段,以及所述测试音频对应的平均舒适音量三者的音量对应关系。Next, the third sub-determining device respectively determines an average comfort volume corresponding to each test audio according to one or more user comfort volumes of the respective test audios, and saves an audio volume segment of the candidate audio in the test audio, The noise volume section of the candidate noise in the audio, and the volume correspondence of the average comfort volume corresponding to the test audio are tested.
例如,候选音频包括Audio_1和Audio_2,候选噪声包括Noise_1到Noise_4,其各自包括的音量区段如表5所示。音量控制装置基于各个候选音频与各个候选噪声的任意组合,获得如表6所示的测试音频Test_1至Test_8。第一播放装置播放该多个测试音频Test_1,接着,第一子获取装置获取与测试音频Test_1对应的三个用户舒适音量20db、28db、24db。接着,第三子确定装置根据该三个用户舒适音量,确定与测试音频Test_1对应的平均舒适音量是24db,并保存测试音频Test_1的候选音频的音量区段[20db,50db]、测试音频Test_1的候选噪声的噪声音量区段[20db,40db]以及所获得的平均舒适音量24db这三者的音量对应关系。并且,第一播放装置、第一子获取装置和第三子确定装置分别对测试音频Test_2至Test_8执行相似的操作,以获得如表6中所示的,各个测试音频中的候选音频的音频音量区段、所述测试音频中的候选噪声的噪声音量区段,以及测试音频对应的平均舒适音量三者的音量对应关系。 For example, the candidate audio includes Audio_1 and Audio_2, and the candidate noise includes Noise_1 to Noise_4, and the volume sections thereof are respectively included as shown in Table 5. The volume control means obtains the test audios Test_1 to Test_8 as shown in Table 6 based on any combination of the respective candidate audios and the respective candidate noises. The first playback device plays the plurality of test audios Test_1, and then the first sub-acquisition device acquires three user comfort volumes 20db, 28db, and 24db corresponding to the test audio Test_1. Next, the third sub-determining device determines, according to the three user comfort volume, that the average comfort volume corresponding to the test audio Test_1 is 24 db, and saves the volume segment of the candidate audio of the test audio Test_1 [20db, 50db], and the test audio Test_1 The volume corresponding to the noise volume section [20db, 40db] of the candidate noise and the average comfortable volume 24db obtained. And, the first playback device, the first sub-acquisition device, and the third sub-determination device respectively perform similar operations on the test audios Test_2 to Test_8 to obtain the audio volume of the candidate audio in each test audio as shown in Table 6. The volume, the noise volume section of the candidate noise in the test audio, and the volume correspondence of the average comfort volume corresponding to the test audio.
表5table 5
候选音频Candidate audio 音频音量区段Audio volume section 候选噪声Candidate noise 噪声音量区段Noise volume section
Audio_1Audio_1 [20db,50db][20db, 50db] Noise_1Noise_1 [20db,40db][20db, 40db]
Audio_2Audio_2 [20db,50db][20db, 50db] Noise_2Noise_2 [40db,60db][40db, 60db]
    Noise_3Noise_3 [60db,80db][60db, 80db]
    Noise_4Noise_4 [80db,100db][80db,100db]
表6Table 6
测试音频Test audio 音频音量区段Audio volume section 噪声音量区段Noise volume section 平均舒适音量Average comfort volume
Test_1Test_1 [20db,50db][20db, 50db] [20db,40db][20db, 40db] 24twenty four
Test_2Test_2 [20db,50db][20db, 50db] [40db,60db][40db, 60db] 4646
Test_3Test_3 [20db,50db][20db, 50db] [60db,80db][60db, 80db] 6363
Test_4Test_4 [20db,50db][20db, 50db] [80db,100db][80db,100db] 8585
Test_5Test_5 [50db,80db][50db, 80db] [20db,40db][20db, 40db] 5454
Test_6Test_6 [50db,80db][50db, 80db] [40db,60db][40db, 60db] 5555
Test_7Test_7 [50db,80db][50db, 80db] [60db,80db][60db, 80db] 6868
Test_8Test_8 [50db,80db][50db, 80db] [80db,100db][80db,100db] 8282
需要说明的是,上述举例仅为更好地说明本发明的技术方案,而非对本发明的限制,本领域技术人员应该理解,任何播放多个测试音频并分别获取与各个测试音频对应的一个或多个用户舒适音量,确定与各个测试音频对应的平均舒适音量,并保存所述测试音频中的候选音频的音频音量区段、所述测试音频中的候选噪声的噪声音量区段,以及所述测试音频对应的平均舒适音量三者的音量对应关系的实现方式,均应包含在本发明的范围内。It should be noted that the above examples are only for better explaining the technical solutions of the present invention, and are not intended to limit the present invention. Those skilled in the art should understand that any one of the test audios is played and one or the corresponding one of the test audios is respectively obtained. a plurality of user comfort volumes, determining an average comfort volume corresponding to each test audio, and saving an audio volume section of candidate audio in the test audio, a noise volume section of candidate noise in the test audio, and the The implementation of the volume correspondence of the average comfort volume corresponding to the test audio should be included in the scope of the present invention.
根据本发明的方案,通过获取用户选择的用户舒适音量,以基于该用户舒适音量确定待播放音频的输出音量,使用户收听到的音频音量 是其觉得舒适的音量;结合环境播放信息确定待播放音频的输出音量,故而能够确定当前环境中的噪声和用户与播放设备的距离对输出音量的影响,并对待播放音频的音量进行相应地调节,以保证用户能够在较为舒适的音量下清晰地收听到待播放音频。According to the solution of the present invention, by obtaining the user comfort volume selected by the user, the output volume of the audio to be played is determined based on the user's comfortable volume, and the audio volume that the user listens to is obtained. It is the volume that it feels comfortable; combined with the environment playback information to determine the output volume of the audio to be played, so it is possible to determine the influence of the noise in the current environment and the distance between the user and the playback device on the output volume, and adjust the volume of the audio to be played accordingly. In order to ensure that the user can clearly listen to the audio to be played at a more comfortable volume.
本发明的软件程序可以通过处理器执行以实现上文所述步骤或功能。同样地,本发明的软件程序(包括相关的数据结构)可以被存储到计算机可读记录介质中,例如,RAM存储器,磁或光驱动器或软磁盘及类似设备。另外,本发明的一些步骤或功能可采用硬件来实现,例如,作为与处理器配合从而执行各个功能或步骤的电路。The software program of the present invention can be executed by a processor to implement the steps or functions described above. Likewise, the software program (including related data structures) of the present invention can be stored in a computer readable recording medium such as a RAM memory, a magnetic or optical drive or a floppy disk and the like. In addition, some of the steps or functions of the present invention may be implemented in hardware, for example, as a circuit that cooperates with a processor to perform various functions or steps.
另外,本发明的一部分可被应用为计算机程序产品,例如计算机程序指令,当其被计算机执行时,通过该计算机的操作,可以调用或提供根据本发明的方法和/或技术方案。而调用本发明的方法的程序指令,可能被存储在固定的或可移动的记录介质中,和/或通过广播或其他信号承载媒体中的数据流而被传输,和/或被存储在根据所述程序指令运行的计算机设备的工作存储器中。在此,根据本发明的一个实施例包括一个装置,该装置包括用于存储计算机程序指令的存储器和用于执行程序指令的处理器,其中,当该计算机程序指令被该处理器执行时,触发该装置运行基于前述根据本发明的多个实施例的方法和/或技术方案。Additionally, a portion of the invention can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide a method and/or solution in accordance with the present invention. The program instructions for invoking the method of the present invention may be stored in a fixed or removable recording medium and/or transmitted by a data stream in a broadcast or other signal bearing medium, and/or stored in a The working memory of the computer device in which the program instructions are run. Herein, an embodiment in accordance with the present invention includes a device including a memory for storing computer program instructions and a processor for executing program instructions, wherein when the computer program instructions are executed by the processor, triggering The apparatus operates based on the aforementioned methods and/or technical solutions in accordance with various embodiments of the present invention.
对于本领域技术人员而言,显然本发明不限于上述示范性实施例的细节,而且在不背离本发明的精神或基本特征的情况下,能够以其他的具体形式实现本发明。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本发明的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本发明内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。此外,显然“包括”一词不排除其他单元或步骤,单数不排除复数。系统权利要求中陈述的多个单元或装置也可以由一个单元或装置通过软件或者硬件来实现。第一,第二等词语用来表示名称,而并不表示任何特定的顺序。 It is apparent to those skilled in the art that the present invention is not limited to the details of the above-described exemplary embodiments, and the present invention can be embodied in other specific forms without departing from the spirit or essential characteristics of the invention. Therefore, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the invention is defined by the appended claims instead All changes in the meaning and scope of equivalent elements are included in the present invention. Any reference signs in the claims should not be construed as limiting the claim. In addition, it is to be understood that the word "comprising" does not exclude other elements or steps. A plurality of units or devices recited in the system claims can also be implemented by a unit or device by software or hardware. The first, second, etc. words are used to denote names and do not denote any particular order.

Claims (22)

  1. 一种用于在播放设备中控制待播放音频的输出音量的方法,其中,所述方法包括以下步骤:A method for controlling an output volume of an audio to be played in a playback device, wherein the method comprises the steps of:
    a获取当前用户的用户舒适音量;a Get the user's user comfort volume;
    b获取所述播放设备的播放环境信息;b acquiring playback environment information of the playback device;
    c基于所述播放环境信息和所述用户舒适音量来确定所述待播放音频的输出音量,以播放所述待播放音频。c determining an output volume of the to-be-played audio based on the playback environment information and the user comfort volume to play the to-be-played audio.
  2. 根据权利要求1所述的方法,其中,所述步骤c包括以下步骤:The method of claim 1 wherein said step c comprises the steps of:
    c1基于所述播放环境信息、所述待播放音频的原始音量以及所述用户舒适音量来确定所述待播放音频的输出音量,以播放所述待播放音频。The c1 determines an output volume of the to-be-played audio based on the playback environment information, an original volume of the to-be-played audio, and the user comfort volume to play the to-be-played audio.
  3. 根据权利要求1或2所述的方法,其中,所述播放环境信息包括环境噪声音量,其中,所述步骤b包括:The method according to claim 1 or 2, wherein the playback environment information comprises an ambient noise volume, wherein the step b comprises:
    -采样以获取与所述播放设备所处播放环境对应的噪声音频;- sampling to obtain noise audio corresponding to a playback environment in which the playback device is located;
    -将所述噪声音频解码为预定格式的音频数据,以确定所述噪声音频的环境噪声音量。Decoding the noisy audio into audio data of a predetermined format to determine an ambient noise level of the noisy audio.
  4. 根据权利要求3所述的方法,其中,所述播放环境信息还包括播放距离,其中,所述步骤c1包括:The method of claim 3, wherein the playback environment information further comprises a play distance, wherein the step c1 comprises:
    m根据所述环境噪声音量和所述待播放音频的原始音量,确定与所述环境噪声音量和所述原始音量对应的音量增益;And determining, according to the ambient noise volume and the original volume of the audio to be played, a volume gain corresponding to the ambient noise volume and the original volume;
    n根据所述音量增益、所述播放距离以及所述用户舒适音量,来确定所述待播放音频的所述输出音量。n determining the output volume of the audio to be played based on the volume gain, the play distance, and the user comfort volume.
  5. 根据权利要求1至4中任一项所述的方法,其中,所述方法还包括以下步骤:The method of any of claims 1 to 4, wherein the method further comprises the steps of:
    -播放多个测试音频,其中,所述测试音频包括由多个候选音频中选择一个候选音频以及由多个候选噪声中选择一个候选噪声,其中,所述多个候选音频分别对应至少一个音频音量区段,所述多个噪音音频分别对应至少一个噪声音量区段; Playing a plurality of test audios, wherein the test audio comprises selecting one candidate audio from among a plurality of candidate audios and selecting one candidate noise from among a plurality of candidate noises, wherein the plurality of candidate audios respectively correspond to at least one audio volume a segment, the plurality of noise audios respectively corresponding to at least one noise volume segment;
    -分别获取与各个测试音频对应的一个或多个用户舒适音量;- respectively obtaining one or more user comfort volumes corresponding to the respective test audio;
    -根据各个测试音频的一个或多个用户舒适音量,分别确定与各个测试音频对应的平均舒适音量,并保存所述测试音频中的候选音频的音频音量区段、所述测试音频中的候选噪声的噪声音量区段,以及所述测试音频对应的平均舒适音量三者的音量对应关系。- determining an average comfort volume corresponding to each test audio, respectively, based on one or more user comfort volumes of the respective test audios, and saving an audio volume section of the candidate audio in the test audio, candidate noise in the test audio The noise volume section and the volume correspondence of the average comfort volume corresponding to the test audio.
  6. 根据权利要求4或5所述的方法,其中,所述步骤m包括以下步骤:The method according to claim 4 or 5, wherein said step m comprises the following steps:
    -确定所述环境噪声音量对应的噪音音量区段,以及待播放音频的原始音量对应的音频音量区段;Determining a noise volume section corresponding to the ambient noise volume, and an audio volume section corresponding to the original volume of the audio to be played;
    -根据所述音量对应关系,确定与所述环境噪声音量的噪音音量区段,以及所述原始音量的音频音量区段相对应的平均舒适音量;Determining, based on the volume correspondence, an average volume of comfort corresponding to a noise volume segment of the ambient noise volume and an audio volume segment of the original volume;
    -根据所述原始音量以及所述平均舒适音量,来确定所述待播放音频的音量增益。- determining a volume gain of the audio to be played based on the original volume and the average comfort volume.
  7. 根据权利要求1至6中任一项所述的方法,其中,所述方法通过以下步骤来获取用户舒适音量:The method according to any one of claims 1 to 6, wherein the method obtains user comfort volume by the following steps:
    x播放示例音频,其中,所述示例音频属于示例音频集,所述音频集中包含多个分别属于不同音量区段的示例音频;x playing example audio, wherein the example audio belongs to an example audio set, the audio set comprising a plurality of example audios respectively belonging to different volume segments;
    y获取用户对所述示例音频的调节指令;y obtaining an adjustment instruction of the user to the example audio;
    z根据所述用户对所述示例音频的调节指令,选择新的示例音频;z selecting a new example audio according to the user's adjustment instruction to the example audio;
    -重复上述步骤x、y和z,直至用户确认所播放的示例音频的音量区段为用户舒适音量区段;- repeating steps x, y and z above until the user confirms that the volume section of the played example audio is the user comfort volume section;
    -获取用户选择的所述舒适音量区段中的音量作为所述用户舒适音量。- Acquiring the volume in the comfort volume section selected by the user as the user comfort volume.
  8. 根据权利要求1至7中任一项所述的方法,其中,所述方法还包括以下步骤:The method according to any one of claims 1 to 7, wherein the method further comprises the steps of:
    -呈现处理相关信息,以提示用户所述待播放音频的原始音量的被处理状态。- Presentation processing related information to prompt the user of the processed state of the original volume of the audio to be played.
  9. 根据权利要求1至8中任一项所述的方法,其中,所述播放设备包括网络设备,其中,所述步骤c包括以下步骤: The method according to any one of claims 1 to 8, wherein the playback device comprises a network device, wherein the step c comprises the steps of:
    -基于所述播放环境信息和所述用户舒适音量来确定所述待播放音频的所述输出音量;Determining the output volume of the audio to be played based on the playback environment information and the user comfort volume;
    -将所述待播放音频的所述原始音量更新为所述输出音量;- updating the original volume of the audio to be played to the output volume;
    -将更新后的所述待播放音频发送至用户设备,以供其播放所述待播放音频。- transmitting the updated audio to be played to the user equipment for playing the audio to be played.
  10. 一种用于在播放设备中控制待播放音频的输出音量的音量控制装置,其中,所述音量控制装置包括:A volume control device for controlling an output volume of an audio to be played in a playback device, wherein the volume control device comprises:
    第一获取装置,用于获取当前用户的用户舒适音量;a first obtaining device, configured to acquire a user user's comfortable volume;
    第二获取装置,用于获取所述播放设备的播放环境信息;a second acquiring device, configured to acquire playing environment information of the playing device;
    确定装置,用于基于所述播放环境信息和所述用户舒适音量来确定所述待播放音频的输出音量,以播放所述待播放音频。And determining means for determining an output volume of the to-be-played audio based on the playing environment information and the user comfort volume to play the to-be-played audio.
  11. 根据权利要求10所述的音量控制装置,其中,所述确定装置包括:The volume control device according to claim 10, wherein said determining means comprises:
    输出确定装置,用于基于所述播放环境信息、所述待播放音频的原始音量以及所述用户舒适音量来确定所述待播放音频的输出音量,以播放所述待播放音频。The output determining means is configured to determine an output volume of the to-be-played audio based on the playback environment information, an original volume of the audio to be played, and the user comfort volume to play the to-be-played audio.
  12. 根据权利要求10或11所述的音量控制装置,其中,所述播放环境信息包括环境噪声音量,其中,所述第二获取装置包括:The volume control device according to claim 10 or 11, wherein the playback environment information comprises an ambient noise volume, wherein the second obtaining means comprises:
    采集装置,用于采样以获取与所述播放设备所处播放环境对应的噪声音频;a collecting device, configured to sample to obtain noise audio corresponding to a playing environment in which the playing device is located;
    解码装置,用于将所述噪声音频解码为预定格式的音频数据,以确定所述噪声音频的环境噪声音量。And a decoding device, configured to decode the noise audio into audio data of a predetermined format to determine an ambient noise volume of the noise audio.
  13. 根据权利要求12所述的音量控制装置,其中,所述播放环境信息还包括播放距离,其中,所述输出确定装置包括:The volume control device according to claim 12, wherein the playback environment information further comprises a play distance, wherein the output determining means comprises:
    第一子确定装置,用于根据所述环境噪声音量和所述待播放音频的原始音量,确定与所述环境噪声音量和所述原始音量对应的音量增益;a first sub-determining device, configured to determine a volume gain corresponding to the ambient noise volume and the original volume according to the ambient noise volume and an original volume of the to-be-played audio;
    第二子确定装置,用于根据所述音量增益、所述播放距离以及所述用户舒适音量,来确定所述待播放音频的所述输出音量。 And a second sub-determining device configured to determine the output volume of the audio to be played according to the volume gain, the play distance, and the user comfort volume.
  14. 根据权利要求10至13中任一项所述的音量控制装置,其中,所述音量控制装置还包括:The volume control device according to any one of claims 10 to 13, wherein the volume control device further comprises:
    第一播放装置,用于播放多个测试音频,其中,所述测试音频包括由多个候选音频中选择一个候选音频以及由多个候选噪声中选择一个候选噪声,其中,所述多个候选音频分别对应至少一个音频音量区段,所述多个噪音音频分别对应至少一个噪声音量区段;a first playing device, configured to play a plurality of test audios, wherein the test audio includes selecting one candidate audio from among a plurality of candidate audios and selecting one candidate noise from among a plurality of candidate noises, wherein the plurality of candidate audios Corresponding to at least one audio volume segment respectively, the plurality of noise audios respectively corresponding to at least one noise volume segment;
    第一子获取装置,用于分别获取与各个测试音频对应的一个或多个用户舒适音量;a first sub-acquisition device, configured to respectively acquire one or more user comfort volumes corresponding to the respective test audios;
    第三子确定装置,用于根据各个测试音频的一个或多个用户舒适音量,分别确定与各个测试音频对应的平均舒适音量,并保存所述测试音频中的候选音频的音频音量区段、所述测试音频中的候选噪声的噪声音量区段,以及所述测试音频对应的平均舒适音量三者的音量对应关系。a third sub-determining device, configured to respectively determine an average comfort volume corresponding to each test audio according to one or more user comfort volumes of the respective test audios, and save an audio volume section of the candidate audio in the test audio, The noise volume section of the candidate noise in the test audio, and the volume correspondence relationship of the average comfort volume corresponding to the test audio.
  15. 根据权利要求13或14所述的音量控制装置,其中,所述第一子确定装置包括:The volume control device according to claim 13 or 14, wherein the first sub-determination device comprises:
    第四子确定装置,用于确定所述环境噪声音量对应的噪音音量区段,以及待播放音频的原始音量对应的音频音量区段;a fourth sub-determination device, configured to determine a noise volume segment corresponding to the ambient noise volume, and an audio volume segment corresponding to an original volume of the audio to be played;
    第五子确定装置,用于根据所述音量对应关系,确定与所述环境噪声音量的噪音音量区段,以及所述原始音量的音频音量区段相对应的平均舒适音量;a fifth sub-determining device, configured to determine, according to the volume correspondence, an average volume of comfort corresponding to a noise volume section of the ambient noise volume and an audio volume section of the original volume;
    第六子确定装置,用于根据所述原始音量以及所述平均舒适音量,来确定所述待播放音频的音量增益。And a sixth sub-determining device, configured to determine a volume gain of the to-be-played audio according to the original volume and the average comfort volume.
  16. 根据权利要求10至15中任一项所述的音量控制装置,其中,所述音量控制装置通过以下装置来获取用户舒适音量:The volume control device according to any one of claims 10 to 15, wherein the volume control means acquires a user's comfort volume by:
    第二播放装置,用于播放示例音频;a second playback device for playing example audio;
    第二子获取装置,用于获取用户对所述示例音频的调节指令;a second sub-acquisition device, configured to acquire an adjustment instruction of the sample audio by the user;
    选择装置,用于根据所述用户对所述示例音频的调节指令,选择新的示例音频;Selecting means for selecting a new example audio according to the adjustment instruction of the sample audio by the user;
    第七子确定装置,用于确认该示例音频的音量区段为用户舒适音量 区段;a seventh sub-determining means for confirming that the volume section of the example audio is a user comfort volume Section
    第八子获取装置,用于获取用户选择的所述舒适音量区段中的音量作为所述用户舒适音量。And a eighth sub-acquisition device, configured to acquire a volume in the comfortable volume section selected by the user as the user comfort volume.
  17. 根据权利要求10至16中任一项所述的音量控制装置,其中,所述音量控制装置还包括:The volume control device according to any one of claims 10 to 16, wherein the volume control device further comprises:
    呈现装置,用于呈现处理相关信息,以提示用户所述待播放音频的原始音量的被处理状态。And a rendering device for presenting processing related information to prompt the user for the processed state of the original volume of the audio to be played.
  18. 根据权利要求10至17中任一项所述的音量控制装置,其中,所述播放设备包括网络设备,其中,所述网络设备用于:The volume control device according to any one of claims 10 to 17, wherein the playback device comprises a network device, wherein the network device is used to:
    -基于所述播放环境信息和所述用户舒适音量来确定所述待播放音频的所述输出音量;Determining the output volume of the audio to be played based on the playback environment information and the user comfort volume;
    -将所述待播放音频的所述原始音量更新为所述输出音量;- updating the original volume of the audio to be played to the output volume;
    -将更新后的所述待播放音频发送至用户设备,以供其播放所述待播放音频。- transmitting the updated audio to be played to the user equipment for playing the audio to be played.
  19. 一种播放控制插件,其中,所述播放控制插件包括如权利要求10至18中至少任一项所述的音量控制装置。A playback control plug-in, wherein the playback control plug-in includes the volume control device according to any one of claims 10 to 18.
  20. 一种计算机可读介质,所述计算机可读介质包括计算机代码,当所述计算机代码被执行时,如权利要求1至9中任一项所述的方法被执行。A computer readable medium, comprising computer code, when the computer code is executed, the method of any one of claims 1 to 9 being performed.
  21. 一种计算机程序产品,当所述计算机程序产品被计算机设备执行时,如权利要求1至9中任一项所述的方法被执行。A computer program product, when the computer program product is executed by a computer device, the method of any one of claims 1 to 9 being performed.
  22. 一种计算机设备,所述计算机设备包括存储器和处理器,所述存储器中存储有计算机代码,所述处理器被配置来通过执行所述计算机代码以执行如权利要求1至9中任一项所述的方法。 A computer device comprising a memory and a processor, the memory storing computer code, the processor being configured to perform the computer code according to any one of claims 1 to 9 The method described.
PCT/CN2014/093760 2013-12-19 2014-12-12 Method and device for controlling output volume of audio in playing device WO2015090163A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310706832.0 2013-12-19
CN201310706832.0A CN103761063B (en) 2013-12-19 2013-12-19 A kind of method and apparatus for the output volume controlling audio in playback equipment

Publications (1)

Publication Number Publication Date
WO2015090163A1 true WO2015090163A1 (en) 2015-06-25

Family

ID=50528308

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/093760 WO2015090163A1 (en) 2013-12-19 2014-12-12 Method and device for controlling output volume of audio in playing device

Country Status (2)

Country Link
CN (1) CN103761063B (en)
WO (1) WO2015090163A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106713653A (en) * 2017-01-10 2017-05-24 广东欧珀移动通信有限公司 Audio/video playing control method and device, and terminal
CN111610947A (en) * 2020-05-09 2020-09-01 东风汽车集团有限公司 Vehicle-mounted end conversation volume automatic regulating system
CN116033315A (en) * 2023-03-30 2023-04-28 南昌航天广信科技有限责任公司 Broadcast volume control method and system

Families Citing this family (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103761063B (en) * 2013-12-19 2018-09-07 北京百度网讯科技有限公司 A kind of method and apparatus for the output volume controlling audio in playback equipment
CN105225681B (en) * 2014-06-26 2018-09-04 美的集团股份有限公司 Speech playing method and system
CN104980415A (en) * 2014-07-21 2015-10-14 腾讯科技(深圳)有限公司 Audio playing method and equipment
CN105511832A (en) * 2014-09-24 2016-04-20 腾讯科技(深圳)有限公司 Method and device for processing volume output
CN105244048B (en) 2015-09-25 2017-12-05 小米科技有限责任公司 Audio play control method and device
CN105867873A (en) * 2015-12-21 2016-08-17 乐视移动智能信息技术(北京)有限公司 Volume adjustment method and terminal equipment
CN105677289A (en) * 2015-12-31 2016-06-15 联想(北京)有限公司 Information processing method and electronic equipment
CN105912296A (en) * 2016-04-08 2016-08-31 宇龙计算机通信科技(深圳)有限公司 Voice control method and system
CN105827853B (en) * 2016-04-29 2019-06-07 维沃移动通信有限公司 A kind of output control method and mobile terminal of the outer playback amount of terminal
CN106161781A (en) * 2016-06-22 2016-11-23 北京小米移动软件有限公司 Method for regulation of sound volume and device
CN106231108B (en) * 2016-08-10 2019-10-29 Tcl移动通信科技(宁波)有限公司 A kind of mobile terminal loudness control method and system
CN106331338A (en) * 2016-08-22 2017-01-11 北京小米移动软件有限公司 Volume adjusting method and device
CN106445451B (en) * 2016-09-09 2020-04-03 腾讯科技(深圳)有限公司 Audio volume gain method and device
CN106656744A (en) * 2016-10-13 2017-05-10 广州视源电子科技股份有限公司 Method and apparatus for adjusting the sound volume of push notifications of intelligent device
CN106453946A (en) * 2016-11-15 2017-02-22 维沃移动通信有限公司 Method for regulating output volume and mobile terminal
CN106954125A (en) * 2017-03-29 2017-07-14 联想(北京)有限公司 Information processing method and audio frequency apparatus
CN107231471A (en) * 2017-05-15 2017-10-03 努比亚技术有限公司 In Call method of adjustment, mobile terminal and storage medium
CN107450882B (en) * 2017-07-17 2020-11-20 深圳中泰智丰物联网科技有限公司 Method and device for adjusting sound loudness and storage medium
CN107465824B (en) * 2017-08-18 2020-06-05 Oppo广东移动通信有限公司 Volume adjusting method and device, mobile terminal and storage medium
CN107613390A (en) * 2017-10-20 2018-01-19 聚好看科技股份有限公司 A kind of method and device for controlling startup advertisement volume
CN108737648B (en) * 2018-05-10 2020-12-04 上海麦克风文化传媒有限公司 Music volume self-adaptive adjusting method, device, storage medium and terminal
CN108647005A (en) * 2018-05-15 2018-10-12 努比亚技术有限公司 Audio frequency playing method, mobile terminal and computer readable storage medium
CN109814833B (en) * 2019-02-15 2022-07-26 佛山博智医疗科技有限公司 Real-time control frequency response output device and application method thereof
CN114697445B (en) * 2020-12-31 2023-09-01 华为技术有限公司 Volume adjusting method, terminal and readable storage medium
CN113849151A (en) * 2021-08-26 2021-12-28 明基智能科技(上海)有限公司 Audio device and volume adjusting method thereof
CN114416018A (en) * 2022-03-28 2022-04-29 龙旗电子(惠州)有限公司 Audio playing method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101369805A (en) * 2008-09-28 2009-02-18 西北工业大学 Method for self-adjusting sound volume of sound source equipment in pervasive computation surroundings
CN102118665A (en) * 2009-12-30 2011-07-06 北京华旗随身数码股份有限公司 Automatic tuning device and method and multimedia player
CN102981422A (en) * 2012-11-23 2013-03-20 广州华多网络科技有限公司 Volume adjusting method and system
US20130094656A1 (en) * 2011-10-16 2013-04-18 Hei Tao Fung Intelligent Audio Volume Control for Robot
CN103761063A (en) * 2013-12-19 2014-04-30 北京百度网讯科技有限公司 Method and device for controlling audio output volume in playing device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8654993B2 (en) * 2005-12-07 2014-02-18 Apple Inc. Portable audio device providing automated control of audio volume parameters for hearing protection
CN102970632A (en) * 2011-08-30 2013-03-13 杭州新锐信息技术有限公司 Sound based volume adjustment device, product and method
CN102905028A (en) * 2012-10-15 2013-01-30 深圳市中兴移动通信有限公司 Mobile terminal prompt information regulating method and corresponding mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101369805A (en) * 2008-09-28 2009-02-18 西北工业大学 Method for self-adjusting sound volume of sound source equipment in pervasive computation surroundings
CN102118665A (en) * 2009-12-30 2011-07-06 北京华旗随身数码股份有限公司 Automatic tuning device and method and multimedia player
US20130094656A1 (en) * 2011-10-16 2013-04-18 Hei Tao Fung Intelligent Audio Volume Control for Robot
CN102981422A (en) * 2012-11-23 2013-03-20 广州华多网络科技有限公司 Volume adjusting method and system
CN103761063A (en) * 2013-12-19 2014-04-30 北京百度网讯科技有限公司 Method and device for controlling audio output volume in playing device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106713653A (en) * 2017-01-10 2017-05-24 广东欧珀移动通信有限公司 Audio/video playing control method and device, and terminal
CN111610947A (en) * 2020-05-09 2020-09-01 东风汽车集团有限公司 Vehicle-mounted end conversation volume automatic regulating system
CN116033315A (en) * 2023-03-30 2023-04-28 南昌航天广信科技有限责任公司 Broadcast volume control method and system

Also Published As

Publication number Publication date
CN103761063B (en) 2018-09-07
CN103761063A (en) 2014-04-30

Similar Documents

Publication Publication Date Title
WO2015090163A1 (en) Method and device for controlling output volume of audio in playing device
CN111447539B (en) Fitting method and device for hearing earphones
CN107509153B (en) Detection method and device of sound playing device, storage medium and terminal
WO2019033438A1 (en) Audio signal adjustment method and device, storage medium, and terminal
EP3048779A1 (en) Sound volume adjusting method and device
CN107682752B (en) Method, device and system for displaying video picture, terminal equipment and storage medium
CN107277209B (en) Call adjustment method and mobile terminal
US20160142451A1 (en) Online meeting computer with improved noise management logic
US10121491B2 (en) Intelligent volume control interface
US11218796B2 (en) Annoyance noise suppression
WO2019174492A1 (en) Voice call data detection method, device, storage medium and mobile terminal
WO2016000532A1 (en) Volume adjustment method, mobile terminal, and computer storage medium
JP2024507916A (en) Audio signal processing method, device, electronic device, and computer program
CN105940449A (en) Audio signal processing
WO2023070792A1 (en) Volume balancing method and device for talk-on doorbell, and readable storage medium
US10483933B2 (en) Amplification adjustment in communication devices
CN111370017B (en) Voice enhancement method, device and system
CN111045633A (en) Method and apparatus for detecting loudness of audio signal
US9706287B2 (en) Sidetone-based loudness control for groups of headset users
CN110827851B (en) Method for adjusting volume, electronic device and computer storage medium
CN114554379A (en) Hearing aid fitting method, device, charging box and computer readable medium
CN113362839A (en) Audio data processing method and device, computer equipment and storage medium
WO2020107385A1 (en) Gain processing method and device implementing same, electronic apparatus, signal acquisition method and system implementing same
WO2021042538A1 (en) Method and device for audio processing, and computer storage medium
CN112307161A (en) Method and apparatus for playing audio

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14871725

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14871725

Country of ref document: EP

Kind code of ref document: A1