CN114416015A - Audio adjusting method and device, electronic equipment and readable storage medium - Google Patents

Audio adjusting method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN114416015A
CN114416015A CN202210024336.6A CN202210024336A CN114416015A CN 114416015 A CN114416015 A CN 114416015A CN 202210024336 A CN202210024336 A CN 202210024336A CN 114416015 A CN114416015 A CN 114416015A
Authority
CN
China
Prior art keywords
determining
target volume
sound
ear return
audio
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210024336.6A
Other languages
Chinese (zh)
Inventor
黄国旺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202210024336.6A priority Critical patent/CN114416015A/en
Publication of CN114416015A publication Critical patent/CN114416015A/en
Pending legal-status Critical Current

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
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning

Abstract

The disclosure relates to an audio adjusting method, an audio adjusting device, an electronic device and a readable storage medium, wherein the method comprises the following steps: determining a target volume in a preset application; adjusting an ear return sound in a preset application according to the target volume, wherein the ear return sound is an audio frequency recorded based on the ear return function; and outputting mixed sound according to the background sound to be played in the preset application and the adjusted ear return sound. According to the method, the volume of the ear return sound can be independently adjusted in the process of using the preset application, so that a user can intuitively perceive the recording effect of the sound, the requirement of the user in the process of using the preset application is met, and the user experience is effectively improved.

Description

