A method, apparatus and electronic device for audio mode correction

By acquiring and monitoring audio patterns to adjust behavior, and using a mode conversion interface to correct audio patterns to match scene information, the problem of abnormal audio adjustment in electronic devices was solved, improving system stability and user experience.

CN113168302BActive Publication Date: 2026-02-17SHENZHEN HEYTAP TECHNOLOGY CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201880098456.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-11-26
Publication Date
2026-02-17
Estimated Expiration
2039-03-05

AI Technical Summary

Technical Problem

In the prior art, electronic devices experience abnormal and irreversible audio adjustments in different audio modes, leading to a decline in user experience.

Method used

By acquiring scene information from the application, the system monitors audio modes to adjust behavior, and when an anomaly is detected, it uses a mode conversion interface to correct the audio mode to match the scene information.

Benefits of technology

It improves system stability, enhances user experience, ensures audio modes match in different scenarios, and avoids issues with abnormal adjustments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113168302B_ABST
    Figure CN113168302B_ABST
Patent Text Reader

Abstract

The present application relates to a kind of audio mode correction method, comprising: obtaining the scene information of application;Receive audio mode adjustment instruction, according to the adjustment instruction, the audio mode of the application is adjusted;Monitoring the audio mode adjustment behavior of the application, if the audio mode output exception mark is monitored, the audio mode of the application is corrected, to make the corrected audio mode and the scene information match.Correspondingly, the present application also provides an audio mode correction device, electronic equipment and readable storage medium, solve the problem that audio adjustment is not recoverable in prior art, improve the stability of system, improve user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of information technology, and in particular to a method, apparatus, and electronic device for audio pattern correction. Background Technology

[0002] With technological advancements, electronic devices offer increasingly diverse audio modes. Currently, audio modes can be broadly categorized into several mainstream modes, including ringtone, system, media, call, and alarm clock. The adjustment methods for each audio mode are independent; for example, pressing the volume control in alarm clock mode adjusts the alarm volume, while in media audio mode, it adjusts the media audio volume. However, due to the complexity of operating current electronic devices, some applications may encounter anomalies when accessing audio resources, leading to irreversible audio adjustment errors and significantly impacting usability. Summary of the Invention

[0003] This application provides a method for audio mode correction, including:

[0004] Obtain application scene information, wherein the scene information is one or more of the following: audio playback scene, recording scene, voice call scene, and ringtone playback scene;

[0005] Receive an audio mode adjustment command, and adjust the audio mode of the application according to the adjustment command;

[0006] Monitor the application's audio mode adjustment behavior. If an abnormal audio mode output flag is detected, correct the application's audio mode so that the corrected audio mode matches the scene information.

[0007] This application also provides an audio mode correction apparatus, including:

[0008] The acquisition module is used to acquire the application's scene information, which is one or more combinations of audio playback scene, recording scene, voice call scene and ringtone playback scene;

[0009] An adjustment module is used to receive audio mode adjustment instructions and adjust the audio mode of the application according to the adjustment instructions;

[0010] The correction module is used to monitor the audio mode adjustment behavior of the application. If an abnormal audio mode output is detected, the application's audio mode is corrected so that the corrected audio mode matches the scene information.

[0011] This application also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, characterized in that, when the computer program is executed by the processor, the processor performs the audio mode correction steps as described above.

[0012] This application also provides a computer non-volatile readable storage medium storing a computer program thereon, which, when executed by a processor, implements the audio mode correction steps described above.

[0013] When implementing the above method, electronic devices and computer-readable storage media can adjust the audio mode to match the scene mode according to the different scene modes, thereby reducing the risk of audio abnormalities, enhancing system stability, and improving user experience. Attached Figure Description

[0014] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other embodiments can be obtained from these drawings without creative effort.

[0015] Figure 1 This is a flowchart of an audio mode correction method according to one embodiment;

[0016] Figure 2 This is a schematic diagram of the structure of an audio mode correction device according to an embodiment;

[0017] Figure 3 This is a schematic diagram of the internal structure of an electronic device in one embodiment;

[0018] Figure 4 This is a block diagram of a portion of the structure of an electronic device related to a computer device provided in an embodiment of the present invention. Detailed Implementation

