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

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

Info

Publication number
WO2020048220A1
WO2020048220A1 PCT/CN2019/095139 CN2019095139W WO2020048220A1 WO 2020048220 A1 WO2020048220 A1 WO 2020048220A1 CN 2019095139 W CN2019095139 W CN 2019095139W WO 2020048220 A1 WO2020048220 A1 WO 2020048220A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
target application
sound effect
running
current
Prior art date
Application number
PCT/CN2019/095139
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广东移动通信有限公司
Priority to EP19857317.2A priority Critical patent/EP3846020A4/en
Publication of WO2020048220A1 publication Critical patent/WO2020048220A1/zh
Priority to US17/191,339 priority patent/US11474775B2/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S3/00Systems employing more than two channels, e.g. quadraphonic
    • H04S3/008Systems employing more than two channels, e.g. quadraphonic in which the audio signals are in digital form, i.e. employing more than two discrete digital channels
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S7/00Indicating arrangements; Control arrangements, e.g. balance control
    • H04S7/30Control circuits for electronic adaptation of the sound field
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S2400/00Details of stereophonic systems covered by H04S but not provided for in its groups
    • H04S2400/01Multi-channel, i.e. more than two input channels, sound reproduction with two speakers wherein the multi-channel information is substantially preserved
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S2400/00Details of stereophonic systems covered by H04S but not provided for in its groups
    • H04S2400/13Aspects of volume control, not necessarily automatic, in stereophonic sound systems

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 a current electronic device is running a target application program, wherein the target application program can output audio when running Determining a reference electronic device corresponding to the current electronic device when the current electronic device is running the target application program; obtaining a sound effect parameter configured by the reference electronic device when running the target application program; based on the The sound effect parameter adjusts an output sound effect of the current electronic device during the running of the target application.
  • an embodiment of the present application provides a sound effect adjustment device applied to an electronic device.
  • the device includes: a detection module for detecting whether a current electronic device is running a target application program, wherein the target application program is Audio can be output when running; a determining module for determining a reference electronic device corresponding to the current electronic device when the current electronic device is running the target application; an obtaining module for obtaining the reference electronic device A sound effect parameter configured when the target application is run; an adjustment module, configured to adjust an output sound effect of the current electronic device during the running of the target application based on the sound effect parameter.
  • 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 an embodiment 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 another embodiment of step S230 of the sound effect adjustment method provided by the embodiment shown in FIG. 2 of the present application; FIG.
  • FIG. 5 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. 6 is a schematic flowchart of a sound effect adjustment method according to another embodiment 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 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, and 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 are adjusted according to the sound effect parameters of other electronic devices corresponding to the current electronic device
  • the output sound effects of current electronic devices realize fast, automatic and accurate configuration of output sound effects of electronic devices, improving the effect of output sound effects and the 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 current electronic device according to the sound effect parameters of other electronic devices that have a corresponding relationship with the current electronic device, so as to quickly, automatically and accurately configure the output sound effect of the electronic device and improve the effect of the output sound effect. And 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.
  • FIG. 8 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 current electronic device, wherein the target application can output audio when running.
  • the applications running on the current electronic device may include applications running in the foreground of the current electronic device, applications running in the background of the current electronic device, or applications running in the foreground and background of the current electronic device. It is not limited here.
  • 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 The interaction is very limited. Except during the configuration, its other lifetimes are hidden (such as the SMS auto-reply program and the alarm clock program); the applications that are switched between the foreground and background of the current electronic device refer to 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 current electronic device may run only one application or multiple applications at the same time.
  • the application may run in the foreground of the current electronic device, or in the current electronic device.
  • the device runs in the background or switches between the foreground and background of the current electronic device.
  • the multiple applications can all run in the background of the current electronic device, one of the multiple applications.
  • the application runs in the foreground of the current electronic device, and the remaining applications run in the background of the current electronic device or one of the multiple applications switches between the foreground and background of the current electronic device, and the remaining applications run in the background of the current electronic device. Operation and so on are not limited here.
  • a target application program is determined from the application program.
  • 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 current electronic device is running the target application, determine a reference electronic device corresponding to the current electronic device.
  • the determination and the The reference electronic device corresponding to the current electronic device is described; as another way, it is detected whether the current electronic device has audio output at this time, and when it is detected that the current electronic device has audio output, then the determination is performed with the current electronic device Reference electronics for the device.
  • the target application is an application that has audio output when running, such as a music playing application, a video playing application, a calling application, and the like
  • the current electronic device is outputting audio.
  • the corresponding electronic device corresponding to the current electronic device is determined to be executed.
  • the target application is a game application, an instant messaging application, etc.
  • the first detection is performed on whether the current electronic device has audio output, and when it is detected that the current electronic device has audio output, determining whether the current electronic device corresponds to the current electronic device is performed. See electronic equipment.
  • 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, so when the current electronic device runs such a target application, it can be further determined that the current electronic device has audio at this time When outputting, the reference electronic device corresponding to the current electronic device is determined.
  • an electronic device corresponding to the current electronic device is determined from a plurality of electronic devices as a reference electronic device.
  • an electronic device having the same model as the current electronic device may be used as a reference electronic device, an electronic device under the same network as the current electronic device may be used as a reference electronic device, and a distance from the current electronic device may be used.
  • An electronic device with a preset distance of the device is used as a reference electronic device, an electronic device previously associated with the current electronic device may be used as the reference electronic device, or an electronic device running the same target application program as the current electronic device may be used as the reference electronic device.
  • Equipment, etc. are not limited here.
  • the reference electronic device may also be a smart phone, a tablet computer, a wearable electronic device, a vehicle-mounted device, a gateway, or the like, which is not limited herein.
  • Step S130 Acquire a sound effect parameter configured by the reference electronic device when running the target application.
  • the sound effect parameters configured by the reference electronic device when running the target application program are correspondingly obtained, for example, the volume value configured by the reference electronic device when running the target program,
  • the frequency value and power value are not limited here.
  • a sound effect parameter configured by the reference electronic device when the target application was last run is obtained, and the sound effect parameter is used as the reference electronic device in It is understandable that the sound effect parameters configured when the target application is running may be understood that when the reference electronic device is running the target application, the currently configured sound effect parameters may be obtained, and when the reference electronic device is not running the When you target the application, you can get the sound parameters that were configured during the last run.
  • a historical sound effect parameter configured by the reference electronic device for the target application is obtained, and then the most frequently configured sound effect parameter or user configuration is obtained based on the historical sound effect parameter.
  • the sound effect parameters configured by the reference electronic device in the past preset times may be obtained separately, and then the most frequently used sound effect parameters in the preset times or the average value of the sound effect parameters configured in the preset times may be obtained;
  • the sound effect parameters configured by the reference electronic device in the past preset time may be obtained separately, and then the most frequently used sound effect parameter or the average value of the sound effect parameters configured in the preset time may be obtained.
  • Step S140 Adjust an output sound effect of the current electronic device during the running of the target application based on the sound effect parameters.
  • the sound effect parameters of the reference electronic device may be used as the current The sound effect parameter of the electronic device, and then based on the sound effect parameter, adjust the output sound effect of the current electronic device during the running of the target application.
  • the volume value in the sound effect parameter as an example, when the volume value included in the sound effect parameter of the reference electronic device is greater than the volume value output when the current electronic device runs the target application, the volume of the reference electronic device is used.
  • the difference between the value and the volume value of the current electronic device increasing the output volume of the current electronic device when the target application is running, so as to reach a volume value consistent with the reference electronic device running the target application
  • the volume value included in the sound effect parameter of the reference electronic device is smaller than the volume value output when the current electronic device runs the target application
  • the volume value of the reference electronic device and the current electronic device's reduces the output volume of the current electronic device when the target application is running, so as to reach a volume value consistent with that of the reference electronic device when the target application is running.
  • the device's sound effect parameter adjusts the output sound effect of the current electronic device to achieve fast, automatic and accurate configuration Audio output sub-devices to enhance the output sound effects, and user experience.
  • the sound effect adjustment method detects whether a current electronic device is running a target application program, wherein the target application program can output audio when running, and when the current electronic device is running a target application program, determining a connection with the current electronic device
  • the corresponding reference electronic device obtains the sound effect parameters configured by the reference electronic device when the target application is running, and adjusts the output sound effect of the current electronic device during the running of the target application based on the sound effect parameters, so as to correspond to the presence of the current electronic device.
  • the related sound effect parameters of other electronic devices adjust the output sound effects of the current electronic device to realize the fast, automatic and accurate configuration of the output sound effects of the electronic device, improving the effect of the output sound effect and the 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 current electronic device is provided with multiple audio channels, and each of the multiple audio channels corresponds to a different audio processing algorithm.
  • the process shown in FIG. 2 will be described in detail below.
  • the method may specifically include the following steps:
  • Step S210 Detect whether the current electronic device is running a target application program, wherein the target application program 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 current electronic device is running the target application, obtain current location information of the current electronic device.
  • an electronic device with a preset distance from the current electronic device may be used as the reference electronic device.
  • the current electronic device when the current electronic device is running the target application, first detecting the current location information of the current electronic device, where the current location information of the current electronic device can be obtained through positioning as a way, The current position of the electronic device may be obtained through a location-based service (LBS) and / or a global positioning system (Global Positioning System, GPS).
  • LBS location-based service
  • GPS Global Positioning System
  • the position information of the current electronic device is obtained in real time, so that when the position of the current electronic device changes, the The LBS and / or GPS may obtain the current position information of the current electronic device in real time according to the current position change of the electronic device.
  • Step S230 Obtain other electronic devices within a preset range from the current electronic device based on the current position information, and determine the other electronic device as the reference electronic device.
  • other electronic devices within a preset range of the current position information may be acquired.
  • the preset range may be manually set by a user or may be determined by the current
  • the electronic device is configured at the factory, or can be configured by the current electronic device according to the environment, which is not limited here, and the preset range may be 1 km, 2 km, etc., which is not limited here.
  • the current electronic device is configured according to the environment. Specifically, after obtaining the current position information of the current electronic device, further obtain the environmental conditions within a preset range of the current position information, and judge the surroundings of the current position information based on the environmental conditions. Degree of poverty. For example, when the current position is in a relatively remote area, the preset range can be relatively wide, and when the current position is in a relatively breeding area, the preset range can be relatively narrow. As a method, when the number of searches for the current position is lower than the preset number, it is determined that the current position is in a relatively remote location, and when the number of searches for the current position is higher than the preset number, it is determined that the current position is in a more promising place. It can be understood that the preset range can be sorted according to the number of searches, that is, the more the search times, the narrower the preset range setting, the fewer the search times, and the wider the preset range setting.
  • the number of other electronic devices in the preset range may be one or more. This is not limited here.
  • the number of other electronic devices in the preset range is one, the one electronic device is determined as the reference electronic device.
  • the number of other electronic devices in the preset range is multiple, One or several other electronic devices may be selected from a plurality of other electronic devices as a reference electronic device, which is not limited herein.
  • FIG. 3 is a schematic flowchart of an embodiment of step S230 of the sound effect adjustment method provided by the embodiment shown in FIG. 2 of the present application.
  • the following describes the process shown in FIG. 3 in detail.
  • the number of the other electronic devices is multiple, and the method may specifically include the following steps:
  • Step S231A Determine whether a plurality of other electronic devices include an electronic device that is running the target application.
  • the running status may include whether other electronic devices are running applications and running applications. Whether it is the target application program.
  • the electronic device runs the application program, it can send information including the running status to the server to inform the server of its current running status or obtain corresponding request data from the server.
  • Information about the running status of the device the information is sent to the current electronic device, and the current electronic device can obtain the running status of other electronic devices based on the information, so that it can be determined whether multiple electronic devices include the target application program running.
  • Electronic equipment
  • Step S232A When the plurality of other electronic devices include an electronic device that is running the target application program, determine the electronic device that is running the target application program as the reference electronic device.
  • the electronic device of the running target application is determined as the reference electronic device. It is understandable that in this way, The environment in which the reference electronic device is located is similar to the environment in which the current electronic device is located, and the reference electronic device is running the target application. Therefore, the sound effect parameters configured when the reference electronic device runs the target application are used as the current electronic device operating location. The sound effect parameters when describing the target application are more reasonable and easier to meet user needs.
  • only one of the other electronic devices may be running the target application, or there may be multiple electronic devices running the target application, which is not limited herein.
  • the electronic device when there is only one electronic device running the target application program, the electronic device is determined as the reference electronic device; when there are multiple electronic devices running the target application program, it may be randomly selected from multiple running target application programs.
  • An electronic device is selected as the reference electronic device, and multiple electronic devices running the target application can be used as the reference electronic device, and the sound effect parameters of the electronic devices running the target application can be integrated to obtain the reference electronic device's Sound effect parameters.
  • FIG. 4 is a schematic flowchart of another embodiment 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. 4 will be described in detail below.
  • the number of the other electronic devices is multiple, and the method may specifically include the following steps:
  • Step S231B Obtain an electronic device closest to the current electronic device among the multiple other electronic devices.
  • the number of other electronic devices is multiple, as another way, to obtain the location information of the multiple other electronic devices, it is understandable that when the positioning service is started by other electronic devices, the same can be achieved through LBS and / or GPS.
  • other electronic devices may send information including location information to the server to inform the server of its current location information.
  • the server obtains information including the location information of other electronic devices
  • the server sends the information to the current electronic device.
  • the electronic device can obtain location information of other electronic devices based on the information, so that current location information of each other electronic device in the plurality of other electronic devices can be obtained.
  • the distance between the current electronic device and each other electronic device can be obtained, and by comparing the current electronic device with each other electronic device, The distance between the electronic devices can be obtained from among the other electronic devices, the electronic device closest to the current electronic device.
  • Step S232B Use the electronic device closest to the current electronic device as the reference electronic device.
  • the electronic device closest to the current electronic device is used as the reference electronic device. It can be understood that In this way, the environment of the obtained reference electronic device is similar to the environment of the current electronic device. Therefore, the sound effect parameters configured when the reference electronic device runs the target application program are used as the current electronic device when the target application program runs. The sound effect parameters are more reasonable and it is easier to meet user needs.
  • the electronic device closest to the current electronic device may be one or multiple, and is not limited herein.
  • the electronic device when only one electronic device is closest to the current electronic device, the electronic device is determined as a reference electronic device; when there are multiple electronic devices that are closest to the current electronic device, the electronic devices may be randomly selected from the distance to the current electronic device. It is described that one electronic device is selected as the reference electronic device among the plurality of electronic devices closest to the current electronic device.
  • the page may use the plurality of electronic devices closest to the current electronic device as the reference electronic device, and integrate each electronic device in running. Acquire the sound effect parameters of the reference electronic device after the sound effect parameters of the target application.
  • Step S240 Acquire a sound effect parameter configured by the reference electronic device when the target application is running.
  • step S240 For a detailed description of step S240, please refer to step S130, and details are not described herein again.
  • FIG. 5 illustrates 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. 5 will be described in detail below.
  • the method may specifically include the following steps:
  • Step S241 When the reference electronic device has not run the target application, obtain a type of the target application.
  • the reference electronic device when the reference electronic device has not run the target application, that is, the reference electronic device has not installed the target application or has not run the target application after installation, obtaining the target application.
  • the type of target application the current electronic device can 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 applications and types can be automatically associated by the system or manually by the user.
  • WeChat and QQ are configured as instant messaging applications, which are not limited here.
  • the mapping relationship may include one application corresponding to one type, or multiple applications corresponding to multiple types of parts.
  • 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.
  • Step S242 Acquire other application programs consistent with the type of the target application program, and acquire sound effect parameters configured by the reference electronic device when running the other application programs.
  • the reference electronic device After determining the type of the target application, look for other applications included in the type. It is understandable that the other applications included in the type are consistent with the type of the target application, and the other applications The number of programs can be one or multiple, etc., which is not limited here. Further, it is further determined whether the reference electronic device has run the other application program, and when the reference electronic device has run the other application program, the reference electronic device is configured to obtain the information configured when the reference electronic device runs the other application program. Sound effect parameters.
  • Step S243 Use the sound effect parameters configured when the reference electronic device runs the other application program as the sound effect parameters configured when the target application program is run.
  • the preferred sound effect parameters of the target application are consistent with the preferred sound effect parameters of other applications.
  • the preferred sound effect parameters of the target application and other applications may be considered as M1; when the target application and other applications are music playback In the case of a similar application, the preferred sound effect parameters of the target application and other applications may be considered as M2, etc. Therefore, in this embodiment, the reference electronic device may be configured when running the other applications.
  • the sound effect parameters serve as sound effect parameters configured when the target application is run.
  • the sound effect parameters configured by the reference electronic device when the other application program is run are obtained as the sound effect parameters configured by the reference electronic device when the target application program is run.
  • the number of applications is multiple, one other application may be randomly selected from multiple other applications, and the sound effect parameters configured by the reference electronic device when running the other applications may be obtained as the reference electronic device when running the The sound effect parameters configured when the target application is configured may also select multiple other applications and comprehensively refer to the sound effect parameters configured by the electronic device when running the multiple other applications, as a reference electronic device when running the target application Configured sound parameters, etc.
  • Step S250 Select at least one audio channel from the plurality of audio channels as a target audio channel based on the sound effect parameters.
  • the current electronic device is provided with multiple audio channels, and each of the multiple audio channels corresponds to a different audio processing algorithm.
  • the current electronic device is based on the existing architecture of the audio system. Add different audio channels for different scenes separately, where each audio channel refers to different sounds going through different channels.
  • the sound effect parameters are analyzed to obtain a sound type in the sound effect parameters, and at least one audio path is selected from the multiple audio paths as a target audio path according to the analyzed results.
  • the sound effect parameter includes only one type of sound
  • only one of the audio channels may be selected as the target audio channel; when the sound effect parameter 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 striking sounds, running sounds, gun sounds, etc., so that different sound effects are 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 different application programs.
  • algorithm 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.
  • Step S260 transmitting the output audio effect of the current 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 original audio data can be processed differently by transmitting the output audio effect of the current electronic device during the running of the target application program through the target audio channel, thereby obtaining the sound. Different output sound effects, better processing effect.
  • the sound effect adjustment method provided by another embodiment of the present application detects whether a current electronic device is running a target application program, and when the current electronic device is running a target application program, obtains the current position information of the current electronic device, and obtains a distance based on the current position information. For other electronic devices within the preset range of the current electronic device, determine the other electronic devices as reference electronic devices, obtain the sound effect parameters configured by the reference electronic device when running the target application, and select at least one of a plurality of audio channels based on the sound effect parameters. The audio channel is used as the target audio channel, and the output audio effect of the current 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.
  • this embodiment also obtains information based on the position information of the electronic device.
  • the reference electronic device is to improve the accuracy of the sound effect parameters by using the electronic device in a common environment with the current electronic device as the reference electronic device, and by setting multiple audio channels with different sound processing algorithms to facilitate the output sound effect. Tune Section.
  • 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 above electronic device.
  • the current electronic device is provided with multiple audio channels, and each of the multiple audio channels corresponds to a different audio processing algorithm.
  • the process shown in FIG. 6 will be described in detail below.
  • the method may specifically include the following steps:
  • Step S310 It is detected whether a target application is running on the current electronic device, wherein the target application can output audio when running.
  • step S310 For a detailed description of step S310, refer to step S110, and details are not described herein again.
  • Step S320 when the current electronic device runs the target application, determine the reference electronic device corresponding to the current electronic device according to a preset relationship table, where the preset relationship table includes the current electronic device and a reference Correspondence between electronic devices.
  • the electronic device establishes and stores a preset relationship table in advance, and the preset relationship table includes a corresponding relationship between the current electronic device and a reference electronic device, that is, the preset relationship table includes different current Different reference electronic devices corresponding to the electronic devices are shown in Table 2. Understandably, a current electronic device may correspond to one reference electronic device, or may correspond to multiple reference electronic devices, which is not limited herein.
  • the current electronic device and the reference electronic device can be manually associated by the user, such as through the same account information. For example, the current electronic device can be held by a child and the reference electronic device can be held by a parent; or the current electronic device It can be held by Party A, and the reference electronic equipment can be held by Party B. It is not limited here.
  • Step S330 Acquire a sound effect parameter configured by the reference electronic device when the target application is running.
  • Step S340 Select at least one audio channel from the plurality of audio channels as a target audio channel based on the sound effect parameters.
  • Step S350 transmitting an output sound effect of the current electronic device during the running of the target application program through the target audio path.
  • steps S330 to S350 please refer to steps S240 to S260, and details are not described herein again.
  • the sound effect adjustment method provided by another embodiment of the present application detects whether a current electronic device is running a target application, and when the current electronic device is running a target application, determining a reference electronic device corresponding to the current electronic device according to a preset relationship table,
  • the preset relationship table includes the correspondence between the current electronic device and the reference electronic device, obtains the sound effect parameters configured by the reference electronic device when running the target application, and selects at least one audio channel from a plurality of audio channels based on the sound effect parameters.
  • the target audio path the output audio effect of the electronic device during the running of the target application program is transmitted through the target audio path. Compared with the sound effect adjustment method shown in FIG.
  • this embodiment also obtains the current Establish an associated electronic device as a reference electronic device, to select a reference electronic device according to the user's wishes, to improve the applicability of the sound effect adjustment method, and to set up multiple audio channels with different audio processing algorithms to facilitate convenient and fast Output sound effects are adjusted.
  • 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 electronic device.
  • the following is a description of the block diagram shown in FIG. 7.
  • the sound effect adjustment device 200 includes a detection module 210, a determination module 220, an acquisition module 230, and an adjustment module 240, where:
  • the detection module 210 is configured to detect whether a target application is running on the current electronic device, where the target application can output audio when running.
  • a determining module 220 is configured to determine a reference electronic device corresponding to the current electronic device when the current electronic device runs the target application program. Further, the determination module 220 includes a location information acquisition sub-module and a determination sub-module, where:
  • a location information acquisition submodule is configured to obtain current location information of the current electronic device when the current electronic device is running the target application program.
  • a determining submodule configured to obtain other electronic devices within a preset range from the current electronic device based on the current position information, and determine the other electronic device as the reference electronic device. Further, when the number of the other electronic devices is multiple, the determining sub-module includes a determining unit, a determining unit, and a distance acquiring unit, wherein:
  • the determining unit is configured to determine whether the plurality of other electronic devices include an electronic device that is running the target application program.
  • a determining unit configured to determine the electronic device that is running the target application as the reference electronic device when the plurality of other electronic devices includes the electronic device that is running the target application.
  • the distance acquiring unit is configured to acquire an electronic device closest to the current electronic device among the multiple other electronic devices.
  • the determining unit is further configured to use an electronic device closest to the current electronic device as the reference electronic device.
  • the determining sub-module is further configured to determine the reference electronic device corresponding to the current electronic device according to a preset relationship table when the current electronic device is running the target application, and the preset relationship table Including the correspondence between the current electronic device and the reference electronic device.
  • the obtaining module 230 is configured to obtain a sound effect parameter configured by the reference electronic device when the target application is running. Further, the obtaining module 230 includes a type obtaining sub-module, a sound effect parameter obtaining sub-module, and a sound effect parameter determining sub-module, wherein:
  • a type acquisition submodule is configured to acquire a type of the target application when the reference electronic device has not run the target application.
  • a sound effect parameter acquisition sub-module configured to obtain other application programs consistent with the type of the target application program, and obtain sound effect parameters configured by the reference electronic device when running the other application programs;
  • a sound effect parameter determining submodule configured to use the sound effect parameters configured by the reference electronic device when running the other application program as the sound effect parameters configured when running the target application program.
  • An adjustment module 240 is configured to adjust an output sound effect of the current electronic device during the running of the target application based on the sound effect parameters. Further, the current electronic device is provided with multiple audio channels, and each of the multiple audio channels corresponds to an unused audio processing algorithm.
  • the adjustment module 240 includes a selection sub-module and a transmission sub-module. among them:
  • a selection sub-module is configured to select at least one audio path from the multiple audio paths as a target audio path based on the sound effect parameters.
  • a transmission sub-module for transmitting an output sound effect of the current electronic device during the running of the target application program through the target audio path.
  • the coupling between the modules may be electrical, mechanical, or other forms of coupling.
  • each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist separately physically, or two or more modules may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or software functional modules.
  • the sound effect adjustment device includes a detection module, a determination module, an acquisition module, and a jump module, wherein the detection module is used to detect whether a current electronic device is running a target application program, and the determination module is used when the current electronic device is When the target application is running, a reference electronic device corresponding to the current electronic device is determined, and the obtaining module is configured to obtain a sound effect parameter configured by the reference electronic device when the target application is running, and the adjusting module is configured based on The sound effect parameter adjusts the output sound effect of the current electronic device during the running of the target application program, thereby adjusting the output sound effect of the current electronic device according to the sound effect parameters of other electronic devices that have a corresponding relationship with the current electronic device, thereby achieving fast Automatically and accurately configure the output sound effect of the electronic device to improve the effect of the output sound 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 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. 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 detect whether the current electronic device is running a target application program, where the target application program can output audio when running, When the target application is running, determine the reference electronic device corresponding to the current electronic device, obtain the sound effect parameters configured by the reference electronic device when running the target application, and adjust the current electronic device's Output sound effects, so as to adjust the output sound effects of the current electronic device according to the sound effect parameters of other electronic devices corresponding to the current electronic device, realize the rapid, automatic and accurate configuration of the output sound effects of the electronic device, and improve the effect of the output sound effect and the user experience .

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

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

