WO2020048216A1 - Procédé et appareil de réglage d'effet audio, dispositif électronique et support de stockage - Google Patents
Procédé et appareil de réglage d'effet audio, dispositif électronique et support de stockage Download PDFInfo
- Publication number
- WO2020048216A1 WO2020048216A1 PCT/CN2019/094933 CN2019094933W WO2020048216A1 WO 2020048216 A1 WO2020048216 A1 WO 2020048216A1 CN 2019094933 W CN2019094933 W CN 2019094933W WO 2020048216 A1 WO2020048216 A1 WO 2020048216A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- electronic device
- sound
- target application
- running
- audio
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/16—Sound input; Sound output
- G06F3/167—Audio in a user interface, e.g. using voice commands for navigating, audio feedback
Definitions
- the present application relates to the technical field of electronic devices, and more particularly, to a sound effect adjustment method, device, electronic device, and storage medium.
- this application proposes a sound effect adjustment method, device, electronic device, and storage medium to solve the above problems.
- an embodiment of the present application provides a sound effect adjustment method applied to an electronic device.
- the method includes: detecting whether the electronic device is running a target application program, wherein the target application program can output when the target application program is running. Audio; when the electronic device is running the target application, obtain a current environmental sound of the environment in which the electronic device is located; and adjust the electronic device's Output sound effects.
- an embodiment of the present application provides a sound effect adjusting device applied to an electronic device.
- the device includes a detection module for detecting whether the electronic device runs a target application program, where the target application program Audio can be output during runtime; an acquisition module for acquiring the current environmental sound of the environment in which the electronic device is located when the electronic device is running the target application; an adjustment module for acquiring the current environmental sound based on the current environmental sound Adjusting an output sound effect of the electronic device during the running of the target application.
- an embodiment of the present application provides an electronic device including a memory and a processor.
- the memory is coupled to the processor, the memory stores instructions, and is executed when the instructions are executed by the processor.
- the processor executes the above method.
- an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores program code, and executes the foregoing method when the program code is run by a processor.
- FIG. 1 is a schematic flowchart of a sound effect adjustment method according to an embodiment of the present application
- FIG. 2 is a schematic flowchart of a sound effect adjustment method according to another embodiment of the present application.
- FIG. 3 shows a schematic flowchart of step S250 of the sound effect adjustment method provided by the embodiment shown in FIG. 2 of the present application;
- FIG. 4 is a schematic flowchart of a sound effect adjustment method according to another embodiment of the present application.
- FIG. 5 is a schematic flowchart of step S340 of the sound effect adjustment method provided by the embodiment shown in FIG. 4 of the present application;
- FIG. 6 shows a module block diagram of a sound effect adjustment device provided by an embodiment of the present application
- FIG. 7 shows a block diagram of an electronic device according to an embodiment of the present application for performing a sound effect adjustment method according to an embodiment of the present application
- FIG. 8 illustrates a storage unit for saving or carrying a program code for implementing a sound effect adjustment method according to an embodiment of the present application.
- the audio architecture of electronic devices is similar to the audio architecture of computers.
- Processor and built-in audio CODEC codec
- the processor converts it into an I2S signal, transmits it to a CODEC, converts it to an analog signal, and then plays it.
- sound effects refer to the effects produced by sound, and to enhance the realism, atmosphere or theatrical information of the scene.
- Noises or sounds added to the vocal cords are artificially produced or enhanced sounds used to enhance the sound processing of movies, video games, music, or other media art or other content.
- video game sound effects refer to Percussion, running, gunfire, etc. Therefore, with the development of electronic device technology, more and more electronic devices begin to provide sound effect output.
- the current electronic device's sound effect function is mainly used by the user to manually select and set the sound effect mode of a certain scene according to their own preferences.
- the conventional and fixed processing method does not consider the influence of external factors. For example, if the influence of different environmental sounds is not considered, the output sound effect is fixed.
- the inventor has discovered through long-term research and proposed a sound effect adjustment method, device, electronic device, and storage medium provided in the embodiments of the present application.
- the electronic device is adjusted to run the target application program according to the environmental sound of the environment where the electronic device is located.
- Time output sound effects to achieve automatic and quick configuration of the output sound effects of electronic devices, improve the output sound effect and user experience.
- the specific sound effect adjustment method is described in detail in subsequent embodiments.
- FIG. 1 is a schematic flowchart of a sound effect adjustment method according to an embodiment of the present application.
- the sound effect adjustment method is used to adjust the output sound effect of the electronic device when running the target application program according to the ambient sound of the environment in which the electronic device is located, to automatically and quickly configure the output sound effect of the electronic device, and to improve the effect of the output sound effect and the user experience.
- the sound effect adjustment method is applied to a sound effect adjustment device 200 as shown in FIG. 6 and an electronic device 100 (FIG. 7) configured with the sound effect adjustment device 200.
- an electronic device is taken as an example to describe the specific process of this embodiment.
- the electronic device applied in this embodiment may be a smart phone, a tablet computer, a wearable electronic device, a vehicle-mounted device, a gateway, etc. This is not specifically limited.
- the process shown in FIG. 1 will be described in detail below.
- the sound effect adjustment method may specifically include the following steps:
- Step S110 It is detected whether a target application is running on the electronic device, wherein the target application can output audio when running.
- the applications running on the electronic device may include applications running on the foreground of the electronic device, applications running on the background of the electronic device, or applications running on the foreground and background of the electronic device.
- an application running in the foreground refers to an application that can usually interact with the user.
- An application that can run in the foreground is suspended when it is not visible (such as a game).
- An application running in the background refers to the user Interaction is very limited. Except during the configuration, its other lifetimes are hidden (such as SMS auto-response program and alarm clock program); applications that are switched between the foreground and background of the electronic device are those that can be used in the foreground and background. Switch between applications at will. Understandably, when the application program is not killed, it indicates that the application program runs on the electronic device.
- the electronic device may run only one application or multiple applications at the same time.
- the application may run in the foreground of the electronic device and in the background of the electronic device. Or switch operation in the foreground and background of the electronic device; when the electronic device runs multiple applications at the same time, the multiple applications can all run in the background of the electronic device, and one of the multiple applications is in the foreground of the electronic device Run, the remaining applications run in the background of the electronic device or one of the multiple applications is switched between the foreground and background of the electronic device, and the remaining applications run in the background of the electronic device, which are not limited here.
- a target application program is determined from the application programs.
- the target application program may include a single application program or multiple application programs, which is not limited herein.
- the target application can output audio when it is running, that is, the target application has at least audio output.
- the target application can include a music playback application and a video playback application. , Call application, game application, etc., the target application can output audio data, and can also output audio data and image data at the same time.
- Step S120 when the electronic device is running the target application program, obtain a current environmental sound of an environment in which the electronic device is located.
- the electronic device when it is determined that the electronic device is running a target application, it is characterized that the electronic device is outputting audio or will output audio at a certain time in the future. Therefore, as a method, it can be determined that the electronic device is running.
- the target application program When the target application program is executed, the current environmental sound of the environment in which the electronic device is located is executed to be obtained.
- the target application is an application that has an audio output when running, such as a music playing application, a video playing application, a calling application, and the like
- the electronic device runs a target
- the application program is in use
- the electronic device is outputting audio
- the current environment sound of the environment in which the electronic device is located is correspondingly executed.
- the target application is a game application, an instant messaging application, etc.
- an application program with audio output whether the electronic device has audio output is detected first, and when it is detected that the electronic device has audio output, then the current environmental sound of the environment in which the electronic device is located is executed.
- an instant messaging application is used as an example for description.
- the instant messaging application may include WeChat, QQ, etc.
- WeChat can output audio data during running, such as voice chat or Video chat, at the same time, it can also not output audio data at runtime, such as text chat. Therefore, when the electronic device runs such a target application program, when it is determined that the electronic device has an audio output at this time, the current environmental sound of the environment in which the electronic device is located may be acquired.
- the electronic device includes at least an electronic device body and a sound receiving device disposed on the electronic device body.
- the sound receiving device is configured to receive the ambient sound at the location of the electronic device, and transmit the ambient sound to the processor for analysis and processing to Acquire the current ambient sound, where the ambient sound may include car sounds, human voices, bird voices, music sounds, and the like, which are not limited herein.
- the smart terminal may use a microphone as a radio receiver.
- the smart terminal may include at least a voice call microphone. Among them, the voice call microphone is mainly used to receive the environmental sound of the electronic device.
- the current ambient sound may include a sound volume, a sound intensity, and the like.
- the current location information of the electronic device is detected, wherein the current location information of the electronic device may be obtained through positioning, and as one way, it may be through a location-based service (LBS) and / or a global positioning system (Global Positioning System, GPS) to obtain the current position of the electronic device. Understandably, since the position of the electronic device may change at any time, in this embodiment, the position information of the electronic device is obtained in real time, so that when the current position of the electronic device changes, the LBS and / or GPS can obtain the current position information of the electronic device in real time according to the change of the position of the electronic device.
- LBS location-based service
- GPS Global Positioning System
- the preset range may be manually set by a user and may be factory-set by the electronic device at the factory.
- the configuration may also be performed by the electronic device according to the environment, which is not limited herein.
- the preset range may be 10m, 5m, 3m, 2m, etc., which is not limited herein.
- the number of other electronic devices in the preset range may be one or multiple.
- the other electronic device obtains the environment sound of its environment within a preset time period, for example, it is detected whether the other electronic device obtains the environment of its environment within the first 30s of the current time.
- Audio wherein, when other electronic equipment obtains the environmental sound of its environment within a preset period of time, the electronic device acquires the environmental sound obtained by the other electronic device and uses it as the current environmental sound of the electronic device, thereby Acquire the current environmental sound of the environment in which the electronic device is located.
- the acquired environmental sounds may be issued in the form of a broadcast, so that the electronic device located within the preset range of the other electronic device receives the broadcast message, thereby Based on the broadcast message, the environmental sound of the environment in which other electronic devices are located is obtained.
- Step S130 Adjust the output sound effect of the electronic device during the running of the target application based on the current ambient sound.
- the output sound effect of the electronic device during the running of the target application can be adjusted based on the current environmental sound.
- the electronic device may increase or decrease the output sound effect of the electronic device during the running of the target application based on the current ambient sound.
- the noise representing the environment in which the electronic is located is too high.
- the output sound effect of the program is greatly interfered by the current environmental sound, that is, improving the output sound effect of the electronic device will also be interfered by the current environmental sound, and it will increase the current environmental sound of the environment. Interference is caused by others, so the output sound effect of the electronic device during the running of the target application can be correspondingly reduced.
- the noise representing the environment in which the electronic device is located is low.
- the target application is being When the electronic device is running, its output sound effect is less disturbed by the current ambient sound.
- the output sound effect of the electronic device during the running of the target application can be maintained, or the electronic device's performance during the running of the target application can be slightly improved. Output sound effects to ensure that the adjustment of the output sound effects will not interfere with others.
- the electronic device may establish a mapping relationship between the ambient sound and the output sound effect in advance, and generate a mapping relationship table for storage in the electronic device, as shown in Table 1.
- the mapping relationship between the ambient sound and the output sound effect may be manually associated by a user, may be automatically associated by an electronic device, or automatically associated by a server, etc., and is not limited herein.
- the mapping relationship between the ambient sound and the output sound effect may include one ambient sound corresponding to one output sound effect, or one ambient sound interval corresponding to one output sound effect, and the like is not limited herein.
- the current environmental sound and a plurality of environmental sounds stored in the mapping relationship table are compared one by one to obtain an environmental sound or an environmental sound interval matching the current environmental sound, and then According to the mapping relationship table, the output sound effect corresponding to the environmental sound is found, so that the output sound effect corresponding to the current environmental sound can be obtained, so as to adjust the electronic device's operation when the target application is run according to the environmental sound of the environment in which the electronic device is located.
- Output sound effects realize automatic and quick configuration of output sound effects of electronic devices, improve the output sound effect and user experience.
- the sound effect adjustment method detects whether an electronic device has a target application running, wherein the target application can output audio when running, and when the electronic device runs a target application, obtaining an environment in which the electronic device is located.
- the current environmental sound based on the current environmental sound, adjusts the output sound effect of the electronic device during the running of the target application, thereby adjusting the output sound effect of the electronic device when running the target application according to the environmental sound of the environment of the electronic device, and realizes automatic and quick Configure the output sound effects of electronic devices to improve the output sound effect and user experience.
- FIG. 2 is a schematic flowchart of a sound effect adjustment method according to another embodiment of the present application.
- the sound effect adjustment method is applied to the above-mentioned electronic device, and the process shown in FIG. 2 will be described in detail below.
- the method may specifically include the following steps:
- Step S210 It is detected whether a target application is running on the electronic device, wherein the target application can output audio when running.
- step S210 For a detailed description of step S210, please refer to step S110, and details are not described herein again.
- Step S220 When the target application is running on the electronic device, identify the type of the target application.
- the electronic device may establish a mapping relationship between an application and a type in advance, and generate a mapping relationship table for storage in the electronic device, as shown in Table 2.
- the mapping relationship between the application and the type may be manually associated by a user, may be automatically associated by an electronic device, or automatically associated by a server, and is not limited herein.
- the mapping relationship between applications and types may include one application corresponding to one type, or multiple applications corresponding to one type, etc., which are not limited here.
- the mapping relationship may be WeChat and QQ corresponds to one type respectively, and it can also correspond to the same type for WeChat and QQ.
- the target application After determining the target application running on the electronic device, the target application is compared with a plurality of applications stored in the mapping relationship table one by one to obtain an application matching the target application, and then according to the The mapping relationship table looks up the type corresponding to the application, so that the type of the target application can be obtained. For example, when the mapping relationship table includes the mapping relationship between WeChat and instant messaging, that is, WeChat is stored under the application in the mapping relationship table, and the instant messaging class is stored under the type, which is related to WeChat and instant messaging. Then, when the target application is WeChat, the target application can be matched with the application stored in the mapping relationship table. It is understandable that the target application can be matched with WeChat in the mapping relationship table. It was further found that the type of the target application was an instant messaging class.
- the type of the application close to the target application may be used as the type of the target application by searching for an application close to the type of the target application, so as to obtain the target application. Describe the type of target application.
- the package name of the target application can be obtained. Since the package name includes various information related to the application, the package name can be analyzed to obtain the package name included in the package name. The manufacturer of the target application, and then finds other applications produced by the manufacturer, looks up the type of the other application in the mapping relationship table, and uses the type of the other application as the type of the target application.
- the Android system is taken as an example.
- the version number of the application program is configured in the AndroidManifest.xml file
- the PackageInfo class encapsulates all the information obtained from the configuration file. , Describes the overall information of the package contents. Therefore, you can use the versionName property of the PackageInfo object to get the version number of the application, and you can get the PackageInfo object through the PackageManager object, where PackageManager is a class that retrieves various information about related application packages that are currently installed on the device, PackageManager The getPackageInfo method in the object can get the PackageInfo object. This method needs to pass two parameters: the application package name and the condition.
- the package name of an application can be obtained by the getPackageName () method of Activity or Context (Activity inherits from Context), and adding can have many settings, usually set to 0. Finally, the PackageManager object is obtained.
- the Context object provides the getPackageManager () method to obtain the object. Therefore, the package name of the target application can be obtained based on the above method.
- Step S230 When the type of the target application is a game type, obtain the current environmental sound of the environment in which the electronic device is located.
- the target application may include multiple types.
- the target application may be a music playback type, a video playback type, an instant messaging type, a text reading type, or
- the type of the target application is identified as a game type, such as a game type, the current environmental sound of the environment in which the electronic device is located is correspondingly obtained.
- Step S240 Determine whether the current ambient sound exceeds a sound threshold.
- the electronic device presets and stores a sound threshold, and the sound threshold is used as a basis for determining the current ambient sound. It can be understood that when the current ambient sound of the environment in which the electronic device is located is obtained, the value of the current ambient sound is compared with the sound threshold to determine whether the current ambient sound exceeds the sound threshold, where, when When the value of the current environmental sound is greater than the sound threshold, it can be characterized that the current environmental sound exceeds the sound threshold, and when the value of the current environmental sound is not greater than the sound threshold, it can be characterized that the current environmental sound does not exceed the sound threshold.
- Step S250 When the current ambient sound exceeds the sound threshold, adjust an output sound effect of the electronic device during the running of the target application based on the current ambient sound.
- the electronic device may adjust the electronic device based on the current ambient sound. The output sound effect while the target application is running.
- FIG. 3 is a schematic flowchart of step S250 of the sound effect adjustment method provided by the embodiment shown in FIG. 2 of the present application.
- the process shown in FIG. 3 will be described in detail below.
- the method may specifically include the following steps:
- Step S251 When the current ambient sound exceeds the sound threshold, it is detected whether a headphone is connected to the electronic device.
- the electronic device includes a headset call mode and a non-headphone call mode, wherein the non-headphone call mode includes a hands-free mode and a handset mode, and is used to play a voice signal sent by the electronic device during a call, a video, or the like.
- the call mode of the electronic device can be detected by judging whether the electronic device is connected to a headset.
- the call mode of the electronic device can be determined by checking the status of the headset connection hole of the electronic device. For example, when the headset of the electronic device is connected When the earphone is connected to the hole, the first state value is returned. When the earphone in the connection hole is unplugged, the second state value is returned.
- the Android system sends a broadcast when the headset is inserted and pulled out of the connection hole. Therefore, the electronic device can determine whether the headset is currently connected and the call mode of the electronic device by monitoring the broadcast.
- Step S252 when the electronic device is connected with the headset, turn on a sound effect setting for the audio stream of the target application, and adjust the electronic device during the target application running process based on the current environmental sound Output sound effects.
- the electronic device When the electronic device is connected with a headset, the electronic device is less affected by the current ambient sound during the running of the target application, and its output sound effect can be transmitted to the user's ear with less interference, so it can be turned on.
- the sound effect settings for the audio stream of the target application to improve the output sound effect. It can be understood that, at this time, the output sound effect of the electronic device during the running of the target application can be adjusted based on the current environment. For example, when the current environment sound is high, it can correspondingly improve the electronic device's performance during the running of the target application.
- Step S253 When the electronic device is not connected to the headset, turn off a sound effect setting for an audio stream of the target application.
- the electronic device when the electronic device is not connected with a headset, it means that the electronic device is greatly interfered by the current environmental sound during the running of the target application program, and its output sound effect is transmitted to the user's ear under a large interference, and the output sound effect is The effect of the adjustment is poor, so the sound effect setting of the audio stream for the target application can be turned off to further reduce the power consumption of the electronic device.
- the sound effect adjustment method provided in this embodiment detects whether a target application is running on an electronic device, where the target application can output audio when running, and when the electronic device is running a target application, identifying the type of the target application, When the type of the target application is a game type, obtain the current environmental sound of the environment where the electronic device is located, determine whether the current environmental sound exceeds the sound threshold, and when the environmental sound exceeds the sound threshold, adjust the electronic device based on the current environmental sound Compared with the sound effect adjustment method shown in FIG. 1, the output sound effect during the running of the target application program is adjusted in this embodiment when the environmental sound of the electronic device exceeds the sound threshold to reduce the power consumption of the electronic device and improve the electronic performance. Applicability of equipment.
- the sound effect setting for the audio stream of the target application is turned on, and when the environmental sound of the electronic device exceeds the sound threshold and no headphones are connected, the target application is turned off Audio stream audio settings to further reduce the power consumption of electronic devices and improve the user experience.
- FIG. 4 is a schematic flowchart of a sound effect adjustment method according to another embodiment of the present application.
- the sound effect adjustment method is applied to the above electronic device.
- the electronic device is provided with multiple audio channels, and each of the multiple audio channels corresponds to a different sound processing algorithm.
- the process shown in FIG. 4 will be described in detail below.
- the method may specifically include the following steps:
- Step S310 Detect whether the electronic device is running a target application program, wherein the target application program can output audio when running.
- Step S320 When the target application is running on the electronic device, identify the type of the target application.
- Step S330 When the type of the target application is a game type, obtain a current environmental sound of an environment in which the electronic device is located.
- steps S310 to S330 please refer to steps S210 to S230, and details are not described herein again.
- Step S340 Select at least one audio channel from the plurality of audio channels as a target audio channel based on the current ambient sound.
- the electronic device is provided with multiple audio channels, and each of the multiple audio channels corresponds to a different audio processing algorithm.
- the electronic device is separately based on the existing structure of the audio system. Different scenes add different audio channels, where each audio channel refers to different sounds going through different channels.
- each audio channel refers to different sounds going through different channels.
- the data can have different sound effects when it is output, for example, different volume, different loudness, different kinds of sound, etc.
- the audio path is used as the target audio path; if the current ambient sound is high and the volume of the output sound effect is required to be low, an audio path that can output a lower volume from multiple audio paths is selected as the target audio path.
- At least one audio path corresponding to the type is obtained.
- the audio data of the target application is analyzed to obtain a sound type in the audio data, and then at least one audio channel is selected as the target audio channel from the multiple audio channels according to the analyzed result, that is, , An application can correspond to multiple audio channels.
- the audio data includes only one type of sound
- only one of the audio channels may be selected as the target audio channel; when the audio data includes multiple types of sound, multiple audio channels may be selected
- the path serves as the target audio path.
- the game application may include sound types such as striking sound, running sound, gun sound, etc. Therefore, the striking sound, the striking sound, Corresponding audio channels such as running sounds and gun sounds are used as target audio channels to transmit the percussion sounds, running sounds, gun sounds, etc., so that different audio data is processed by different sound effect processing algorithms, and the processing effect is better.
- each application program can also have a separate audio channel, that is, one application program corresponds to one audio channel, and the audio channels corresponding to each application program have different sound effects processing according to the type of application program.
- Algorithm therefore, after obtaining the type of the application program corresponding to the package name, according to the type, obtain the audio channel corresponding to the target application program as the target audio channel.
- the target application as a game application as an example, based on the game application, an audio channel is determined as a target audio channel of the game application from a plurality of audio channels, and the electronic device is running when the electronic device is running. Output sound effects during the target application process.
- FIG. 5 is a schematic flowchart of step S340 of the sound effect adjustment method provided by the embodiment shown in FIG. 4 of the present application.
- the process shown in FIG. 5 will be described in detail below.
- the method may specifically include the following steps:
- Step S341 Determine a current audio path corresponding to the current ambient sound according to a preset relationship table, where the preset relationship table includes a corresponding relationship between the ambient sound and the audio path.
- the electronic device may establish a mapping relationship between the ambient sound and the audio path in advance, and generate a mapping relationship table for storage in the electronic device, as shown in Table 3.
- the mapping relationship between the ambient sound and the audio channel may be manually associated by a user, may be automatically associated by an electronic device, or automatically associated by a server, and is not limited herein.
- mapping relationship table searches for an audio channel corresponding to the environmental sound, so as to obtain an audio channel corresponding to the current environmental sound.
- Step S342 Determine the current audio path as the target audio path.
- Step S350 transmitting the output audio effect of the electronic device during the running of the target application program through the target audio path.
- the target audio channel includes at least one audio channel.
- the original audio data is processed by the audio effect processing algorithm corresponding to the audio channel to obtain corresponding output sound effects.
- the output audio effects of the electronic device during the running of the target application program can be transmitted through the target audio channel, and the original audio data can be processed differently to obtain each sound. Different output sound effects, better processing effect.
- the sound effect adjustment method provided in this embodiment detects whether a target application is running on an electronic device, where the target application can output audio when running, and when the electronic device is running a target application, identifying the type of the target application,
- the type of the target application is a game type
- the current ambient sound of the environment in which the electronic device is located is obtained, and at least one audio channel is selected from multiple audio channels as the target audio channel based on the current environmental sound, and transmitted through the target audio channel
- the output sound effect of the electronic device during the running of the target application program is compared with the sound effect adjustment method shown in FIG. 1.
- multiple audio processing algorithms with different audio channels are set to conveniently and quickly adjust the output sound effect. To enhance the effect of output sound effects.
- FIG. 6 illustrates a block diagram of a sound effect adjusting apparatus 200 provided by an embodiment of the present application.
- the sound effect adjusting device 200 is applied to the above-mentioned electronic equipment.
- the sound effect adjustment device 200 includes a detection module 210, an acquisition module 220, and an adjustment module 230, where:
- the detection module 210 is configured to detect whether the electronic device runs a target application program, wherein the target application program can output audio when running.
- the obtaining module 220 is configured to obtain a current environmental sound of an environment in which the electronic device is located when the electronic device runs the target application program. Further, the acquisition module 220 includes: an identification submodule and an acquisition submodule, wherein:
- the identification sub-module is configured to identify a type of the target application when the electronic device runs the target application.
- An acquisition submodule is configured to acquire a current environmental sound of an environment in which the electronic device is located when the type of the target application is a game type.
- An adjusting module 230 is configured to adjust an output sound effect of the electronic device during the running of the target application based on the current ambient sound. Further, the adjustment module 230 includes: a judgment sub-module and an adjustment sub-module, wherein:
- a judging sub-module is configured to judge whether the current ambient sound exceeds a sound threshold.
- An adjustment sub-module is configured to adjust an output sound effect of the electronic device during the running of the target application based on the current environment sound when the current environment sound exceeds the sound threshold. Further, the adjustment sub-module includes a detection unit, an opening unit, and a closing unit, wherein:
- a detection unit is configured to detect whether an earphone is connected to the electronic device when the current ambient sound exceeds the sound threshold.
- An enabling unit configured to enable a sound effect setting for an audio stream of the target application when the electronic device is connected to the headset, and adjust the electronic device to run in the target application based on the current ambient sound Output sound effects during the process.
- the opening unit includes: a lifting subunit, wherein:
- the boosting subunit is configured to boost the output sound effect of the electronic device during the running of the target application based on the current ambient sound.
- the closing unit is configured to close a sound effect setting for an audio stream of the target application when the electronic device is not connected to the headset.
- the electronic device is provided with multiple audio channels, each of the multiple audio channels corresponds to a different sound processing algorithm, and the adjustment module 230 further includes a selection sub-module and a transmission sub-module, among them:
- a selection sub-module is configured to select at least one audio channel as a target audio channel from the multiple audio channels based on the current ambient sound. Further, the selection submodule includes:
- the determining unit is configured to determine a current audio path corresponding to the current ambient sound according to a preset relationship table, where the preset relationship table includes a corresponding relationship between the ambient sound and the audio path.
- the determining unit is further configured to determine the current audio path as the target audio path.
- a transmission submodule configured to transmit an output sound effect of the electronic device during the running of the target application program through the target audio path.
- the coupling between the modules may be electrical, mechanical, or other forms of coupling.
- each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist separately physically, or two or more modules may be integrated into one module.
- the above integrated modules may be implemented in the form of hardware or software functional modules.
- the sound effect adjustment device provided in the embodiment of the present application includes a detection module, an acquisition module, and an adjustment module.
- the detection module is configured to detect whether the electronic device is running a target application program, and the target application program can output audio when running.
- the obtaining module is configured to obtain the current environmental sound of the environment in which the electronic device is located when the electronic device is running the target application, and the adjustment module is configured to adjust the electronic device in the electronic device based on the current environmental sound.
- the output sound effect during the running of the target application program so as to adjust the output sound effect of the electronic device when running the target application program according to the environmental sound of the environment in which the electronic device is located, realize automatic and quick configuration of the output sound effect of the electronic device, and improve the effect of the output sound effect. user experience.
- FIG. 7 is a structural block diagram of an electronic device 100 according to an embodiment of the present application.
- the electronic device 100 may be an electronic device capable of running an application program, such as a smart phone, a tablet computer, or an e-book.
- the electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more application programs, where one or more application programs may be stored in the memory 120 and configured to be implemented by one Or multiple processors 110 execute, and one or more programs are configured to execute the method as described in the foregoing method embodiment.
- the processor 110 may include one or more processing cores.
- the processor 110 uses various interfaces and lines to connect various parts in the entire electronic device 100, and executes or executes instructions, programs, code sets, or instruction sets stored in the memory 120 by calling or executing data stored in the memory 120 to execute Various functions and processing data of the electronic device 100.
- the processor 110 may use at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). To implement a hardware form.
- the processor 110 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem.
- CPU Central Processing Unit
- GPU Graphics Processing Unit
- modem modem
- the CPU mainly handles the operating system, user interface, and application programs; the GPU is responsible for rendering and rendering of the displayed content; the modem is used for wireless communication. It can be understood that the modem may not be integrated into the processor 110, and may be implemented by a single communication chip.
- the memory 120 may include Random Access Memory (RAM), and may also include Read-Only Memory.
- the memory 120 may be used to store instructions, programs, codes, code sets, or instruction sets.
- the memory 120 may include a program storage area and a data storage area.
- the memory 104 may store a sound effect adjustment device.
- the sound effect adjusting device may be the aforementioned device 200.
- the storage program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), and instructions for implementing the following method embodiments. Wait.
- the storage data area may also store data (such as phonebook, audio and video data, and chat history data) created by the terminal 100 during use.
- FIG. 8 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
- the computer-readable medium 300 stores program code, which can be called by a processor to execute the method described in the foregoing method embodiment.
- the computer-readable storage medium 300 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read-Only Memory), an EPROM, a hard disk, or a ROM.
- the computer-readable storage medium 300 includes a non-transitory computer-readable storage medium.
- the computer-readable storage medium 300 has a storage space of a program code 310 that executes any of the method steps in the above method. These program codes can be read from or written into one or more computer program products.
- the program code 310 may be compressed, for example, in a suitable form.
- the sound effect adjustment method, device, electronic device, and storage medium detect whether the electronic device is running a target application program, where the target application program can output audio when the electronic device is running and When the target application program obtains the current environmental sound of the environment in which the electronic device is located, and adjusts the output sound effect of the electronic device during the running of the target application based on the current environmental sound, thereby adjusting the electronic device in accordance with the environmental sound of the environment in which the electronic device is located.
- the output sound effect when running the target application program can automatically and quickly configure the output sound effect of the electronic device to improve the output sound effect and the user experience.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Circuit For Audible Band Transducer (AREA)
- Telephone Function (AREA)
Abstract
La présente invention se rapporte au domaine technique des dispositifs électroniques. L'invention concerne un procédé et un appareil de réglage d'effet audio, un dispositif électronique et un support de stockage. Le présent procédé est utilisé pour un dispositif électronique. Le procédé consiste à : détecter si un programme d'application cible est exécuté sur le dispositif électronique, le programme d'application cible pouvant produire de l'audio pendant l'exécution; lorsque le programme d'application cible est exécuté sur le dispositif électronique, acquérir un bruit ambiant actuel de l'environnement où se trouve le dispositif électronique; et, en fonction du bruit ambiant actuel, régler l'effet audio de sortie du dispositif électronique pendant l'exécution du programme d'application cible. Dans la présente invention, l'effet audio de sortie du dispositif électronique pendant l'exécution du programme d'application cible est réglé selon le bruit ambiant de l'environnement où se trouve le dispositif électronique, de sorte que l'effet audio de sortie du dispositif électronique peut être configuré automatiquement et rapidement, ce qui améliore l'effet audio de sortie et l'expérience d'utilisateur.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811026569.XA CN109284080B (zh) | 2018-09-04 | 2018-09-04 | 音效调整方法、装置、电子设备以及存储介质 |
CN201811026569.X | 2018-09-04 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020048216A1 true WO2020048216A1 (fr) | 2020-03-12 |
Family
ID=65183971
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/094933 WO2020048216A1 (fr) | 2018-09-04 | 2019-07-05 | Procédé et appareil de réglage d'effet audio, dispositif électronique et support de stockage |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109284080B (fr) |
WO (1) | WO2020048216A1 (fr) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109284080B (zh) * | 2018-09-04 | 2021-01-05 | Oppo广东移动通信有限公司 | 音效调整方法、装置、电子设备以及存储介质 |
CN111741156A (zh) * | 2019-03-25 | 2020-10-02 | 奇酷互联网络科技(深圳)有限公司 | 音频输出方法、移动终端及可穿戴设备 |
CN111935583B (zh) * | 2020-08-24 | 2022-09-27 | Oppo(重庆)智能科技有限公司 | 耳机模式控制方法、装置、终端设备、系统以及存储介质 |
CN113220123A (zh) * | 2021-05-10 | 2021-08-06 | 深圳市慧鲤科技有限公司 | 一种音效控制的方法、装置、电子设备及存储介质 |
CN114666706B (zh) * | 2021-11-30 | 2024-05-14 | 北京达佳互联信息技术有限公司 | 音效增强方法、装置及系统 |
CN116312430B (zh) * | 2023-03-20 | 2024-01-02 | 广州资云科技有限公司 | 电音基调控制方法、装置、计算机设备和存储介质 |
CN117201665B (zh) * | 2023-08-26 | 2024-03-29 | 哈尔滨师范大学 | 一种数据处理方法、装置及系统 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105376689A (zh) * | 2015-10-13 | 2016-03-02 | 广东欧珀移动通信有限公司 | 自适应音频播放控制方法和系统 |
CN106375576A (zh) * | 2016-08-31 | 2017-02-01 | 维沃移动通信有限公司 | 一种音频通路控制方法及移动终端 |
CN107193527A (zh) * | 2017-05-19 | 2017-09-22 | 深圳市金立通信设备有限公司 | 一种声音控制方法、终端及计算机可读存储介质 |
CN109284080A (zh) * | 2018-09-04 | 2019-01-29 | Oppo广东移动通信有限公司 | 音效调整方法、装置、电子设备以及存储介质 |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100773539B1 (ko) * | 2004-07-14 | 2007-11-05 | 삼성전자주식회사 | 멀티채널 오디오 데이터 부호화/복호화 방법 및 장치 |
US9202509B2 (en) * | 2006-09-12 | 2015-12-01 | Sonos, Inc. | Controlling and grouping in a multi-zone media system |
TWM487509U (zh) * | 2013-06-19 | 2014-10-01 | 杜比實驗室特許公司 | 音訊處理設備及電子裝置 |
CN105630586B (zh) * | 2014-10-30 | 2020-03-24 | 联想(北京)有限公司 | 一种信息处理方法及电子设备 |
CN104934048A (zh) * | 2015-06-24 | 2015-09-23 | 小米科技有限责任公司 | 音效调节方法及装置 |
CN104951273B (zh) * | 2015-06-30 | 2018-07-03 | 联想(北京)有限公司 | 一种信息处理方法、电子设备及系统 |
CN106126163A (zh) * | 2016-06-16 | 2016-11-16 | 广东欧珀移动通信有限公司 | 一种调整音效的方法及终端 |
-
2018
- 2018-09-04 CN CN201811026569.XA patent/CN109284080B/zh active Active
-
2019
- 2019-07-05 WO PCT/CN2019/094933 patent/WO2020048216A1/fr active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105376689A (zh) * | 2015-10-13 | 2016-03-02 | 广东欧珀移动通信有限公司 | 自适应音频播放控制方法和系统 |
CN106375576A (zh) * | 2016-08-31 | 2017-02-01 | 维沃移动通信有限公司 | 一种音频通路控制方法及移动终端 |
CN107193527A (zh) * | 2017-05-19 | 2017-09-22 | 深圳市金立通信设备有限公司 | 一种声音控制方法、终端及计算机可读存储介质 |
CN109284080A (zh) * | 2018-09-04 | 2019-01-29 | Oppo广东移动通信有限公司 | 音效调整方法、装置、电子设备以及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN109284080A (zh) | 2019-01-29 |
CN109284080B (zh) | 2021-01-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020048216A1 (fr) | Procédé et appareil de réglage d'effet audio, dispositif électronique et support de stockage | |
US10521512B2 (en) | Dynamic text-to-speech response from a smart speaker | |
CN109445740B (zh) | 音频播放方法、装置、电子设备及存储介质 | |
JP6489563B2 (ja) | 音量調節方法、システム、デバイス及びプログラム | |
US11810594B2 (en) | Method and system for a headset with profanity filter | |
CN110876180B (zh) | 功耗处理方法、装置、电子设备及计算机可读介质 | |
US20090034750A1 (en) | System and method to evaluate an audio configuration | |
CN109379490B (zh) | 音频播放方法、装置、电子设备及计算机可读介质 | |
WO2020048217A1 (fr) | Procédé, appareil, dispositif électronique et support de stockage d'ajustement d'effet sonore | |
EP3846020A1 (fr) | Appareil et procédé de réglage d'effet sonore, dispositif électronique, et support d'informations | |
CN109271131B (zh) | 耳机控制方法、装置、电子设备及存储介质 | |
CN111124351B (zh) | 音频输出方法、装置、电子设备以及存储介质 | |
US20170033753A1 (en) | Volume Control Methods and Devices, and Multimedia Playback Control Methods and Devices | |
CN113949956A (zh) | 降噪处理方法、装置、电子设备、耳机及存储介质 | |
CN112188342A (zh) | 均衡参数确定方法、装置、电子设备和存储介质 | |
CN111552452A (zh) | 匹配音频输出参数的方法、设备及存储介质 | |
US11580954B2 (en) | Systems and methods of handling speech audio stream interruptions | |
CN113885827A (zh) | 音频播放方法、装置、电子设备、计算机可读介质及产品 | |
US11122160B1 (en) | Detecting and correcting audio echo | |
JP7456387B2 (ja) | 情報処理装置、及び情報処理方法 | |
CN113660599B (zh) | 扬声器的控制方法、装置、移动终端及存储介质 | |
KR20210078682A (ko) | 전자장치 및 그 제어방법 | |
CN114710730A (zh) | 音量提示方法、装置、耳机及存储介质 | |
CN112291660B (zh) | 均衡器切换方法、装置、设备及存储介质 | |
WO2021248350A1 (fr) | Sélection de gain audio |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19856561 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19856561 Country of ref document: EP Kind code of ref document: A1 |