Audio adjusting method and device, electronic equipment and readable storage medium
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to an audio adjusting method and apparatus, an electronic device, and a readable storage medium.
Background
With the development of technologies and diversified demands of users on electronic devices, the functions of terminal devices such as mobile phones are becoming more and more abundant. In the related art, an electronic device has an ear return (earphone return) function, and the ear return function is used for enabling a user to hear mixed sound including background sound and recorded user sound when a live broadcast or karaoke application is running.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides an audio adjusting method, apparatus, electronic device and readable storage medium.
According to a first aspect of the embodiments of the present disclosure, an audio adjusting method is provided, which is applied to an electronic device with an ear return function, and the method includes:
determining a target volume in a preset application;
adjusting an ear return sound in a preset application according to the target volume, wherein the ear return sound is an audio frequency recorded based on the ear return function;
and outputting mixed sound according to the background sound to be played in the preset application and the adjusted ear return sound.
In some embodiments, the determining the target volume in the preset application includes:
displaying an adjusting control in an application interface of a preset application;
and determining the target volume according to the operation instruction on the adjusting control.
In some embodiments, the determining the target volume according to the operation instruction on the adjustment control includes:
determining a target volume level corresponding to the operation instruction according to the operation instruction;
and determining corresponding target volume according to the target volume level, wherein the target volume is volume percentage.
In some embodiments, the determining the target volume in the preset application includes:
and determining the target volume according to a preset instruction triggered by a side key structure based on the terminal equipment.
In some embodiments, the adjusting the ear return sound in the preset application according to the target volume includes:
determining the ear return in a stored file;
acquiring the ear return sound;
adjusting the current volume of the ear return sound to the target volume.
In some embodiments, said determining said ear return in said stored file comprises:
and traversing all audio files in a storage area of the electronic equipment, and determining that the audio stream type is a preset type and the audio file with the process identification of the preset application is an ear return sound.
In some embodiments, said determining said ear return in said stored file comprises:
and traversing all the audio files in the storage area of the preset application, and determining that the audio file with the audio stream type of the preset type is the ear return sound.
According to a second aspect of the embodiments of the present disclosure, an audio adjusting apparatus is provided, which is applied to an electronic device with an ear return function, and the apparatus includes:
the determining module is used for determining the target volume in the preset application;
the adjusting module is used for adjusting the ear return sound in a preset application according to the target volume, wherein the ear return sound is audio recorded based on the ear return function;
and the output module is used for outputting mixed sound according to the background sound to be played in the preset application and the adjusted ear return sound.
In some embodiments, the determination module is to:
displaying an adjusting control in an application interface of a preset application;
and determining the target volume according to the operation instruction on the adjusting control.
In some embodiments, the determination module is to:
determining a target volume level corresponding to the operation instruction according to the operation instruction;
and determining corresponding target volume according to the target volume level, wherein the target volume is volume percentage.
In some embodiments, the adjustment module is to:
determining the ear return in a stored file;
acquiring the ear return sound;
adjusting the current volume of the ear return sound to the target volume.
In some embodiments, the adjustment module is further configured to:
and traversing all audio files in a storage area of the electronic equipment, and determining that the audio stream type is a preset type and the audio file with the process identification of the preset application is an ear return sound.
In some embodiments, the adjustment module is further configured to:
and traversing all the audio files in the storage area of the preset application, and determining that the audio file with the audio stream type of the preset type is the ear return sound.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device, including:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the audio conditioning method as defined in any one of the above.
According to a fourth aspect of embodiments of the present disclosure, a non-transitory computer-readable storage medium is presented, in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform an audio adjustment method as recited in any one of the above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
according to the method, in the process of using the preset application, not only can the volume of mixed sound be adjusted, but also the volume of ear return sound can be independently adjusted, so that a user can intuitively perceive the recording effect of own sound, the method is closer to the requirement of the user in the process of using the preset application, and the user experience is effectively improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow chart illustrating a method according to an example embodiment.
Fig. 2 is a flow chart illustrating a method according to another exemplary embodiment.
Fig. 3 is a flow chart illustrating a method according to another exemplary embodiment.
Fig. 4 is a flow chart illustrating a method according to another exemplary embodiment.
Fig. 5 is a block diagram illustrating an apparatus according to an example embodiment.
FIG. 6 is a block diagram of an electronic device shown in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
In the related art, an electronic device has an ear return (earphone return) function, and the ear return function is used for enabling a user to hear mixed sound including background sound and recorded user sound when a live broadcast or karaoke application is running. For example, in the process of using the karaoke application, the user sings the currently played audio file, and the mixed sound heard by the user on the basis of the function of the return to the ear includes: background sounds of currently played audio files and the user's own singing sounds. When the ear return function is applied in the related art, only the mixed sound is supported to be adjusted, and the problem that the recorded user sound cannot be adjusted independently exists.
The embodiment of the disclosure provides an audio adjusting method, which is applied to an electronic device with an ear return function, and the method includes: determining a target volume in a preset application; adjusting an ear return sound in a preset application according to the target volume, wherein the ear return sound is an audio frequency recorded based on an ear return function; and outputting mixed sound according to the background sound to be played in the preset application and the adjusted ear return sound. In the method, in the process of using the preset application, the volume of mixed sound can be adjusted as in the related art, and the volume of ear return sound can be adjusted independently, so that a user can intuitively perceive the recording effect of own sound, the requirement of the user in the process of using the preset application is met, and the user experience is effectively improved.
In an exemplary embodiment, the audio adjusting method of the present embodiment is applied to an electronic device with an ear return function. The electronic device can be a mobile phone, a tablet computer, a notebook computer or intelligent wearable equipment and other terminal devices.
As shown in fig. 1, the method of the present embodiment may include the following steps:
and S110, determining the target volume in the preset application.
And S120, adjusting the ear return sound in the preset application according to the target volume.
And S130, outputting mixed sound according to the background sound to be played in the preset application and the adjusted ear return sound.
In step S110, the preset application may be an application program with a recording requirement, and for example, the preset application includes: live type application, karaoke type application, game type application and the like. In this step, the processor of the electronic device may determine a target volume for adjusting the ear return sound according to the operation of the user.
In step S120, the ear return sound is audio recorded based on the ear return function.
The ear return (headphone return) function means: the electronic equipment supports a user to record the sound (ear return sound) of the user while playing the audio (background sound), and the playing audio and the recorded audio are synthesized by digital signal processing and then transmitted to the earphone, so that the user can hear the synthesized audio in the earphone, and can hear both the background sound and the sound of the user.
In this step, the processor of the electronic device may obtain the ear return sound recorded based on the ear return function, and adjust the ear return sound, that is, adjust the sound of the user.
In step S130, taking the preset application as the karaoke application as an example, when the user sings the currently played audio file, the background sound to be played refers to the background sound of the audio file.
In the preset application, the process of playing the audio and the process of recording the audio respectively occupy different threads of the application process of the preset application, and data transmission can be performed between the thread of executing playing the audio and the thread of executing recording the audio, so that the synthetic processing of playing the audio and recording the audio is facilitated. The data for both threads may also be stored separately.
In this step, the ear return sound and the background sound adjusted in step S120 are corresponding based on the same time node, for example, for the total duration of the audio file, there is a set of corresponding ear return sound and background sound at each time node (e.g., every second). And correspondingly synthesizing the ear return sound and the background sound of each time node, and outputting mixed sound.
In the embodiment, the ear return sound adjusted according to the target volume affects the volume of the ear return sound in the output mixed sound, does not affect the volume of the background sound in the mixed sound, and does not affect the set volume of the mixed sound.
In one example, the processor receives a user's normal instruction (e.g., clicking a side key), and if there is no other instruction, the processor controls to adjust the volume of the mixed sound.
In another example, the processor receives a conventional instruction of the user (e.g., turning up the volume), and receives an operation instruction of adjusting the ear return sound (e.g., turning up the volume), and then the processor controls to adjust only the ear return sound (e.g., turning up the volume), and the background sound can be kept unchanged.
It will be appreciated that the adjustment of the mixed sound may still be performed in the related art, such as clicking the side key structure (side key volume + and volume-) of the electronic device may default to adjusting the volume of the mixed sound.
In an exemplary embodiment, step S110 in this embodiment may include the following steps:
and S111, displaying an adjusting control in an application interface of the preset application.
And S112, determining the target volume according to the operation instruction on the adjusting control.
In step S111, the adjustment control may be, for example, a UI interface or an icon control, and the adjustment control is displayed on the application interface.
In one example, the adjustment control is a UI interface that includes a volume adjustment bar for adjusting the volume. In an application interface of a preset application, the electronic device can call the UI interface according to a touch instruction or a voice instruction of a user, and superimpose and display the UI interface on a part or all of the area of the application interface. Or when the user uses the ear return function is identified, a UI (user interface) is automatically displayed to remind the user whether the ear return volume adjustment is needed or not.
In another example, the adjustment controls are icon controls that may include an "earreturn volume +" virtual button and an "earreturn volume-" virtual button. And in the application interface of the preset application, the icon control can be displayed on the preset part of the application interface.
In step S112, the processor or the preset application of the electronic device may determine, according to the operation instruction on the adjustment control, a target volume corresponding to the operation instruction.
In one example, when the adjustment control is a UI interface, a volume adjustment bar is included in the UI interface. In this example, the operation instruction may be a slide instruction or a click instruction. And the electronic equipment determines the target volume according to the sliding distance or the clicking position of the user on the volume adjusting bar.
In another example, when the adjustment space is an icon control, the icon control includes an "ear return volume +" virtual button and an "ear return volume-" virtual button. In this example, the operation instruction may be a click or long-press instruction for two virtual keys. And the electronic equipment determines the target volume according to the number of clicks or the long press time of the user.
In this embodiment, the ear return sound, that is, the user sound in the ear return function, is adjusted by the adjustment control in the preset application. Therefore, the embodiment of the present disclosure can realize the independent adjustment of the ear return sound in the ear return function. And then more approach to the demand of the user in the use of the preset application process, effectively improving the user experience.
In an exemplary embodiment, the method in the present embodiment includes steps S110 to S130 as shown in fig. 1, and step S110 includes steps S111 to S112. As shown in fig. 2, in this embodiment, step S112 may include the following steps:
and S1121, determining a target volume level corresponding to the operation instruction according to the operation instruction.
And S1122, determining the corresponding target volume according to the target volume level.
In step S1121, the adjustment controls are different, and the target volume levels obtained according to the operation instruction may be different.
In one example, when the adjustment control is a UI interface, a volume adjustment bar is included in the UI interface. The volume adjustment bar may correspond to a plurality of volume levels or sound pressure levels, each volume level having a corresponding decibel (dB) interval.
Taking the operation instruction as the sliding instruction as an example, the electronic device may obtain the start position, the sliding direction, and the sliding distance of the sliding operation of the user on the volume adjustment bar. And determining to increase or decrease the volume level according to the sliding direction, and determining the level to be adjusted according to the length of the sliding distance.
For example, the volume level to be increased is determined based on the upward sliding direction. If the sliding distance is greater than the first distance threshold and less than the second distance threshold, increasing a volume level; if the sliding distance is greater than the second distance threshold, two volume levels are increased.
In another example, when the adjustment control is an icon control, different volume levels may be assigned according to different operations on virtual buttons in the icon control.
Taking the operation instruction as a long press as an example, the electronic device may obtain the length of time of the long press at any virtual key, and determine the level to be adjusted according to the length of time of the long press. For example, pressing the "ear return volume +" virtual key for a long time preset, if the preset time is greater than the first time threshold and less than the second time threshold, increasing a volume level; and if the preset duration is greater than the second duration threshold, increasing two volume levels.
In this step, the preset application of the electronic device may determine the target volume level according to the operation instruction. And sending the determined target volume level to an AudioFlinger (AF) of a system framework layer, wherein the AF is an audio center of an operating system of the electronic equipment and is used for processing audio data, such as mixed output of the audio data.
In step S1122, the target volume is the volume percentage. The electronic device may store configuration information including a mapping relationship between volume level and volume percentage.
In this step, after receiving the target volume level sent by the preset application, the audioflinger (af) of the system frame layer of the electronic device determines the volume percentage, that is, the target volume, corresponding to the target volume level in the configuration information according to the target volume level.
In an exemplary embodiment, step S110 in this embodiment may further include the following steps:
and S113, determining the target volume according to a preset instruction triggered by a side key structure based on the terminal equipment.
In this step, the preset instruction is different from the conventional instruction using the side key structure, such as long pressing for a preset time, double-clicking or multi-clicking, and the like. Different preset instructions may correspond to adjustment instructions (e.g., volume up or volume down). The processor determines the target volume according to a preset instruction, and adjusts the ear return sound by using the determined target volume. In other embodiments, the ear-back tone section function of the side key structure of the terminal device may also be triggered by a specific operation, such as when the user double-clicks one of the side keys, or presses both side keys at the same time, or double-clicks both side keys at the same time to start the ear-back tone section function of the side key structure. After the ear return pitch function is started, triggering a preset instruction for increasing the ear return pitch volume through the volume + key of the side key structure, so as to determine the target pitch; and reducing the preset instruction of the ear return volume through the volume-key of the side key structure, thereby determining the target volume.
In an exemplary embodiment, the method in the present embodiment includes steps S110 to S130 as shown in fig. 1. As shown in fig. 3, in this embodiment, step S120 may include the following steps:
s1201, determining the ear return sound in the storage file.
And S1202, obtaining the ear return sound.
And S1203, adjusting the current volume of the ear return sound to the target volume.
In step S1201, the processor of the electronic device may identify and determine the ear return in the storage file by the AF.
In step S1202, the processor or AF of the electronic device may acquire an ear return tone recorded based on the ear return function.
In step S1203, the processor may adjust the volume of the ear return tone through the AF control.
In an exemplary embodiment, the method for determining the ear return tone in step S1201 may include the following two examples:
in one example:
step S1201 includes: and traversing all audio files in the storage area of the electronic equipment, and determining that the audio stream type is a preset type and the audio file with the process identification of the preset application is the ear return sound. It will be appreciated that the process identifications are used to identify corresponding applications, each having a corresponding process identification.
The preset type is a low-latency playback (low _ latency) type, and the audio file of the preset type is used for representing that the recorded audio file and the playing audio file of the preset application have good synchronism.
In this example, as shown in fig. 4, step S1201 may include the steps of:
s201, judging whether the audio stream type of each audio file in the storage area is a preset type. If yes, go to step S202, otherwise go to step S204.
S202, judging whether the process Identification (ID) of the audio file is the process identification of the preset application. If yes, go to step S203, otherwise go to step S204.
S203, determining the audio file to be the ear return sound. Then, steps S1202 to S1203 are continuously performed.
And S204, ending the flow.
In another example:
step S1201 includes: and traversing all the audio files in the storage area of the preset application, and determining that the audio file with the audio stream type of the preset type is the ear return sound.
In this example, the processor or the AF of the electronic device may only identify the audio files in the storage area corresponding to the preset application, and further determine whether the audio stream type of each audio file conforms to a preset type, where the preset type is a low _ latency playback (low _ latency playback) type. And if so, determining the audio file conforming to the preset type as the ear return sound. If not, eliminating the audio files which do not accord with the preset type.
In an exemplary embodiment, the present disclosure further provides an audio adjusting apparatus applied to an electronic device with an ear return function. As shown in fig. 5, the apparatus in the present embodiment includes: a determination module 110, an adjustment module 120, and an output module 130. The apparatus of the present embodiment is used to implement the method as shown in fig. 1. The determining module 110 is configured to determine the target volume in a preset application. The adjusting module 120 is configured to adjust an ear return sound in a preset application according to the target volume, where the ear return sound is an audio recorded based on an ear return function. The output module 130 is configured to output the mixed sound according to the background sound to be played in the preset application and the adjusted ear return sound.
In this embodiment, the determining module 110 is configured to display an adjustment control in an application interface of a preset application; and determining the target volume according to the operation instruction on the adjusting control.
In an exemplary embodiment, still referring to fig. 5, the apparatus of the present embodiment comprises: a determination module 110, an adjustment module 120, and an output module 130. The apparatus of the present embodiment is used to implement the method as shown in fig. 2. Wherein the determining module 110 is configured to: determining a target volume level corresponding to the operation instruction according to the operation instruction; and determining the corresponding target volume according to the target volume level, wherein the target volume is the volume percentage.
In an exemplary embodiment, still referring to fig. 5, the apparatus of the present embodiment comprises: a determination module 110, an adjustment module 120, and an output module 130. The apparatus of the present embodiment is used to implement the method as shown in fig. 3 to 4. Wherein the adjusting module 120 is configured to: determining an ear return in a stored file; acquiring ear return sound; and adjusting the current volume of the ear return sound to the target volume.
In this embodiment, the adjusting module 120 is further configured to: and traversing all audio files in the storage area of the electronic equipment, and determining that the audio stream type is a preset type and the audio file with the process identification of the preset application is the ear return sound.
In this embodiment, the adjusting module 120 is further configured to: and traversing all the audio files in the storage area of the preset application, and determining that the audio file with the audio stream type of the preset type is the ear return sound.
In this embodiment, the determining module 110 is further configured to: and determining the target volume according to a preset instruction triggered by a side key structure based on the terminal equipment.
Fig. 6 is a block diagram of an electronic device. The present disclosure also provides for an electronic device, for example, the device 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Device 500 may include one or more of the following components: a processing component 502, a memory 504, a power component 506, a multimedia component 508, an audio component 510, an input/output (I/O) interface 512, a sensor component 514, and a communication component 516.
The processing component 502 generally controls overall operation of the device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 502 may include one or more processors 520 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interaction between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
The memory 504 is configured to store various types of data to support operation at the device 500. Examples of such data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 504 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power component 506 provides power to the various components of device 500. The power components 506 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the apparatus 500.
The multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 500 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 510 is configured to output and/or input audio signals. For example, the audio component 510 includes a Microphone (MIC) configured to receive external audio signals when the device 500 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 504 or transmitted via the communication component 516. In some embodiments, audio component 510 further includes a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor assembly 514 may detect an open/closed state of the device 500, the relative positioning of the components, such as a display and keypad of the device 500, the sensor assembly 514 may also detect a change in the position of the device 500 or a component of the device 500, the presence or absence of user contact with the device 500, orientation or acceleration/deceleration of the device 500, and a change in the temperature of the apparatus 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate communications between the device 500 and other devices in a wired or wireless manner. The device 500 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the device 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
A non-transitory computer readable storage medium, such as the memory 504 including instructions executable by the processor 520 of the device 500 to perform the method, is provided in another exemplary embodiment of the present disclosure. For example, the computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like. The instructions in the storage medium, when executed by a processor of the electronic device, enable the electronic device to perform the above-described method.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (13)