Description

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

Claims (20)

  1. 一种音效调整方法,其特征在于,应用于电子设备,所述方法包括:
    检测当前电子设备是否运行有目标应用程序,其中,所述目标应用程序在运行时可输出音频;
    当所述当前电子设备运行有所述目标应用程序时,确定与所述当前电子设备对应的参考电子设备;
    获取所述参考电子设备在运行所述目标应用程序时配置的音效参数;
    基于所述音效参数调整所述当前电子设备在所述目标应用程序运行过程中的输出音效。
  2. 根据权利要求1所述的方法,其特征在于,所述当前电子设备设置有多条音频通路,所述多条音频通路中的每条音频通路均对应不同的音效处理算法,所述基于所述音效参数调整所述当前电子设备在所述目标应用程序运行过程中的输出音效,包括:
    基于所述音效参数从所述多条音频通路中选择至少一条音频通路作为目标音频通路;
    通过所述目标音频通路传输所述当前电子设备在所述目标应用程序运行过程中的输出音效。
  3. 根据权利要求1或2所述的方法,其特征在于,所述当所述当前电子设备运行有所述目标应用程序时,确定与所述当前电子设备对应的参考电子设备,包括:
    当所述当前电子设备运行有所述目标应用程序时,获取所述当前电子设备的当前位置信息;
    基于所述当前位置信息获取距所述当前电子设备预设范围内的其他电子设备,将所述其他电子设备确定为所述参考电子设备。
  4. 根据权利要求3所述的方法,其特征在于,当所述其他电子设备的数量为多个时,所述将所述其他电子设备确定为所述参考电子设备,包括:
    判断多个其他电子设备中是否包括正在运行所述目标应用程序的电子设备;
    当所述多个其他电子设备中包括正在运行所述目标应用程序的电子设备时,将正在运行所述目标应用程序的电子设备确定为所述参考电子设备。
  5. 根据权利要求3所述的方法,其特征在于,当所述其他电子设备的数量为多个时,所述将所述其他电子设备确定为所述参考电子设备,包括:
    获取多个其他电子设备中距所述当前电子设备最近的电子设备;
    将距所述当前电子设备最近的电子设备作为所述参考电子设备。
  6. 根据权利要求3-5任一项所述的方法,其特征在于,所述基于所述当前位置信息获取距所述当前电子设备预设范围内的其他电子设备,将所述其他电子设备确定为所述参考电子设备,包括:
    获取所述当前位置的搜索次数;
    当所述搜索次数低于预设次数时,确定第一预设范围,并获取距所述当前电子设备第一预设范围内的其他电子设备,将所述其他电子设备确定为所述参考电子设备;
    当所述搜索次数高于预设次数时,确定第二预设范围,并获取距所述当前电子设备第二预设范围内的其他电子设备,将所述其他电子设备确定为所述参考电子设备,其中,所述第一预设范围大于所述第一预设范围。
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述当所述当前电子设备运行有所述目标应用程序时,确定与所述当前电子设备对应的参考电子设备,包括:
    当所述当前电子设备运行有所述目标应用程序时,根据预设关系表确定所述当前电子设备对应的所述参考电子设备,所述预设关系表中包括当前电子设备和参考电子设备之间的对应关系。
  8. 根据权利要求7所述的方法,其特征在于,所述当前电子设备与所述参考电子设备 通过同一账号信息关联。
  9. 根据权利要求1-8任一项所述的方法,其特征在于,所述当所述当前电子设备运行有所述目标应用程序时,确定与所述当前电子设备对应的参考电子设备,包括:
    当所述当前电子设备运行有所述目标应用程序时,检测所述当前电子设备是否有音频输出;
    当检测到所述当前电子设备有音频输出时,确定与所述当前电子设备对应的参考电子设备。
  10. 根据权利要求1-9任一项所述的方法,其特征在于,所述获取所述参考电子设备在运行所述目标应用程序时配置的音效参数,包括:
    判断所述参考电子设备是否正在运行所述目标应用程序;
    当所述参考电子设备正在运行所述目标应用程序时,获取所述参考电子设备当前配置的音效参数。
  11. 根据权利要求10所述的方法,其特征在于,所述方法还包括:
    当所述参考电子设备没有正在运行所述目标应用程序时,获取所述参考电子设备上一次运行所述目标应用程序时配置的音效参数。
  12. 根据权利要求1-9任一项所述的方法,其特征在于,所述获取所述参考电子设备在运行所述目标应用程序时配置的音效参数,包括:
    获取所述参考电子设备运行所述目标应用程序时所配置的历史音效参数;
    基于所述历史音效参数获取所述参考电子设备使用频率最高的音效参数,或所述参考电子设备配置的音效参数的平均值。
  13. 根据权利要求12所述的方法,其特征在于,所述获取所述电子设备运行所述目标应用程序时所配置的历史音效参数,包括:
    获取所述电子设备在运行所述目标应用程序的预设次数内所配置的音效参数;或
    获取所述电子设备在运行所述目标应用程序的预设时间内所配置的音效参数。
  14. 根据权利要求1-13任一项所述的方法,其特征在于,所述方法还包括:
    当所述参考电子设备没有运行过所述目标应用程序时,获取所述目标应用程序的类型;
    获取与所述目标应用程序的类型一致的其他应用程序,并获取所述参考电子设备在运行所述其他应用程序时配置的音效参数;
    将所述参考电子设备在运行所述其他应用程序时配置的音效参数作为运行所述目标应用程序时配置的音效参数。
  15. 根据权利要求1-14任一项所述的方法,其特征在于,所述目标应用程序在运行时可输出音频数据和图像数据。
  16. 根据权利要求1-14任一项所述的方法,其特征在于,所述目标应用程序包括音乐播放类应用程序、视频播放类应用程序、通话类应用程序以及游戏类应用程序中的至少一种。
  17. 一种音效调整装置,其特征在于,应用于电子设备,所述装置包括:
    检测模块,用于检测当前电子设备是否运行有目标应用程序,其中,所述目标应用程序在运行时可输出音频;
    确定模块,用于当所述当前电子设备运行有所述目标应用程序时,确定与所述当前电子设备对应的参考电子设备;
    获取模块,用于获取所述参考电子设备在运行所述目标应用程序时配置的音效参数;
    调整模块,用于基于所述音效参数调整所述当前电子设备在所述目标应用程序运行过程中的输出音效。
  18. 根据权利要求17所述的装置,其特征在于,所述当前电子设备设置有多条音频通路,所述多条音频通路中的每条音频通路均对应不同的音效处理算法,所述调整模块包括:
    选择子模块,用于基于所述音效参数从所述多条音频通路中选择至少一条音频通路作为目标音频通路;
    传输子模块,用于通过所述目标音频通路传输所述当前电子设备在所述目标应用程序运行过程中的输出音效。
  19. 一种电子设备,其特征在于,包括存储器和处理器,所述存储器耦接到所述处理器,所述存储器存储指令,当所述指令由所述处理器执行时所述处理器执行如权利要求1-16任一项所述的方法。
  20. 一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1-16任一项所述的方法。