[0019] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.

[0020] like Figure 1 As shown in the figure, this application provides an audio mode correction method, which includes:

[0021] S110. Obtain the application's scene information, wherein the scene information is one or more of the following: audio playback scene, recording scene, voice call scene, and ringtone playback scene.

[0022] Electronic devices can acquire scene information of one or more applications in real time. This scene information can include audio playback scenes, recording scenes, voice call scenes, and other scenarios. Each scene type corresponds to a specific audio mode. For example, when an application is in an audio playback scene, the audio mode should be media audio mode. Correspondingly, when the user adjusts the volume, they can only adjust the corresponding media audio mode and cannot adjust other audio modes, such as alarm mode or call mode. Specifically, audio playback scenes are matched with media audio modes, recording scenes correspond to silent mode, voice call scenes correspond to call audio mode, and alarm scene corresponds to alarm playback mode. Call mode can be further subdivided into earpiece and hands-free modes.

[0023] Application context information can be obtained through the system's internal listener function (listen() function). When needed, the application calls the corresponding audio resources. The listener function records the audio resources called by the application at this time and generates corresponding context information. For example, if the current audio resource is music, the generated context information is audio playback; if there is an incoming call and a call has been established, the generated context information is voice call. In addition, application context information can also be obtained by using built-in or external sensors on the electronic device to detect the external environment. For example, the electronic device can use a distance sensor to sense the distance between the electronic device and the user; if the distance is less than a preset threshold, the context information is determined to be a voice call.

[0024] It should be noted that the application may correspond to one or more audio modes. In this embodiment, the audio mode corresponding to the application may be changed in different scenarios. For example, the application may call the audio mode of voice call when a call comes in, and automatically switch to media audio mode after the call ends.

[0025] S120. Receive an audio mode adjustment instruction, and adjust the audio mode of the application according to the adjustment instruction;

[0026] Audio mode adjustment commands can be commands to adjust the current volume, or to adjust various parameters such as pitch and sound quality of the current audio. Taking volume adjustment as an example, when a user presses a physical or virtual volume button, the electronic device receives the audio mode adjustment command and adjusts the volume corresponding to the current audio mode of the application according to the command.

[0027] S130. Monitor the audio mode adjustment behavior of the application. If an abnormal audio mode output flag is detected, correct the audio mode of the application so that the corrected audio mode matches the scene information.

[0028] Electronic devices can monitor the audio mode adjustment behavior of applications through built-in listening functions. Taking Android devices as an example, a system-level listening module can be created at the system framework layer (native / framework layer) to monitor the audio mode of the application. Alternatively, a separate listening process can be created to monitor the application's audio mode through message transmission mechanisms. For instance, a listening module can be set up at the framework layer and run in a system service program (system_server). Since this listening module is set up at the system-level service framework layer, it can easily interact with other system services without worrying about permission issues during system calls. Furthermore, an independent listening process can be created, in which a separate listening function is set up and called. This process can be set to start automatically on boot and monitor the audio call behavior and audio mode adjustment behavior of any other application in real time. Specifically, it can capture the currently invoked audio mode ID information and adjustment amount in real time to determine the audio mode and specific adjustment amount corresponding to the current adjustment behavior. This can be developed independently, without coupling with the system, facilitating subsequent development and upgrades.

[0029] If an electronic device detects an abnormal audio mode output flag, indicating that the audio mode adjustment is not matching the current scene, it determines that the current audio mode is abnormal and outputs an abnormal flag. This abnormal flag indicates an abnormal audio mode state. In the Android system, this flag can be a checksum for audio mode monitoring; for example, "0" represents normal and "1" represents abnormal. If the checksum outputs 1, the current audio mode is determined to be abnormal. Alternatively, the abnormal flag can be a string or other identifier that checks the degree of matching between the current audio mode and the current scene. If they do not match, the flag is output as abnormal; if they match, the flag is output as normal.

[0030] In S130, the specific method for correcting the audio mode of the application can be:

