WO2020048222A1 - Sound effect adjustment method and apparatus, electronic device and storage medium - Google Patents

Sound effect adjustment method and apparatus, electronic device and storage medium Download PDF

Info

Publication number
WO2020048222A1
WO2020048222A1 PCT/CN2019/095142 CN2019095142W WO2020048222A1 WO 2020048222 A1 WO2020048222 A1 WO 2020048222A1 CN 2019095142 W CN2019095142 W CN 2019095142W WO 2020048222 A1 WO2020048222 A1 WO 2020048222A1
Authority
WO
WIPO (PCT)
Prior art keywords
type
target application
electronic device
audio
sound effect
Prior art date
Application number
PCT/CN2019/095142
Other languages
French (fr)
Chinese (zh)
Inventor
李亚军
许钊铵
冷文华
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2020048222A1 publication Critical patent/WO2020048222A1/en

Links

Images

Classifications

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

Definitions

  • the present 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; obtaining the type of the target application when the electronic device is running the target application; and adjusting an output sound effect of the electronic device during the running of the target application based on the type.
  • 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 at runtime; an acquisition module for acquiring the type of the target application when the electronic device is running the target application; an adjustment module for adjusting the electronic device based on the type Outputting sound effects 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 the program code can be called by a processor to execute the foregoing method.
  • 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 is a schematic flowchart of step S230 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 an embodiment of step S232 of the sound effect adjustment method provided by the embodiment shown in FIG. 3 of the present application;
  • FIG. 5 is a schematic flowchart of another embodiment of step S232 of the sound effect adjustment method according to the embodiment shown in FIG. 3 of the present application;
  • FIG. 6 is a schematic flowchart of a sound effect adjustment method according to another embodiment of the present application.
  • FIG. 7 shows a schematic interface diagram of an electronic device provided by the embodiment shown in FIG. 6 of the present application.
  • FIG. 8 shows an operation schematic diagram of an electronic device provided by the embodiment shown in FIG. 6 of the present application.
  • FIG. 9 shows a module block diagram of a sound effect adjustment device provided by an embodiment of the present application.
  • FIG. 10 shows a block diagram of an electronic device for performing a sound effect adjustment method according to an embodiment of the present application
  • FIG. 11 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 applications 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, which adjust the output sound effect of the electronic device when the target application program is run according to the type of application , 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 the target application is running according to the type of the application program, 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. 9 and an electronic device 100 (FIG. 10) configured with the sound effect adjustment device 200.
  • FIG. 10 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 target application is running on the electronic device, obtain the type of the target application.
  • the electronic device when it is determined that the electronic device is running a target application program, it is characterized that the electronic device is outputting audio or that the audio device will output audio at a certain time in the future. Therefore, as a method, obtaining the target application is performed.
  • the type of the program as another way, it is detected whether the electronic device has audio output at this time, and when it is detected that the electronic device has audio output, then the type of the target application is obtained by executing.
  • 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 type of the target application program is obtained by executing the corresponding application.
  • an application program is applied, whether the electronic device has an audio output is detected first, and when it is detected that the electronic device has an audio output, then the type of the target application program is obtained by executing.
  • 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 may not output audio data when running, such as text chat. Therefore, when the electronic device runs such a target application, it can be further determined that the electronic device has audio output at this time. , And then obtain 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 1.
  • the mapping relationship between the application and the type can be manually associated by the user, can be automatically associated by the electronic device, or can be automatically associated by the server, etc., which is not limited here, and the mapping relationship between the application and the type can include an application
  • the program corresponds to one type, or multiple applications correspond to one type, and is not limited here. For example, taking WeChat and QQ as an example, the mapping relationship can be one type for WeChat and QQ, or the same for WeChat and QQ. A type etc.
  • the target application and a plurality of applications stored in the mapping relationship table are compared one by one to obtain an application matching the target application, and then according to the mapping,
  • the 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 content, 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 retrieved related applications currently installed on the device
  • the getPackageInfo method in the PackageManager 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 S130 Adjust the output sound effect of the electronic device during the running of the target application based on the type.
  • the output sound effect of the electronic device during the running of the target application is adjusted based on the type.
  • 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 type.
  • the output sound effect of the target application can be correspondingly improved, and the output sound effect of the multiple other applications can be kept unchanged or reduced;
  • the output sound effect of the target application program is unchanged, and the output sound effect of other multiple application programs is correspondingly reduced, thereby highlighting the output sound effect of the target application program.
  • the output sound effect that characterizes the target application may not be better than the output sound effect of other applications.
  • the output sound effect of the target application program may be correspondingly reduced, and the output sound effect of the multiple other application programs may be kept unchanged or increased; or the target application may be maintained.
  • the output sound effect of the program is unchanged, and the output sound effect of the other application program is increased correspondingly; or the output sound effect of the target application program and other application programs are kept unchanged, thereby weakening the output sound effect of the target application program, thereby Adjust the output sound effect of the electronic device when running the target application according to the type of application program, and realize the automatic and quick configuration of the output sound effect of the electronic device, improving the output sound effect and the user experience.
  • the electronic device when the electronic device runs the game application, the electronic device may be simultaneously Run a game application and a system native application, where the system native application can be used to emit a system prompt sound. At this time, the electronic device may correspondingly increase the output sound effect of the game application program at runtime, and the output sound effect of the system native application program remains unchanged or reduced, or the game application is maintained The output sound effect of the program when the program is running is unchanged, while the output sound effect of the system native application program is reduced when the program is running.
  • 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 the type of the target application Based on this type, the output sound effect of the electronic device during the running of the target application program is adjusted, so that the output sound effect of the electronic device when the target application program is running is adjusted according to the type of the application program, so as to automatically and quickly configure the output sound effect of the electronic device and improve the output Sound effects 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 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. 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 S220 When the target application is running on the electronic device, obtain the type of the target application.
  • steps S210 to S220 For a detailed description of steps S210 to S220, refer to step S110, and details are not described herein again.
  • Step S230 Select at least one audio channel from the plurality of audio channels as the target audio channel based on the type.
  • the electronic device is provided with multiple audio channels, and each of the multiple audio channels corresponds to a different audio processing algorithm. Specifically, 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. Further, after obtaining the type of the target application, at least one audio channel corresponding to the type is obtained. Specifically, the audio data of the target application is analyzed to obtain the type of sound in the audio data, and then based on the analyzed As a result, at least one audio channel is selected as the target audio channel from the multiple audio channels, that is, one application program can correspond to multiple audio channels. As a method, when 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. 3 is a schematic flowchart of step S230 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 S231 Determine whether the type is a game type.
  • the electronic device presets and stores a game type, where the game type is used as a basis for determining the type of the target application to be acquired, and the game type has also been manually divided and configured by the user.
  • the configuration may also be divided by the electronic device, which is not limited herein.
  • the type of the target application is obtained, the type is compared with the game type to determine whether the type of the target application is consistent with the game type. It is understandable that when the type of the target application is consistent with the game type When the target application is a game application, when the type of the target application is not consistent with the game type, the target application is characterized as a non-game application.
  • Step S232 When the type is the game type, select at least one audio channel from the multiple audio channels as the target audio channel based on the type.
  • the electronic device serves as In response, an audio path is selected as a target audio path from a plurality of audio paths based on the type.
  • the game application may include multiple sound types, and then the audio data of the target application may be analyzed to obtain the sound types in the audio data. , And then select at least one audio channel from the multiple audio channels as the target audio channel according to the analyzed results.
  • the target application includes running sounds, wind sounds, and human voices. Therefore, audio channels corresponding to running sounds, wind sounds, and human voices can be selected from multiple audio channels as the target audio channels to transmit running sounds, wind sounds, and human voices, respectively. Sound, so different audio data is processed by different sound processing algorithms.
  • Step S233 When the type is a non-game type, use an original audio path as the target audio path, where the original audio path is used for outputting a system sound effect of the electronic device.
  • the electronic device responds by using the original audio path as the target audio path, where the original audio path is used for the output of the system audio effect of the electronic device, that is, the audio data and system audio data of the target application can pass
  • the same sound effect processing algorithm performs processing output to save and reduce power consumption caused by processing of unique audio data in multiple audio channels.
  • the type of the target application is a non-game type
  • the sound effect setting of the audio stream for the target application is closed, and the original audio path is used as the target audio path. That is, when the target application running on the electronic device is a non-game application, the audio data representing the target application does not need to be processed separately. Therefore, in order to further reduce the power consumption of the electronic device, Turn off the sound effect settings for the audio stream of the target application program. As a method, close the newly set multiple audio channels and only open the original audio channel as the target audio channel.
  • FIG. 4 is a schematic flowchart of an embodiment of step S232 of the sound effect adjustment method provided by the embodiment shown in FIG. 3 of the present application.
  • the process shown in FIG. 4 will be described in detail below.
  • the method may specifically include the following steps:
  • Step S2321A When the type is the game type, obtain an application scenario of the target application.
  • the application scenario of the target application is obtained correspondingly, where the application scenario may include at least a fighting scene, a design scene, a construction scene, a dancing scene, and a chase scene. It is not limited here, it is understandable that multiple applications that belong to the same game type may be used in different application scenarios, and one application can correspond to one application scenario, or one application can also correspond to multiple applications Application scenarios, etc.
  • the electronic device may establish a mapping relationship between an application type and an application scenario in advance, and generate a mapping relationship table for storage in the electronic device, as shown in Table 2.
  • the mapping relationship between the type of application and the application scenario can be manually associated by the user, it can be automatically associated by the electronic device or automatically by the server, etc., which is not limited here, and the type between the application and the application scenario
  • the mapping relationship may include one application type corresponding to one application scenario, one application type corresponding to multiple application scenarios, or multiple application types corresponding to one application scenario, and the like is not limited herein.
  • the type of the target application and the types of multiple applications stored in the mapping relationship table are compared one by one to obtain a match with the type of the target application.
  • the application scenario corresponding to the type of the application is searched according to the mapping relationship table, so that the application scenario corresponding to the type of the target application can be obtained.
  • the electronic device may also establish a mapping relationship between the application program, the type of the application program, and the application scenario in advance, and generate a mapping relationship table for storage in the electronic device, as shown in Table 3. Therefore, in this embodiment, after the target application is determined, the electronic device searches for the type of the target application corresponding to the target application and finds the type corresponding to the target application according to the mapping relationship shown in Table 3. Application scenario, so that the application scenario of the target application can be obtained.
  • Step S2322A Select at least one audio channel from the multiple audio channels as the target audio channel based on the application scenario.
  • the requirements for output sound effects are different in fighting scenes, design scenes, construction scenes, dancing scenes, and chasing scenes.
  • fighting scenes have different output sound effects.
  • the output sound requirements are more detailed, such as the need to highlight gun sounds, running sounds, and percussion sounds. Therefore, the audio channel selection based on the fighting scene is different from the audio channel selection based on the construction scene, and the selection is based on the fighting scene.
  • the number of audio channels can be different from the number of audio channels selected based on the construction scene.
  • a mapping relationship between an application scenario and an audio path may be established in the electronic device in advance, and a mapping relationship table may be generated and stored in the electronic device, as shown in Table 4.
  • the mapping relationship between the application scenario and the audio channel can be manually associated by the user, it can be automatically associated by the electronic device or the server, etc., which is not limited here, and the mapping relationship between the application scenario and the audio channel can include One application scenario corresponds to one audio channel, one application scenario corresponds to multiple audio channels, or multiple application scenarios correspond to one audio channel, which are not limited here.
  • the application scenario of the target application is determined, the application scenario of the target application and the application scenarios of multiple applications stored in the mapping relationship table are compared one by one to obtain the application scenario of the target application. According to the application scenario of the application scenario matched by the application scenario, the audio channel corresponding to the application scenario of the application program is found according to the mapping relationship table, so that the audio channel corresponding to the application scenario of the target application program can be obtained.
  • FIG. 5 is a schematic flowchart of another embodiment of step S232 of the sound effect adjustment method provided by the embodiment shown in FIG. 3 of the present application.
  • the process shown in FIG. 4 will be described in detail below.
  • the method may specifically include the following steps:
  • Step S2321B When the type is the game type, determine an audio channel corresponding to the type according to a preset relationship table, where the preset relationship table includes a correspondence between an application type and an audio channel.
  • the electronic device may establish a mapping relationship between the type of the application program and the audio channel in advance, and generate a mapping relationship table, that is, a preset relationship table is stored in the electronic device, as shown in Table 5.
  • the mapping relationship between the type of the application and the audio channel may be manually associated by the user, may be automatically associated by an electronic device, or automatically associated by a server, etc., and is not limited herein.
  • the type of the target application when determining the type of the target application, compare the type of the target application and the types of multiple applications stored in the mapping relationship table one by one to obtain an application that matches the type of the target application. The type of the program, and then the audio channel corresponding to the type of the application program is searched according to the mapping relationship table, so that the audio channel corresponding to the type of the target application program can be obtained.
  • Step S2322B Determine the audio path corresponding to the type as the target audio path.
  • Step S240 transmitting an output sound 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 by another embodiment of the present application 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 a type of the target application Based on this type, an audio channel is selected from multiple audio channels as the target audio channel, and the output audio effect of the electronic device during the running of the target application program is transmitted through the target audio channel.
  • multiple audio channels with different audio processing algorithms are set, so as to conveniently and quickly adjust the output sound effect to improve the effect of the output sound effect.
  • FIG. 6 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 electronic device.
  • the process shown in FIG. 6 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, obtain the type of the target application.
  • steps S310 to S320 please refer to steps S110 to S120, and details are not described herein again.
  • Step S330 Determine whether the type is a game type.
  • Step S340 When the type is the game type, a sound parameter setting interface corresponding to the type is displayed.
  • the electronic device displays a sound parameter setting interface corresponding to the type of the target application, where the sound parameter may include a volume value of the target application , Frequency value, power value, etc. are not limited here.
  • the sound effect parameter setting interface is fixed, that is, when different types of applications correspond to the same sound effect parameter setting interface; as another way, the sound effect parameter setting interface includes multiple, and each type corresponds to a different Interface of sound parameter settings.
  • the electronic device displays a sound effect parameter setting interface corresponding to the type of the target application.
  • the sound effect parameter setting interface may be suspended above the current display interface of the electronic device.
  • the display may also be displayed at the same level as the current display interface of the electronic device, and when the sound parameter setting interface is displayed at the same level as the current display interface, it may be displayed in an upper part area and a lower part of the current display interface
  • the area, the partial area or the right partial area is not limited here.
  • Step S350 Detect a setting operation acting on the sound parameter setting interface, and generate a sound effect parameter based on the setting operation.
  • the setting operation can include single-finger tap, multi-finger tap, single-finger long press, single-finger long press, multi-finger long press, heavy pressing, multiple taps, sliding operation, parameter input, etc., as shown in Figure 8
  • the single-finger tap refers to a single-finger tap operation on a parameter
  • the multi-finger tap refers to a multi-finger tap operation on a parameter
  • a single-finger long press refers to a single-finger press on a parameter Exceed the preset time
  • Multi-finger long press means that multiple fingers press on the parameter at the same time for more than the preset time
  • Heavy press means that the pressure on the parameter exceeds the preset strength
  • Multiple clicks means that the number of clicks exceeds the prese
  • the electronic device can generate a sound effect parameter after detecting that the setting operation is completed. It can be understood that the sound effect parameter is manually set by the user, and therefore, it is more in line with the user's preferences and needs, and has more applicability.
  • Step S360 Adjust the output sound effect of the electronic device during the running of the target application based on the sound effect parameters.
  • volume value in the sound effect parameter Take the volume value in the sound effect parameter as an example.
  • the volume value included in the sound effect parameter is greater than the volume value output when the electronic device runs the target application, the volume value and the electronic device are set in the sound effect parameter.
  • the difference between the current volume values increases the output volume of the electronic device when the target application is running to achieve a volume value consistent with the sound effect parameter set by the user.
  • the sound effect parameter includes When the volume value is smaller than the volume value output when the electronic device runs the target application, the electronic device is reduced in operation according to the difference between the volume value set in the sound effect parameter and the current volume value of the electronic device.
  • the output volume of the target application program is to reach a volume value consistent with the sound effect parameter set by the user, so that the output sound effect of the electronic device during the running of the target application program is adjusted according to the set sound effect parameter, so that the user can quickly obtain his favorite Output sound effects.
  • the sound effect adjustment method provided by another embodiment of the present application 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 a type of the target application To determine whether the genre is a game type.
  • the genre is a game type
  • it is displayed on the sound parameter setting interface corresponding to the type, detects a setting operation that acts on the sound parameter setting interface, and generates a sound parameter based on the setting operation.
  • the sound effect parameter adjustment electronic device outputs sound effects during the running of the target application.
  • this embodiment also displays a parameter setting interface for the user when the target application is a game application. Automatically set the sound effect parameters, and adjust the output sound effect of the electronic device during the running of the target application according to the set sound effect parameters, so that the user can quickly obtain his favorite output sound effect.
  • FIG. 9 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 type of the target application when the electronic device runs the target application.
  • An adjustment module 230 is configured to adjust an output sound effect of the electronic device during the running of the target application based on the type. Further, 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 includes a selection sub-module and a transmission sub-module, wherein:
  • 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 type. Further, the selection sub-module includes a judgment unit and a selection unit, wherein:
  • a determining unit is configured to determine whether the type is a game type.
  • a selection unit is configured to select at least one audio channel from the plurality of audio channels as the target audio channel when the type is the game type. Further, the selection unit includes: an acquisition subunit and a selection subunit, wherein:
  • An acquisition subunit is configured to acquire an application scenario of the target application when the type is the game type.
  • a selection subunit is configured to select at least one audio path from the multiple audio paths as the target audio path based on the application scenario.
  • the selection unit is further configured to use an original audio path as the target audio path when the type is a non-game type, wherein the original audio path is used for outputting a system sound effect of the electronic device.
  • the selecting unit is further configured to determine an audio channel corresponding to the type according to a preset relationship table when the type is the game type, and the preset relationship table includes a type of an application program and a corresponding audio channel. relationship.
  • the selection unit is further configured to determine an audio path corresponding to the type 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 adjustment module 230 further includes: a display sub-module, a generation sub-module, and an adjustment sub-module, wherein:
  • a display sub-module for displaying a sound parameter setting interface corresponding to the type when the type is the game type;
  • 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 sound effect parameters.
  • 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 type of the target application when the electronic device is running the target application, and the adjustment module is configured to adjust the running process of the electronic device in the target application based on the type.
  • the output sound effect of the electronic device is adjusted according to the type of the application program, and the output sound effect of the electronic device when the target application is running is realized, so that the output sound effect of the electronic device is automatically and quickly configured, and the effect of the output sound effect and the user experience are improved.
  • FIG. 10 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 storage program area and a storage data area, where the storage program area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , Instructions for implementing the following method embodiments, and the like.
  • 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. 11 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 is obtained, the type of the target application is obtained, and based on the type, the output sound effect of the electronic device during the running of the target application is adjusted, so that the output sound effect of the electronic device when the target application is running is adjusted according to the type of the application to achieve Automatically and quickly configure the output sound effects of electronic devices to improve the output sound effect and 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)
  • Stored Programmes (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

Disclosed are a sound effect adjustment method and apparatus, an electronic device and a storage medium, relating to the technical field of electronic devices. The method is applied to an electronic device. The method comprises: detecting whether an electronic device runs a target application program, wherein the target application program can output audio while running; when the electronic device runs the target application program, acquiring the type of target application program; and adjusting an output sound effect of the electronic device during a running process of the target application program based on the type. In the present application, an output sound effect of an electronic device while running a target application program is adjusted according to the type of application program, thereby realizing automatic and quick configuration for the output sound effect of the electronic device, and improving the output sound effect and the user experience.

Description

音效调整方法、装置、电子设备以及存储介质Sound effect adjustment method, device, electronic equipment and storage medium
相关申请的交叉引用Cross-reference to related applications
本申请要求于2018年9月4日提交的申请号为201811026571.7的中国申请的优先权,其在此出于所有目的通过引用将其全部内容并入本文。This application claims priority from Chinese application numbered 201811026571.7, filed on September 4, 2018, which is hereby incorporated by reference herein in its entirety for all purposes.
技术领域Technical field
本申请涉及电子设备技术领域,更具体地,涉及一种音效调整方法、装置、电子设备以及存储介质。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.
背景技术Background technique
随着科学技术的发展,电子设备已经成为人们日常生活中最常用的电子产品之一。并且,用户经常会通过电子设备听音乐、看视频或玩游戏等,同时,用户可以根据自己的喜好人工选择和设置电子设备输出的音效模式,来提升听觉体验。With the development of science and technology, electronic equipment has become one of the most commonly used electronic products in people's daily life. In addition, users often listen to music, watch videos, or play games through electronic devices. At the same time, users can manually select and set the sound mode output by the electronic devices according to their preferences to improve the listening experience.
发明内容Summary of the Invention
鉴于上述问题,本申请提出了一种音效调整方法、装置、电子设备以及存储介质,以解决上述问题。In view of the above problems, this application proposes a sound effect adjustment method, device, electronic device, and storage medium to solve the above problems.
第一方面,本申请实施例提供了一种音效调整方法,应用于电子设备,所述方法包括:检测所述电子设备是否运行有目标应用程序,其中,所述目标应用程序在运行时可输出音频;当所述电子设备运行有所述目标应用程序时,获取所述目标应用程序的类型;基于所述类型调整所述电子设备在所述目标应用程序运行过程中的输出音效。In a first aspect, 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; obtaining the type of the target application when the electronic device is running the target application; and adjusting an output sound effect of the electronic device during the running of the target application based on the type.
第二方面,本申请实施例提供了一种音效调整装置,应用于电子设备,所述装置包括:检测模块,用于检测所述电子设备是否运行有目标应用程序,其中,所述目标应用程序在运行时可输出音频;获取模块,用于当所述电子设备运行有所述目标应用程序时,获取所述目标应用程序的类型;调整模块,用于基于所述类型调整所述电子设备在所述目标应用程序运行过程中的输出音效。In a second aspect, 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 at runtime; an acquisition module for acquiring the type of the target application when the electronic device is running the target application; an adjustment module for adjusting the electronic device based on the type Outputting sound effects during the running of the target application.
第三方面,本申请实施例提供了一种电子设备,包括存储器和处理器,所述存储器耦接到所述处理器,所述存储器存储指令,当所述指令由所述处理器执行时所述处理器执行上述方法。According to a third aspect, 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.
第四方面,本申请实施例提供了一种计算机可读取存储介质,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores program code, and the program code can be called by a processor to execute the foregoing method.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to explain the technical solutions in the embodiments of the present application more clearly, the drawings used in the description of the embodiments are briefly introduced below. Obviously, the drawings in the following description are just some embodiments of the application. For those skilled in the art, other drawings can be obtained based on these drawings without paying creative labor.
图1示出了本申请一个实施例提供的音效调整方法的流程示意图;FIG. 1 is a schematic flowchart of a sound effect adjustment method according to an embodiment of the present application; FIG.
图2示出了本申请又一个实施例提供的音效调整方法的流程示意图;2 is a schematic flowchart of a sound effect adjustment method according to another embodiment of the present application;
图3示出了本申请图2所示的实施例提供的音效调整方法的步骤S230的流程示意图;FIG. 3 is a schematic flowchart of step S230 of the sound effect adjustment method provided by the embodiment shown in FIG. 2 of the present application;
图4示出了本申请图3所示的实施例提供的音效调整方法的步骤S232的一个实施例的流程示意图;FIG. 4 is a schematic flowchart of an embodiment of step S232 of the sound effect adjustment method provided by the embodiment shown in FIG. 3 of the present application; FIG.
图5示出了本申请图3所示的实施例提供的音效调整方法的步骤S232的另一个实施例的流程示意图;FIG. 5 is a schematic flowchart of another embodiment of step S232 of the sound effect adjustment method according to the embodiment shown in FIG. 3 of the present application; FIG.
图6示出了本申请再一个实施例提供的音效调整方法的流程示意图;6 is a schematic flowchart of a sound effect adjustment method according to another embodiment of the present application;
图7示出了本申请图6所示的实施例提供的电子设备的界面示意图;FIG. 7 shows a schematic interface diagram of an electronic device provided by the embodiment shown in FIG. 6 of the present application; FIG.
图8示出了本申请图6所示的实施例提供的电子设备的操作示意图;FIG. 8 shows an operation schematic diagram of an electronic device provided by the embodiment shown in FIG. 6 of the present application; FIG.
图9示出了本申请实施例提供的音效调整装置的模块框图;FIG. 9 shows a module block diagram of a sound effect adjustment device provided by an embodiment of the present application;
图10示出了本申请实施例用于执行根据本申请实施例的音效调整方法的电子设备的框图;FIG. 10 shows a block diagram of an electronic device for performing a sound effect adjustment method according to an embodiment of the present application; FIG.
图11示出了本申请实施例的用于保存或者携带实现根据本申请实施例的音效调整方法的程序代码的存储单元。FIG. 11 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.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application.
目前,用户对电子设备的要求越来越高,因此,电子设备为了满足用户的需求以及为用户提供方便,开始支持播放音频数据,其中,电子设备的音频架构和计算机的音频架构类似,主要由处理器和内置音频CODEC(编解码器)来完成。具体地,处理器接收音频数据的输入后,转换成I2S信号,并传输至CODEC转换成模拟信号,然后进行播放。At present, users have increasingly higher requirements for electronic devices. Therefore, in order to meet user needs and provide convenience to users, electronic devices have started to support audio data playback. Among them, the audio architecture of electronic devices is similar to the audio architecture of computers. Processor and built-in audio CODEC (codec). Specifically, after receiving the input of audio data, the processor converts it into an I2S signal, transmits it to a CODEC, converts it to an analog signal, and then plays it.
进一步地,为了提升听觉体验,越来越多的用户开始对电子设备的输出音效提出需求,其中,音效是指由声音所制造的效果,是指为增进场面的真实感、气氛或戏剧讯息,而加于声带上的杂音或声音,是人工制造或加强的声音,用来增强对电影、电子游戏、音乐或其他媒体的艺术或其他内容的声音处理,例如,电子游戏音效是指游戏中的打击声、跑步声、枪声等。因此,随着电子设备技术的发展,越来越多的电子设备开始提供音效输出,但是,目前电子设备的音效功能主要是通过用户根据自己的喜好人工选择和设置某种场景的音效模式,采用常规且固定的处理方式,没有考虑外界因素的影响,如没有考虑针对不同应用程序的影响,输出音效固定。Further, in order to improve the listening experience, more and more users have begun to demand the output sound effects of electronic devices. Among them, 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. For example, 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. However, 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 applications is not considered, the output sound effect is fixed.
针对上述问题,发明人经过长期的研究发现,并提出了本申请实施例提供的音效调整方法、装置、电子设备以及存储介质,根据应用程序的类型调整电子设备在运行目标应用程序时的输出音效,实现自动快捷的配置电子设备的输出音效,提升输出音效的效果以及用户体验。其中,具体的音效调整方法在后续的实施例中进行详细的说明。In view of the above problems, 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, which adjust the output sound effect of the electronic device when the target application program is run according to the type of application , 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.
实施例Examples
请参阅图1,图1示出了本申请一个实施例提供的音效调整方法的流程示意图。所述音效调整方法用于根据应用程序的类型调整电子设备在运行目标应用程序时的输出音效,实现自动快捷的配置电子设备的输出音效,提升输出音效的效果以及用户体验。在具体的实施例中,所述音效调整方法应用于如图9所示的音效调整装置200以及配置有所述音效调整装置200的电子设备100(图10)。下面将以电子设备为例,说明本实施例的具体流程,当然,可以理解的,本实施例所应用的电子设备可以为智能手机、平板电脑、穿戴式电子设备、车载设备、网关等,在此不做具体的限定。下面将针对图1所示的流程进行详细的阐述,所述音效调整方法具体可以包括以下步骤:Please refer to FIG. 1, which 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 the target application is running according to the type of the application program, 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. In a specific embodiment, the sound effect adjustment method is applied to a sound effect adjustment device 200 as shown in FIG. 9 and an electronic device 100 (FIG. 10) configured with the sound effect adjustment device 200. In the following, an electronic device is taken as an example to describe the specific process of this embodiment. Of course, it can be understood that 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:
步骤S110:检测所述电子设备是否运行有目标应用程序,其中,所述目标应用程序在运行时可输出音频。Step S110: It is detected whether a target application is running on the electronic device, wherein the target application can output audio when running.
在本实施例中,电子设备运行的应用程序可以包括在电子设备的前台运行的应用程序、在电子设备的后台运行的应用程序或在电子设备的前台和后台切换运行的应用程序,在此不做限定。具体的,前台运行的应用程序是指通常可以和用户进行交互,能运行在前台的应用程序,当它不可见时就会被挂起(比如:游戏);后台运行的应用程序是指和用户交互非常有限,除了配置期间,其生存期的其他时间都是隐藏的(比如:SMS自动回复程序和闹钟程序);在电子设备的前台和后台切换运行的应用程序是指可以在前台以及后台之间随意切换的应用程序。可以理解的,当应用程序没有被杀掉(kill)时,表征该应用程序在电子设备上运行。In this embodiment, 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. Be limited. Specifically, 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.
进一步地,电子设备可以仅运行一个应用程序,也可以同时运行多个应用程序,其中,当电子设备仅运行一个应用程序时,该应用程序可以在电子设备的前台运行、在电子设备的后台运行或在电子设备的前台和后台切换运行;当电子设备同时运行多个应用程序时,该多 个应用程序可以均在电子设备的后台运行、多个应用程序中的一个应用程序在电子设备的前台运行,其余应用程序在电子设备的后台运行或多个应用程序中的一个应用程序在电子设备的前台和后台切换运行,其余应用程序在电子设备的后台运行等,在此不做限定。Further, the electronic device may run only one application or multiple applications at the same time. When the electronic device runs only one application, 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.
其中,在获取电子设备运行的应用程序后,从所述应用程序中确定目标应用程序,同样的,该目标应用程序可以包括单个应用程序,也可以包括多个应用程序,在此不做限定。在本实施例中,所述目标应用程序在运行时可输出音频,也就是说,该目标应用程序至少有音频输出,例如,该目标应用程序可以包括音乐播放类应用程序、视频播放类应用程序、通话类应用程序、游戏类应用程序等,该目标应用程序可以输出音频数据,也可以同时输出音频数据和图像数据等。Wherein, after obtaining an application program run by the electronic device, a target application program is determined from the application programs. Similarly, the target application program may include a single application program or multiple application programs, which is not limited herein. In this embodiment, the target application can output audio when it is running, that is, the target application has at least audio output. For example, 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.
步骤S120:当所述电子设备运行有所述目标应用程序时,获取所述目标应用程序的类型。Step S120: When the target application is running on the electronic device, obtain the type of the target application.
在本实施例中,当确定电子设备运行有目标应用程序时,表征该电子设备正在输出音频或者该在接下来的某一时刻将输出音频,因此,作为一种方式,执行获取所述目标应用程序的类型;作为另一种方式,检测此时所述电子设备是否有音频输出,当检测到所述电子设备有音频输出时,再执行获取所述目标应用程序的类型。In this embodiment, when it is determined that the electronic device is running a target application program, it is characterized that the electronic device is outputting audio or that the audio device will output audio at a certain time in the future. Therefore, as a method, obtaining the target application is performed. The type of the program; as another way, it is detected whether the electronic device has audio output at this time, and when it is detected that the electronic device has audio output, then the type of the target application is obtained by executing.
具体地,当所述目标应用程序为音乐播放类应用程序、视频播放类应用程序、通话类应用程序等在运行时会有音频输出的应用程序时,则可以认为当所述电子设备运行有目标应用程序时,该电子设备正在输出音频,此时对应执行获取所述目标应用程序的类型;当所述目标应用程序为游戏类应用程序、即时通讯类应用程序等在运行时可能有音频输出的应用程序时,首先对所述电子设备是否有音频输出进行检测,其中,当检测到所述电子设备有音频输出时,再执行获取所述目标应用程序的类型。在本实施例中,以即时通讯类应用程序为例进行说明,该即时通讯类应用程序可以包括微信、QQ等,以微信为例,其在运行时可以输出音频数据,如进行语音聊天或进行视频聊天,同时,其在运行时也可以不输出音频数据,如进行文字聊天,因此,当所述电子设备运行此类目标应用程序时,可以在进一步确定所述电子设备此时有音频输出时,再获取所述目标应用程序的类型。Specifically, when 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, it can be considered that when the electronic device runs a target When the application program is in use, the electronic device is outputting audio. At this time, the type of the target application program is obtained by executing the corresponding application. When an application program is applied, whether the electronic device has an audio output is detected first, and when it is detected that the electronic device has an audio output, then the type of the target application program is obtained by executing. In this embodiment, an instant messaging application is used as an example for description. The instant messaging application may include WeChat, QQ, etc. Taking WeChat as an example, it can output audio data during running, such as voice chat or Video chat, at the same time, it may not output audio data when running, such as text chat. Therefore, when the electronic device runs such a target application, it can be further determined that the electronic device has audio output at this time. , And then obtain the type of the target application.
进一步地,获取所述目标应用程序的类型。作为一种方式,所述电子设备可以预先建立应用程序和类型之间的映射关系,并生成映射关系表存储在电子设备中,如表1所示。其中,应用程序和类型之间的映射关系可以由用户手动关联,可以由电子设备自动关联或者由服务器自动关联等,在此不做限定,并且应用程序和类型之间的映射关系可以包括一个应用程序对应一个类型,或者多个应用程序对应一个类型等,在此不做限定,例如,以微信和QQ为例,映射关系可以为微信和QQ分别对应一个类型,也可以为微信和QQ对应同一个类型等。Further, the type of the target application is obtained. As one way, 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 1. The mapping relationship between the application and the type can be manually associated by the user, can be automatically associated by the electronic device, or can be automatically associated by the server, etc., which is not limited here, and the mapping relationship between the application and the type can include an application The program corresponds to one type, or multiple applications correspond to one type, and is not limited here. For example, taking WeChat and QQ as an example, the mapping relationship can be one type for WeChat and QQ, or the same for WeChat and QQ. A type etc.
进一步地,在确定目标应用程序后,将所述目标应用程序和映射关系表中预先存储的多个应用程序一一对比,以获取与所述目标应用程序匹配的应用程序,再根据所述映射关系表,查找该应用程序对应的类型,从而可以获取所述目标应用程序的类型。例如,当所述映射关系表中包括微信和即时通讯类的映射关系,也就是说,映射关系表中的应用程序下存储有微信,以及类型下存储有即时通讯类,微信和即时通讯类相关联,那么,当所述目标应用程序为微信时,可以将该目标应用程序与映射关系表中存储的应用程序进行匹配,可以理解的,该目标应用程序可以与映射关系表中的微信匹配,进而查找到该目标应用程序的类型为即时通讯类。Further, after the target application is determined, the target application and a plurality of applications stored in the mapping relationship table are compared one by one to obtain an application matching the target application, and then according to the mapping, The 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.
表1Table 1
应用程序application 类型Types of
A1A1 B1B1
A2A2 B2B2
A3A3 B3B3
作为一种方式,当将所述目标应用程序和映射关系表中预先存储的多个应用程序一一对比均匹配失败时,也就是说,当所述映射关系表的应用程序下没有存储有与所述目标应用程 序匹配的应用程序时,可以通过查找与所述目标应用程序的类型相近的应用程序,将与所述目标应用程序相近的应用程序的类型作为目标应用程序的类型,从而获取所述目标应用程序的类型。其中,在本实施例中,可以获取所述目标应用程序的包名,由于包名包括与应用程序相关的各种信息,因此,可以对所述包名进行分析,获取该包名中包含的目标应用程序的厂家,然后查找该厂家生产的其他应用程序,在所述映射关系表中查找其他应用程序的类型,将所述其他应用程序的类型作为所述目标应用程序的类型。As a way, when the target application and a plurality of pre-stored applications in the mapping relationship table are all failed to match one-to-one, that is, when there is no When the target application matches the application, 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. Wherein, in this embodiment, 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.
其中,在本实施例中,以Android系统为例,在Android系统中,应用程序的版本号是在AndroidManifest.xml文件中进行配置的,而PackageInfo类则封装了从该配置文件中获取的所有信息,描述了包内容的整体信息,因此,可以使用PackageInfo对象的versionName属性获取应用的版本号,且可以通过PackageManager对象来获取PackageInfo对象,其中,PackageManager是一个检索当前已安装在设备上的相关应用程序包的各种信息的类,PackageManager对象中的getPackageInfo方法可以获取PackageInfo对象,该方法需要传递两个参数:应用包名和条件。通常情况下,应用程序的包名可以通过Activity或Context(Activity继承自Context)的getPackageName()方法获取,而添加可以有很多设置,通常设置为0。最后是PackageManager对象的获取,Context对象提供了getPackageManager()方法来获取该对象。因此,基于上述方法可以获取所述目标应用程序的包名。Among them, in this embodiment, the Android system is taken as an example. In the Android system, the version number of the application program is configured in the AndroidManifest.xml file, and the PackageInfo class encapsulates all the information obtained from the configuration file. , Describes the overall information of the package content, 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 retrieved related applications currently installed on the device The package's various information classes. The getPackageInfo method in the PackageManager object can get the PackageInfo object. This method needs to pass two parameters: the application package name and the condition. Generally, 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.
步骤S130:基于所述类型调整所述电子设备在所述目标应用程序运行过程中的输出音效。Step S130: Adjust the output sound effect of the electronic device during the running of the target application based on the type.
在本实施例中,在确定所述目标应用程序的类型后,基于该类型调整电子设备在目标应用程序运行过程中的输出音效。具体地,所述电子设备可以基于所述类型增大或减小电子设备在目标应用程序运行过程中的输出音效。作为一种方式,当所述目标应用程序的类型为预先设定的需要提升输出音效的类型时,表征该目标应用程序的输出音效应优于其他应用程序的输出音效,此时,若所述目标应用程序和多个其他应用程序均在电子设备运行时,可以对应提高所述目标应用程序的输出音效,且保持所述多个其他应用程序的输出音效不变或减小;也可以保持所述目标应用程序的输出音效不变,且对应减小其他多个应用程序的输出音效,从而突出所述目标应用程序的输出音效。In this embodiment, after determining the type of the target application, the output sound effect of the electronic device during the running of the target application is adjusted based on the type. Specifically, 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 type. As a method, when the type of the target application is a preset type that needs to improve the output sound effect, the output sound effect that characterizes the target application is better than the output sound effect of other applications. At this time, if the When the target application and multiple other applications are running on the electronic device, the output sound effect of the target application can be correspondingly improved, and the output sound effect of the multiple other applications can be kept unchanged or reduced; The output sound effect of the target application program is unchanged, and the output sound effect of other multiple application programs is correspondingly reduced, thereby highlighting the output sound effect of the target application program.
当所述目标应用程序的类型为预先设定的不需要提升输出音效的类型时,表征该目标应用程序的输出音效可以不优于其他应用程序的输出音效,此时,若所述目标应用程序和多个其他应用程序均在电子设备运行时,可以对应降低所述目标应用程序的输出音效,且保持所述多个其他应用程序的输出音效不变或增大;也可以保持所述目标应用程序的输出音效不变,且对应增大所述其他应用程序的输出音效;或者保持所述目标应用程序和其他应用程序的输出音效均不变,从而弱化所述目标应用程序的输出音效,从而根据应用程序的类型调整电子设备在运行目标应用程序时的输出音效,实现自动快捷的配置电子设备的输出音效,提升输出音效的效果以及用户体验。When the type of the target application is a preset type that does not need to improve the output sound effect, the output sound effect that characterizes the target application may not be better than the output sound effect of other applications. At this time, if the target application When the electronic device and multiple other applications are running, the output sound effect of the target application program may be correspondingly reduced, and the output sound effect of the multiple other application programs may be kept unchanged or increased; or the target application may be maintained. The output sound effect of the program is unchanged, and the output sound effect of the other application program is increased correspondingly; or the output sound effect of the target application program and other application programs are kept unchanged, thereby weakening the output sound effect of the target application program, thereby Adjust the output sound effect of the electronic device when running the target application according to the type of application program, and realize the automatic and quick configuration of the output sound effect of the electronic device, improving the output sound effect and the user experience.
具体地,假设所述目标应用程序为游戏类应用程序,其中,游戏类应用程序为需要提升输出音效的类型,则当所述电子设备运行所述游戏类应用程序时,所述电子设备可能同时运行游戏类应用程序和系统原生应用程序,其中,所述系统原生应用程序可以用于发出系统提示音。此时,所述电子设备可以对应增大所述游戏类应用程序在运行时的输出音效,而所述系统原生应用程序在运行时的输出音效不变或减小,或者保持所述游戏类应用程序在运行时的输出音效不变,而所述系统原生应用程序在运行时的输出音效减小等。Specifically, assuming that the target application is a game application, where the game application is a type that needs to improve the output sound effect, when the electronic device runs the game application, the electronic device may be simultaneously Run a game application and a system native application, where the system native application can be used to emit a system prompt sound. At this time, the electronic device may correspondingly increase the output sound effect of the game application program at runtime, and the output sound effect of the system native application program remains unchanged or reduced, or the game application is maintained The output sound effect of the program when the program is running is unchanged, while the output sound effect of the system native application program is reduced when the program is running.
本申请一个实施例提供的音效调整方法,检测电子设备是否运行有目标应用程序,其中,目标应用程序在运行时可输出音频,当电子设备运行有目标应用程序时,获取该目标应用程序的类型,基于该类型调整电子设备在目标应用程序运行过程中的输出音效,从而根据应用程序的类型调整电子设备在运行目标应用程序时的输出音效,实现自动快捷的配置电子设备的输出音效,提升输出音效的效果以及用户体验。The sound effect adjustment method provided by an embodiment of the present application 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 the type of the target application Based on this type, the output sound effect of the electronic device during the running of the target application program is adjusted, so that the output sound effect of the electronic device when the target application program is running is adjusted according to the type of the application program, so as to automatically and quickly configure the output sound effect of the electronic device and improve the output Sound effects and user experience.
请参阅图2,图2示出了本申请又一个实施例提供的音效调整方法的流程示意图。 所述音效调整方法应用于上述电子设备,其中,在本实施例中,电子设备设置有多条音频通路,多条音频通路中的每条音频通路均对应不同的音效处理算法。下面将针对图2所示的流程进行详细的阐述,所述方法具体可以包括以下步骤:Please refer to FIG. 2, which 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. In this embodiment, 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. 2 will be described in detail below. The method may specifically include the following steps:
步骤S210:检测所述电子设备是否运行有目标应用程序,其中,所述目标应用程序在运行时可输出音频。Step S210: It is detected whether a target application is running on the electronic device, wherein the target application can output audio when running.
步骤S220:当所述电子设备运行有所述目标应用程序时,获取所述目标应用程序的类型。Step S220: When the target application is running on the electronic device, obtain the type of the target application.
其中,步骤S210-步骤S220的具体描述请参阅步骤S110,在此不再赘述。For a detailed description of steps S210 to S220, refer to step S110, and details are not described herein again.
步骤S230:基于所述类型从所述多条音频通路中选择至少一条音频通路作为目标音频通路。Step S230: Select at least one audio channel from the plurality of audio channels as the target audio channel based on the type.
在本实施例中,电子设备设置有多条音频通路,多条音频通路中的每条音频通路均对应不同的音频处理算法,具体地,所述电子设备根据音频系统现有的构架,单独为不同的场景添加不同的音频通路,其中,每条音频通路是指不同的声音走的是不同的通路。进一步地,在获取目标应用程序的类型后,获取该类型对应的至少一条音频通路,具体地,对所述目标应用程序的音频数据进行分析,获取音频数据中的声音种类,再根据分析后的结果从所述多条音频通路中选择至少一条音频通路作为目标音频通路,也就是说,一个应用程序可以对应多条音频通路。作为一种方式,当所述音频数据中只包括一个种类的声音时,可以仅选择其中一条音频通路作为目标音频通路;当所述音频数据中包括多个种类的声音时,可以选择多条音频通路作为目标音频通路。In this embodiment, the electronic device is provided with multiple audio channels, and each of the multiple audio channels corresponds to a different audio processing algorithm. Specifically, 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. Further, after obtaining the type of the target application, at least one audio channel corresponding to the type is obtained. Specifically, the audio data of the target application is analyzed to obtain the type of sound in the audio data, and then based on the analyzed As a result, at least one audio channel is selected as the target audio channel from the multiple audio channels, that is, one application program can correspond to multiple audio channels. As a method, when 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.
以所述目标应用程序为游戏类应用程序为例,其中,该游戏类应用程序可以包括打击声、跑步声、枪声等声音种类,因此,可以从多条音频通路中分别选择与打击声、跑步声、枪声等对应的音频通路作为目标音频通路分别传输所述打击声、跑步声、枪声等,从而不同的音频数据通过不同的音效处理算法处理,处理效果更佳。Taking the target application as a game application as an example, 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.
当然,在本实施例中,每个应用程序还可以有单独对应的音频通路,也就是说一个应用程序对应一个音频通路,且各个应用程序对应的音频通路根据应用程序的类型设置不同的音效处理算法,因此,在获取包名对应的应用程序的类型后,根据该类型获取与该目标应用程序对应的音频通路作为目标音频通路。以所述目标应用程序为游戏类应用程序为例,基于该游戏类应用程序从多条音频通路中确定一条音频通路作为该游戏类应用程序的目标音频通路,传输所述电子设备在运行所述目标应用程序过程中的输出音效。Of course, in this embodiment, 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. Taking 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.
请参阅图3,图3示出了本申请的图2所示的实施例提供的音效调整方法的步骤S230的流程示意图。下面将针对图3所示的流程进行详细的阐述,所述方法具体可以包括以下步骤:Please refer to FIG. 3, which is a schematic flowchart of step S230 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:
步骤S231:判断所述类型是否为游戏类型。Step S231: Determine whether the type is a game type.
在本实施例中,所述电子设备预先设置并存储有游戏类型,其中,该游戏类型用于作为获取的目标应用程序的类型的判断依据,其中,该游戏类型也已由用户手动划分配置,也可以由电子设备划分配置等,在此不做限定。进一步地,当获取目标应用程序的类型时,将所述类型与游戏类型进行比较,以判断该目标应用程序的类型是否与游戏类型一致,可以理解的,当目标应用程序的类型与游戏类型一致时,表征该目标应用程序为游戏类应用程序,当目标应用程序的类型与游戏类型不一致时,表征该目标应用程序为非游戏类应用程序。In this embodiment, the electronic device presets and stores a game type, where the game type is used as a basis for determining the type of the target application to be acquired, and the game type has also been manually divided and configured by the user. The configuration may also be divided by the electronic device, which is not limited herein. Further, when the type of the target application is obtained, the type is compared with the game type to determine whether the type of the target application is consistent with the game type. It is understandable that when the type of the target application is consistent with the game type When the target application is a game application, when the type of the target application is not consistent with the game type, the target application is characterized as a non-game application.
步骤S232:当所述类型为所述游戏类型时,基于所述类型从所述多条音频通路中选择至少一条音频通路作为所述目标音频通路。Step S232: When the type is the game type, select at least one audio channel from the multiple audio channels as the target audio channel based on the type.
其中,作为一种方式,当所述目标应用程序的类型为游戏类型时,表征该目标应用程序需要提升输出音效,则需要对所述目标应用程序的音频数据进行单独处理,因此,电子设备作为响应,基于所述类型从多条音频通路中选择一条音频通路作为目标音频通路。Wherein, as a method, when the type of the target application is a game type, characterizing that the target application needs to improve the output sound effect, the audio data of the target application needs to be processed separately. Therefore, the electronic device serves as In response, an audio path is selected as a target audio path from a plurality of audio paths based on the type.
作为另一种方式,当所述目标应用程序的类型为游戏类型时,游戏类应用程序可以包括多种声音种类,则可以对该目标应用程序的音频数据进行分析,获取音频数据中的声音种类,再根据分析后的结果从多条音频通路中选择至少一条音频通路作为目标音频通路。例如,该 目标应用程序包括跑步声、风声、人声,于是,可以从多条音频通路中分别选择与跑步声、风声、人声对应的音频通路作为目标音频通路分别传输跑步声、风声、人声,从而不同的音频数据通过不同的音效处理算法处理。As another method, when the type of the target application is a game type, the game application may include multiple sound types, and then the audio data of the target application may be analyzed to obtain the sound types in the audio data. , And then select at least one audio channel from the multiple audio channels as the target audio channel according to the analyzed results. For example, the target application includes running sounds, wind sounds, and human voices. Therefore, audio channels corresponding to running sounds, wind sounds, and human voices can be selected from multiple audio channels as the target audio channels to transmit running sounds, wind sounds, and human voices, respectively. Sound, so different audio data is processed by different sound processing algorithms.
步骤S233:当所述类型为非游戏类型时,将原始音频通路作为所述目标音频通路,其中,所述原始音频通路用于所述电子设备的系统音效的输出。Step S233: When the type is a non-game type, use an original audio path as the target audio path, where the original audio path is used for outputting a system sound effect of the electronic device.
另外,作为一种方式,当所述目标应用程序的类型为非游戏类型时,表征该目标应用程序不需要提升输出音效,则不需要再对所述目标应用程序的音频数据进行单独的处理,因此,电子设备作为响应,将原始音频通路作为目标音频通路,其中,该原始音频通路用于该电子设备的系统音效的输出,也就是说,该目标应用程序的音频数据和系统音频数据可以通过相同的音效处理算法进行处理输出,以节省减少多音频通路独一音频数据进行处理带来的功耗。In addition, as a way, when the type of the target application is a non-game type, characterizing the target application does not need to improve the output sound effect, and then there is no need to separately process the audio data of the target application, Therefore, the electronic device responds by using the original audio path as the target audio path, where the original audio path is used for the output of the system audio effect of the electronic device, that is, the audio data and system audio data of the target application can pass The same sound effect processing algorithm performs processing output to save and reduce power consumption caused by processing of unique audio data in multiple audio channels.
进一步地,当所述目标应用程序的类型为非游戏类型时,关闭针对该目标应用程序的音频流的音效设置,以及将原始音频通路作为目标音频通路。也就是说,当所述电子设备运行的目标应用程序为非游戏类应用程序时,表征所述目标应用程序的音频数据不需要进行单独的处理,因此,为了进一步降低电子设备的功耗,可以关闭针对该目标应用程序程序的音频流的音效设置,作为一种方式,关闭新设置的多条音频通路,仅开启原始音频通路作为目标音频通路。Further, when the type of the target application is a non-game type, the sound effect setting of the audio stream for the target application is closed, and the original audio path is used as the target audio path. That is, when the target application running on the electronic device is a non-game application, the audio data representing the target application does not need to be processed separately. Therefore, in order to further reduce the power consumption of the electronic device, Turn off the sound effect settings for the audio stream of the target application program. As a method, close the newly set multiple audio channels and only open the original audio channel as the target audio channel.
请参阅图4,图4示出了本申请的图3所示的实施例提供的音效调整方法的步骤S232的一个实施例的流程示意图。下面将针对图4所示的流程进行详细的阐述,所述方法具体可以包括以下步骤:Please refer to FIG. 4, which is a schematic flowchart of an embodiment of step S232 of the sound effect adjustment method provided by the embodiment shown in FIG. 3 of the present application. The process shown in FIG. 4 will be described in detail below. The method may specifically include the following steps:
步骤S2321A:当所述类型为所述游戏类型时,获取所述目标应用程序的应用场景。Step S2321A: When the type is the game type, obtain an application scenario of the target application.
在本实施例中,在确定所述类型为所述游戏类型时,对应获取该目标应用程序的应用场景,其中,该应用场景至少可以包括打斗场景、设计场景、修建场景、跳舞场景、追逐场景等,在此不做限定,可以理解的,同属于游戏类型的多个应用程序,可能用于不同的应用场景,并且,一个应用程序可以对应一个应用场景,或者一个应用程序也可以对应多个应用场景等。In this embodiment, when the type is determined to be the game type, the application scenario of the target application is obtained correspondingly, where the application scenario may include at least a fighting scene, a design scene, a construction scene, a dancing scene, and a chase scene. It is not limited here, it is understandable that multiple applications that belong to the same game type may be used in different application scenarios, and one application can correspond to one application scenario, or one application can also correspond to multiple applications Application scenarios, etc.
作为一种方式,所述电子设备可以预先建立应用程序的类型和应用场景之间的映射关系,并生成映射关系表存储在电子设备中,如表2所示。其中,应用程序的类型和应用场景之间的映射关系可以由用户手动关联,可以由电子设备自动关联或者由服务器自动关联等,在此不做限定,并且应用程序的类型和应用场景之间的映射关系可以包括一个应用程序的类型对应一个应用场景,一个应用程序的类型对应多个应用场景,或者多个应用程序的类型对应一个应用场景等,在此不做限定。As one way, the electronic device may establish a mapping relationship between an application type and an application scenario in advance, and generate a mapping relationship table for storage in the electronic device, as shown in Table 2. The mapping relationship between the type of application and the application scenario can be manually associated by the user, it can be automatically associated by the electronic device or automatically by the server, etc., which is not limited here, and the type between the application and the application scenario The mapping relationship may include one application type corresponding to one application scenario, one application type corresponding to multiple application scenarios, or multiple application types corresponding to one application scenario, and the like is not limited herein.
进一步地,在确定目标应用程序的类型后,将所述目标应用程序的类型和映射关系表中预先存储的多个应用程序的类型一一对比,以获取与所述目标应用程序的类型匹配的应用程序的类型,再根据所述映射关系表,查找该应用程序的类型对应的应用场景,从而可以获取所述目标应用程序的类型对应的应用场景。Further, after the type of the target application is determined, the type of the target application and the types of multiple applications stored in the mapping relationship table are compared one by one to obtain a match with the type of the target application. According to the type of the application, the application scenario corresponding to the type of the application is searched according to the mapping relationship table, so that the application scenario corresponding to the type of the target application can be obtained.
表2Table 2
类型Types of 应用场景Application scenario
B1B1 C1C1
B2B2 C2C2
B3B3 C3C3
另外,作为一种方式,所述电子设备也可以预先建立应用程序、应用程序的类型以及应用场景三者之间的映射关系,并生成映射关系表存储在电子设备中,如表3所示。因此,在本实施例中,在确定目标应用程序后,电子设备根据表3所示的映射关系查找与所述目标应用程序对应的目标应用程序的类型以及查找与所述目标应用程序的类型对应的应用场景,从而可以获取所述目标应用程序的应用场景。In addition, as an approach, the electronic device may also establish a mapping relationship between the application program, the type of the application program, and the application scenario in advance, and generate a mapping relationship table for storage in the electronic device, as shown in Table 3. Therefore, in this embodiment, after the target application is determined, the electronic device searches for the type of the target application corresponding to the target application and finds the type corresponding to the target application according to the mapping relationship shown in Table 3. Application scenario, so that the application scenario of the target application can be obtained.
表3table 3
应用程序application 类型Types of 应用场景Application scenario
A1A1 B1B1 C1C1
A2A2 B2B2 C2C2
A3A3 B3B3 C3C3
步骤S2322A:基于所述应用场景从所述多条音频通路中选择至少一条音频通路作为所述目标音频通路。Step S2322A: Select at least one audio channel from the multiple audio channels as the target audio channel based on the application scenario.
可以理解的,不同的应用场景,对于输出音效的需求不同,具体地,打斗场景、设计场景、修建场景、跳舞场景、追逐场景等对于输出音效的需求均不相同,例如,打斗场景对于输出音效相较于修建场景对于输出音效需求更加精细,如需要突出表现枪声、跑步声、打击声等,因此,基于打斗场景选择的音频通路和基于修建场景选择的音频通路不同,且基于打斗场景选择的音频通路的数量和基于修建场景选择的音频通路的数量可以不同。Understandably, different application scenarios have different requirements for output sound effects. Specifically, the requirements for output sound effects are different in fighting scenes, design scenes, construction scenes, dancing scenes, and chasing scenes. For example, fighting scenes have different output sound effects. Compared with the construction scene, the output sound requirements are more detailed, such as the need to highlight gun sounds, running sounds, and percussion sounds. Therefore, the audio channel selection based on the fighting scene is different from the audio channel selection based on the construction scene, and the selection is based on the fighting scene. The number of audio channels can be different from the number of audio channels selected based on the construction scene.
作为一种方式,电子设备中可以预先建立应用场景和音频通路之间的映射关系,并生成映射关系表存储在电子设备中,如表4所示。其中,应用场景和音频通路之间的映射关系可以由用户手动关联,可以由电子设备自动关联或者由服务器自动关联等,在此不做限定,并且应用场景和音频通路之间的映射关系可以包括一个应用场景对应一条音频通路,一个应用场景对应多条音频通路,或者多个应用场景对应一条音频通路等,在此不做限定。As one way, a mapping relationship between an application scenario and an audio path may be established in the electronic device in advance, and a mapping relationship table may be generated and stored in the electronic device, as shown in Table 4. The mapping relationship between the application scenario and the audio channel can be manually associated by the user, it can be automatically associated by the electronic device or the server, etc., which is not limited here, and the mapping relationship between the application scenario and the audio channel can include One application scenario corresponds to one audio channel, one application scenario corresponds to multiple audio channels, or multiple application scenarios correspond to one audio channel, which are not limited here.
进一步地,在确定目标应用程序的应用场景后,将所述目标应用程序的应用场景和映射关系表中预先存储的多个应用程序的应用场景一一对比,以获取与所述目标应用程序的应用场景匹配的应用程序的应用场景,再根据所述映射关系表,查找该应用程序的应用场景对应的音频通路,从而可以获取所述目标应用程序的应用场景对应的音频通路。Further, after the application scenario of the target application is determined, the application scenario of the target application and the application scenarios of multiple applications stored in the mapping relationship table are compared one by one to obtain the application scenario of the target application. According to the application scenario of the application scenario matched by the application scenario, the audio channel corresponding to the application scenario of the application program is found according to the mapping relationship table, so that the audio channel corresponding to the application scenario of the target application program can be obtained.
表4Table 4
应用场景Application scenario 音频通路Audio path
B1B1 D1D1
B2B2 D2D2
B3B3 D3D3
请参阅图5,图5示出了本申请的图3所示的实施例提供的音效调整方法的步骤S232的另一个实施例的流程示意图。下面将针对图4所示的流程进行详细的阐述,所述方法具体可以包括以下步骤:Please refer to FIG. 5, which is a schematic flowchart of another embodiment of step S232 of the sound effect adjustment method provided by the embodiment shown in FIG. 3 of the present application. The process shown in FIG. 4 will be described in detail below. The method may specifically include the following steps:
步骤S2321B:当所述类型为所述游戏类型时,根据预设关系表确定所述类型对应的音频通路,所述预设关系表中包括应用程序的类型和音频通路的对应关系。Step S2321B: When the type is the game type, determine an audio channel corresponding to the type according to a preset relationship table, where the preset relationship table includes a correspondence between an application type and an audio channel.
作为一个实施方式,电子设备可以预先建立应用程序的类型和音频通路之间的映射关系,并生成映射关系表,即预设关系表存储在电子设备中,如表5所示。其中,应用程序的类型和音频通路之间的映射关系可以由用户手动关联,可以由电子设备自动关联或者由服务器自动关联等,在此不做限定。As an implementation manner, the electronic device may establish a mapping relationship between the type of the application program and the audio channel in advance, and generate a mapping relationship table, that is, a preset relationship table is stored in the electronic device, as shown in Table 5. The mapping relationship between the type of the application and the audio channel may be manually associated by the user, may be automatically associated by an electronic device, or automatically associated by a server, etc., and is not limited herein.
进一步地,在确定目标应用程序的类型,将所述目标应用程序的类型和映射关系表中预先存储的多个应用程序的类型一一对比,以获取与所述目标应用程序的类型匹配的应用程序的类型,再根据所述映射关系表,查找该应用程序的类型对应的音频通路,从而可以获取所述目标应用程序的类型对应的音频通路。Further, when determining the type of the target application, compare the type of the target application and the types of multiple applications stored in the mapping relationship table one by one to obtain an application that matches the type of the target application. The type of the program, and then the audio channel corresponding to the type of the application program is searched according to the mapping relationship table, so that the audio channel corresponding to the type of the target application program can be obtained.
表5table 5
类型Types of 音频通路Audio path
C1C1 D1D1
C2C2 D2D2
C3C3 D3D3
步骤S2322B:将所述类型对应的音频通路确定为所述目标音频通路。Step S2322B: Determine the audio path corresponding to the type as the target audio path.
步骤S240:通过所述目标音频通路传输所述电子设备在所述目标应用程序运行过程中的输出音效。Step S240: transmitting an output sound effect of the electronic device during the running of the target application program through the target audio path.
可以理解的,目标音频通路至少包括一条音频通路,当音频通路为一条时,则通过该音频通路对应的音效处理算法对原始音频数据进行处理,获得对应的输出音效;当音频通路为多条时,由于每个音频通路对应的独立的音效处理算法,因此,通过目标音频通路传输所述电子设备在目标应用程序运行过程中的输出音效,可以对原始音频数据进行不同的处理,从而得到声音各异的输出音效,处理效果更佳。It can be understood that the target audio channel includes at least one audio channel. When there is 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. When there are multiple audio channels Because of the independent sound processing algorithm corresponding to each audio channel, 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.
本申请又一个实施例提供的音效调整方法,检测电子设备是否运行有目标应用程序,其中,目标应用程序在运行时可输出音频,当电子设备运行有目标应用程序时,获取目标应用程序的类型,基于该类型从多条音频通路中选择一条音频通路作为目标音频通路,通过该目标音频通路传输电子设备在目标应用程序运行过程中的输出音效,相较于图1所示的音效调整方法,本实施例通过设置多条音频处理算法不同的音频通路,以方便且快捷的对输出音效进行调节,提升输出音效的效果。The sound effect adjustment method provided by another embodiment of the present application 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 a type of the target application Based on this type, an audio channel is selected from multiple audio channels as the target audio channel, and the output audio effect of the electronic device during the running of the target application program is transmitted through the target audio channel. Compared with the sound effect adjustment method shown in FIG. 1, In this embodiment, multiple audio channels with different audio processing algorithms are set, so as to conveniently and quickly adjust the output sound effect to improve the effect of the output sound effect.
请参阅图6,图6示出了本申请再一个实施例提供的音效调整方法的流程示意图。所述音效调整方法应用于上述电子设备。下面将针对图6所示的流程进行详细的阐述,所述方法具体可以包括以下步骤:Please refer to FIG. 6, which 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 electronic device. The process shown in FIG. 6 will be described in detail below. The method may specifically include the following steps:
步骤S310:检测所述电子设备是否运行有目标应用程序,其中,所述目标应用程序在运行时可输出音频。Step S310: Detect whether the electronic device is running a target application program, wherein the target application program can output audio when running.
步骤S320:当所述电子设备运行有所述目标应用程序时,获取所述目标应用程序的类型。Step S320: When the target application is running on the electronic device, obtain the type of the target application.
其中,步骤S310-步骤S320的具体描述请参阅步骤S110-步骤S120,在此不再赘述。For a detailed description of steps S310 to S320, please refer to steps S110 to S120, and details are not described herein again.
步骤S330:判断所述类型是否为游戏类型。Step S330: Determine whether the type is a game type.
步骤S340:当所述类型为所述游戏类型时,显示与所述类型相对应的音效参数设置界面。Step S340: When the type is the game type, a sound parameter setting interface corresponding to the type is displayed.
在本实施例中,当所述目标应用程序为游戏类应用程序时,电子设备显示与所述目标应用程序的类型相对应的音效参数设置界面,其中,音效参数可以包括目标应用程序的音量值、频率值、功率值等,在此不做限定。作为一种方式,音效参数设置界面固定,也就是说,当不同类型的应用程序对应显示相同的音效参数设置界面;作为另一种方式,音效参数设置界面包括多个,且每个类型对应不同的音效参数设置界面。In this embodiment, when the target application is a game application, the electronic device displays a sound parameter setting interface corresponding to the type of the target application, where the sound parameter may include a volume value of the target application , Frequency value, power value, etc. are not limited here. As one way, the sound effect parameter setting interface is fixed, that is, when different types of applications correspond to the same sound effect parameter setting interface; as another way, the sound effect parameter setting interface includes multiple, and each type corresponds to a different Interface of sound parameter settings.
在本实施例中,如图7所示,电子设备将目标应用程序的类型对应的音效参数设置界面进行显示,可以理解的,所述音效参数设置界面可以悬浮于电子设备的当前显示界面的上方显示,也可以与所述电子设备的当前显示界面同层级显示,并且,当所述音效参数设置界面与所述当前显示界面同层级显示时,可以显示于当前显示界面的上部分区域、下部分区域、做部分区域或右部分区域,在此不做限定。In this embodiment, as shown in FIG. 7, the electronic device displays a sound effect parameter setting interface corresponding to the type of the target application. It can be understood that the sound effect parameter setting interface may be suspended above the current display interface of the electronic device. The display may also be displayed at the same level as the current display interface of the electronic device, and when the sound parameter setting interface is displayed at the same level as the current display interface, it may be displayed in an upper part area and a lower part of the current display interface The area, the partial area or the right partial area is not limited here.
步骤S350:检测作用于所述音效参数设置界面的设置操作,基于所述设置操作生成音效参数。Step S350: Detect a setting operation acting on the sound parameter setting interface, and generate a sound effect parameter based on the setting operation.
进一步地,当所述电子设备显示音效参数设置界面时,实时检测作用于该音效参数设置界面的设置操作,其中,该设置操作用于对音效参数设置界面上显示的参数进行调整或配置。作为一种方式,该设置操作可以包括单指点击、多指点击、单指长按、单指长按、多指长按、重压、多次点击、滑动操作、参数输入等,如图8所示,其中,所述单指点击是指单指在参数上进行点击的操作;多指点击是指多指在参数上同时进行点击的操作;单指长按是指单指在参数上按压超过预设时长;多指长按是指多指同时在参数上按压超过预设时长;重压是指在参数上按压力度超过预设力度;多次点击是指在预设时间内点击次数超过预设次数;滑动操作是指单指在参数上进行滑动的操作;参数输入是指在输入框中输入预配置的参数。Further, when the electronic device displays a sound effect parameter setting interface, a setting operation acting on the sound effect parameter setting interface is detected in real time, wherein the setting operation is used to adjust or configure a parameter displayed on the sound effect parameter setting interface. As a way, the setting operation can include single-finger tap, multi-finger tap, single-finger long press, single-finger long press, multi-finger long press, heavy pressing, multiple taps, sliding operation, parameter input, etc., as shown in Figure 8 As shown in the figure, the single-finger tap refers to a single-finger tap operation on a parameter; the multi-finger tap refers to a multi-finger tap operation on a parameter; a single-finger long press refers to a single-finger press on a parameter Exceed the preset time; Multi-finger long press means that multiple fingers press on the parameter at the same time for more than the preset time; Heavy press means that the pressure on the parameter exceeds the preset strength; Multiple clicks means that the number of clicks exceeds the preset time A preset number of times; a swipe operation refers to a single-finger sliding operation on a parameter; a parameter input refers to entering a pre-configured parameter in an input box.
在本实施例中,基于上述设置操作,电子设备在检测到设置操作完成后,可以生成音效参数,可以理解的,该音效参数是用户手动设置,因此,更符合用户的喜好和需求,更具有适用性。In this embodiment, based on the above setting operation, the electronic device can generate a sound effect parameter after detecting that the setting operation is completed. It can be understood that the sound effect parameter is manually set by the user, and therefore, it is more in line with the user's preferences and needs, and has more applicability.
步骤S360:基于所述音效参数调整所述电子设备在所述目标应用程序运行过程中的输出音效。Step S360: Adjust the output sound effect of the electronic device during the running of the target application based on the sound effect parameters.
以音效参数中的音量值为例,当所述音效参数中包括的音量值大于所述电子设备运行所述目标应用程序时输出的音量值时,则根据音效参数中设置的音量值和电子设备当前的音量值之间的差值,增加所述电子设备在运行所述目标应用程序的输出音量,以达到与用户设置的音效参数一致的音量值,相反的,当所述音效参数中包括的音量值小于所述电子设备运行所述目标应用程序时输出的音量值时,则根据音效参数中设置的音量值和电子设备当前的音量值之间的差值,减小所述电子设备在运行所述目标应用程序的输出音量,以达到与用户设置的音效参数一致的音量值,从而根据设置的音效参数调整电子设备在目标应用程序运行过程中的输出音效,以方便用户快捷获取自己喜好的输出音效。Take the volume value in the sound effect parameter as an example. When the volume value included in the sound effect parameter is greater than the volume value output when the electronic device runs the target application, the volume value and the electronic device are set in the sound effect parameter. The difference between the current volume values increases the output volume of the electronic device when the target application is running to achieve a volume value consistent with the sound effect parameter set by the user. Conversely, when the sound effect parameter includes When the volume value is smaller than the volume value output when the electronic device runs the target application, the electronic device is reduced in operation according to the difference between the volume value set in the sound effect parameter and the current volume value of the electronic device. The output volume of the target application program is to reach a volume value consistent with the sound effect parameter set by the user, so that the output sound effect of the electronic device during the running of the target application program is adjusted according to the set sound effect parameter, so that the user can quickly obtain his favorite Output sound effects.
本申请再一个实施例提供的音效调整方法,检测电子设备是否运行有目标应用程序,其中,目标应用程序在运行时可输出音频,当电子设备运行有目标应用程序时,获取目标应用程序的类型,判断该类型是否为游戏类型,当该类型为游戏类型时,显示于该类型相对应的音效参数设置界面,检测作用于该音效参数设置界面的设置操作,基于该设置操作生成音效参数,基于该音效参数调整电子设备在目标应用程序运行过程中的输出音效,相较于图1所示的音效调整方法,本实施例还在目标应用程序为游戏类应用程序时,显示参数设置界面供用户自动设置音效参数,并根据设置的音效参数调整电子设备在目标应用程序运行过程中的输出音效,以方便用户快捷获取自己喜好的输出音效。The sound effect adjustment method provided by another embodiment of the present application 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 a type of the target application To determine whether the genre is a game type. When the genre is a game type, it is displayed on the sound parameter setting interface corresponding to the type, detects a setting operation that acts on the sound parameter setting interface, and generates a sound parameter based on the setting operation. The sound effect parameter adjustment electronic device outputs sound effects during the running of the target application. Compared with the sound effect adjustment method shown in FIG. 1, this embodiment also displays a parameter setting interface for the user when the target application is a game application. Automatically set the sound effect parameters, and adjust the output sound effect of the electronic device during the running of the target application according to the set sound effect parameters, so that the user can quickly obtain his favorite output sound effect.
请参阅图9,图9示出了本申请实施例提供的音效调整装置200的模块框图。音效调整装置200应用于上述电子设备。下面将针对图9所示的框图进行阐述,所述音效调整装置200包括:检测模块210、获取模块220以及调整模块230,其中:Please refer to FIG. 9, which 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 following describes the block diagram shown in FIG. 9. The sound effect adjustment device 200 includes a detection module 210, an acquisition module 220, and an adjustment module 230, where:
检测模块210,用于检测所述电子设备是否运行有目标应用程序,其中,所述目标应用程序在运行时可输出音频。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.
获取模块220,用于当所述电子设备运行有所述目标应用程序时,获取所述目标应用程序的类型。The obtaining module 220 is configured to obtain a type of the target application when the electronic device runs the target application.
调整模块230,用于基于所述类型调整所述电子设备在所述目标应用程序运行过程中的输出音效。进一步地,所述电子设备设置有多条音频通路,所述多条音频通路中的每条音频通路对应不同的音效处理算法,所述调整模块230包括:选择子模块和传输子模块,其中:An adjustment module 230 is configured to adjust an output sound effect of the electronic device during the running of the target application based on the type. Further, 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 includes a selection sub-module and a transmission sub-module, wherein:
选择子模块,用于基于所述类型从所述多条音频通路中选择至少一条音频通路作为目标音频通路。进一步地,所述选择子模块包括:判断单元和选择单元,其中: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 type. Further, the selection sub-module includes a judgment unit and a selection unit, wherein:
判断单元,用于判断所述类型是否为游戏类型。A determining unit is configured to determine whether the type is a game type.
选择单元,用于当所述类型为所述游戏类型时,基于所述类型从所述多条音频通路中选择至少一条音频通路作为所述目标音频通路。进一步地,所述选择单元包括:获取子单元和选择子单元,其中:A selection unit is configured to select at least one audio channel from the plurality of audio channels as the target audio channel when the type is the game type. Further, the selection unit includes: an acquisition subunit and a selection subunit, wherein:
获取子单元,用于当所述类型为所述游戏类型时,获取所述目标应用程序的应用场景。An acquisition subunit is configured to acquire an application scenario of the target application when the type is the game type.
选择子单元,用于基于所述应用场景从所述多条音频通路中选择至少一条音频通路作为所述目标音频通路。A selection subunit is configured to select at least one audio path from the multiple audio paths as the target audio path based on the application scenario.
所述选择单元,还用于当所述类型为非游戏类型时,将原始音频通路作为所述目标音频通路,其中,所述原始音频通路用于所述电子设备的系统音效的输出。The selection unit is further configured to use an original audio path as the target audio path when the type is a non-game type, wherein the original audio path is used for outputting a system sound effect of the electronic device.
所述选择单元,还用于当所述类型为所述游戏类型时,根据预设关系表确定所述类型对应的音频通路,所述预设关系表中包括应用程序的类型和音频通路的对应关系。The selecting unit is further configured to determine an audio channel corresponding to the type according to a preset relationship table when the type is the game type, and the preset relationship table includes a type of an application program and a corresponding audio channel. relationship.
所述选择单元,还用于将所述类型对应的音频通路确定为所述目标音频通路。The selection unit is further configured to determine an audio path corresponding to the type 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.
进一步地,所述调整模块230还包括:显示子模块、生成子模块以及调整子模块,其中:Further, the adjustment module 230 further includes: a display sub-module, a generation sub-module, and an adjustment sub-module, wherein:
显示子模块,用于当所述类型为所述游戏类型时,显示与所述类型相对应的音效参数设置界面;A display sub-module for displaying a sound parameter setting interface corresponding to the type when the type is the game type;
生成子模块,用于检测作用于所述音效参数设置界面的设置操作,基于所述设置操作生成音效参数;A generating sub-module for detecting a setting operation acting on the sound parameter setting interface, and generating a sound parameter based on the setting operation;
调整子模块,用于基于所述音效参数调整所述电子设备在所述目标应用程序运行过程中的输出音效。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 sound effect parameters.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working processes of the devices and modules described above may refer to the corresponding processes in the foregoing method embodiments, and are not repeated here.
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。In the several embodiments provided in this application, the coupling between the modules may be electrical, mechanical, or other forms of coupling.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, 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 type of the target application when the electronic device is running the target application, and the adjustment module is configured to adjust the running process of the electronic device in the target application based on the type. The output sound effect of the electronic device is adjusted according to the type of the application program, and the output sound effect of the electronic device when the target application is running is realized, so that the output sound effect of the electronic device is automatically and quickly configured, and the effect of the output sound effect and the user experience are improved.
请参阅图10,其示出了本申请实施例提供的一种电子设备100的结构框图。该电子设备100可以是智能手机、平板电脑、电子书等能够运行应用程序的电子设备。本申请中的电子设备100可以包括一个或多个如下部件:处理器110、存储器120以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器120中并被配置为由一个或多个处理器110执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。Please refer to FIG. 10, which 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.
处理器110可以包括一个或者多个处理核。处理器110利用各种接口和线路连接整个电子设备100内的各个部分,通过运行或执行存储在存储器120内的指令、程序、代码集或指令集,以及调用存储在存储器120内的数据,执行电子设备100的各种功能和处理数据。可选地,处理器110可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器110可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器110中,单独通过一块通信芯片进行实现。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. Optionally, 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. Among them, 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.
存储器120可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器120可用于存储指令、程序、代码、代码集或指令集。存储器120可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储终端100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。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 storage program area and a storage data area, where the storage program area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , Instructions for implementing the following method embodiments, and the like. 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.
请参阅图11,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质300中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 11, which 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.
计算机可读存储介质300可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质300包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质300具有执行上述方法中的任何方法步骤的程序代码310的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码310可以例如以适当形式进行压缩。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. Optionally, 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.
综上所述,本申请实施例提供的音效调整方法、装置、电子设备以及存储介质,检测电子设备是否运行有目标应用程序,其中,目标应用程序在运行时可输出音频,当电子设备运行有目标应用程序时,获取该目标应用程序的类型,基于该类型调整电子设备在目标应用程序运行过程中的输出音效,从而根据应用程序的类型调整电子设备在运行目标应用程序时的输出音效,实现自动快捷的配置电子设备的输出音效,提升输出音效的效果以及用户体验。In summary, the sound effect adjustment method, device, electronic device, and storage medium provided in the embodiments of the present application 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 is obtained, the type of the target application is obtained, and based on the type, the output sound effect of the electronic device during the running of the target application is adjusted, so that the output sound effect of the electronic device when the target application is running is adjusted according to the type of the application to achieve Automatically and quickly configure the output sound effects of electronic devices to improve the output sound effect and user experience.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to describe the technical solution of the present application, rather than limiting it. Although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still Modifications to the technical solutions described in the foregoing embodiments, or equivalent replacements of some of the technical features thereof; and these modifications or replacements do not drive the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (20)

  1. 一种音效调整方法,其特征在于,应用于电子设备,所述方法包括:A sound effect adjustment method, which is characterized in that it is applied to an electronic device, and the method includes:
    检测所述电子设备是否运行有目标应用程序,其中,所述目标应用程序在运行时可输出音频;Detecting whether the electronic device has a target application running, wherein the target application can output audio when running;
    当所述电子设备运行有所述目标应用程序时,获取所述目标应用程序的类型;Obtaining the type of the target application when the electronic device is running the target application;
    基于所述类型调整所述电子设备在所述目标应用程序运行过程中的输出音效。Adjusting an output sound effect of the electronic device during the running of the target application based on the type.
  2. 根据权利要求1所述的方法,其特征在于,所述电子设备设置有多条音频通路,所述多条音频通路中的每条音频通路对应不同的音效处理算法,所述基于所述类型调整所述电子设备在所述目标应用程序运行过程中的输出音效,包括:The method according to claim 1, wherein the electronic device is provided with multiple audio channels, and each of the multiple audio channels corresponds to a different sound processing algorithm, and the adjustment is based on the type The output sound effect of the electronic device during the running of the target application includes:
    基于所述类型从所述多条音频通路中选择至少一条音频通路作为目标音频通路;Selecting at least one audio channel from the plurality of audio channels as a target audio channel based on the type;
    通过所述目标音频通路传输所述电子设备在所述目标应用程序运行过程中的输出音效。Transmitting the output audio effect of the electronic device during the running of the target application through the target audio path.
  3. 根据权利要求2所述的方法,其特征在于,所述基于所述类型从所述多条音频通路中选择至少一条音频通路作为目标音频通路,包括:The method according to claim 2, wherein the selecting at least one audio path from the plurality of audio paths as the target audio path based on the type comprises:
    获取所述目标应用程序的音频数据;Acquiring audio data of the target application;
    分析所述音频数据获得分析结果,基于所述分析结果从所述多条音频通路中选择至少一条音频通路作为目标音频通路。Analyze the audio data to obtain an analysis result, and select at least one audio channel as the target audio channel from the plurality of audio channels based on the analysis result.
  4. 根据权利要求2或3所述的方法,其特征在于,所述基于所述类型从所述多条音频通路中选择至少一条音频通路作为目标音频通路,包括:The method according to claim 2 or 3, wherein the selecting at least one audio channel as the target audio channel from the plurality of audio channels based on the type comprises:
    判断所述类型是否为游戏类型;Determining whether the type is a game type;
    当所述类型为所述游戏类型时,基于所述类型从所述多条音频通路中选择至少一条音频通路作为所述目标音频通路。When the type is the game type, at least one audio channel is selected as the target audio channel from the plurality of audio channels based on the type.
  5. 根据权利要求4所述的方法,其特征在于,所述当所述类型为所述游戏类型时,基于所述类型从所述多条音频通路中选择至少一条音频通路作为所述目标音频通路,包括:The method according to claim 4, characterized in that, when the type is the game type, selecting at least one audio channel from the plurality of audio channels as the target audio channel based on the type, include:
    当所述类型为所述游戏类型时,获取所述目标应用程序的应用场景;When the type is the game type, obtaining an application scenario of the target application;
    基于所述应用场景从所述多条音频通路中选择至少一条音频通路作为所述目标音频通路。Selecting at least one audio channel from the plurality of audio channels as the target audio channel based on the application scenario.
  6. 根据权利要求4所述的方法,其特征在于,所述方法还包括:The method according to claim 4, further comprising:
    当所述类型为所述游戏类型时,显示与所述类型相对应的音效参数设置界面;When the type is the game type, displaying a sound parameter setting interface corresponding to the type;
    检测作用于所述音效参数设置界面的设置操作,基于所述设置操作生成音效参数;Detecting a setting operation acting on the sound effect parameter setting interface, and generating a sound effect parameter based on the setting operation;
    基于所述音效参数调整所述电子设备在所述目标应用程序运行过程中的输出音效。Adjusting an output sound effect of the electronic device during the running of the target application program based on the sound effect parameter.
  7. 根据权利要求6所述的方法,其特征在于,所述音效参数至少包括音量值,所述基于所述音效参数调整所述电子设备在所述目标应用程序运行过程中的输出音效,包括:The method according to claim 6, wherein the sound effect parameter includes at least a volume value, and adjusting the output sound effect of the electronic device during the running of the target application based on the sound effect parameter comprises:
    计算所述音效参数中的音量值与所述电子设备当前的音量值之间的差值;Calculating a difference between a volume value in the sound effect parameter and a current volume value of the electronic device;
    基于所述差值调整所述电子设备在所述目标应用程序运行过程中的输出音量。Adjusting the output volume of the electronic device during the running of the target application based on the difference.
  8. 根据权利要求4所述的方法,其特征在于,所述当所述类型为所述游戏类型时,基于所述类型从所述多条音频通路中选择至少一条音频通路作为所述目标音频通路,包括:The method according to claim 4, characterized in that, when the type is the game type, selecting at least one audio channel from the plurality of audio channels as the target audio channel based on the type, include:
    当所述类型为所述游戏类型时,根据预设关系表确定所述类型对应的音频通路,所述预设关系表中包括应用程序的类型和音频通路的对应关系;When the type is the game type, determining an audio channel corresponding to the type according to a preset relationship table, where the preset relationship table includes a corresponding relationship between an application type and an audio channel;
    将所述类型对应的音频通路确定为所述目标音频通路。The audio path corresponding to the type is determined as the target audio path.
  9. 根据权利要求4-8任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 4-8, wherein the method further comprises:
    当所述类型为非游戏类型时,将原始音频通路作为所述目标音频通路,其中,所述原始音频通路用于所述电子设备的系统音效的输出。When the type is a non-game type, an original audio path is used as the target audio path, wherein the original audio path is used for outputting a system sound effect of the electronic device.
  10. 根据权利要求9所述的方法,其特征在于,所述当所述类型为非游戏类型时,将原始音频通路作为所述目标音频通路,包括:The method according to claim 9, wherein when the type is a non-game type, using the original audio path as the target audio path comprises:
    当所述类型为非游戏类型时,关闭针对所述目标应用程序的音效设置,并将所述原始音频通路作为所述目标音频通路。When the type is a non-game type, a sound effect setting for the target application is turned off, and the original audio path is used as the target audio path.
  11. 根据权利要求1-10任一项所述的方法,其特征在于,所述当所述电子设备运行有所述目标应用程序时,获取所述目标应用程序的类型,包括:The method according to any one of claims 1 to 10, wherein when the electronic device is running the target application, obtaining the type of the target application comprises:
    当所述电子设备运行有所述目标应用程序时,检测所述电子设备是否有音频输出;When the electronic device runs the target application, detecting whether the electronic device has audio output;
    当检测到所述电子设备有音频输出时,获取所述目标应用程序的类型。When it is detected that the electronic device has audio output, the type of the target application is obtained.
  12. 根据权利要求1-11任一项所述的方法,其特征在于,所述获取所述目标应用程序的类型,包括:The method according to any one of claims 1-11, wherein the acquiring the type of the target application comprises:
    根据预设映射关系表确定所述目标应用程序对应的类型,所述预设映射关系表中包括应用程序和应用程序的类型的映射关系。The type corresponding to the target application is determined according to a preset mapping relationship table, and the preset mapping relationship table includes a mapping relationship between an application and a type of the application.
  13. 根据权利要求12所述的方法,其特征在于,所述方法还包括:The method according to claim 12, further comprising:
    当所述目标应用程序与所述预设映射关系表中的多个应用程序均不匹配时,查找与所述目标应用程序相近的应用程序;When the target application does not match multiple applications in the preset mapping relationship table, find an application that is close to the target application;
    将与所述目标应用程序相近的应用程序的类型作为目标应用程序的类型。A type of an application program close to the target application program is used as a type of the target application program.
  14. 根据权利要求13所述的方法,其特征在于,所述查找与所述目标应用程序相近的应用程序,包括:The method according to claim 13, wherein the finding an application program that is close to the target application program comprises:
    获取所述目标应用程序的包名;Obtaining a package name of the target application;
    基于所述包名查找与所述目标应用程序相近的其他应用程序;Find other applications close to the target application based on the package name;
    根据所述预设映射关系表查找所述其他应用程序的类型,将所述其他应用程序的类型作为所述目标应用程序的类型。Find the type of the other application according to the preset mapping relationship table, and use the type of the other application as the type of the target application.
  15. 根据权利要求14所述的方法,其特征在于,所述基于所述包名查找与所述目标应用程序相近的其他应用程序,包括:The method according to claim 14, wherein the searching for other applications that are close to the target application based on the package name comprises:
    基于所述包名获取所述目标应用程序的厂家;Obtaining a manufacturer of the target application based on the package name;
    基于所述目标应用程序的厂家,查找与所述目标应用程序属于同一厂家的其他应用程序。Based on the manufacturer of the target application, find other applications that belong to the same manufacturer as the target application.
  16. 根据权利要求1-15任一项所述的方法,其特征在于,所述基于所述类型调整所述电子设备在所述目标应用程序运行过程中的输出音效,包括:The method according to any one of claims 1-15, wherein the adjusting an output sound effect of the electronic device during the running of the target application based on the type comprises:
    基于所述类型增大或减小所述电子设备在所述目标应用程序运行过程中的输出音效。Increasing or decreasing an output sound effect of the electronic device during the running of the target application based on the type.
  17. 一种音效调整装置,其特征在于,应用于电子设备,所述装置包括:A sound effect adjusting device is characterized in that it is applied to electronic equipment, and the device includes:
    检测模块,用于检测所述电子设备是否运行有目标应用程序,其中,所述目标应用程序在运行时可输出音频;A detection module, configured to detect whether the electronic device is running a target application program, wherein the target application program can output audio when running;
    获取模块,用于当所述电子设备运行有所述目标应用程序时,获取所述目标应用程序的类型;An obtaining module, configured to obtain a type of the target application when the electronic device runs the target application;
    调整模块,用于基于所述类型调整所述电子设备在所述目标应用程序运行过程中的输出音效。An adjustment module is configured to adjust an output sound effect of the electronic device during the running of the target application based on the type.
  18. 根据权利要求17所述的装置,其特征在于,所述电子设备设置有多条音频通路,所述多条音频通路中的每条音频通路对应不同的音效处理算法,所述调整模块,包括:The apparatus according to claim 17, wherein the electronic device is provided with multiple audio channels, and each of the multiple audio channels corresponds to a different sound processing algorithm, and the adjustment module includes:
    选择子模块,用于基于所述类型从所述多条音频通路中选择至少一条音频通路作为目标音频通路;A selection submodule, configured to select at least one audio channel as a target audio channel from the multiple audio channels based on the type;
    传输子模块,用于通过所述目标音频通路传输所述电子设备在所述目标应用程序运行过程中的输出音效。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.
  19. 一种电子设备,其特征在于,包括存储器和处理器,所述存储器耦接到所述处理器,所述存储器存储指令,当所述指令由所述处理器执行时所述处理器执行如权利要求1-16任一项所述的方法。An electronic device, comprising a memory and a processor, the memory is coupled to the processor, the memory stores instructions, and the processor executes a right when the instructions are executed by the processor The method according to any one of 1 to 16 is required.
  20. 一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1-16任一项所述的方法。A computer-readable storage medium, characterized in that the computer-readable storage medium stores program code, and the program code can be called by a processor to execute the method according to any one of claims 1-16. .
PCT/CN2019/095142 2018-09-04 2019-07-08 Sound effect adjustment method and apparatus, electronic device and storage medium WO2020048222A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811026571.7 2018-09-04
CN201811026571.7A CN109388367B (en) 2018-09-04 2018-09-04 Sound effect adjusting method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2020048222A1 true WO2020048222A1 (en) 2020-03-12

Family

ID=65417554

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/095142 WO2020048222A1 (en) 2018-09-04 2019-07-08 Sound effect adjustment method and apparatus, electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN109388367B (en)
WO (1) WO2020048222A1 (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109388367B (en) * 2018-09-04 2021-03-02 Oppo广东移动通信有限公司 Sound effect adjusting method and device, electronic equipment and storage medium
CN111752651A (en) * 2019-03-29 2020-10-09 比亚迪股份有限公司 Display control method and device for suspension tool frame and vehicle
CN110704126A (en) * 2019-09-25 2020-01-17 Tcl移动通信科技(宁波)有限公司 WIFI program running method, device, equipment and computer readable storage medium
CN111111188B (en) * 2019-12-24 2024-03-22 北京像素软件科技股份有限公司 Game sound effect control method and related device
CN111654744A (en) * 2020-06-08 2020-09-11 海信视像科技股份有限公司 Sound output amplitude adjusting method and display device
CN111726724A (en) * 2020-06-30 2020-09-29 联想(北京)有限公司 Information processing device and method
CN114003193B (en) * 2020-07-28 2023-10-17 宏碁股份有限公司 Electronic device and sound mode adjusting method
CN112394901A (en) * 2020-11-24 2021-02-23 维沃移动通信有限公司 Audio output mode adjusting method and device and electronic equipment
CN112433698A (en) * 2020-11-30 2021-03-02 上海米哈游天命科技有限公司 Resource display method and device, electronic equipment and storage medium
CN115134675A (en) * 2021-03-26 2022-09-30 北京小米移动软件有限公司 Sound output method and device, electronic equipment and storage medium
CN115904303A (en) * 2021-05-21 2023-04-04 荣耀终端有限公司 Method and equipment for playing sound
CN113076082B (en) * 2021-06-03 2021-09-03 杭州星犀科技有限公司 Method, system, electronic device and storage medium for audio source processing
CN114253623B (en) * 2021-11-19 2024-01-19 惠州Tcl移动通信有限公司 Screen amplification processing method and device based on mobile terminal, terminal and medium
CN117389507B (en) * 2023-12-12 2024-05-10 荣耀终端有限公司 Audio data processing method, electronic device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105068798A (en) * 2015-07-28 2015-11-18 珠海金山网络游戏科技有限公司 System and method for controlling volume and sound effect of game on the basis of Fmod
CN107179908A (en) * 2017-05-16 2017-09-19 网易(杭州)网络有限公司 Audio method of adjustment, device, electronic equipment and computer-readable recording medium
CN107819958A (en) * 2017-11-30 2018-03-20 河南浩德科技有限公司 Method for regulation of sound volume, device, mobile terminal and computer-readable storage medium
CN107948874A (en) * 2017-11-28 2018-04-20 维沃移动通信有限公司 A kind of terminal control method, mobile terminal
CN109388367A (en) * 2018-09-04 2019-02-26 Oppo广东移动通信有限公司 Audio method of adjustment, device, electronic equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101552010B (en) * 2009-04-30 2011-09-14 华为技术有限公司 Audio treating method and audio treating device
CN104090766B (en) * 2014-07-17 2017-08-25 广东欧珀移动通信有限公司 The audio switching method and system of a kind of mobile terminal
CN104811864B (en) * 2015-04-20 2018-11-13 深圳市冠旭电子股份有限公司 A kind of method and system of automatic adjusument audio
CN105959481B (en) * 2016-06-16 2019-04-30 Oppo广东移动通信有限公司 A kind of control method and electronic equipment of scene audio
CN107870759A (en) * 2016-09-26 2018-04-03 中兴通讯股份有限公司 A kind of audio control method and device
CN107978321B (en) * 2017-11-29 2021-04-27 广州酷狗计算机科技有限公司 Audio processing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105068798A (en) * 2015-07-28 2015-11-18 珠海金山网络游戏科技有限公司 System and method for controlling volume and sound effect of game on the basis of Fmod
CN107179908A (en) * 2017-05-16 2017-09-19 网易(杭州)网络有限公司 Audio method of adjustment, device, electronic equipment and computer-readable recording medium
CN107948874A (en) * 2017-11-28 2018-04-20 维沃移动通信有限公司 A kind of terminal control method, mobile terminal
CN107819958A (en) * 2017-11-30 2018-03-20 河南浩德科技有限公司 Method for regulation of sound volume, device, mobile terminal and computer-readable storage medium
CN109388367A (en) * 2018-09-04 2019-02-26 Oppo广东移动通信有限公司 Audio method of adjustment, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN109388367B (en) 2021-03-02
CN109388367A (en) 2019-02-26

Similar Documents

Publication Publication Date Title
WO2020048222A1 (en) Sound effect adjustment method and apparatus, electronic device and storage medium
WO2020048217A1 (en) Sound effect adjustment method, apparatus, electronic device, and storage medium
WO2017193540A1 (en) Method, device and system for playing overlay comment
CN109284080B (en) Sound effect adjusting method and device, electronic equipment and storage medium
WO2020048220A1 (en) Sound effect adjusting method and apparatus, electronic device, and storage medium
US9437194B2 (en) Electronic device and voice control method thereof
CN107340991A (en) Switching method, device, equipment and the storage medium of speech roles
WO2020168571A1 (en) Device control method, apparatus, system, electronic device and cloud server
CN108965981B (en) Video playing method and device, storage medium and electronic equipment
CN110876180B (en) Power consumption processing method and device, electronic equipment and computer readable medium
US10999415B2 (en) Creating a cinematic storytelling experience using network-addressable devices
KR102669100B1 (en) Electronic apparatus and controlling method thereof
US11511200B2 (en) Game playing method and system based on a multimedia file
KR20200063777A (en) Display apparatus and controlling method thereof
WO2021196617A1 (en) Voice interaction method and apparatus, electronic device and storage medium
WO2019228138A1 (en) Music playback method and apparatus, storage medium, and electronic device
US9053710B1 (en) Audio content presentation using a presentation profile in a content header
WO2023071425A1 (en) Volume control method and apparatus, and electronic device and storage medium
EP3484183B1 (en) Location classification for intelligent personal assistant
WO2020048175A1 (en) Sound effect processing method, device, electronic device and storage medium
CN109240641B (en) Sound effect adjusting method and device, electronic equipment and storage medium
US20240057234A1 (en) Adjusting light effects based on adjustments made by users of other systems
CN107948854B (en) Operation audio generation method and device, terminal and computer readable medium
US20210082405A1 (en) Method for Location Reminder and Electronic Device
US10693944B1 (en) Media-player initialization optimization

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: 19857842

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: 19857842

Country of ref document: EP

Kind code of ref document: A1