PCT/CN2019/095139 2018-09-04 2019-07-08 音效调整方法、装置、电子设备以及存储介质 WO2020048220A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP19857317.2A EP3846020A4 (en) 2018-09-04 2019-07-08 METHOD AND DEVICE FOR ADJUSTING SOUND EFFECTS, ELECTRONIC DEVICE AND STORAGE MEDIUM
US17/191,339 US11474775B2 (en) 2018-09-04 2021-03-03 Sound effect adjustment method, device, electronic device and storage medium

Applications Claiming Priority (2)

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

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/191,339 Continuation-In-Part US11474775B2 (en) 2018-09-04 2021-03-03 Sound effect adjustment method, device, electronic device and storage medium

Publications (1)

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

Family

ID=64865101

Family Applications (1)

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

Country Status (4)

Country Link
US (1) US11474775B2 (zh)
EP (1) EP3846020A4 (zh)
CN (1) CN109101216B (zh)
WO (1) WO2020048220A1 (zh)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109101216B (zh) * 2018-09-04 2020-09-22 Oppo广东移动通信有限公司 音效调整方法、装置、电子设备以及存储介质
CN110234097A (zh) * 2019-06-11 2019-09-13 广州酷狗计算机科技有限公司 音效推荐方法、装置和计算机可读存储介质
US20210090558A1 (en) * 2019-09-24 2021-03-25 Audio Analytic Ltd Controlling a user interface
CN112188342A (zh) * 2020-09-25 2021-01-05 江苏紫米电子技术有限公司 均衡参数确定方法、装置、电子设备和存储介质
CN112291660B (zh) * 2020-10-23 2024-07-09 江苏紫米电子技术有限公司 均衡器切换方法、装置、设备及存储介质
CN114666631B (zh) * 2020-12-23 2024-04-26 华为技术有限公司 音效调节方法及电子设备
CN112650650B (zh) * 2020-12-31 2024-04-23 联想(北京)有限公司 一种控制方法及装置
CN114979347B (zh) * 2021-02-21 2023-05-12 荣耀终端有限公司 播放音频的方法、电子设备及芯片系统
KR20220123862A (ko) * 2021-03-02 2022-09-13 현대자동차주식회사 차량 및 그 제어 방법

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2150078A2 (en) * 2008-08-01 2010-02-03 Vestel Elektronik Sanayi ve Ticaret A.S. Adjusting the emission of sound beams in a sound projector
CN106201418A (zh) * 2016-06-27 2016-12-07 捷开通讯(深圳)有限公司 智能移动终端的音效调整方法以及智能移动终端
CN108055403A (zh) * 2017-12-21 2018-05-18 努比亚技术有限公司 一种音效调整方法、终端及计算机可读存储介质
CN109101216A (zh) * 2018-09-04 2018-12-28 Oppo广东移动通信有限公司 音效调整方法、装置、电子设备以及存储介质

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10038957B2 (en) * 2013-03-19 2018-07-31 Nokia Technologies Oy Audio mixing based upon playing device location
CN103458019B (zh) * 2013-08-26 2018-11-16 深圳Tcl新技术有限公司 一种终端间运行参数共享的方法、服务器和终端
CN104199632B (zh) * 2014-08-04 2020-06-05 百度在线网络技术(北京)有限公司 一种用于确定声效设置的方法和装置
KR102287943B1 (ko) * 2014-10-14 2021-08-09 삼성전자주식회사 전자 기기, 상기 전자 기기의 음량 조절 방법 및 상기 전자 기기의 제어 방법
CN104883642B (zh) 2015-03-27 2018-09-25 成都上生活网络科技有限公司 一种音效调节方法
US10198242B2 (en) * 2015-04-14 2019-02-05 Motorola Solutions, Inc. Method and apparatus for a volume of a device
US20170148438A1 (en) * 2015-11-20 2017-05-25 Conexant Systems, Inc. Input/output mode control for audio processing
US9703523B1 (en) * 2016-01-05 2017-07-11 International Business Machines Corporation Adjusting audio volume based on a size of a display area
CN106095386A (zh) * 2016-06-16 2016-11-09 广东欧珀移动通信有限公司 一种音效参数的设置方法及移动终端
US20190179605A1 (en) * 2016-08-29 2019-06-13 Zound Industries International Ab Audio device and a system of audio devices
CN106534484A (zh) * 2016-10-10 2017-03-22 上海斐讯数据通信技术有限公司 调节移动设备音量的方法和装置
CN108462895A (zh) * 2017-02-21 2018-08-28 阿里巴巴集团控股有限公司 音效处理方法、装置和机器可读介质
CN107819958A (zh) * 2017-11-30 2018-03-20 河南浩德科技有限公司 音量调整方法、装置、移动终端及计算机存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2150078A2 (en) * 2008-08-01 2010-02-03 Vestel Elektronik Sanayi ve Ticaret A.S. Adjusting the emission of sound beams in a sound projector
CN106201418A (zh) * 2016-06-27 2016-12-07 捷开通讯(深圳)有限公司 智能移动终端的音效调整方法以及智能移动终端
CN108055403A (zh) * 2017-12-21 2018-05-18 努比亚技术有限公司 一种音效调整方法、终端及计算机可读存储介质
CN109101216A (zh) * 2018-09-04 2018-12-28 Oppo广东移动通信有限公司 音效调整方法、装置、电子设备以及存储介质

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3846020A4 *