[0031] A mode conversion interface is set up to perform mode conversion on the audio mode. In the Android system, according to the current Google SDK development package agreement, there is a setmode function that can be used as this mode conversion interface. Under the current Android framework, audio mode conversion can be achieved by calling the setmode function. For example, setmode(0) can be defined as media audio mode, setmode(1) as ringtone mode, setmode(2) as voice call mode, etc. Specifically, setting up a mode conversion interface to perform mode conversion on the audio mode can be achieved by setting a scene information and an audio mode mapping table, and according to the mapping table, the audio mode of the application can be converted to an audio mode that matches the scene information through the mode conversion interface. As shown in the example above, specifically, in the mapping table, the audio playback scene matches the media audio mode, the recording scene corresponds to the silent mode, the voice call scene corresponds to the call audio mode, and the alarm scene corresponds to the alarm playback mode. The call mode can be further subdivided into earpiece and hands-free mode. The mapping table can be stored in the electronic device's memory as a database. When needed, the mapping table can be accessed through internal instructions to determine the audio mode corresponding to the current scene mode.

[0032] If, during program execution, the audio mode adjustment is not an adjustment that matches the current scene, then the current audio mode is determined to be abnormal. In this embodiment, the audio mode needs to be corrected. The audio mode correction for different scenes will be described below:

[0033] When the scene information is an audio playback scene and the audio mode is non-media audio, the current audio mode is considered abnormal. The application's audio mode is then corrected, specifically by changing the audio mode to media audio. Adjusting media audio can involve adjusting the sound quality, volume, etc., of the media audio mode. The audio playback scene must match the media audio mode.

[0034] If the scene information is a recording scene and the audio mode is non-mute, then the current audio mode is considered abnormal, and the application's audio mode is corrected. Specifically, this can be done by correcting the application's audio mode to mute mode, where the recording scene matches the mute mode. Correcting the application's audio mode to mute mode can be further done by setting the audio mode to media audio mode and adjusting the media audio volume to 0, or by setting the audio mode to system audio mode and adjusting the system audio volume to 0.

[0035] When the scenario information is a voice call scenario and the audio mode is a non-call mode, the current audio mode is considered abnormal. The application's audio mode is then corrected. Specifically, the audio mode is corrected to a call mode, where the voice call scenario matches the call mode. Furthermore, when the call mode is earpiece mode, the earpiece mode volume is adjusted; or, when the call mode is hands-free mode, the hands-free mode volume is adjusted.

[0036] When the scene information is a ringtone playback scene and the audio mode is not a ringtone mode, the current audio mode is considered abnormal. The application's audio mode is then corrected. Specifically, the audio mode is corrected to ringtone audio, where the audio playback scene matches the media audio mode. Correcting the audio mode to ringtone audio can specifically involve adjusting the ringtone volume.

[0037] When the scene information is a ringtone playback scene and the audio mode is a non-ringtone mode, the current audio mode is considered abnormal. The application's audio mode is then corrected. Specifically, the audio mode is corrected to a ringtone mode, where the ringtone playback scene matches the ringtone mode. Correcting the audio mode to a ringtone mode can be further defined as adjusting the audio adjustment to adjust the volume of the ringtone audio mode.

[0038] In this embodiment, by acquiring scene information and monitoring the audio mode adjustment behavior of the application, the audio mode is corrected if the behavior is abnormal, so that the corrected audio mode matches the corresponding scene. This solves the problem that the audio adjustment is unrecoverable after abnormality in the prior art, improves the stability of the system, and enhances the user experience.

[0039] like Figure 2 As shown, this application embodiment also provides an audio mode correction device 20, which includes:

[0040] The acquisition module 21 is used to acquire the application's scene information, which is one or more combinations of audio playback scene, recording scene, voice call scene and ringtone playback scene;

[0041] The acquisition module 21 can acquire scene information of one or more applications in real time. This scene information can include audio playback scenes, recording scenes, voice call scenes, and alarm clock scenes. Each scene type corresponds to a specific audio mode. For example, when an application is in an audio playback scene, the audio mode should be media audio mode. Correspondingly, when the user adjusts the volume, they can only adjust the corresponding media audio mode and cannot adjust other audio modes, such as alarm clock mode or call mode. Specifically, audio playback scenes correspond to media audio modes, recording scenes correspond to silent mode, voice call scenes correspond to call audio mode, and alarm clock scenes correspond to alarm clock playback mode. Call mode can be further subdivided into earpiece and hands-free modes.