1. An audio adjusting method is applied to an electronic device with an ear return function, and comprises the following steps:
determining a target volume in a preset application;
adjusting an ear return sound in a preset application according to the target volume, wherein the ear return sound is an audio frequency recorded based on the ear return function;
and outputting mixed sound according to the background sound to be played in the preset application and the adjusted ear return sound.
2. The method of claim 1, wherein determining the target volume in the preset application comprises:
displaying an adjusting control in an application interface of a preset application;
and determining the target volume according to the operation instruction on the adjusting control.
3. The method according to claim 2, wherein the determining the target volume according to the operation instruction on the adjustment control comprises:
determining a target volume level corresponding to the operation instruction according to the operation instruction;
and determining corresponding target volume according to the target volume level, wherein the target volume is volume percentage.
4. The method of claim 1, wherein determining the target volume in the preset application comprises:
and determining the target volume according to a preset instruction triggered by a side key structure based on the terminal equipment.
5. The method of claim 1, wherein the adjusting the ear echo in the preset application according to the target volume comprises:
determining the ear return in a stored file;
acquiring the ear return sound;
adjusting the current volume of the ear return sound to the target volume.
6. The method of claim 5, wherein the determining the ear echo in a stored file comprises:
traversing all audio files in a storage area of the electronic equipment, and determining that the audio stream type is a preset type and the audio file with the process identification of the preset application is an ear return sound;
or traversing all the audio files in the storage area of the preset application, and determining that the audio file with the audio stream type of the preset type is the ear return sound.
7. An audio adjusting apparatus, applied to an electronic device with an ear return function, includes:
the determining module is used for determining the target volume in the preset application;
the adjusting module is used for adjusting the ear return sound in a preset application according to the target volume, wherein the ear return sound is audio recorded based on the ear return function;
and the output module is used for outputting mixed sound according to the background sound to be played in the preset application and the adjusted ear return sound.
8. The apparatus of claim 7, wherein the determining module is configured to:
displaying an adjusting control in an application interface of a preset application;
and determining the target volume according to the operation instruction on the adjusting control.
9. The apparatus of claim 8, wherein the determining module is configured to:
determining a target volume level corresponding to the operation instruction according to the operation instruction;
and determining corresponding target volume according to the target volume level, wherein the target volume is volume percentage.
10. The apparatus of claim 7, wherein the adjustment module is configured to:
determining the ear return in a stored file;
acquiring the ear return sound;
adjusting the current volume of the ear return sound to the target volume.
11. The apparatus of claim 10, wherein the adjustment module is further configured to:
traversing all audio files in a storage area of the electronic equipment, and determining that the audio stream type is a preset type and the audio file with the process identification of the preset application is an ear return sound;
the adjustment module is further configured to: and traversing all the audio files in the storage area of the preset application, and determining that the audio file with the audio stream type of the preset type is the ear return sound.
12. An electronic device, comprising:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the audio conditioning method of any of claims 1 to 6.
13. A non-transitory computer-readable storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the audio conditioning method of any of claims 1 to 6.
CN202210024336.6A 2022-01-07 2022-01-07 Audio adjusting method and device, electronic equipment and readable storage medium Pending CN114416015A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210024336.6A CN114416015A (en) 2022-01-07 2022-01-07 Audio adjusting method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210024336.6A CN114416015A (en) 2022-01-07 2022-01-07 Audio adjusting method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN114416015A true CN114416015A (en) 2022-04-29