Also Published As

Publication number Publication date
CN109101216B (zh) 2020-09-22
US20210286586A1 (en) 2021-09-16
US11474775B2 (en) 2022-10-18
EP3846020A4 (en) 2021-10-27
EP3846020A1 (en) 2021-07-07
CN109101216A (zh) 2018-12-28

Similar Documents

Publication Publication Date Title
WO2020048220A1 (zh) 音效调整方法、装置、电子设备以及存储介质
WO2020048222A1 (zh) 音效调整方法、装置、电子设备以及存储介质
JP6489563B2 (ja) 音量調節方法、システム、デバイス及びプログラム
US9591071B2 (en) User location-based management of content presentation
CN109284080B (zh) 音效调整方法、装置、电子设备以及存储介质
WO2015143875A1 (zh) 内容呈现方法,内容呈现方式的推送方法和智能终端
JP2019518985A (ja) 分散したマイクロホンからの音声の処理
US11126389B2 (en) Controlling visual indicators in an audio responsive electronic device, and capturing and providing audio using an API, by native and non-native computing devices and services
WO2020048217A1 (zh) 音效调整方法、装置、电子设备以及存储介质
US9852773B1 (en) Systems and methods for activating subtitles
US20150358767A1 (en) Intelligent device connection for wireless media in an ad hoc acoustic network
US20170078305A1 (en) System and Method for Controlling a Rendering Device Based Upon Detected User Proximity
CN109286772B (zh) 音效调整方法、装置、电子设备以及存储介质
CA2996136A1 (en) Collaborative audio processing
WO2020048209A1 (zh) 音效处理方法、装置、电子设备及存储介质
CN109240641B (zh) 音效调整方法、装置、电子设备以及存储介质
US11601757B2 (en) Audio input prioritization
JP7456387B2 (ja) 情報処理装置、及び情報処理方法
WO2017166686A1 (zh) 外接扬声器切换方法及装置
CN113676593B (zh) 视频录制方法、装置、电子设备及存储介质
KR102204488B1 (ko) 통신 장치
CN113885827A (zh) 音频播放方法、装置、电子设备、计算机可读介质及产品
CN113660599A (zh) 扬声器的控制方法、装置、移动终端及存储介质
CN110660389A (zh) 语音响应方法、装置、系统及设备
US11917386B2 (en) Estimating user location in a system including smart audio devices

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2019857317

Country of ref document: EP

Effective date: 20210329