[0042] Application context information can be obtained through the system's internal listener function (listen() function). When needed, the application calls the corresponding audio resources. The listener function records the audio resources called by the application at this time and generates corresponding context information. For example, if the current audio resource is music, the generated context information is audio playback; if there is an incoming call and a call has been established, the generated context information is voice call. In addition, application context information can also be obtained by using built-in or external sensors on the electronic device to detect the external environment. For example, the electronic device can use a distance sensor to sense the distance between the electronic device and the user; if the distance is less than a preset threshold, the context information is determined to be a voice call.

[0043] It should be noted that the application may correspond to one or more audio modes. In this embodiment, the audio mode corresponding to the application may be changed in different scenarios. For example, the application may call the audio mode of voice call when a call comes in, and automatically switch to media audio mode after the call ends.

[0044] The adjustment module 22 is used to receive audio mode adjustment instructions and adjust the audio mode of the application according to the adjustment instructions;

[0045] Audio mode adjustment commands can be commands to adjust the current volume, or to adjust various parameters such as the pitch and sound quality of the current audio. Taking volume adjustment as an example, when the user presses a physical or virtual volume button, the adjustment module 22 receives the audio mode adjustment command and adjusts the volume corresponding to the current audio mode of the application according to the command.

[0046] The correction module 23 is used to monitor the audio mode adjustment behavior of the application. If an abnormal audio mode output is detected, the application's audio mode is corrected so that the corrected audio mode matches the scene information.

[0047] The calibration module 23 can monitor the audio mode adjustment behavior of applications through a listening function. Taking the Android system as an example, the calibration module 23 can create a system-level listening module at the system framework layer (native / framework layer) to monitor the audio mode of the application. Alternatively, it can create an independent listening process to monitor the audio mode of the application through a message transmission mechanism. For example, the calibration module 23 can set up a listening module at the framework layer and run it in a system service program (system_server). Since this listening module is set up at the system-level service framework layer, it can easily interact with other system services without worrying about permission issues during system calls. In addition, an independent listening process can be created, in which a separate listening function is set up and called. This process can be set to start automatically on boot and monitor the audio call behavior and audio mode adjustment behavior of any other application in real time. Specifically, it can capture the audio mode ID information and adjustment amount of the currently called audio mode in real time to determine the audio mode and specific adjustment amount corresponding to the current adjustment behavior. This can be developed independently without being coupled with the system, facilitating subsequent development and upgrades.

[0048] The calibration module 23 calibrates the audio mode of the application, specifically by:

[0049] A mode conversion interface is set up to perform mode conversion on the audio mode. In the Android system, according to the current Google SDK development package agreement, there is a setmode function that can be used as this mode conversion interface. Under the current Android framework, audio mode conversion can be achieved by calling the setmode function. For example, setmode(0) can be defined as media audio mode, setmode(1) as ringtone mode, setmode(2) as voice call mode, etc. Specifically, setting up a mode conversion interface to perform mode conversion on the audio mode can be achieved by setting a scene information and an audio mode mapping table, and according to the mapping table, the audio mode of the application can be converted to an audio mode that matches the scene information through the mode conversion interface. As shown in the example above, specifically, in the mapping table, the audio playback scene matches the media audio mode, the recording scene corresponds to the silent mode, the voice call scene corresponds to the call audio mode, and the alarm scene corresponds to the alarm playback mode. The call mode can be further subdivided into earpiece and hands-free mode. The mapping table can be stored in the electronic device's memory as a database. When needed, the mapping table can be accessed through internal instructions to determine the audio mode corresponding to the current scene mode.

[0050] If, during program execution, the audio mode adjustment is not an audio mode that matches the current scene, then the current audio mode is determined to be abnormal. In this embodiment, the correction module 23 needs to correct the audio mode. The audio mode correction for different scenes will be described below:

[0051] When the scene information is an audio playback scene and the audio mode is non-media audio, the current audio mode is considered abnormal. The correction module 23 then corrects the application's audio mode, specifically by changing the audio mode to media audio. Adjusting the media audio mode can specifically involve adjusting the sound quality, volume, etc., of the media audio mode. The audio playback scene must match the media audio mode.

