CN110827851A - Method for adjusting volume, electronic device and computer storage medium - Google Patents

Method for adjusting volume, electronic device and computer storage medium Download PDF

Info

Publication number
CN110827851A
CN110827851A CN201810902224.XA CN201810902224A CN110827851A CN 110827851 A CN110827851 A CN 110827851A CN 201810902224 A CN201810902224 A CN 201810902224A CN 110827851 A CN110827851 A CN 110827851A
Authority
CN
China
Prior art keywords
sound source
audio data
data
tone
specified
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810902224.XA
Other languages
Chinese (zh)
Other versions
CN110827851B (en
Inventor
王永飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201810902224.XA priority Critical patent/CN110827851B/en
Publication of CN110827851A publication Critical patent/CN110827851A/en
Application granted granted Critical
Publication of CN110827851B publication Critical patent/CN110827851B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L21/00Processing of the speech or voice signal to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
    • G10L21/02Speech enhancement, e.g. noise reduction or echo cancellation
    • G10L21/0316Speech enhancement, e.g. noise reduction or echo cancellation by changing the amplitude
    • G10L21/0324Details of processing therefor
    • G10L21/034Automatic adjustment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72433User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for voice messaging, e.g. dictaphones

Abstract

The invention discloses a method for adjusting volume, electronic equipment and a computer storage medium, which are used for solving the technical problem of poor conversation effect of conversation equipment in the prior art. The method comprises the following steps: receiving audio data; screening the specified sound source from the audio data based on the tone data of the specified sound source to obtain the audio data of the specified sound source; and when the volume of the specified sound source is not in a preset range, adjusting the audio data of the specified sound source to maintain the volume of the specified sound source in the preset range.

Description

Method for adjusting volume, electronic device and computer storage medium
Technical Field
The present invention relates to the field of communications, and in particular, to a method for adjusting volume, an electronic device, and a computer storage medium.
Background
The mobile phone has become one of the indispensable electronic devices in people's daily life, however, in the process of using the mobile phone to communicate, because the environments of users during communication are different, the communication effect is different.
For example, when a user a makes a call with a user B at a noisy construction site, the noise of the site is already greater than the volume of the call of the user a, so that the user B cannot hear the call content of the user a, and meanwhile, the user a cannot hear the call content of the user B.
In view of this, how to improve the communication effect of the communication device becomes an urgent technical problem to be solved.
Disclosure of Invention
The invention provides a method for adjusting volume, electronic equipment and a computer storage medium, which are used for solving the technical problem of poor conversation effect of conversation equipment in the prior art.
In a first aspect, to solve the above technical problem, a technical solution of a method for adjusting a volume according to an embodiment of the present invention is as follows:
receiving audio data;
screening the specified sound source from the audio data based on the tone data of the specified sound source to obtain the audio data of the specified sound source;
and when the volume of the specified sound source is not in a preset range, adjusting the audio data of the specified sound source to maintain the volume of the specified sound source in the preset range.
The audio data of the specified sound source is screened out from the received audio data according to the tone data of the specified sound source, and then when the volume of the specified sound source is not in the preset range, the audio data of the specified sound source can be adjusted, so that the volume of the specified sound source is maintained in the preset range, and the conversation effect can be effectively improved.
With reference to the first aspect, in a first possible implementation manner of the first aspect, after receiving the audio data, the method further includes:
analyzing the audio data within a specified time period when the audio data are received to obtain tone data of all sound sources;
and determining the tone color data of the specified sound source from the tone color data of all the sound sources according to a preset rule.
The audio data in the appointed time period is selected as a sample to be analyzed, so that the tone data of all sound sources are obtained, the comprehensive characteristics of all the sound sources can be kept to the maximum extent, and the appointed sound source can be determined more accurately.
With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, determining the tone color data of the specified sound source from the tone color data of all the sound sources according to a preset rule includes:
playing the audio data corresponding to the tone data of all the sound sources one by one;
and determining the tone color data of the specified sound source from the tone color data of all the sound sources according to the selection instruction.
The audio data corresponding to the tone data of all the sound sources are played one by one, so that a user can conveniently select the specified sound source.
With reference to the first possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, determining the tone color data of the specified sound source from the tone color data of all the sound sources according to a preset rule includes:
matching the tone data of each sound source in all the sound sources with the tone data in a preset tone database one by one, and acquiring a corresponding contact name if matching is successful; the preset tone database is used for storing tone data of contact persons, wherein the tone data in the preset tone database corresponds to the contact person names one to one;
and comparing the corresponding contact name with the name of the calling party who is calling, and if the contact name is the same as the calling party name, determining that the tone data corresponding to the contact name is the tone data of the specified sound source.
Through matching the tone data of all analyzed sound sources with the tone data in the preset tone database one by one, the appointed sound source can be automatically determined without manual intervention, and therefore working efficiency can be effectively improved, and user experience is improved.
With reference to the first possible implementation manner to the third possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, analyzing the audio data to obtain tone color data of all sound sources includes:
determining fundamental waves of all sound sources from the audio data in the specified time period; wherein one sound source has one fundamental wave;
determining a corresponding harmonic based on each fundamental; wherein each fundamental wave has a plurality of harmonics;
and obtaining tone color data of each sound source in the audio data based on each fundamental wave and the corresponding harmonic wave.
With reference to the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, the adjusting the audio data of the specified sound source includes:
when the volume of the specified sound source is smaller than the lowest value of the preset range, amplifying the audio data of the specified sound source;
and when the volume of the specified sound source is greater than the highest value of the preset range, reducing the audio data of the specified sound source.
The audio data of the designated sound source is amplified or reduced to be maintained in the preset range, so that the volume of the designated sound source heard by a user is constant in the preset range, the conversation effect can be effectively improved, and the user experience is improved.
In a second aspect, an embodiment of the present invention provides an apparatus for adjusting volume, including:
a receiving unit for receiving audio data;
the screening unit is used for screening the specified sound source from the audio data based on the tone data of the specified sound source to obtain the audio data of the specified sound source;
and the adjusting unit is used for adjusting the audio data of the specified sound source when the volume of the specified sound source is not in a preset range, so that the volume of the specified sound source is maintained in the preset range.
With reference to the first aspect, in a first possible implementation manner of the first aspect, the receiving unit is further configured to:
analyzing the audio data within a specified time period when the audio data are received to obtain tone data of all sound sources;
and determining the tone color data of the specified sound source from the tone color data of all the sound sources according to a preset rule.
With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the receiving unit is further configured to:
playing the audio data corresponding to the tone data of all the sound sources one by one;
and determining the tone color data of the specified sound source from the tone color data of all the sound sources according to the selection instruction.
With reference to the first possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the receiving unit is further configured to:
matching the tone data of each sound source in all the sound sources with the tone data in a preset tone database one by one, and acquiring a corresponding contact name if matching is successful; the preset tone database is used for storing tone data of contact persons, wherein the tone data in the preset tone database corresponds to the contact person names one to one;
and comparing the corresponding contact name with the name of the calling party who is calling, and if the contact name is the same as the calling party name, determining that the tone data corresponding to the contact name is the tone data of the specified sound source.
With reference to the first possible implementation manner to the third possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, the receiving unit is further configured to:
determining fundamental waves of all sound sources from the audio data in the specified time period; wherein one sound source has one fundamental wave;
determining a corresponding harmonic based on each fundamental; wherein each fundamental wave has a plurality of harmonics;
and obtaining tone color data of each sound source in the audio data based on each fundamental wave and the corresponding harmonic wave.
With reference to the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, the adjusting unit is specifically configured to:
when the volume of the specified sound source is smaller than the lowest value of the preset range, amplifying the audio data of the specified sound source;
and when the volume of the specified sound source is greater than the highest value of the preset range, reducing the audio data of the specified sound source.
In a third aspect, an embodiment of the present invention further provides an electronic device for adjusting a volume, including:
at least one processor, and
a memory coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor, and the at least one processor performs the method according to the first aspect by executing the instructions stored by the memory.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, including:
the computer readable storage medium stores computer instructions which, when executed on a computer, cause the computer to perform the method of the first aspect as described above.
Through the technical solutions in one or more of the above embodiments of the present invention, the embodiments of the present invention have at least the following technical effects:
in the embodiment provided by the invention, the audio data of the specified sound source is screened from the received audio data according to the tone data of the specified sound source, and further, when the volume of the specified sound source is not in the preset range, the audio data of the specified sound source can be adjusted to keep the volume of the specified sound source in the preset range, so that the conversation effect can be effectively improved.
Drawings
Fig. 1 is a flowchart of a method for adjusting volume according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of deriving all sound sources from audio data according to an embodiment of the present invention;
fig. 3 is a schematic diagram of selecting a specific sound source from all sound sources according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of adjusting audio data of a specified sound source according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of another embodiment of the present invention for adjusting audio data of a specified sound source;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a method for adjusting volume, electronic equipment and a computer storage medium, and aims to solve the technical problem that in the prior art, the communication effect of communication equipment is poor.
In order to solve the technical problems, the general idea of the embodiment of the present application is as follows:
there is provided a method of adjusting volume, comprising: receiving audio data; screening out the specified sound source from the audio data based on the tone data of the specified sound source to obtain the audio data of the specified sound source; and when the volume of the specified sound source is not in the preset range, adjusting the audio data of the specified sound source to keep the volume of the specified sound source in the preset range.
According to the scheme, the audio data of the specified sound source is screened from the received audio data according to the tone data of the specified sound source, and then when the volume of the specified sound source is not in the preset range, the audio data of the specified sound source can be adjusted, so that the volume of the specified sound source is maintained in the preset range, and the conversation effect can be effectively improved.
In order to better understand the technical solutions of the present invention, the following detailed descriptions of the technical solutions of the present invention are provided with the accompanying drawings and the specific embodiments, and it should be understood that the specific features in the embodiments and the examples of the present invention are the detailed descriptions of the technical solutions of the present invention, and are not limitations of the technical solutions of the present invention, and the technical features in the embodiments and the examples of the present invention may be combined with each other without conflict.
Referring to fig. 1, an embodiment of the invention provides a method for adjusting volume, and the method processes as follows.
Step 101: audio data is received.
The audio data may be audio data acquired by a microphone of the electronic device itself, or audio data acquired by a microphone connected to the electronic device, or audio data sent to the local electronic device by another electronic device in a call with the local electronic device, specifically, where the audio data is obtained in what manner, which is not limited herein.
For example, when the electronic apparatus a is to record a voice of a specific person, the voice of the specific person may be collected by a microphone provided in the electronic apparatus a, and the processor in the electronic apparatus a may be configured to connect an external microphone to the electronic apparatus a to collect the voice of the specific person based on the received audio data corresponding to the voice of the specific person.
For another example, the electronic device a and the electronic device B communicate with each other, and the electronic device B sends the acquired audio data to the electronic device a.
After the audio data is received, step 102 may be performed.
Step 102: and screening the specified sound source from the audio data based on the tone color data of the specified sound source to obtain the audio data of the specified sound source.
When audio data is collected, environmental noise exists, such as sound of machine roaring at a construction site, sound of other people and broadcasts at the street and the mall, sound of various animals at a park, and the like. Therefore, the collected audio data contains not only the sound generated by the sound source required by the user but also other sounds not required by the user.
In order to obtain audio data corresponding to sound emitted by a sound source (i.e., a specified sound source) required by a user, after the audio data is received, the audio data is analyzed within a specified time period of receiving the audio data to obtain tone color data of all the sound sources; and then determining the tone color data of the specified sound source from the tone color data of all the sound sources according to a preset rule.
Specifically, the audio data is analyzed to obtain the tone data of all the sound sources, and the fundamental wave of all the sound sources can be determined from the audio data in the specified time period; wherein one sound source has one fundamental wave; determining corresponding harmonic waves based on each fundamental wave; wherein each fundamental wave has a plurality of harmonics; and finally, obtaining tone color data of each sound source in the audio data based on each fundamental wave and the corresponding harmonic wave.
Specifically, the tone color data of a specified sound source can be determined in the following two ways.
Firstly, playing audio data corresponding to tone data of all sound sources one by one; and determining the tone color data of the specified sound source from the tone color data of all the sound sources according to the selection instruction.
For example, referring to fig. 2, after analyzing audio data received in a specified time period, audio data corresponding to tone data (i.e., tone data 1, tone data 2, and tone data 3) of 3 sound sources (i.e., sound source 1, sound source 2, and sound source 3) is obtained, the audio data corresponding to the 3 sound sources is played one by one on the electronic device, then a selection instruction (see fig. 3) is generated according to a selection operation of a user, and the tone data of the specified sound source is determined from the 3 sound sources. It should be understood that the call is suspended while playing.
Matching the tone data of each sound source in all the sound sources with the tone data in a preset tone database one by one, and acquiring a corresponding contact name if matching is successful; the preset tone database is used for storing the contact names of the contacts, wherein tone data in the preset tone database correspond to the contact names one to one; and comparing the corresponding contact name with the name of the calling party who is calling, and if the corresponding contact name and the name of the calling party are the same, determining that the tone data corresponding to the corresponding contact name is the tone data of the specified sound source.
For example, in the mobile phone of the user a, tone data corresponding to 10 contacts are stored, and these data and corresponding relations constitute a contact tone database, when the user a receives the phone call of the user B, the mobile phone of the user a can analyze the received audio data of the user B for the first 10s to obtain the audio data of 3 sound sources, and then use the 3 audio data to match with each tone data in the contact tone database, if the similarity is higher than the preset value, the matching is considered to be successful, and obtain the corresponding contact name M, and if the contact name M is the same as the name of the user B in the mobile phone address book of the user a, the tone data corresponding to the contact name M is used as the tone data of the specified sound source. Of course, the incoming call name of the user B may be directly matched with the contact name in the contact tone database, and if the incoming call name of the user B is the same as the contact name in the contact tone database, the corresponding tone data in the contact tone database is used as the tone data of the specified sound source, so that the audio data of the specified sound source can be obtained.
After obtaining the audio data of the specified sound source, step 103 may be performed.
Step 103: and when the volume of the specified sound source is not in the preset range, adjusting the audio data of the specified sound source to keep the volume of the specified sound source in the preset range.
Specifically, when the volume of the designated sound source is smaller than the lowest value of the preset range, amplifying the audio data of the designated sound source; and when the volume of the specified sound source is larger than the highest value of the preset range, reducing the audio data of the specified sound source.
For example, when the user a talks with the user B, the user B starts to make a call by approaching the mobile phone to the head, at this time, the volume of the call sound is within the preset range, and suddenly the user B sees that the child at home falls down, and tries to hold the child in the past, then places the mobile phone on the desktop, and starts the hands-free function to continue the call, because the user B is at a distance from his mobile phone, the volume of the sound source of the user B heard by the user a is smaller and smaller than the minimum value of the preset range, at this time, the mobile phone of the user a amplifies the signal of the output audio data through the audio amplifier (please see fig. 4), so that the sound heard by the user a is constant within the specified range, when the user B finds that the opposite party may hear the voice is increased, the sound heard by the user B is too large, at this time, the mobile phone of the user a reduces the audio data of the user B (please see fig. 5), the volume is made constant within a preset range.
In order to make the above-mentioned solution fully understood by those skilled in the art, the following description will be made by applying the above-mentioned method to a call device.
The user a needs to establish a contact tone database in a call device of the user a, such as a mobile phone, at this time, the call device may determine fundamental waves of all sound sources from the audio data by analyzing the received audio data, determine a plurality of corresponding harmonics according to each determined fundamental wave, and obtain tone data of each sound source according to the fundamental waves and the plurality of corresponding harmonics. The user only needs to play the audio data corresponding to the tone color data of each sound source one by one to select the required audio data of the specified sound source. And naming the appointed sound source, adding the named sound source into a sound color database of the contact person, associating newly added or added audio data with the contact person in the mobile phone address book, and when the contact person in the mobile phone address book makes a call, directly taking the sound color data of the caller in the sound color database as a reference, and selecting the audio data of the caller during the call to adjust the volume up or down so as to control the call volume within a constant range.
If the user A receives the call of the user B, but the user B is not in the contact person tone database of the user A, after the mobile phone of the user A receives the audio data of the user B, the audio data of the first 10 seconds can be analyzed, the user selects the audio data corresponding to the tone data of the user B, and then the audio data of the user B is amplified or reduced, so that the volume received by the user A is constant within a specified range.
If the user A is in the process of talking with the user B, the talking device of the user A can also adjust the volume of the user A according to the tone data of the user A, so that the volume heard by the user B is constant in the designated range.
Based on the same inventive concept, an embodiment of the present invention provides an electronic device for adjusting volume, where a specific implementation of a method for adjusting volume of the electronic device may refer to descriptions in the method embodiment, and repeated descriptions are omitted, please refer to fig. 6, and the electronic device includes:
a receiving unit 601 configured to receive audio data;
a screening unit 602, configured to screen, based on tone data of a specified sound source, the specified sound source from the audio data, and obtain audio data of the specified sound source;
an adjusting unit 602, configured to adjust the audio data of the specified sound source when the volume of the specified sound source is not within a preset range, so that the volume of the specified sound source is maintained within the preset range.
Optionally, the receiving unit 601 is further configured to:
analyzing the audio data within a specified time period when the audio data are received to obtain tone data of all sound sources;
and determining the tone color data of the specified sound source from the tone color data of all the sound sources according to a preset rule.
Optionally, the receiving unit 601 is further configured to:
playing the audio data corresponding to the tone data of all the sound sources one by one;
and determining the tone color data of the specified sound source from the tone color data of all the sound sources according to the selection instruction.
Optionally, the receiving unit 601 is further configured to:
matching the tone data of each sound source in all the sound sources with the tone data in a preset tone database one by one, and acquiring a corresponding contact name if matching is successful; the preset tone database is used for storing tone data of contact persons, wherein the tone data in the preset tone database corresponds to the contact person names one to one;
and comparing the corresponding contact name with the name of the calling party who is calling, and if the contact name is the same as the calling party name, determining that the tone data corresponding to the contact name is the tone data of the specified sound source.
Optionally, the method is further used for:
determining fundamental waves of all sound sources from the audio data in the specified time period; wherein one sound source has one fundamental wave;
determining a corresponding harmonic based on each fundamental; wherein each fundamental wave has a plurality of harmonics;
and obtaining tone color data of each sound source in the audio data based on each fundamental wave and the corresponding harmonic wave.
Optionally, the adjusting unit 602 is specifically configured to:
when the volume of the specified sound source is smaller than the lowest value of the preset range, amplifying the audio data of the specified sound source;
and when the volume of the specified sound source is greater than the highest value of the preset range, reducing the audio data of the specified sound source.
Based on the same inventive concept, an embodiment of the present invention provides an electronic device for adjusting a volume, including: at least one processor, and
a memory coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor, and the at least one processor performs the method of adjusting volume as described above by executing the instructions stored by the memory.
Based on the same inventive concept, an embodiment of the present invention further provides a computer-readable storage medium, including:
the computer readable storage medium stores computer instructions which, when executed on a computer, cause the computer to perform the method of adjusting volume as described above.
In the embodiment provided by the invention, the audio data of the specified sound source is screened from the received audio data according to the tone data of the specified sound source, and further, when the volume of the specified sound source is not in the preset range, the audio data of the specified sound source can be adjusted to keep the volume of the specified sound source in the preset range, so that the conversation effect can be effectively improved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A method of adjusting volume, comprising:
receiving audio data;
screening the specified sound source from the audio data based on the tone data of the specified sound source to obtain the audio data of the specified sound source;
and when the volume of the specified sound source is not in a preset range, adjusting the audio data of the specified sound source to maintain the volume of the specified sound source in the preset range.
2. The method of claim 1, after receiving the audio data, further comprising:
analyzing the audio data within a specified time period when the audio data are received to obtain tone data of all sound sources;
and determining the tone color data of the specified sound source from the tone color data of all the sound sources according to a preset rule.
3. The method of claim 2, wherein determining the tone color data of the designated sound source from the tone color data of all the sound sources according to a preset rule comprises:
playing the audio data corresponding to the tone data of all the sound sources one by one;
and determining the tone color data of the specified sound source from the tone color data of all the sound sources according to the selection instruction.
4. The method of claim 2, wherein determining the tone color data of the designated sound source from the tone color data of all the sound sources according to a preset rule comprises:
matching the tone data of each sound source in all the sound sources with the tone data in a preset tone database one by one, and acquiring a corresponding contact name if matching is successful; the preset tone database is used for storing tone data of contact persons, wherein the tone data in the preset tone database corresponds to the contact person names one to one;
and comparing the corresponding contact name with the name of the calling party who is calling, and if the contact name is the same as the calling party name, determining that the tone data corresponding to the contact name is the tone data of the specified sound source.
5. The method of any of claims 2-4, wherein analyzing the audio data to obtain tone color data for all sound sources comprises:
determining fundamental waves of all sound sources from the audio data in the specified time period; wherein one sound source has one fundamental wave;
determining a corresponding harmonic based on each fundamental; wherein each fundamental wave has a plurality of harmonics;
and obtaining tone color data of each sound source in the audio data based on each fundamental wave and the corresponding harmonic wave.
6. The method of claim 5, wherein adjusting the audio data for the specified sound source comprises:
when the volume of the specified sound source is smaller than the lowest value of the preset range, amplifying the audio data of the specified sound source;
and when the volume of the specified sound source is greater than the highest value of the preset range, reducing the audio data of the specified sound source.
7. An electronic device, comprising:
a receiving unit for receiving audio data;
the screening unit is used for screening the specified sound source from the audio data based on the tone data of the specified sound source to obtain the audio data of the specified sound source;
and the adjusting unit is used for adjusting the audio data of the specified sound source when the volume of the specified sound source is not in a preset range, so that the volume of the specified sound source is maintained in the preset range.
8. The electronic device of claim 7, wherein the receiving unit is further to:
analyzing the audio data within a specified time period when the audio data are received to obtain tone data of all sound sources;
and determining the tone color data of the specified sound source from the tone color data of all the sound sources according to a preset rule.
9. An electronic device for adjusting volume, comprising:
at least one processor, and
a memory coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor, the at least one processor performing the method of any one of claims 1-6 by executing the instructions stored by the memory.
10. A computer-readable storage medium characterized by:
the computer readable storage medium stores computer instructions that, when executed on a computer, cause the computer to perform the method of any of claims 1-6.
CN201810902224.XA 2018-08-09 2018-08-09 Method for adjusting volume, electronic device and computer storage medium Active CN110827851B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810902224.XA CN110827851B (en) 2018-08-09 2018-08-09 Method for adjusting volume, electronic device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810902224.XA CN110827851B (en) 2018-08-09 2018-08-09 Method for adjusting volume, electronic device and computer storage medium

Publications (2)

Publication Number Publication Date
CN110827851A true CN110827851A (en) 2020-02-21
CN110827851B CN110827851B (en) 2022-03-08

Family

ID=69541616

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810902224.XA Active CN110827851B (en) 2018-08-09 2018-08-09 Method for adjusting volume, electronic device and computer storage medium

Country Status (1)

Country Link
CN (1) CN110827851B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112599144A (en) * 2020-12-03 2021-04-02 Oppo(重庆)智能科技有限公司 Audio data processing method, audio data processing apparatus, medium, and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103259906A (en) * 2012-02-15 2013-08-21 宇龙计算机通信科技(深圳)有限公司 Processing method and terminal for voice call
US20170094434A1 (en) * 2015-09-28 2017-03-30 International Business Machines Corporation Electronic media volume control
CN107682547A (en) * 2017-09-29 2018-02-09 努比亚技术有限公司 A kind of voice messaging regulation and control method, equipment and computer-readable recording medium
CN107978320A (en) * 2017-11-28 2018-05-01 上海与德科技有限公司 One kind call method of adjustment, device, equipment and medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103259906A (en) * 2012-02-15 2013-08-21 宇龙计算机通信科技(深圳)有限公司 Processing method and terminal for voice call
US20170094434A1 (en) * 2015-09-28 2017-03-30 International Business Machines Corporation Electronic media volume control
CN107682547A (en) * 2017-09-29 2018-02-09 努比亚技术有限公司 A kind of voice messaging regulation and control method, equipment and computer-readable recording medium
CN107978320A (en) * 2017-11-28 2018-05-01 上海与德科技有限公司 One kind call method of adjustment, device, equipment and medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112599144A (en) * 2020-12-03 2021-04-02 Oppo(重庆)智能科技有限公司 Audio data processing method, audio data processing apparatus, medium, and electronic device

Also Published As

Publication number Publication date
CN110827851B (en) 2022-03-08

Similar Documents

Publication Publication Date Title
US11483434B2 (en) Method and apparatus for adjusting volume of user terminal, and terminal
US10466957B2 (en) Active acoustic filter with automatic selection of filter parameters based on ambient sound
JP6489563B2 (en) Volume control method, system, device and program
US9344815B2 (en) Method for augmenting hearing
KR101626438B1 (en) Method, device, and system for audio data processing
WO2015090163A1 (en) Method and device for controlling output volume of audio in playing device
CN107995360B (en) Call processing method and related product
CN107170463A (en) Method for regulating audio signal and system
CN108172237B (en) Voice call data processing method and device, storage medium and mobile terminal
CN108418968B (en) Voice call data processing method and device, storage medium and mobile terminal
WO2017181615A1 (en) Method and device for processing unfamiliar incoming call, and mobile terminal
CN105262887B (en) Mobile terminal and audio setting method thereof
US20090323973A1 (en) Selecting an audio device for use
US20220391163A1 (en) Automatic volume adjustment method and apparatus, medium, and device
US20090097677A1 (en) Enhancing Comprehension Of Phone Conversation While In A Noisy Environment
US9251803B2 (en) Voice filtering method, apparatus and electronic equipment
CN104851423B (en) Sound information processing method and device
CN103731541A (en) Method and terminal for controlling voice frequency during telephone communication
CN110827851B (en) Method for adjusting volume, electronic device and computer storage medium
CN108418982B (en) Voice call data processing method and device, storage medium and mobile terminal
CN108449492B (en) Voice call data processing method and device, storage medium and mobile terminal
CN101848259A (en) Speech processing method and system for digital family fixed telephone
CN111370017B (en) Voice enhancement method, device and system
CN113992965A (en) Low-delay transmission method and system
CN109716432A (en) Gain process method and device thereof, electronic equipment, signal acquisition method and its system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant