WO2020048217A1 - 音效调整方法、装置、电子设备以及存储介质 - Google Patents

音效调整方法、装置、电子设备以及存储介质 Download PDF

Info

Publication number
WO2020048217A1
WO2020048217A1 PCT/CN2019/094936 CN2019094936W WO2020048217A1 WO 2020048217 A1 WO2020048217 A1 WO 2020048217A1 CN 2019094936 W CN2019094936 W CN 2019094936W WO 2020048217 A1 WO2020048217 A1 WO 2020048217A1
Authority
WO
WIPO (PCT)
Prior art keywords
priority
target application
electronic device
audio
sound effect
Prior art date
Application number
PCT/CN2019/094936
Other languages
English (en)
French (fr)
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 WO2020048217A1 publication Critical patent/WO2020048217A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/48Indexing scheme relating to G06F9/48
    • G06F2209/484Precedence

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; acquiring the priority 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 priority.
  • 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 priority of the target application when the electronic device is running the target application; an adjustment module for adjusting the electronic based on the priority
  • the device outputs 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 executes the foregoing method when the program code is run by a processor.
  • FIG. 1 is a schematic flowchart of a sound effect adjustment method according to an embodiment of the present application
  • FIG. 2 is a schematic flowchart of a sound effect adjustment method according to another embodiment of the present application.
  • FIG. 3 is a schematic flowchart of step S240 of the sound effect adjustment method provided by the embodiment shown in FIG. 2 of the present application;
  • FIG. 4 is a schematic flowchart of a sound effect adjustment method according to another embodiment of the present application.
  • FIG. 5 shows a schematic interface diagram of an electronic device provided by the embodiment shown in FIG. 4 of the present application.
  • FIG. 6 shows an operation schematic diagram of an electronic device provided by the embodiment shown in FIG. 4 of the present application
  • FIG. 7 shows a module block diagram of a sound effect adjusting device provided by an embodiment of the present application.
  • FIG. 8 is a block diagram of an electronic device according to an embodiment of the present application for performing a sound effect adjustment method according to an embodiment of the present application;
  • FIG. 9 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 an electronic device is similar to that of a computer, and is mainly completed by a processor and a 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.
  • CODEC built-in audio CODEC
  • sound effect refers to the effect produced by sound. It refers to the noise or sound added to the vocal cords to enhance the realism, atmosphere, or theatrical information of the scene.
  • video game sound effects refer to the sound of hits, running, guns, etc. in games. 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 the sound effect adjustment method, device, electronic device, and storage medium provided in the embodiments of the present application.
  • the output of the electronic device when the target application is running is adjusted according to the priority of the application Sound effects, realize automatic and quick configuration of the output sound effects of electronic devices, improve the effect of output sound effects and the user experience.
  • the specific sound effect adjustment method will be described in detail in subsequent embodiments.
  • FIG. 1 is a schematic flowchart of a sound effect adjustment method according to an embodiment of the present application.
  • the sound effect adjustment method is used to adjust the output sound effect of the electronic device when running the target application program according to the priority 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. 7 and an electronic device 100 (FIG. 8) configured with the sound effect adjustment device 200.
  • an electronic device is taken as an example to describe the specific process of this embodiment.
  • the electronic device applied in this embodiment may be a smart phone, a tablet computer, a wearable electronic device, a vehicle-mounted device, a gateway, etc. No specific limitation is made here.
  • 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 priority of the target application.
  • the electronic device when it is determined that the electronic device is running a target application, it is characterized that the electronic device is outputting audio or the electronic device will output audio at a certain time in the future. Therefore, as a method, obtaining the The priority of the target application. As another way, it may be detected whether the electronic device has audio output at this time, and when it is detected that the electronic device has audio output, then obtaining the priority of the target application is executed.
  • 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 electronic device is outputting audio, and the priority of the target application is correspondingly executed at this time;
  • the target application is a game application, an instant messaging application, etc.
  • there may be audio output when running In the case of an application program, the electronic device is first detected whether there is audio output, and when it is detected that the electronic device has audio output, then obtaining the priority of the target application is executed.
  • an instant messaging application is used as an example for description.
  • the instant messaging application may include WeChat, QQ, etc.
  • WeChat can output audio data during running, such as voice chat or Video chat, at the same time, it 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 priority of the target application.
  • the electronic device may establish a mapping relationship between an application and a priority 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 priority can be manually associated by the user, and can be automatically associated by the electronic device or the server, etc., which is not limited here, and the mapping relationship between the application and the priority can include
  • One application corresponds to one priority, or multiple applications correspond to one priority, and the like is not limited here.
  • the mapping relationship can be WeChat and QQ respectively corresponding to a priority, or WeChat. Corresponds to the same priority as QQ.
  • 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 priority corresponding to the application, so that the priority of the target application can be obtained.
  • the electronic device may establish a mapping relationship between an application type and a priority in advance, and generate a mapping relationship table for storage in the electronic device, as shown in Table 2.
  • the mapping relationship between the application type and the priority can be manually associated by the user, and can be automatically associated by the electronic device or the server, etc., which is not limited here, and the mapping relationship between the application type and the priority It may include one application type corresponding to one priority, or multiple application types corresponding to one priority, and the like is not limited herein.
  • the mapping relationship may be video
  • the playback application and the music playback application each correspond to a priority, and the video playback application and the music playback application may also correspond to the same priority.
  • the electronic device can automatically identify the target application type corresponding to the target application, and after determining the target application type, the target application type and the mapping relationship table are stored in advance. Compare each application type one by one to obtain the application type that matches the target application type, and then find the corresponding priority of the application type according to the mapping relationship table, so that the target application can be obtained. priority.
  • the electronic device may also establish a mapping relationship between an application, an application type, and a priority 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 a target application type corresponding to the target application according to the mapping relationship shown in Table 3 and finds a priority corresponding to the target application type. Level, so that the priority of the target application can be obtained.
  • Step S130 Adjust the output sound effect of the electronic device during the running of the target application based on the priority.
  • the output sound effect of the electronic device during the running of the target application is adjusted based on the priority.
  • 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 priority.
  • the priority of the target application is high, the priority of the target application is higher than the priorities of multiple other applications.
  • the output sound effect of the target application program can be correspondingly improved, and the output sound effect of the plurality of other application programs can be kept unchanged or reduced; or the output sound effect of the target application program can be kept unchanged. And correspondingly reduce the output sound effects of other multiple applications, thereby highlighting the output sound effects of the target application.
  • the priority characterizing the target application is lower than the priorities of multiple other applications.
  • the output sound effects of the target application can be correspondingly reduced, and the output sound effects of the multiple other applications are kept unchanged or increased; the output sound effects of the target application can also be kept unchanged, and corresponding Increase the output sound effect of the other application programs, thereby weakening the output sound effect of the target application program, thereby adjusting the output sound effect of the electronic device when the target application program is run according to the priority of the application program, and realize automatic and quick configuration of the electronic device.
  • Output sound effects enhance the effect of output sound effects and user experience.
  • the electronic device when the electronic device runs the game application, the electronic devices may run simultaneously A game application and a system native application, wherein the system native application can be used to emit a system prompt sound.
  • 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 during running is unchanged, while reducing the output sound effect of the system native application during running.
  • the method for adjusting sound effects detects whether a target application is running on an electronic device, wherein the target application can output audio when running, and obtains a priority of the target application when the electronic device is running a target application. Based on the priority, 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 priority of the application program, so as to automatically and quickly configure the output sound effect of the electronic device to improve 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 S210 For a detailed description of step S210, please refer to step S110, and details are not described herein again.
  • Step S220 When the target application is running on the electronic device, obtain a package name of the target application.
  • the package name of the target application is obtained correspondingly.
  • the version number of the application is configured in the AndroidManifest.xml file
  • the PackageInfo class encapsulates all the information obtained from the configuration file and 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 way to retrieve the relevant application package currently installed on the device
  • This kind of information class, getPackageInfo method in PackageManager object can get PackageInfo object, this method needs to pass two parameters: application package name and condition.
  • the package name of an application can be obtained by the getPackageName () method of Activity or Context (Activity inherits from Context), and adding can have many settings, usually set to 0. Finally, the PackageManager object is obtained.
  • the Context object provides the getPackageManager () method to obtain the object. Therefore, the package name of the target application can be obtained based on the above method.
  • Step S230 Determine the priority of the target application according to the package name.
  • the priority of the target application may be determined based on the package name. Specifically, as a first way, since the package name can be used as the unique identifier of the application, that is, one application corresponds to one package name, therefore, by identifying the obtained package name, the corresponding package name can be obtained.
  • the target application program in accordance with the mapping relationship between the application program and the priority stored in the electronic device in advance to find the priority corresponding to the application program that matches the target application program, then the priority of the target application program can be obtained.
  • the package name may also include various information related to the application
  • analyzing the package name to obtain the package name after obtaining the package name, analyzing the package name to obtain the package name.
  • the manufacturer of the target application included in the package name, and then based on the relationship between the preset manufacturer and the priority, the priority of the target application is determined based on the manufacturer, so as to achieve priority differentiation between different manufacturers and output sound effects. Differentiation.
  • the electronic device may establish a mapping relationship between a package name and a priority in advance, and generate a mapping relationship table for storage in the electronic device, as shown in Table 4.
  • the mapping relationship between the package name and priority can be manually associated by the user, can be automatically associated by the electronic device, or automatically associated by the server, etc., which is not limited here, and the mapping relationship between the package name and the priority can include a package
  • the name corresponds to a priority or multiple package names correspond to a priority, etc., which is not limited here.
  • the package name of the target application is determined, the package name of the target application and a plurality of package names stored in the mapping relationship table are compared one by one to obtain a package name matching the package name of the target application.
  • the package name is searched for the priority corresponding to the package name according to the mapping relationship table, so that the priority of the package name can be obtained.
  • Step S240 Select at least one audio channel from the plurality of audio channels as a target audio channel based on the priority.
  • 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 the priority of the target application is obtained, the audio data of the target application is analyzed to obtain the type of sound in the audio data, and then at least one of the multiple audio channels is selected according to the analyzed result.
  • the audio channel is the target audio channel, that is, one application 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 a hit sound, a running sound, and a gun sound. Therefore, the audio channels corresponding to the striking sound, running sound, gun sound, etc. can be selected from the multiple audio channels as the target audio passage to transmit the striking sound, running sound, gun sound, etc. respectively, so that different audio data passes through different
  • the sound effect processing algorithm is processed, the processing effect is better.
  • each application can also have a separate audio channel, that is, one application corresponds to one audio channel, and the audio channels corresponding to each application set different sound effects according to the priority of the application.
  • the processing algorithm therefore, after obtaining the priority of the application program corresponding to the package name, obtain the audio channel corresponding to the target application program as the target audio channel according to the priority.
  • an audio channel is determined from a plurality of audio channels as a target audio channel of the game application based on the priority of the game application, and the electronic device transmits the Output sound effects during running the target application.
  • FIG. 3 is a schematic flowchart of step S240 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 S241 Determine whether the priority is higher than a preset priority.
  • the electronic device sets and stores a preset priority in advance.
  • the preset priority is used as a basis for judging the priority of the obtained target application.
  • the value of the preset priority can be manually set by a user, or can be automatically set by an electronic device. It is limited, and the size of the preset priority may be set by the user according to preferences, or may be automatically set by the electronic device to a fixed value, which is not limited here.
  • the priority of the target application when the priority of the target application is obtained, comparing the value of the priority with a value of a preset priority to determine whether the priority of the target application is higher than the preset priority It can be understood that when the value of the priority of the target application is not greater than the value of the preset priority, the characterization of the priority of the target application is not higher than the preset priority; when the value of the priority of the target application is greater than When the value of the preset priority is set, the priority of the target application is higher than the preset priority.
  • Step S242 When the priority is higher than the preset priority, select at least one audio path from the multiple audio paths as the target audio path based on the priority.
  • the electronic device responds by selecting at least one audio path from the plurality of audio paths as a target audio path based on the priority.
  • the target application when the target application is a game application, it is determined that the priority of the target application is higher than a preset priority. Therefore, when the electronic device runs the game application, it is necessary to The audio data of the game application is processed separately, and at least one piece of audio data is selected from the plurality of pieces of audio data as the target audio data.
  • Step S243 When the priority is not higher than the preset priority, 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 audio data characterizing the target application is less important, so it is not necessary to The audio data is processed separately, so the electronic device responds with the original audio path as the target audio path, where the original audio path is used for the system audio output of the electronic device, that is, the audio of the target application
  • the data and system audio data can be processed and output by the same sound effect processing algorithm, so as to save and reduce the power consumption caused by the processing of the unique audio data of multiple audio channels.
  • the priority of the target application is not higher than the preset priority
  • 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 priority of the target application running on the electronic device is not higher than a preset priority, the audio data characterizing the target application does not need to be processed separately. Therefore, in order to further reduce the Power consumption, you can turn off the sound effect settings for the audio stream of the target application program. As a way, close the newly set multiple audio channels and only turn on the original audio channel as the target audio channel.
  • Step S250 transmitting the output audio effect of the electronic device during the running of the target application 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 target audio channel When there are multiple audio channels Since each audio channel corresponds to an independent sound effect processing algorithm, transmitting the output audio effect of the electronic device during the running of the target application program through the target audio channel can perform different processing on the original audio data to obtain different sounds. Output sound effect, better processing effect.
  • the sound effect adjustment method provided in the embodiment of the present application detects whether a target application is running on an electronic device, wherein the target application can output a sound effect when running, and obtains a package name of the target application when the electronic device is running a target application. , Determine the priority of the target application according to the package name, select at least one audio channel from the multiple audio channels as the target audio channel based on the priority, and transmit the output of the electronic device during the running of the target application through the target audio channel Sound effects.
  • this embodiment also obtains the priority of the target application according to the package name of the target application, so as to achieve the performance differentiation of different manufacturers and set multiple sound effects. Algorithm of different audio channels to adjust the output sound effect conveniently and quickly.
  • FIG. 4 is a schematic flowchart of a sound effect adjustment method according to another embodiment of the present application.
  • the sound effect adjustment method is applied to the electronic device.
  • the process shown in FIG. 4 will be described in detail below.
  • the method may specifically include the following steps:
  • Step S310 Detect whether the electronic device is running a target application program, wherein the target application program can output audio when running.
  • Step S320 when the target application is running on the electronic device, obtain the priority of the target application.
  • steps S310 to S3120 please refer to steps S110 to S120, and details are not described herein again.
  • Step S330 Determine whether the priority is higher than a preset priority.
  • Step S340 When the priority is higher than the preset priority, a sound parameter setting interface corresponding to the priority is displayed.
  • the electronic device displays a sound effect corresponding to the priority.
  • Parameter setting interface where the sound effect parameters may include the volume value, frequency value, power value, etc. of the target application, which is not limited here.
  • the sound effect parameter setting interface is fixed, that is, when the priority of the application is higher than the preset priority, the sound effect parameter setting interface is displayed correspondingly.
  • the priority is higher than The sound parameter setting interface of all applications with the preset priority is the same; as another method, the sound parameter setting interface includes multiple, and each priority corresponds to a different sound parameter setting interface, that is, when the application ’s When the priority is higher than the preset priority, the corresponding sound parameter setting interface is found according to the priority. Understandably, at this time, the sound parameter settings corresponding to all applications with higher priority than the preset priority The interfaces may be the same or different.
  • the electronic device displays a sound effect parameter setting interface corresponding to the priority of the target application.
  • the sound effect parameter setting interface may be suspended in the current display interface of the electronic device.
  • the upper 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 the upper part of the current display interface, Partial areas, left partial areas, or right partial areas are not limited herein.
  • 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 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.
  • the setting operation may include single-finger tap, multi-finger tap, single-finger long press, multi-finger long press, heavy pressure, multiple taps, sliding operation, parameter input, etc., as shown in FIG.
  • 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 at the same time
  • a single-finger long press refers to a single-finger pressing on a parameter for a preset time
  • Multi-finger long press means multi-finger pressing on the parameter simultaneously for more than the preset duration
  • heavy press means pressing the parameter more than the preset intensity
  • multiple clicks means the number of clicks exceeds the preset number within the preset time
  • sliding Operation refers to a single-finger sliding operation on parameters
  • parameter input refers to entering pre-configured parameters in the input box.
  • 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 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.
  • 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 as to facilitate users to quickly obtain their own preferences Output sound effects.
  • the sound effect adjustment method provided in the embodiment of the present application detects whether a target application is running on an electronic device, wherein the target application can output audio when running, and obtains the priority of the target application when the electronic device is running a target application. To determine whether the priority is higher than the preset priority. When the priority is higher than the preset priority, it is displayed on the sound parameter setting interface corresponding to the priority, and the setting operation acting on the sound parameter setting interface is detected. The setting operation generates sound effect parameters, and based on the sound effect parameters, adjusts the output sound effect of the electronic device during the running of the target application. Compared with the sound effect adjustment method shown in FIG.
  • this embodiment also has a priority of the target application greater than a preset
  • the parameter setting interface is displayed for the user to set the sound effect parameters by themselves, 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 the output sound effect he likes.
  • FIG. 7 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 is a description of the block diagram shown in FIG. 7.
  • 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 priority of the target application when the electronic device runs the target application. Further, the obtaining module 220 includes: obtaining a sub-module and determining a sub-module, wherein:
  • An acquisition submodule is configured to acquire a package name of the target application when the electronic device runs the target application.
  • a determining submodule configured to determine the priority of the target application according to the package name. Further, the determining submodule includes: a determining unit, wherein:
  • the determining unit is configured to determine a priority corresponding to the package name according to a preset relationship table, where the preset relationship table includes a correspondence between a package name of an application and a priority of the 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 priority. Further, the electronic device is provided with multiple audio channels, and each of the multiple audio channels corresponds to a different sound processing algorithm.
  • the adjustment module 230 includes a selection sub-module and a transmission sub-module, where :
  • a selection submodule is configured to select at least one audio path from the multiple audio paths as a target audio path based on the priority. Further, the selection sub-module includes a selection unit and a judgment unit, wherein:
  • the judging unit is configured to judge whether the priority is higher than a preset priority.
  • a selecting unit is configured to, when the priority is higher than the preset priority, select at least one audio channel from the multiple audio channels as the target audio channel based on the priority.
  • the selection unit is further configured to use an original audio path as the target audio path when the priority is not higher than the preset priority, wherein the original audio path is used for a system of the electronic device Audio output. Further, the selection unit includes: a selection subunit, wherein:
  • 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 a jump sub-module, wherein:
  • a display submodule is configured to display a sound effect parameter setting interface corresponding to the priority when the priority is higher than the preset priority.
  • a generating sub-module is configured to detect a setting operation acting on the sound effect parameter setting interface, and generate a sound effect 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.
  • 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 priority of the target application when the electronic device is running the target application, and the adjustment module is configured to adjust the electronic device to run in the target application based on the priority.
  • the output sound effect in the process so as to adjust the output sound effect of the electronic device when running the target application according to the priority of the application program, realize the automatic and quick configuration of the output sound effect of the electronic device, and improve the output sound effect effect and the user experience.
  • FIG. 8 is a structural block diagram of an electronic device 100 according to an embodiment of the present application.
  • the electronic device 100 may be an electronic device capable of running an application program, such as a smart phone, a tablet computer, or an e-book.
  • the electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more application programs, where one or more application programs may be stored in the memory 120 and configured to be implemented by one Or multiple processors 110 execute, and one or more programs are configured to execute the method as described in the foregoing method embodiment.
  • the processor 110 may include one or more processing cores.
  • the processor 110 uses various interfaces and lines to connect various parts in the entire electronic device 100, and executes or executes instructions, programs, code sets, or instruction sets stored in the memory 120 by calling or executing data stored in the memory 120 to execute Various functions and processing data of the electronic device 100.
  • the processor 110 may use at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). To implement a hardware form.
  • the processor 110 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • modem modem
  • the CPU mainly handles the operating system, user interface, and application programs; the GPU is responsible for rendering and rendering of the displayed content; the modem is used for wireless communication. It can be understood that the modem may not be integrated into the processor 110, and may be implemented by a single communication chip.
  • the memory 120 may include Random Access Memory (RAM), and may also include Read-Only Memory.
  • the memory 120 may be used to store instructions, programs, codes, code sets, or instruction sets.
  • the memory 120 may include a program storage area and a data storage area.
  • the memory 104 may store a sound effect adjustment device.
  • the sound effect adjusting device may be the aforementioned device 200.
  • the storage program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), and instructions for implementing the following method embodiments. Wait.
  • the storage data area may also store data (such as phonebook, audio and video data, and chat history data) created by the terminal 100 during use.
  • FIG. 9 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 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, obtain the priority of the target application, and adjust the output sound effect of the electronic device during the running of the target application based on the priority, thereby adjusting the output sound effect of the electronic device when the target application is running according to the priority of the application , To achieve automatic and quick configuration of the output sound effects of electronic devices, improve the output sound effect and user experience.

Abstract

本申请公开了一种音效调整方法、装置、电子设备以及存储介质,涉及电子设备技术领域。该方法应用于电子设备,所述方法包括:检测电子设备是否运行有目标应用程序,其中,目标应用程序在运行时可输出音频,当电子设备运行有目标应用程序时,获取目标应用程序的优先级,基于该优先级调整电子设备在目标应用程序运行过程中的输出音效。本申请根据应用程序的优先级调整电子设备在运行目标应用程序时的输出音效,实现自动快捷的配置电子设备的输出音效,提升输出音效的效果以及用户体验。

Description

音效调整方法、装置、电子设备以及存储介质
相关申请的交叉引用
本申请要求于2018年9月4日提交的申请号为201811028135.3的中国申请的优先权,其在此出于所有目的通过引用将其全部内容并入本文。
技术领域
本申请涉及电子设备技术领域,更具体地,涉及一种音效调整方法、装置、电子设备以及存储介质。
背景技术
随着科学技术的发展,电子设备已经成为人们日常生活中最常用的电子产品之一。并且,用户经常会通过电子设备听音乐、看视频或玩游戏等,但是,目前电子设备对音频数据的处理方式固定,输出的音效较差,用户体验不佳。
发明内容
鉴于上述问题,本申请提出了一种音效调整方法、装置、电子设备以及存储介质,以解决上述问题。
第一方面,本申请实施例提供了一种音效调整方法,应用于电子设备,所述方法包括:检测所述电子设备是否运行有目标应用程序,其中,所述目标应用程序在运行时可输出音频;当所述电子设备运行有所述目标应用程序时,获取所述目标应用程序的优先级;基于所述优先级调整所述电子设备在所述目标应用程序运行过程中的输出音效。
第二方面,本申请实施例提供了一种音效调整装置,应用于电子设备,所述装置包括:检测模块,用于检测所述电子设备是否运行有目标应用程序,其中,所述目标应用程序在运行时可输出音频;获取模块,用于当所述电子设备运行有所述目标应用程序时,获取所述目标应用程序的优先级;调整模块,用于基于所述优先级调整所述电子设备在所述目标应用程序运行过程中的输出音效。
第三方面,本申请实施例提供了一种电子设备,包括存储器和处理器,所述存储器耦接到所述处理器,所述存储器存储指令,当所述指令由所述处理器执行时所述处理器执行上述方法。
第四方面,本申请实施例提供了一种计算机可读取存储介质,所述计算机可读取存储介质中存储有程序代码,在所述程序代码被处理器运行时执行上述的方法。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。
图1示出了本申请一实施例提供的音效调整方法的流程示意图;
图2示出了本申请另一实施例提供的音效调整方法的流程示意图;
图3示出了本申请图2所示的实施例提供的音效调整方法的步骤S240的流程示意图;
图4示出了本申请又一实施例提供的音效调整方法的流程示意图;
图5示出了本申请图4所示的实施例提供的电子设备的界面示意图;
图6示出了本申请图4所示的实施例提供的电子设备的操作示意图;
图7示出了本申请实施例提供的音效调整装置的模块框图;
图8示出了本申请实施例用于执行根据本申请实施例的音效调整方法的电子设备的框图;
图9示出了本申请实施例的用于保存或者携带实现根据本申请实施例的音效调整方法的程序代码的存储单元。
具体实施方式
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。
目前,用户对电子设备的要求越来越高,因此,电子设备为了满足用户的需求以及为用户提供方便,开始支持播放音频数据。其中,电子设备的音频架构和计算机的音频架构类似,主要由处理器和内置音频CODEC(编解码器)来完成。具体地,处理器接收音频数据的输入后,转换成I2S信号,并传输至CODEC转换成模拟信号,然后进行播放。
进一步地,为了提升听觉体验,越来越多的用户开始对电子设备的输出音效提出需求。其中,音效是指由声音所制造的效果,是指为增进场面的真实感、气氛或戏剧讯息,而加于声带上的杂音或声音,是人工制造或加强的声音,用来增强对电影、电子游戏、音乐或其他媒体的艺术或其他内容的声音处理,例如,电子游戏音效是指游戏中的打击声、跑步声、枪声等。因此,随着电子设备技术的发展,越来越多的电子设备开始提供音效输出,但是,目前电子设备的音效功能主要是通过用户根据自己的喜好人工选择和设置某种场景的音效模式,采用常规且固定的处理方式,没有考虑外界因素的影响,如没有考虑针对不同应用程序的影响,输出音效固定。
针对上述问题,发明人经过长期的研究发现,并提出了本申请实施例提供的音效调整方法、装置、电子设备以及存储介质,根据应用程序的优先级调整电子设备在运行目标应用程序时的输出音效,实现自动快捷的配置电子设备的输出音效,提升输出音效的效果以及用户体验。其中,具体的音效调整方法将在后续的实施例中进行详细的说明。
实施例
请参阅图1,图1示出了本申请一实施例提供的音效调整方法的流程示意图。所述音效调整方法用于根据应用程序的优先级调整电子设备在运行目标应用程序时的输出音效,实现自动快捷的配置电子设备的输出音效,提升输出音效的效果以及用户体验。在具体的实施例中,所述音效调整方法应用于如图7所示的音效调整装置200以及配置有所述音效调整装置200的电子设备100(图8)。
下面将以电子设备为例,说明本实施例的具体流程,当然,可以理解的是,本实施例所应用的电子设备可以为智能手机、平板电脑、穿戴式电子设备、车载设备、网关等,在此不做具体的限定。下面将针对图1所示的流程进行详细的阐述,所述音效调整方法具体可以包括以下步骤:
步骤S110:检测所述电子设备是否运行有目标应用程序,其中,所述目标应用程序在运行时可输出音频。
在本实施例中,电子设备运行的应用程序可以包括在电子设备的前台运行的应用程序、在电子设备的后台运行的应用程序或在电子设备的前台和后台切换运行的应用程序,在此不做限定。具体的,前台运行的应用程序是指通常可以和用户进行交互,能运行在前台的应用程序,当它不可见时就会被挂起(比如:游戏);后台运行的应用程序是指和用户交互非常有限,除了配置期间,其生存期的其他时间都是隐藏的(比如:SMS自动回复程序和闹钟程序);在电子设备的前台和后台切换运行的应用程序是指可以在前台以及后台之间随意切换的应用程序。可以理解的,当应用程序没有被杀掉(kill)时,表征该应用程序在电子设备上运行。
进一步地,电子设备可以仅运行一个应用程序,也可以同时运行多个应用程序,其中,当电子设备仅运行一个应用程序时,该应用程序可以在电子设备的前台运行、在电子设备的后台运行或在电子设备的前台和后台切换运行;当电子设备同时运行多个应用程序时,该多个应用程序可以均在电子设备的后台运行、多个应用程序中的一个应用程序在电子设备的前台运行,其余应用程序在电子设备的后台运行或多个应用程序中的一个应用程序在电子设备的前台和后台切换运行,其余应用程序在电子设备的后台运行等,在此不做限定。
其中,在获取电子设备运行的应用程序后,从所述应用程序中确定目标应用程序,同样的,该目标应用程序可以包括单个应用程序,也可以包括多个应用程序,在此不做限定。在本实施例中,所述目标应用程序在运行时可输出音频,也就是说,该目标应用程序至少有音频输出,例如,该目标应用程序可以包括音乐播放类应用程序、视频播放类应用程序、通话类应用程序、游戏类应用程序等,该目标应用程序可以输出音频数据,也可以同时输出音频数据和图像数据等。
步骤S120:当所述电子设备运行有所述目标应用程序时,获取所述目标应用程序的优先级。
在本实施例中,当确定电子设备运行有目标应用程序时,表征该电子设备正在输出音频或者该电子设备在接下来的某一时刻将输出音频,因此,作为一 种方式,执行获取所述目标应用程序的优先级。作为另一种方式,可以检测此时所述电子设备是否有音频输出,当检测到所述电子设备有音频输出时,再执行获取所述目标应用程序的优先级。
具体地,当所述目标应用程序为音乐播放类应用程序、视频播放类应用程序、通话类应用程序等在运行时会有音频输出的应用程序时,则可以认为当所述电子设备运行有目标应用程序时,该电子设备正在输出音频,此时对应执行获取所述目标应用程序的优先级;当所述目标应用程序为游戏类应用程序、即时通讯类应用程序等在运行时可能有音频输出的应用程序时,首先对所述电子设备是否有音频输出进行检测,其中,当检测到所述电子设备有音频输出时,再执行获取所述目标应用程序的优先级。在本实施例中,以即时通讯类应用程序为例进行说明,该即时通讯类应用程序可以包括微信、QQ等,以微信为例,其在运行时可以输出音频数据,如进行语音聊天或进行视频聊天,同时,其在运行时也可以不输出音频数据,如进行文字聊天,因此,当所述电子设备运行此类目标应用程序时,可以在进一步确定所述电子设备此时有音频输出时,再获取所述目标应用程序的优先级。
进一步地,获取所述目标应用程序的优先级。作为一种方式,所述电子设备可以预先建立应用程序和优先级之间的映射关系,并生成映射关系表存储在电子设备中,如表1所示。其中,应用程序和优先级之间的映射关系可以由用户手动关联,可以由电子设备自动关联或者由服务器自动关联等,在此不做限定,并且应用程序和优先级之间的映射关系可以包括一个应用程序对应一个优先级或者多个应用程序对应一个优先级等,在此不做限定,例如,以微信和QQ为例,映射关系可以为微信和QQ分别对应一个优先级,也可以为微信和QQ对应同一个优先级等。
进一步地,在确定目标应用程序后,将所述目标应用程序和映射关系表中预先存储的多个应用程序一一对比,以获取与所述目标应用程序匹配的应用程序,再根据所述映射关系表,查找该应用程序对应的优先级,从而可以获取所述目标应用程序的优先级。
表1
应用程序 优先级
A1
A2
A3
作为另一种方式,所述电子设备可以预先建立应用程序类型和优先级之间的映射关系,并生成映射关系表存储在电子设备中,如表2所示。其中,应用程序类型和优先级之间的映射关系可以由用户手动关联,可以由电子设备自动关联或者由服务器自动关联等,在此不做限定,并且应用程序类型和优先级之间的映射关系可以包括一个应用程序类型对应一个优先级或者多个应用程序类型对应一个优先级等,在此不做限定,例如,以视频播放类应用程序和音乐播放类应用程序为例,映射关系可以为视频播放类应用程序和音乐播放类应用程 序分别对应一个优先级,也可以为视频播放类应用程序和音乐播放类应用程序对应同一个优先级等。
进一步地,在确定目标应用程序后,电子设备可以自动识别该目标应用程序对应的目标应用程序类型,在确定目标应用程序类型后,将所述目标应用程序类型和映射关系表中预先存储的多个应用程序类型一一对比,以获取与所述目标应用程序类型匹配的应用程序类型,再根据所述映射关系表,查找该应用程序类型对应的优先级,从而可以获取所述目标应用程序的优先级。
表2
应用程序类型 优先级
B1
B2
B3
另外,作为一种方式,所述电子设备也可以预先建立应用程序、应用程序类型以及优先级三者之间的映射关系,并生成映射关系表存储在电子设备中,如表3所示。因此,在本实施例中,在确定目标应用程序后,电子设备根据表3所示的映射关系查找与所述目标应用程序对应的目标应用程序类型以及查找与所述目标应用程序类型对应的优先级,从而可以获取所述目标应用程序的优先级。
表3
应用程序 应用程序类型 优先级
A1 B1
A2 B2
A3 B3
步骤S130:基于所述优先级调整所述电子设备在所述目标应用程序运行过程中的输出音效。
在本实施例中,在确定所述目标应用程序的优先级后,基于该优先级调整电子设备在目标应用程序运行过程中的输出音效。具体地,所述电子设备可以基于所述优先级增大或减小电子设备在目标应用程序运行过程中的输出音效。其中,当所述目标应用程序的优先级较高时,表征该目标应用程序的优先级高于多个其他应用程序的优先级,此时,若所述目标应用程序和多个其他应用程序均在电子设备运行时,可以对应提高所述目标应用程序的输出音效,且保持所述多个其他应用程序的输出音效不变或减小;也可以保持所述目标应用程序的输出音效不变,且对应减小其他多个应用程序的输出音效,从而突出所述目标应用程序的输出音效。
当所述目标应用程序的优先级较低时,表征该目标应用程序的优先级低于多个其他应用程序的优先级,此时,若所述目标应用程序和多个其他应用程序均在电子设备运行时,可以对应降低所述目标应用程序的输出音效,且保持所述多个其他应用程序的输出音效不变或增大;也可以保持所述目标应用程序的 输出音效不变,且对应增大所述其他应用程序的输出音效,从而弱化所述目标应用程序的输出音效,从而根据应用程序的优先级调整电子设备在运行目标应用程序时的输出音效,实现自动快捷的配置电子设备的输出音效,提升输出音效的效果以及用户体验。
具体地,假设所述目标应用程序为游戏类应用程序,且所述游戏类应用程序的优先级较高,则当所述电子设备运行所述游戏类应用程序时,所述电子设备可能同时运行游戏类应用程序和系统原生应用程序,其中,所述系统原生应用程序可以用于发出系统提示音。此时,所述电子设备可以对应增大所述游戏类应用程序在运行时的输出音效,而所述系统原生应用程序在运行时的输出音效不变或减小,或者保持所述游戏类应用程序在运行时的输出音效不变,而减小所述系统原生应用程序在运行时的输出音效等。
本实施例提供的音效调整方法,通过检测电子设备是否运行有目标应用程序,其中,目标应用程序在运行时可输出音频,当电子设备运行有目标应用程序时,获取目标应用程序的优先级,基于该优先级调整电子设备在目标应用程序运行过程中的输出音效,从而根据应用程序的优先级调整电子设备在运行目标应用程序时的输出音效,实现自动快捷的配置电子设备的输出音效,提升输出音效的效果以及用户体验。
请参阅图2,图2示出了本申请又一实施例提供的音效调整方法的流程示意图。所述音效调整方法应用于上述电子设备,其中,在本实施例中,电子设备设置有多条音频通路,多条音频通路中的每条音频通路均对应不同的音效处理算法。下面将针对图2所示的流程进行详细的阐述,所述方法具体可以包括以下步骤:
步骤S210:检测所述电子设备是否运行有目标应用程序,其中,所述目标应用程序在运行时可输出音频。
其中,步骤S210的具体描述请参阅步骤S110,在此不再赘述。
步骤S220:当所述电子设备运行有所述目标应用程序时,获取所述目标应用程序的包名。
在本实施例中,当确定所述电子设备运行有目标应用程序时,对应获取该目标应用程序的包名。作为一种方式,以Android系统为例,在Android系统中,应用程序的版本号是在AndroidManifest.xml文件中进行配置的,而PackageInfo类则封装了从该配置文件中获取的所有信息,描述了包内容的整体信息,因此,可以使用PackageInfo对象的versionName属性获取应用的版本号,且可以通过PackageManager对象来获取PackageInfo对象,其中,PackageManager是一个检索当前已安装在设备上的相关应用程序包的各种信息的类,PackageManager对象中的getPackageInfo方法可以获取PackageInfo对象,该方法需要传递两个参数:应用包名和条件。通常情况下,应用程序的包名可以通过Activity或Context(Activity继承自Context)的getPackageName()方法获取,而添加可以有很多设置,通常设置为0。最后是PackageManager对象的获取,Context对象提供了getPackageManager()方法来获取该对象。因此,基于上述方法可以获取所述目标应用程序的包名。
步骤S230:根据所述包名确定所述目标应用程序的优先级。
进一步地,在获取所述目标应用程序的包名后,可以基于所述包名确定该目标应用程序的优先级。具体地,作为第一种方式,由于所述包名可以作为所述应用程序的唯一标识,即一个应用程序对应一个包名,因此,对获取的包名进行识别,可以获取所述包名对应的目标应用程序,再根据预先存储在电子设备中的应用程序和优先级的映射关系,查找与目标应用程序匹配的应用程序对应的优先级,则可以获取所述目标应用程序的优先级。
作为第二种方式,由于所述包名还可以包括与应用程序相关的各种信息,因此,在本实施例中,在获取所述包名后,对所述包名进行分析,获取所述包名中包含的目标应用程序的厂家,然后根据预先设置的厂家和优先级之间的关系,基于厂家确定目标应用程序的优先级,从而实现不同厂家之间的优先级差异化以及输出音效的差异化。
作为第三种方式,所述电子设备可以预先建立包名和优先级之间的映射关系,并生成映射关系表存储在电子设备中,如表4所示。其中,包名和优先级之间的映射关系可以由用户手动关联,可以由电子设备自动关联或者由服务器自动关联等,在此不做限定,并且包名和优先级之间的映射关系可以包括一个包名对应一个优先级或者多个包名对应一个优先级等,在此不做限定。权8
进一步地,在确定目标应用程序的包名后,将所述目标应用程序的包名和映射关系表中预先存储的多个包名一一对比,以获取与所述目标应用程序的包名匹配的包名,再根据所述映射关系表,查找该包名对应的优先级,从而可以获取所述包名的优先级。
表4
包名 优先级
C1
C2
C3
步骤S240:基于所述优先级从所述多条音频通路中选择至少一条音频通路作为目标音频通路。
在本实施例中,电子设备设置有多条音频通路,多条音频通路中的每条音频通路均对应不同的音频处理算法,具体地,所述电子设备根据音频系统现有的构架,单独为不同的场景添加不同的音频通路,其中,每条音频通路是指不同的声音走的是不同的通路。进一步地,在获取目标应用程序的优先级后,对所述目标应用程序的音频数据进行分析,获取音频数据中的声音种类,再根据分析后的结果从所述多条音频通路中选择至少一条音频通路作为目标音频通路,也就是说,一个应用程序可以对应多条音频通路。作为一种方式,当所述音频数据中只包括一个种类的声音时,可以仅选择其中一条音频通路作为目标音频通路;当所述音频数据中包括多个种类的声音时,可以选择多条音频通路作为目标音频通路。
以所述目标应用程序为游戏类应用程序为例,其中,该游戏类应用程序可 以包括打击声、跑步声、枪声等声音种类。因此,可以从多条音频通路中分别选择与打击声、跑步声、枪声等对应的音频通路作为目标音频通路分别传输所述打击声、跑步声、枪声等,从而不同的音频数据通过不同的音效处理算法处理,处理效果更佳。
当然,在本实施例中,每个应用程序还可以有单独对应的音频通路,也就是说一个应用程序对应一个音频通路,且各个应用程序对应的音频通路根据应用程序的优先级设置不同的音效处理算法,因此,在获取包名对应的应用程序的优先级后,根据该优先级获取与该目标应用程序对应的音频通路作为目标音频通路。以所述目标应用程序为游戏类应用程序为例,基于该游戏类应用程序的优先级从多条音频通路中确定一条音频通路作为该游戏类应用程序的目标音频通路,传输所述电子设备在运行所述目标应用程序过程中的输出音效。
请参阅图3,图3示出了本申请的图2所示的实施例提供的音效调整方法的步骤S240的流程示意图。下面将针对图3所示的流程进行详细的阐述,所述方法具体可以包括以下步骤:
步骤S241:判断所述优先级是否高于预设优先级。
在本实施例中,所述电子设备预先设置并存储有预设优先级。其中,该预设优先级用于作为获取的目标应用程序的优先级的判断依据,其中,该预设优先级的值可以由用户手动设置,也可以由电子设备自动设置等,在此不做限定,且该预设优先级的大小可以由用户根据喜好设置,也可以由电子设备自动设置一个固定值,在此不做限定。
进一步地,当获取所述目标应用程序的优先级时,将所述优先级的值与预设优先级的值进行比较,以判断该目标应用程序的优先级是否高于所述预设优先级,可以理解的,当目标应用程序的优先级的值不大于预设优先级的值时,表征该目标应用程序的优先级不高于预设优先级;当目标应用程序的优先级的值大于预设优先级的值时,表征该目标应用程序的优先级高于预设优先级。
步骤S242:当所述优先级高于所述预设优先级时,基于所述优先级从所述多条音频通路中选择至少一条音频通路作为所述目标音频通路。
其中,作为一种方式,当所述目标应用程序的优先级高于所述预设优先级时,表征该目标应用程序的音频数据较为重要,则需要对所述目标应用程序的音频数据进行单独处理,因此,电子设备作为响应,基于所述优先级从所述多条音频通路中选择至少一条音频通路作为目标音频通路。
在本实施例中,当所述目标应用程序为游戏类应用程序时,确定该目标应用程序的优先级高于预设优先级,因此,当所述电子设备运行游戏类应用程序时,需要对所述游戏类应用程序的音频数据进行单独处理,从多条音频数据中选择至少一条音频数据作为目标音频数据。
步骤S243:当所述优先级不高于所述预设优先级时,将原始音频通路作为所述目标音频通路,其中,所述原始音频通路用于所述电子设备的系统音效的输出。
另外,作为一种方式,当所述目标应用程序的优先级不高于所述预设优先级时,表征该目标应用程序的音频数据较为不重要,则不需要再对所述目标应 用程序的音频数据进行单独的处理,因此,电子设备作为响应,将原始音频通路作为目标音频通路,其中,该原始音频通路用于该电子设备的系统音效的输出,也就是说,该目标应用程序的音频数据和系统音频数据可以通过相同的音效处理算法进行处理输出,以节省减少多音频通道独一音频数据进行处理带来的功耗。
进一步地,当所述目标应用程序的优先级不高于所述预设优先级时,关闭针对该目标应用程序的音频流的音效设置,以及将原始音频通路作为目标音频通路。也就是说,当所述电子设备运行的目标应用程序的优先级不高于预设优先级时,表征所述目标应用程序的音频数据不需要进行单独的处理,因此,为了进一步降低电子设备的功耗,可以关闭针对该目标应用程序程序的音频流的音效设置,作为一种方式,关闭新设置的多条音频通道,仅开启原始音频通道作为目标音频通道。
步骤S250:通过所述目标音频通路传输所述电子设备在所述目标应用程序运行过程中的输出音效。
可以理解的,目标音频通路至少包括一条音频通路,当音频通路为一条时,则通过该音频通路对应的音效处理算法对原始音频数据进行处理,获得对应的输出音效;当音频通路为多条时,由于每个音频通路对应独立的音效处理算法,因此,通过目标音频通路传输所述电子设备在目标应用程序运行过程中的输出音效,可以对原始音频数据进行不同的处理,从而得到声音各异的输出音效,处理效果更佳。
本申请实施例提供的音效调整方法,通过检测电子设备是否运行有目标应用程序,其中,目标应用程序在运行时可输出音效,当电子设备运行有目标应用程序时,获取目标应用程序的包名,根据该包名确定目标应用程序的优先级,基于该优先级从多条音频通路中选择至少一条音频通路作为目标音频通路,通过该目标音频通路传输电子设备在目标应用程序运行过程中的输出音效,相较于图1所示的音效调整方法,本实施例还根据目标应用程序的包名获取目标应用程序的优先级,以实现不同厂商的表现力差异化,以及通过设置多条音效处理算法不同的音频通路,以方便且快捷的对输出音效进行调节。
请参阅图4,图4示出了本申请又一实施例提供的音效调整方法的流程示意图。所述音效调整方法应用于上述电子设备。下面将针对图4所示的流程进行详细的阐述,所述方法具体可以包括以下步骤:
步骤S310:检测所述电子设备是否运行有目标应用程序,其中,所述目标应用程序在运行时可输出音频。
步骤S320:当所述电子设备运行有所述目标应用程序时,获取所述目标应用程序的优先级。
其中,步骤S310-步骤S3120的具体描述请参阅步骤S110-步骤S120,在此不再赘述。
步骤S330:判断所述优先级是否高于预设优先级。
步骤S340:当所述优先级高于所述预设优先级时,显示与所述优先级相对 应的音效参数设置界面。
在本实施例中,当所述目标应用程序的优先级高于预设优先级时,例如,当所述目标应用程序为游戏类应用程序时,电子设备显示与所述优先级相对应的音效参数设置界面,其中,音效参数可以包括目标应用程序的音量值、频率值、功率值等,在此不做限定。作为一种方式,音效参数设置界面固定,也就是说,当应用程序的优先级高于预设优先级时,均对应显示该音效参数设置界面,可以理解的是,此时,优先级高于预设优先级的所有应用程序的音效参数设置界面相同;作为另一种方式,音效参数设置界面包括多个,且每个优先级对应不同的音效参数设置界面,也就是说,当应用程序的优先级高于预设优先级时,再根据该优先级查找与之对应的音效参数设置界面,可以理解的,此时,优先级高于预设优先级的所有应用程序所对应的音效参数设置界面可能相同或不同。
在本实施例中,如图5所示,电子设备将目标应用程序的优先级对应的音效参数设置界面进行显示,可以理解的,所述音效参数设置界面可以悬浮于电子设备的当前显示界面的上方显示,也可以与所述电子设备的当前显示界面同层级显示,并且,当所述音效参数设置界面与所述当前显示界面同层级显示时,可以显示于当前显示界面的上部分区域、下部分区域、左部分区域或右部分区域,在此不做限定。
步骤S350:检测作用于所述音效参数设置界面的设置操作,基于所述设置操作生成音效参数。
进一步地,当所述电子设备显示音效参数设置界面时,实时检测作用于该音效参数设置界面的设置操作,其中,该设置操作用于对音效参数设置界面上显示的参数进行调整或配置。作为一种方式,该设置操作可以包括单指点击、多指点击、单指长按、多指长按、重压、多次点击、滑动操作、参数输入等,如图6所示,其中,所述单指点击是指单指在参数上进行点击的操作;多指点击是指多指在参数上同时进行点击的操作;单指长按是指单指在参数上按压超过预设时长;多指长按是指多指同时在参数上按压超过预设时长;重压是指在参数上按压力度超过预设力度;多次点击是指在预设时间内点击次数超过预设次数;滑动操作是指单指在参数上进行滑动的操作;参数输入是指在输入框中输入预配置的参数。
在本实施例中,基于上述设置操作,电子设备在检测到设置操作完成后,可以生成音效参数,可以理解的,该音效参数是用户手动设置,因此,更符合用户的喜好和需求,更具有适用性。
步骤S360:基于所述音效参数调整所述电子设备在所述目标应用程序运行过程中的输出音效。
以音效参数中的音量值为例,当所述音效参数中包括的音量值大于所述电子设备运行所述目标应用程序时输出的音量值时,则根据音效参数中设置的音量值和电子设备当前的音量值之间的差值,增加所述电子设备在运行所述目标应用程序的输出音量,以达到与用户设置的音效参数一致的音量值,相反的,当所述音效参数中包括的音量值小于所述电子设备运行所述目标应 用程序时输出的音量值时,则根据音效参数中设置的音量值和电子设备当前的音量值之间的差值,减小所述电子设备在运行所述目标应用程序的输出音量,以达到与用户设置的音效参数一致的音量值,从而根据设置的音效参数调整电子设备在目标应用程序运行过程中的输出音效,以方便用户快捷获取自己喜好的输出音效。
本申请实施例提供的音效调整方法,通过检测电子设备是否运行有目标应用程序,其中,目标应用程序在运行时可输出音频,当电子设备运行有目标应用程序时,获取目标应用程序的优先级,判断该优先级是否高于预设优先级,当该优先级高于预设优先级时,显示于优先级相对应的音效参数设置界面,检测作用于音效参数设置界面的设置操作,基于该设置操作生成音效参数,基于该音效参数调整电子设备在目标应用程序运行过程中的输出音效,相较于图1所示的音效调整方法,本实施例还在目标应用程序的优先级大于预设优先级时,显示参数设置界面供用户自行设置音效参数,并根据设置的音效参数调整电子设备在目标应用程序运行过程中的输出音效,以方便用户快捷获取自己喜好的输出音效。
请参阅图7,图7示出了本申请实施例提供的音效调整装置200的模块框图。音效调整装置200应用于上述电子设备。下面将针对图7所示的框图进行阐述,所述音效调整装置200包括:检测模块210、获取模块220以及调整模块230,其中:
检测模块210,用于检测所述电子设备是否运行有目标应用程序,其中,所述目标应用程序在运行时可输出音频。
获取模块220,用于当所述电子设备运行有所述目标应用程序时,获取所述目标应用程序的优先级。进一步地,所述获取模块220包括:获取子模块和确定子模块,其中:
获取子模块,用于当所述电子设备运行有所述目标应用程序时,获取所述目标应用程序的包名。
确定子模块,用于根据所述包名确定所述目标应用程序的优先级。进一步地,所述确定子模块包括:确定单元,其中:
确定单元,用于根据预设关系表确定所述包名对应的优先级,所述预设关系表中包括应用程序的包名和应用程序的优先级的对应关系。
调整模块230,用于基于所述优先级调整所述电子设备在所述目标应用程序运行过程中的输出音效。进一步地,所述电子设备设置有多条音频通路,所述多条音频通路中的每条音频通路均对应不同的音效处理算法,所述调整模块230包括:选择子模块和传输子模块,其中:
选择子模块,用于基于所述优先级从所述多条音频通路中选择至少一条音频通路作为目标音频通路。进一步地,所述选择子模块包括:选择单元和判断单元,其中:
判断单元,用于判断所述优先级是否高于预设优先级。
选择单元,用于当所述优先级高于所述预设优先级时,基于所述优先级从所述多条音频通路中选择至少一条音频通路作为所述目标音频通路。
所述选择单元,还用于当所述优先级不高于所述预设优先级时,将原始音频通路作为所述目标音频通路,其中,所述原始音频通路用于所述电子设备的系统音效的输出。进一步地,所述选择单元包括:选择子单元,其中:
选择子单元,用于当所述优先级不高于所述预设优先级时,关闭针对所述目标应用程序的音频流的音效设置;以及将所述原始音频通路作为所述目标音频通路。
传输子模块,用于通过所述目标音频通路传输所述电子设备在所述目标应用程序运行过程中的输出音效。
进一步地,所述调整模块230还包括:显示子模块、生成子模块以及跳转子模块,其中:
显示子模块,用于当所述优先级高于所述预设优先级时,显示与所述优先级相对应的音效参数设置界面。
生成子模块,用于检测作用于所述音效参数设置界面的设置操作,基于所述设置操作生成音效参数。
调整子模块,用于基于所述音效参数调整所述电子设备在所述目标应用程序运行过程中的输出音效。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。
本申请实施例提供的音效调整装置包括检测模块、获取模块以及调整模块,其中,检测模块用于检测所述电子设备是否运行有目标应用程序,其中,所述目标应用程序在运行时可输出音频,获取模块用于当所述电子设备运行有所述目标应用程序时,获取所述目标应用程序的优先级,调整模块用于基于所述优先级调整所述电子设备在所述目标应用程序运行过程中的输出音效,从而根据应用程序的优先级调整电子设备在运行目标应用程序时的输出音效,实现自动快捷的配置电子设备的输出音效,提升输出音效的效果以及用户体验。
请参阅图8,其示出了本申请实施例提供的一种电子设备100的结构框图。该电子设备100可以是智能手机、平板电脑、电子书等能够运行应用程序的电子设备。本申请中的电子设备100可以包括一个或多个如下部件:处理器110、存储器120以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器120中并被配置为由一个或多个处理器110执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。
处理器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中,单独通过一块通信芯片进行实现。
存储器120可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器120可用于存储指令、程序、代码、代码集或指令集。存储器120可包括存储程序区和存储数据区,例如,存储器104中可以存储有音效调整装置。该音效调整装置可以为前述的装置200。其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储终端100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。
请参阅图9,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质300中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。
计算机可读存储介质300可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质300包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质300具有执行上述方法中的任何方法步骤的程序代码310的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码310可以例如以适当形式进行压缩。
综上所述,本申请实施例提供的音效调整方法、装置、电子设备以及存储介质,检测电子设备是否运行有目标应用程序,其中,目标应用程序在运行时可输出音频,当电子设备运行有目标应用程序时,获取目标应用程序的优先级,基于该优先级调整电子设备在目标应用程序运行过程中的输出音效,从而根据应用程序的优先级调整电子设备在运行目标应用程序时的输出音效,实现自动快捷的配置电子设备的输出音效,提升输出音效的效果以及用户体验。
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技 术方案的本质脱离本申请各实施例技术方案的精神和范围。

Claims (20)

  1. 一种音效调整方法,其特征在于,应用于电子设备,所述方法包括:
    检测所述电子设备是否运行有目标应用程序,其中,所述目标应用程序在运行时可输出音频;
    当所述电子设备运行有所述目标应用程序时,获取所述目标应用程序的优先级;
    基于所述优先级调整所述电子设备在所述目标应用程序运行过程中的输出音效。
  2. 根据权利要求1所述的方法,其特征在于,所述电子设备设置有多条音频通路,所述多条音频通路中的每条音频通路对应不同的音效处理算法,所述基于所述优先级调整所述电子设备在所述目标应用程序运行过程中的输出音效,包括:
    基于所述优先级从所述多条音频通路中选择至少一条音频通路作为目标音频通路;
    通过所述目标音频通路传输所述电子设备在所述目标应用程序运行过程中的输出音效。
  3. 根据权利要求2所述的方法,其特征在于,所述基于所述优先级从所述多条音频通路中选择至少一条音频通路作为目标音频通路,包括:
    判断所述优先级是否高于预设优先级;
    当所述优先级高于所述预设优先级时,基于所述优先级从所述多条音频通路中选择至少一条音频通路作为所述目标音频通路;
    当所述优先级不高于所述预设优先级时,将原始音频通路作为所述目标音频通路,其中,所述原始音频通路用于所述电子设备的系统音效的输出。
  4. 根据权利要求3所述的方法,其特征在于,所述判断所述优先级是否高于预设优先级,包括:
    将所述优先级的值与预设优先级的值进行比较;
    当所述优先级的值不大于所述预设优先级的值时,判定所述优先级不高于预设优先级;
    当所述优先级的值大于所述预设优先级的值时,判定所述优先级高于预设优先级。
  5. 根据权利要求3所述的方法,其特征在于,所述方法还包括:
    当所述优先级高于所述预设优先级时,显示与所述优先级相对应的音效参数设置界面;
    检测作用于所述音效参数设置界面的设置操作,基于所述设置操作生成音效参数;
    基于所述音效参数调整所述电子设备在所述目标应用程序运行过程中的输出音效。
  6. 根据权利要求5所述的方法,其特征在于,当所述目标应用程序为游戏 类应用程序时,确定所述目标应用程序的优先级高于所述预设优先级。
  7. 根据权利要求3所述的方法,其特征在于,所述当所述优先级不高于所述预设优先级时,将原始音频通路作为所述目标音频通路,包括:
    当所述优先级不高于所述预设优先级时,关闭针对所述目标应用程序的音频流的音效设置;以及
    将所述原始音频通路作为所述目标音频通路。
  8. 根据权利要求2所述的方法,其特征在于,所述基于所述优先级从所述多条音频通路中选择至少一条音频通路作为目标音频通路,包括:
    在获取所述目标应用程序的优先级后,获取所述目标应用程序的音频数据中的声音种类;
    对所述目标应用程序的音频数据进行分析;
    根据分析结果从所述多条音频通路中选择至少一条音频通路作为目标音频通路。
  9. 根据权利要求8所述的方法,其特征在于,所述根据分析结果从所述多条音频通路中选择至少一条音频通路作为目标音频通路,包括:
    当所述音频数据中只包括一个种类的声音时,选择其中一条音频通路作为目标音频通路;
    当所述音频数据中包括多个种类的声音时,选择多条音频通路作为目标音频通路。
  10. 根据权利要求1-9任一项所述的方法,其特征在于,所述当所述电子设备运行有所述目标应用程序时,获取所述目标应用程序的优先级,包括:
    当所述电子设备运行有所述目标应用程序时,获取所述目标应用程序的包名;
    根据所述包名确定所述目标应用程序的优先级。
  11. 根据权利要求10所述的方法,其特征在于,所述根据所述包名确定所述目标应用程序的优先级,包括:
    根据预设关系表确定所述包名对应的优先级,所述预设关系表中包括应用程序的包名和应用程序的优先级的对应关系。
  12. 根据权利要求1所述的方法,其特征在于,所述检测所述电子设备是否运行有目标应用程序之前,包括:
    获取电子设备运行的应用程序;
    从所述应用程序中确定目标应用程序,所述目标应用程序包括单个应用程序或者多个应用程序。
  13. 根据权利要求1所述的方法,其特征在于,所述当所述电子设备运行有所述目标应用程序时,获取所述目标应用程序的优先级,包括:
    当所述电子设备运行有所述目标应用程序时,检测所述电子设备是否有音频输出;
    若检测到所述电子设备有音频输出,获取所述目标应用程序的优先级。
  14. 根据权利要求1所述的方法,其特征在于,所述当所述电子设备运行 有所述目标应用程序时,获取所述目标应用程序的优先级,包括:
    当所述电子设备运行有所述目标应用程序时,获取映射关系表中与所述目标应用程序匹配的应用程序,所述映射关系表为所述电子设备预先建立,并存储有应用程序和优先级之间的映射关系;
    基于所述映射关系表,查找与所述匹配的应用程序对应的优先级,从而获取所述目标应用程序的优先级。
  15. 根据权利要求1所述的方法,其特征在于,所述基于所述优先级调整所述电子设备在所述目标应用程序运行过程中的输出音效,包括:
    基于所述优先级增大或减小所述电子设备在所述目标应用程序运行过程中的输出音效。
  16. 根据权利要求15所述的方法,其特征在于,所述基于所述优先级增大或减小所述电子设备在所述目标应用程序运行过程中的输出音效,包括:
    当所述目标应用程序的优先级较高时,表征该目标应用程序的优先级高于多个其他应用程序的优先级,提高所述目标应用程序的输出音效,且保持所述多个其他应用程序的输出音效不变或减小;或者
    保持所述目标应用程序的输出音效不变,且对应减小其他多个应用程序的输出音效,从而突出所述目标应用程序的输出音效。
  17. 根据权利要求15所述的方法,其特征在于,所述基于所述优先级增大或减小所述电子设备在所述目标应用程序运行过程中的输出音效,包括:
    当所述目标应用程序的优先级较低时,表征该目标应用程序的优先级低于多个其他应用程序的优先级,降低所述目标应用程序的输出音效,且保持所述多个其他应用程序的输出音效不变或增大;或者
    保持所述目标应用程序的输出音效不变,且对应增大所述其他应用程序的输出音效,从而弱化所述目标应用程序的输出音效。
  18. 一种音效调整装置,其特征在于,应用于电子设备,所述装置包括:
    检测模块,用于检测所述电子设备是否运行有目标应用程序,其中,所述目标应用程序在运行时可输出音频;
    获取模块,用于当所述电子设备运行有所述目标应用程序时,获取所述目标应用程序的优先级;
    调整模块,用于基于所述优先级调整所述电子设备在所述目标应用程序运行过程中的输出音效。
  19. 一种电子设备,其特征在于,包括存储器和处理器,所述存储器耦接到所述处理器,所述存储器存储指令,当所述指令由所述处理器执行时所述处理器执行如权利要求1-17任一项所述的方法。
  20. 一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,在所述程序代码被处理器运行时执行如权利要求1-17任一项所述的方法。
PCT/CN2019/094936 2018-09-04 2019-07-05 音效调整方法、装置、电子设备以及存储介质 WO2020048217A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811028135.3A CN109271129B (zh) 2018-09-04 2018-09-04 音效调整方法、装置、电子设备以及存储介质
CN201811028135.3 2018-09-04

Publications (1)

Publication Number Publication Date
WO2020048217A1 true WO2020048217A1 (zh) 2020-03-12

Family

ID=65187672

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/094936 WO2020048217A1 (zh) 2018-09-04 2019-07-05 音效调整方法、装置、电子设备以及存储介质

Country Status (2)

Country Link
CN (1) CN109271129B (zh)
WO (1) WO2020048217A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109271129B (zh) * 2018-09-04 2020-11-27 Oppo广东移动通信有限公司 音效调整方法、装置、电子设备以及存储介质
CN111835922A (zh) * 2019-04-19 2020-10-27 海能达通信股份有限公司 一种多路通话语音控制方法及装置
CN110349558B (zh) * 2019-06-27 2023-10-27 腾讯科技(深圳)有限公司 音效播放方法、装置、终端及存储介质
CN110753187B (zh) * 2019-10-31 2021-06-01 芋头科技(杭州)有限公司 一种摄像头的控制方法及设备
CN113778580B (zh) * 2021-07-28 2023-12-08 赤子城网络技术(北京)有限公司 模态用户界面显示方法、电子设备及存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106303816A (zh) * 2015-05-25 2017-01-04 联想(北京)有限公司 一种信息控制方法及电子设备
CN106375576A (zh) * 2016-08-31 2017-02-01 维沃移动通信有限公司 一种音频通路控制方法及移动终端
CN109271129A (zh) * 2018-09-04 2019-01-25 Oppo广东移动通信有限公司 音效调整方法、装置、电子设备以及存储介质

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5703794A (en) * 1995-06-20 1997-12-30 Microsoft Corporation Method and system for mixing audio streams in a computing system
JP3827693B2 (ja) * 2004-09-22 2006-09-27 株式会社コナミデジタルエンタテインメント ゲーム装置、ゲーム装置制御方法、ならびに、プログラム
JP4001897B2 (ja) * 2005-12-09 2007-10-31 株式会社コナミデジタルエンタテインメント 音楽ジャンル判別装置及びこれを備えたゲーム機
JP4015173B1 (ja) * 2006-06-16 2007-11-28 株式会社コナミデジタルエンタテインメント ゲーム音出力装置、ゲーム音制御方法、および、プログラム
CN106131753A (zh) * 2016-06-28 2016-11-16 乐视控股(北京)有限公司 音频输出控制方法、装置及终端
CN106293599A (zh) * 2016-07-29 2017-01-04 联想(北京)有限公司 一种输出控制方法、电子设备及输出系统
CN107870759A (zh) * 2016-09-26 2018-04-03 中兴通讯股份有限公司 一种音频控制方法和装置
CN106354471A (zh) * 2016-09-29 2017-01-25 北京小米移动软件有限公司 音频播放控制方法、装置及电子设备
CN107122158A (zh) * 2017-04-14 2017-09-01 北京小米移动软件有限公司 播放信息提示音频的方法及装置、电子设备
CN108391196B (zh) * 2018-03-19 2021-05-07 深圳市冠旭电子股份有限公司 一种音频信号处理装置及音箱

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106303816A (zh) * 2015-05-25 2017-01-04 联想(北京)有限公司 一种信息控制方法及电子设备
CN106375576A (zh) * 2016-08-31 2017-02-01 维沃移动通信有限公司 一种音频通路控制方法及移动终端
CN109271129A (zh) * 2018-09-04 2019-01-25 Oppo广东移动通信有限公司 音效调整方法、装置、电子设备以及存储介质