[0052] When the scene information is a recording scene and the audio mode is non-mute, the current audio mode is considered abnormal. The correction module 23 then corrects the application's audio mode, specifically by correcting the application's audio mode to mute mode, where the recording scene matches the mute mode. Specifically, correcting the application's audio mode to mute mode can be achieved by setting the audio mode to media audio mode and adjusting the media audio volume to 0, or by setting the audio mode to system audio mode and adjusting the system audio volume to 0.

[0053] When the scenario information is a voice call scenario and the audio mode is a non-call mode, the current audio mode is considered abnormal. The correction module 23 then corrects the application's audio mode, specifically by correcting the audio mode to a call mode, where the voice call scenario matches the call mode. Furthermore, when the call mode is earpiece mode, the earpiece mode volume is adjusted; or, when the call mode is hands-free mode, the hands-free mode volume is adjusted.

[0054] When the scene information is a ringtone playback scene and the audio mode is a non-ringtone mode, the current audio mode is considered abnormal. The correction module 23 then corrects the application's audio mode, specifically by correcting the audio mode to ringtone audio, where the audio playback scene matches the media audio mode. Specifically, correcting the audio mode to ringtone audio can be done by adjusting the ringtone volume.

[0055] When the scene information is a ringtone playback scene and the audio mode is a non-ringtone mode, the current audio mode is considered abnormal. The correction module 23 then corrects the application's audio mode, specifically by correcting the audio mode to a ringtone mode, where the ringtone playback scene matches the ringtone mode. Specifically, correcting the audio mode to a ringtone mode can be achieved by adjusting the audio adjustment to adjust the volume of the ringtone audio mode.

[0056] In this embodiment, the acquisition module 21 acquires scene information, and the correction module 23 monitors the audio mode adjustment behavior of the application. If the behavior is abnormal, the audio mode is corrected so that the corrected audio mode matches the corresponding scene. This solves the problem that the audio adjustment is unrecoverable after abnormality in the prior art, improves the stability of the system, and enhances the user experience.

[0057] Figure 3 This is a schematic diagram of the internal structure of an electronic device in one embodiment. For example... Figure 3As shown, the electronic device includes a processor, a non-volatile storage medium, internal memory and a network interface, a sound acquisition device, a speaker, a display screen, and an input device, all connected via a system bus. The non-volatile storage medium stores the operating system and computer-readable instructions. When executed by the processor, these computer-readable instructions implement an audio mode correction method for the electronic device. The processor provides computing and control capabilities to support the operation of the entire electronic device. The internal memory in the electronic device provides an environment for the execution of the computer-readable instructions in the non-volatile storage medium. The display screen of the electronic device can be a liquid crystal display (LCD) or an e-ink display, etc. The input device can be a touch layer covering the display screen, or buttons, a trackball, or a touchpad mounted on the casing of the electronic device, or an external keyboard, touchpad, or mouse, etc. The electronic device can be a mobile phone, a tablet computer, a personal digital assistant, or a wearable device, etc. Those skilled in the art will understand that... Figure 3 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the electronic device to which the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.

[0058] Specifically, the audio mode correction method mentioned above can be:

[0059] Obtain application scene information, wherein the scene information is one or more of the following: audio playback scene, recording scene, voice call scene, and ringtone playback scene;

[0060] Receive an audio mode adjustment command, and adjust the audio mode of the application according to the adjustment command;

[0061] Monitor the application's audio mode adjustment behavior. If an abnormal audio mode output flag is detected, correct the application's audio mode so that the corrected audio mode matches the scene information.

[0062] It should be noted that monitoring the audio mode adjustment behavior of the application can be achieved by: creating a system-level monitoring module at the system framework layer to monitor the audio mode of the application, or by creating a separate monitoring process to monitor the audio mode of the application through a message transmission mechanism.

[0063] Furthermore, the correction of the application's audio mode can specifically be:

[0064] A mode conversion interface is set up to convert the audio mode. Specifically, a scene information-audio mode mapping table can be set up, and the application's audio mode can be converted to an audio mode matching the scene information through the mode conversion interface according to the mapping table.