Family

ID=81271434

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210024336.6A Pending CN114416015A (en) 2022-01-07 2022-01-07 Audio adjusting method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN114416015A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115119007A (en) * 2022-06-23 2022-09-27 恩平市新盈科电声科技有限公司 Big data based audio acquisition and processing system and method for online live broadcast recording

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115119007A (en) * 2022-06-23 2022-09-27 恩平市新盈科电声科技有限公司 Big data based audio acquisition and processing system and method for online live broadcast recording
CN115119007B (en) * 2022-06-23 2023-03-03 恩平市新盈科电声科技有限公司 Big data based audio acquisition and processing system and method for online live broadcast recording

Similar Documents

Publication Publication Date Title
EP3147907A1 (en) Control method and apparatus for playing audio
CN106454644B (en) Audio playing method and device
CN111381746B (en) Parameter adjusting method, device and storage medium
CN107994879B (en) Loudness control method and device
US20170034336A1 (en) Event prompting method and device
CN108845787B (en) Audio adjusting method, device, terminal and storage medium
CN109324846B (en) Application display method and device and storage medium
CN105898573B (en) Multimedia file playing method and device
CN114513571A (en) Device connection method and device, electronic device and readable storage medium
CN108600503B (en) Voice call control method and device
CN112243142B (en) Method, device and storage medium for processing audio data
CN112882622A (en) Data processing method and device, terminal and storage medium
CN114416015A (en) Audio adjusting method and device, electronic equipment and readable storage medium
CN110913276B (en) Data processing method, device, server, terminal and storage medium
CN111182362A (en) Video control processing method and device
US20200106936A1 (en) Full screen terminal, operation control method, and device based on full screen terminal
WO2018058331A1 (en) Method and apparatus for controlling volume
CN112040059B (en) Application control method, application control device and storage medium
CN111246012B (en) Application interface display method and device and storage medium
CN110113256B (en) Information interaction method and device, server, user terminal and readable storage medium
CN109408025B (en) Audio playing method, device and storage medium
CN107340990B (en) Playing method and device
CN111610899A (en) Interface display method, interface display device and storage medium
CN111538447A (en) Information display method, device, equipment and storage medium
CN111984221B (en) Audio output method, device, equipment and computer readable storage medium

Legal Events

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