Also Published As

Publication number Publication date
CN109271129B (zh) 2020-11-27
CN109271129A (zh) 2019-01-25

Similar Documents

Publication Publication Date Title
WO2020048222A1 (zh) 音效调整方法、装置、电子设备以及存储介质
WO2020048217A1 (zh) 音效调整方法、装置、电子设备以及存储介质
WO2020048220A1 (zh) 音效调整方法、装置、电子设备以及存储介质
US10123140B2 (en) Dynamic calibration of an audio system
CN109284080B (zh) 音效调整方法、装置、电子设备以及存储介质
WO2017193540A1 (zh) 弹幕播放方法、播放装置及播放系统
CN110876180B (zh) 功耗处理方法、装置、电子设备及计算机可读介质
US11511200B2 (en) Game playing method and system based on a multimedia file
WO2023071425A1 (zh) 音量控制方法及装置、电子设备及存储介质
CN109240641B (zh) 音效调整方法、装置、电子设备以及存储介质
WO2020048175A1 (zh) 音效处理方法、装置、电子设备及存储介质
EP3874911B1 (en) Determining light effects based on video and audio information in dependence on video and audio weights
US20240057234A1 (en) Adjusting light effects based on adjustments made by users of other systems
WO2017166686A1 (zh) 外接扬声器切换方法及装置
EP3886457A1 (en) Information processing device and information processing method
JP7170884B2 (ja) メディアコンテンツにおけるスピーチの度合に基づく光効果の決定
CN113223510B (zh) 冰箱及其设备语音交互方法、计算机可读存储介质
CN115868250A (zh) 在娱乐模式下分配照明设备的控制
CN113660599A (zh) 扬声器的控制方法、装置、移动终端及存储介质
WO2020206698A1 (zh) 应用处理方法、装置、存储介质及电子设备
CN111179984A (zh) 音频数据处理方法、装置及终端设备
CN109672962B (zh) 一种信息处理方法和电子设备
WO2020206697A1 (zh) 应用处理方法、装置、存储介质及电子设备
WO2023139044A1 (en) Determining light effects based on audio rendering capabilities
US9899979B2 (en) Method for recording a playback setting of sound and electronic device performing the same

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

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

Country of ref document: EP

Kind code of ref document: A1