[0065] When the scene information is an audio playback scene and the audio mode is non-media audio, it is determined that the audio mode is abnormal. Correcting the application's audio mode can specifically be done as follows:

[0066] The audio mode is corrected to media audio, wherein the audio playback scenario matches the media audio mode. Correcting the audio to media audio can be achieved by adjusting the audio adjustment to adjust the volume of the media audio mode.

[0067] When the scene information is a recording scene and the audio mode is a non-mute mode, it is determined that the audio mode is abnormal. Correcting the application's audio mode can specifically be done as follows:

[0068] The application's audio mode is corrected to a silent mode, wherein the recording scenario matches the silent mode. Specifically, correcting the application's audio mode to a silent mode can be achieved by: setting the audio mode to media audio mode and adjusting the media audio volume to 0; or setting the audio mode to system audio mode and adjusting the system audio volume to 0.

[0069] When the scenario information is a voice call scenario and the audio mode is a non-call mode, it is determined that the audio mode is abnormal. Correcting the application's audio mode can specifically involve: correcting the audio mode to a call mode, wherein the voice call scenario matches the call mode. Specifically, when the call mode is earpiece mode, the earpiece mode volume is adjusted; or, when the call mode is hands-free mode, the hands-free mode volume is adjusted.

[0070] When the scene information is a ringtone playback scene and the audio mode is a non-ringtone mode, it is determined that the audio mode is abnormal. Correcting the application's audio mode can specifically involve: correcting the audio mode to ringtone audio, wherein the audio playback scene matches the media audio mode. Specifically, correcting the audio mode to ringtone audio can be done by: correcting the audio mode to adjust the ringtone volume.

[0071] Furthermore, embodiments of this application also provide a computer non-volatile readable storage medium storing a computer program thereon, which, when executed by a processor, implements the audio mode correction steps described above.

[0072] This invention also provides a computer device. For example... Figure 4 As shown, for ease of explanation, only the parts related to the embodiments of the present invention are shown. For specific technical details not disclosed, please refer to the method section of the embodiments of the present invention. The computer device can be any terminal device including electronic devices, tablet computers, PDAs (Personal Digital Assistants), POS (Point of Sales), in-vehicle computers, wearable devices, etc. Taking an electronic device as an example:

[0073] Figure 4 This is a block diagram of a partial structure of an electronic device related to the computer device provided in an embodiment of the present invention. (See reference...) Figure 4 The electronic device includes components such as: a radio frequency (RF) circuit 410, a memory 420, an input unit 430, a display unit 440, a sensor 450, an audio circuit 460, a wireless fidelity (WiFi) module 470, a processor 480, and a power supply 490. Those skilled in the art will understand that... Figure 4 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0074] The RF circuit 410 can be used for receiving and transmitting signals during information transmission or calls. It can receive downlink information from the base station and send it to the processor 480 for processing; it can also send uplink data to the base station. Typically, the RF circuit includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier (LNA), and a duplexer. Furthermore, the RF circuit 410 can also communicate wirelessly with networks and other devices. The aforementioned wireless communication can use any communication standard or protocol, including but not limited to Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, and Short Messaging Service (SMS).

[0075] The memory 420 can be used to store software programs and modules. The processor 480 executes various functional applications and data processing of the electronic device by running the software programs and modules stored in the memory 420. The memory 420 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as an application program for sound playback, an application program for image playback, etc.), etc.; the data storage area may store data created according to the use of the electronic device (such as audio data, address book, etc.). In addition, the memory 420 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0076] The input unit 430 can be used to receive input digital or character information, and to generate key signal inputs related to user settings and function control of the electronic device 400. Specifically, the input unit 430 may include a touch panel 431 and other input devices 432. The touch panel 431, also known as a touch screen, can collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch panel 431), and drive corresponding connection devices according to a pre-set program. In one embodiment, the touch panel 431 may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch position and the signal generated by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, sends it to the processor 480, and can receive and execute commands sent by the processor 480. In addition, the touch panel 431 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 431, the input unit 430 may also include other input devices 432. Specifically, other input devices 432 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control buttons, power buttons, etc.).

[0077] Display unit 440 can be used to display information input by the user or information provided to the user, as well as various menus of the electronic device. Display unit 440 may include display panel 441. In one embodiment, display panel 441 may be configured as a liquid crystal display (LCD), organic light-emitting diode (OLED), or similar form. In one embodiment, touch panel 431 may cover display panel 441. When touch panel 431 detects a touch operation on or near it, it transmits the information to processor 480 to determine the type of touch event. Subsequently, processor 480 provides corresponding visual output on display panel 441 based on the type of touch event. Although in Figure 4 In this embodiment, the touch panel 431 and the display panel 441 are two separate components to realize the input and output functions of the electronic device. However, in some embodiments, the touch panel 431 and the display panel 441 can be integrated to realize the input and output functions of the electronic device.

[0078] The electronic device 400 may also include at least one sensor 450, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 441 according to the ambient light level, and the proximity sensor can turn off the display panel 441 and / or the backlight when the electronic device is moved to the ear. The motion sensor may include an accelerometer, which can detect the magnitude of acceleration in various directions and detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the electronic device (such as switching between portrait and landscape modes) and vibration recognition functions (such as pedometers, taps), etc. In addition, the electronic device may also be equipped with other sensors such as gyroscopes, barometers, hygrometers, thermometers, and infrared sensors.

[0079] Audio circuit 460, speaker 461, and microphone 462 provide an audio interface between the user and the electronic device. Audio circuit 460 converts received audio data into electrical signals and transmits them to speaker 461, where speaker 461 converts them into sound signals for output. On the other hand, microphone 462 converts collected sound signals into electrical signals, which are received by audio circuit 460, converted into audio data, and then output to processor 480 for processing. The audio data can then be transmitted to another electronic device via RF circuit 410, or output to memory 420 for further processing.

[0080] WiFi is a short-range wireless transmission technology. Electronic devices using a WiFi module 470 can help users send and receive emails, browse web pages, and access streaming media, providing users with wireless broadband internet access. Although Figure 4 WiFi module 470 is shown, but it is understood that it is not a necessary component of electronic device 400 and can be omitted as needed.

[0081] The processor 480 is the control center of the electronic device. It connects various parts of the electronic device via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 420, and by calling data stored in the memory 420, it performs various functions and processes data, thereby providing overall monitoring of the electronic device. In one embodiment, the processor 480 may include one or more processing units. In one embodiment, the processor 480 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications; and the modem processor mainly handles wireless communication. It is understood that the modem processor may also not be integrated into the processor 480.

[0082] The electronic device 400 also includes a power supply 490 (such as a battery) that supplies power to various components. Preferably, the power supply can be logically connected to the processor 480 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system.

[0083] In one embodiment, the electronic device 400 may further include a camera, a Bluetooth module, etc.

[0084] In this embodiment of the invention, the processor 480 included in the computer device implements the methods of the above embodiments when executing a computer program stored in a memory.

[0085] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), etc. This invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the methods of the above embodiments.

[0086] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0087] The embodiments described above are merely illustrative of several implementations of the present invention, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these all fall within the protection scope of the present invention. Therefore, the protection scope of this invention patent should be determined by the appended claims.

Claims

1. A method of audio mode correction, characterized by, The method comprises: obtaining scene information of an application, the scene information being a combination of one or more of an audio playing scene, a recording scene, a voice call scene, and a ringtone playing scene; receiving an externally input audio mode adjustment instruction, and adjusting an audio parameter of an audio mode of the application according to the adjustment instruction, the audio parameter including at least one of sound quality and volume; monitoring an audio mode adjustment behavior of the application, and correcting the audio mode of the application if an abnormality identifier of the audio mode adjustment output is monitored, the abnormality identifier indicating that the current audio mode does not match the scene information; wherein the correction of the audio mode of the application to match the scene information comprises at least one of: when the scene information is an audio playing scene and the audio mode is a non-media audio mode, correcting the audio mode to a media audio mode, the audio playing scene matching the media audio mode; when the scene information is a recording scene and the audio mode is a non-silence mode, correcting the audio mode to a silence mode, the recording scene matching the silence mode; when the scene information is a voice call scene and the audio mode is a non-call mode, correcting the audio mode to a call audio mode, the voice call scene matching the call mode; when the scene information is a ringtone playing scene and the audio mode is a non-ringtone mode, correcting the audio mode to a ringtone mode, the ringtone playing scene matching the ringtone mode.

2. The method of claim 1, wherein, The correction of the audio mode of the application comprises: setting a mode conversion interface, and converting the audio mode through the mode conversion interface.

3. The method of claim 2, wherein, The setting of the mode conversion interface and the conversion of the audio mode through the mode conversion interface comprise: setting a scene information and audio mode mapping table; converting the audio mode of the application to an audio mode matching the scene information through the mode conversion interface according to the mapping table.

4. The method according to any one of claims 1 to 3, characterized in that, The correction of the audio mode to a media audio mode comprises: correcting the audio adjustment to an adjusted volume size of the media audio mode.

5. The method according to any one of claims 1 to 3, characterized in that, The correction of the audio mode to a silence mode comprises: setting the audio mode to a media audio mode and adjusting the volume of the media audio to 0, or, setting the audio mode to a system audio mode and adjusting the volume of the system audio to 0.

6. The method according to any one of claims 1 to 3, characterized in that, The method further comprises: when the call mode is a receiver mode, adjusting the volume of the receiver mode, or when the call mode is a hands-free mode, adjusting the volume of the hands-free mode.

7. The method according to any one of claims 1 to 3, characterized in that, The correction of the audio mode of the application to match the scene information further comprises: when the scene information is a ringtone playing scene and the audio mode is a non-ringtone mode, correcting the audio mode to a ringtone audio, wherein the ringtone playing scene matches the ringtone audio.

8. The method of claim 7, wherein, The correction of the audio mode to a ringtone audio comprises: correcting the audio mode to an adjusted volume size of the ringtone.

9. The method according to any one of claims 1 to 3, characterized in that, The correction of the audio mode to a ringtone mode comprises: The audio adjustment is corrected to adjust the volume size of the ring mode.

10. The method of claim 1, wherein, The audio mode adjustment behavior of the application is monitored, including: A system-level monitoring module is created at a system framework layer, and the audio mode of the application is monitored through the monitoring module, or A monitoring process is independently created to monitor the audio mode of the application through a message transmission mechanism.

11. An apparatus for audio mode correction, the apparatus comprising: Comprise: An acquisition module is configured to acquire scene information of an application, the scene information being a combination of one or more of an audio playing scene, a recording scene, a voice call scene, and a ring playing scene; An adjustment module is configured to receive an externally input audio mode adjustment instruction, and adjust an audio parameter of an audio mode of the application according to the adjustment instruction, the audio parameter including at least one of sound quality and volume; A correction module is configured to monitor the audio mode adjustment behavior of the application, and if an abnormality identifier of the audio mode output is monitored, the abnormality identifier indicating that the current audio mode does not match the scene information, correct the audio mode of the application so that the corrected audio mode matches the scene information; Wherein, the audio mode of the application is corrected so that the corrected audio mode matches the scene information, including at least one of: When the scene information is an audio playing scene and the audio mode is a non-media audio, the audio mode is corrected to a media audio mode, the audio playing scene matching the media audio mode; When the scene information is a recording scene and the audio mode is a non-silence mode, the audio mode is corrected to a silence mode, the recording scene matching the silence mode; When the scene information is a voice call scene and the audio mode is a non-call mode, the audio mode is corrected to a call audio mode, the voice call scene matching the call mode; When the scene information is a ring playing scene and the audio mode is a non-ring mode, the audio mode is corrected to a ring mode, the ring playing scene matching the ring mode.

12. An electronic device comprising a memory and a processor, said memory having stored therein a computer program, characterised in that, The computer program is executed by the processor, so that the processor executes the steps of the audio mode correction as claimed in any one of claims 1-10.

13. A computer non-volatile readable storage medium having stored thereon a computer program, characterized in that The computer program is executed by the processor, so that the processor executes the steps of the audio mode correction as claimed in any one of claims 1-10.

Citation Information

Patent Citations

  • Scene sound effect control method and electronic device

    CN105959482A

  • Audio parameter processing method and device

    CN106775562A