WO2020048209A1 - Sound effect processing method and apparatus, and electronic device and storage medium - Google Patents

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

Info

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

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/54Controlling the output signals based on the game progress involving acoustic signals, e.g. for simulating revolutions per minute [RPM] dependent engine sounds in a driving game or reverberation against a virtual wall

Definitions

  • the present application relates to the technical field of electronic devices, and more particularly, to a sound effect processing method, device, electronic device, and storage medium.
  • this application proposes a sound effect processing method, device, electronic device, and storage medium to achieve improvement of the above problems.
  • the present application provides a sound effect processing method applied to an electronic device.
  • the method includes: obtaining a current audio output scene, where the audio output scene corresponds to multiple audio output channels, and each of the audio outputs The types of audio channels used for transmission are different; from the multiple audio output channels, a target audio output channel corresponding to the audio output scene is determined, and the target audio output channels are sound effects that need to be performed in the multiple audio output channels.
  • Enhanced audio output path enhancing the sound effect of audio transmitted by the target audio output path.
  • the present application provides a sound effect processing device that runs on an electronic device.
  • the device includes: an audio scene acquisition unit configured to obtain a current audio output scene, where the audio output scene corresponds to multiple audio output channels. Each audio output channel has a different audio type for transmission; a target determination unit is configured to determine, from the multiple audio output channels, a target audio output channel corresponding to the audio output scene, and the target audio output The channel is an audio output channel that needs to be enhanced in the multiple audio output channels; a sound effect processing unit is used to enhance the audio effect of the audio transmitted by the target audio output channel.
  • the present application provides an electronic device including one or more processors and a memory; one or more programs are stored in the memory and configured to be executed by the one or more processors, The one or more programs are configured to perform the method described above.
  • a computer-readable storage medium provided in the present application, wherein the computer-readable storage medium stores program code, and the method is executed when the program code is executed by a processor.
  • FIG. 1 shows a flowchart of a sound effect processing method provided by the present application.
  • FIG. 2 shows a schematic diagram of another interface proposed by the present application.
  • FIG. 3 is a schematic diagram of still another interface proposed by the present application.
  • FIG. 4 shows a flowchart of another sound effect processing method provided by the present application.
  • FIG. 5 shows a schematic diagram of an interface proposed by the present application.
  • FIG. 6 shows a schematic diagram of a network environment proposed by the present application.
  • FIG. 7 shows a structural block diagram of a sound effect processing device proposed in the present application.
  • FIG. 8 shows a structural block diagram of another sound effect processing device proposed in the present application.
  • FIG. 9 shows a structural block diagram of an electronic device proposed by the present application.
  • FIG. 10 is a storage unit for storing or carrying a program code for implementing a sound effect processing method according to an embodiment of the present application.
  • Sound effects can be a ubiquitous sound in our lives. Sound effects such as footsteps when walking, squeaking when opening a door, and door opening and closing of an elevator penetrate into every corner of our lives.
  • sound effects are everywhere in electronic devices. For example, when the electronic device is started, it may be accompanied by a startup sound effect, when the electronic device is turned off, it may be accompanied by a shutdown sound effect, and when the power of the electronic device is insufficient, the electronic device may also emit an alarm sound effect.
  • Game sound effects refer to effect music played when a specific behavior or specific operation occurs in a video game. Such as the sound of a bullet when it is launched, the scream of a monster when it "dies”, and the "click” sound when a button is clicked. It is precisely because of the existence of game sound effects that users can have a more realistic experience when playing games.
  • the inventors have found that the sound effects of some audio output scenes are usually enhanced in electronic devices to improve the user experience.
  • the current sound enhancement methods still lack some flexibility, which affects the effects of sound enhancement and also results in a poor user experience. Therefore, the inventor proposes a sound effect processing method, device, electronic device, and storage medium that can improve the flexibility of sound effect enhancement and improve the user experience in this application.
  • a sound effect processing method provided in this application is applied to an electronic device, and the method includes:
  • Step S110 Acquire a current audio output scene, where the audio output scene corresponds to multiple audio output channels, and each of the audio output channels has a different audio type for transmission.
  • audio output may exist in multiple scenarios.
  • a game interface scene is displayed.
  • audio outputs such as game sound effects, game background music, or button sounds.
  • the game sound effects include the sound effects of game characters, the sound effects of the voice of the game characters, and the sound effects of other NPC (Non Player and Character) characters.
  • an audio playback scene is displayed, and an environmental sound effect exists in the audio playback scene.
  • a video screen playing scene is displayed, and in the video screen playing scene, there are sound effects such as human voices and environmental sound effects.
  • audio output scenario is only exemplary and does not limit the present application.
  • the application may also include audio output scenes other than the audio output scenes of the above examples.
  • the electronic device can determine the current audio output scene in multiple ways.
  • the electronic device may determine a current audio output scene by querying a currently running application program.
  • the electronic device is an Android operating system
  • the name of the application currently running in the foreground can be obtained by executing the getRunningTasks method of the ActivityManager.
  • the electronic device can also obtain a list of programs used by the user through UsageStatsManager, and identify the most recently used application recorded in the list as the current foreground application.
  • the electronic device After the electronic device obtains the currently running application program, it can determine the current audio output scene according to the type of the currently running application program. For example, if the application is a game application, it may be determined that the current audio output scene is a game interface scene. If the application is a music playback application, it can be determined that the current audio output scene is a music playback scene. If the application is a video application, it can be determined that the current audio output scene is a video playback scene.
  • the audio output scene usually includes one or more audio types that need to be output.
  • audio types such as a game interface scene
  • different audio output channels can be configured for audio of different audio types, so that the audio output scene corresponds to multiple audio output channels, and each of the audio output channels is used to transmit audio. Different types.
  • Step S120 From among the multiple audio output channels, determine a target audio output channel corresponding to the audio output scene, and the target audio output channel is an audio output channel among the multiple audio output channels that requires sound enhancement.
  • the audio output from all audio output channels is enhanced, part of the audio may not be highlighted, and the user's audiovisual effect may be poor.
  • the types of audio included include audio output such as game sound effects, game background music, or button sounds.
  • types of audio such as game sound effects, game background music, or key sound are output through different audio output channels, if the sound effects of game sound effects, game background music, or key sound are all enhanced at the same time, it may be Causes a messy sound.
  • a target audio output channel corresponding to the audio output scene may be determined from the multiple audio output channels, so that Only the audio transmitted in the target audio output path is enhanced.
  • the corresponding target audio output channels are different.
  • the action sound output path among the multiple audio output paths is determined as the target audio output path.
  • a game interface scene there may be an action of a game user walking in the scene.
  • the game user of the electronic device needs to determine other situations through the situation of other game users walking in the game interface scene. The position of the game user, taking measures to capture or kill other game users. Then in this case, the situation of other game users walking in the game interface scene can be judged by the action sound effect. Therefore, the case where the action sound effect output path among the multiple audio output paths is determined as the target audio output path Next, the action sound effect output in the audio output path can be enhanced, thereby helping users to clearly or quickly recognize the actions of other game users.
  • the motion sound effect may include motion information and phase information.
  • the motion information is used to identify the type of character movement in the game
  • the phase information is used to identify the direction in which the action is generated. For example, when the user walks in the game, there will be a sound of " ⁇ ", and when the user hears the sound of " ⁇ ", it can be determined that other game users are walking.
  • the phase information corresponding to the sound of the “ ⁇ ” can enable the user of the electronic device not only to judge that other game users are walking, but also to further determine the direction in which other game users are walking and how far they are from themselves.
  • a character sound output path among the plurality of audio output paths is determined as a target audio output path. If the current audio output scene is a video playback scene, a background music output path among the multiple audio output paths is determined as a target audio output path.
  • the target audio output path can also be freely selected by the user through a manual mode.
  • the audio control control may be displayed in an interface corresponding to the audio output scene displayed by the electronic device.
  • the electronic device may display a control interface, and the control interface may display a control interface. Controls for the user to adjust the target audio output path.
  • Different audio control controls correspond to different target audio output paths. It can be understood that, in order to facilitate user adjustment, the channel may be replaced by words representing effects in the control interface, so that the user can understand the effects corresponding to different options.
  • the audio output scene is the illustrated game interface scene
  • the game interface scene corresponds to a game interface 99
  • audio control controls 98 are displayed in the game interface 99.
  • a control interface 97 can be triggered to be suspended in the interface 99.
  • a sound effect selection control 96 is displayed in the control interface 97, so that a user can select a desired enhanced effect by operating the sound effect selection control 96, so that the electronic device determines a target audio output path.
  • the corresponding determined target audio output path is an audio output path whose transmitted audio type is a game interface scene.
  • Step S130 Enhance the audio effect of the audio transmitted by the target audio output path.
  • the effect of the sound effect of the audio transmitted by the target audio output path can be made more prominent in order to improve the user experience.
  • the motion sound effect may include motion information and phase information.
  • the step of enhancing the sound effect of the audio transmitted by the target audio output path may include: detecting whether the audio transmitted by the target audio output path has phase information; if phase information is detected, then A sound effect of audio transmitted on the target audio output path may be enhanced according to the phase information.
  • phase difference in sounds containing more low-frequency components.
  • the human head still has a certain masking effect on the sound to produce "tone color difference”. Then, the foregoing phase information can be understood as the “intensity difference”, “time difference”, or “tone color difference” of the sound.
  • the audio content of the left channel and the audio content of the right channel can be included in the action sound output path. Then, as a way, if phase information is detected, enhancing the sound effect of the audio transmitted on the target audio output path according to the phase information may include:
  • the difference of the parameters of the audio content transmitted by the left channel and the right channel in the action sound effect output path is enhanced to enhance the sound effect of the action sound effect transmitted by the target audio output path.
  • the audio content transmitted by the left and right channels included is the same.
  • both the left and right channels transmit the sound effect " ⁇ ".
  • the parameters corresponding to the audio content transmitted by the left and right channels included in the audio output path for transmitting the motion sound effect will be different.
  • the parameters may include sound intensity, sound time, and sound color.
  • the " ⁇ ” transmitted by the left channel may be transmitted The sound intensity of the sound is set higher than the sound intensity of the sound of " ⁇ ” transmitted in the right channel.
  • the sound time of the sound of “ ⁇ ” transmitted on the left channel may be earlier in time than the sound time of the sound of “ ⁇ ” transmitted on the right channel.
  • enhancing the sound effect of the action sound effect transmitted by the target audio output path can be achieved by increasing the difference between the sound intensity of the sound transmitted from the left channel and the sound intensity of the sound transmitted from the right channel. This can be achieved by increasing the time difference between the sound time of the sound transmitted by the left channel and the sound time of the sound transmitted by the right channel.
  • the audio output device is a speaker or a speaker provided by an electronic device
  • the sound played by the speaker and the speaker usually needs to propagate a certain distance in the air before reaching the user's ear, so in order to facilitate this situation
  • the difference between the parameters corresponding to the audio content transmitted by the left and right channels can be increased by a first threshold (the first threshold here is greater than the second involved in the subsequent Threshold).
  • the audio output device is an audio output device such as a headset that can be directly worn in the user's ear
  • the sound played is usually directly transmitted to the user's ear, and does not need to travel a distance in the air
  • the user can more sensitively identify the difference between the sound of the left channel (played by headphones worn in the left ear) and the sound of the right channel (played by headphones worn in the right ear).
  • the difference between the parameters corresponding to the audio content transmitted by the left and right channels may be increased by a second threshold, where the second threshold is smaller than the aforementioned first threshold.
  • the degree of difference between the parameters corresponding to the audio content transmitted by the left channel and the right channel can be flexibly determined according to the current audio output device of the electronic device, so that the maximum degree of While ensuring sound enhancement, save power.
  • the electronic device can also determine the difference between the parameters corresponding to the audio content transmitted by the channels in various ways.
  • the headset when the audio output device is a headset, optionally, the headset includes a left headset and a right headset. If it is detected that the left headset is worn on the right ear and the right headset is worn on the left ear, then a guarantee is detected. In the case of the " ⁇ " walking sound on the left, the difference between the parameters corresponding to the audio content transmitted by the left and right channels can be increased by increasing the parameters of the right channel; if In the case where a walking sound of " ⁇ " with a guaranteed right is detected, the parameters of the left channel and the right channel can be increased by increasing the parameters of the left channel by increasing the parameters of the left channel. The difference in value, thereby avoiding the wrong direction judgment caused by the user turning the headset back.
  • the parameter corresponding to the audio content transmitted by the left channel may be enhanced to achieve enhancement.
  • the difference between the parameters corresponding to the audio content transmitted by the left channel and the right channel can also be achieved by reducing the value of the parameter corresponding to the audio content transmitted by the right channel. In this manner, this application does not specifically limit.
  • a method for processing sound effects provided by this application is to obtain a current audio output scene.
  • the audio output scene corresponds to multiple audio output channels, and each of the audio output channels is used to transmit different audio, from Among the plurality of audio output channels, a target audio output channel corresponding to the audio output scene is determined, and then the audio effect of the audio transmitted by the target audio output channel is enhanced, so that the electronic device can remove the audio from the audio according to the current audio output scene.
  • the output scene corresponds to multiple audio output channels for selective audio enhancement, which improves the flexibility of audio effects processing, which in turn can improve the user experience.
  • a sound effect processing method provided in this application is applied to an electronic device, and the method includes:
  • Step S210 Acquire a current audio output scene, where the audio output scene corresponds to multiple audio output channels, and each of the audio output channels has a different audio type for transmission.
  • Step S220 Acquire an associated electronic device associated with the electronic device.
  • the electronic device may obtain an associated user account associated with a user account bound to the electronic device; obtain a reference associated electronic device bound with the associated user account Device; selecting a device in the same local area network as the electronic device from the reference associated electronic device as the associated electronic device.
  • the electronic device 95 and the electronic device 94 access the server 90 through the same wireless access point 92, and the electronic device 93 accesses through the wireless access point 91.
  • server 90 To server 90.
  • the electronic device 95 can identify the second user account and the third user account as associated user accounts associated with the first user account to which it is bound. Then, it can be identified that the electronic device 94 bound to the second user account and the electronic device 95 bound to the third user account are reference-related electronic devices associated with them.
  • the electronic device may upload its own local area network IP address or its own MAC address to the server after establishing a communication connection with the server. In order to serve as the device identification of the electronic device.
  • the server when the server sends the associated user account associated with the user account to which it is bound to each electronic device, the server sends the device identifier of the electronic device bound to the associated user account to each electronic device. device. If the device identification is a local area network IP address, the electronic device can identify whether there is a device in the same local area network as the electronic device according to the received local area network IP address.
  • Step S230 Obtain a target audio output path determined by the associated electronic device when the audio output scene is displayed.
  • Step S240 Determine a target audio output channel corresponding to the audio output scene according to a target audio output channel determined by the associated electronic device, where the target audio output channel is an audio that needs to be enhanced in the multiple audio output channels. Output path.
  • the electronic device can keep the target audio path determined by itself and the target audio path determined by the associated electronic device the same, so as to achieve the same sound effect enhancement effect for users of electronic devices in the same local area network.
  • the target audio path determined by the electronic device and the associated electronic device is different.
  • the user interface and background music of the same group are the same.
  • the electronic device can determine that these users are closer to each other, so as a way to save power In this way, the electronic device can enhance the action sound effect, and the associated electronic device can enhance the background music, and vice versa. Or, if there is another associated electronic device, the other associated electronic device can be used to enhance the character voice. Therefore, without the need for the electronic device to perform sound enhancement on multiple audio output channels, users of the electronic device can still experience the effects brought by the simultaneous enhancement of multiple audio output channels.
  • the character A is a character corresponding to the user account bound to the electronic device
  • the character B is a character corresponding to the user account bound to the associated electronic device.
  • both character A and character B are currently in the same game scene, then their corresponding sound effects and background music can be the same.
  • the electronic device can be enhanced with the action sound effect
  • the associated electronic device can be enhanced with the background music.
  • Step S250 Enhance the sound effect of the audio transmitted by the target audio output path.
  • the associated electronic devices may be disconnected from the wireless access point for some reason, or the associated electronic devices may be disconnected from the data interaction with the server. It may also cause the associated electronic device to fail to synchronize the display interface with the electronic device, which may also cause the audio enhancement effect to fail to synchronize.
  • the target audio output determined according to the associated electronic device is After the step of determining a target audio output path corresponding to the audio output scene, the method further includes: if it is detected that the status information of the associated electronic device meets a preset condition, adding the target audio path determined by the electronic device to the target audio path. The target audio output path determined by the associated electronic device.
  • the preset condition is used to indicate that the associated electronic device cannot perform interface synchronous display with the electronic device.
  • the network environment shown in FIG. 6 is used as an example for description. If the electronic device 95 recognizes that the electronic device 94 is an associated electronic device, and if the target audio output path determined by the electronic device 95 is an audio path of an output sound effect type, and the target audio output path determined by the electronic device 94 is an output background music type Audio path. Then when the electronic device 95 detects that the electronic device 94 meets the above preset conditions, in addition to continuing to determine the audio path of the output sound effect type as the target audio path, it also determines the audio path of the output background music type as a target audio path. , So that both background music and sound effects are enhanced. As a result, the electronic device can flexibly adjust the target audio communication network when it detects that the associated electronic device cannot display the picture synchronously with itself, so as to improve the user experience.
  • the method includes:
  • the electronic device determines that the associated electronic device releases the association relationship with the electronic device.
  • the electronic device receives the power alarm prompt information of the associated electronic device sent by the server, it is determined that the power of the associated electronic device is lower than a set value.
  • the server sends a prompt message to the electronic device when the network segment corresponding to the local area network IP address of the previously associated electronic device changes, it is determined that the associated electronic device has switched to a wireless access hotspot.
  • the determined target audio output path is adjusted according to the foregoing principles, and may also be adjusted according to the audio output situation of the associated electronic device or other parameters.
  • the target audio output path may be adjusted according to the foregoing manner. For example, if the power of the associated electronic device is lower than the set value, in order to reduce the power consumption of the associated electronic device, the electronic device can enhance the playback of the audio originally enhanced by the associated electronic device. Alternatively, if it is detected that the associated electronic device has turned off the audio output or switched the audio output to the headphone mode, the target audio output path may also be adjusted according to the foregoing manner.
  • the electronic device or associated electronic device may upload its own audio output status, network status, or power status at a preset frequency after the data communication is established with the server, so that the server outputs the audio output uploaded by the electronic device. Forward the status, network status, or power status to other associated electronic devices, or forward the audio output status, network status, or power status uploaded by the associated electronic device to the electronic device.
  • a sound effect processing method provided by the present application is obtained by acquiring a current audio output scene, and in a case where the audio output scene corresponds to multiple audio output channels, and each of the audio output channels is used to transmit different audio,
  • the associated electronic device associated with the electronic device obtains the target audio path determined by the associated electronic device, and then determines the target corresponding to the audio output scene from the multiple audio output channels according to the target audio path determined by the associated electronic device.
  • the audio output channel further enhances the audio effect of the audio transmitted by the target audio output channel, so that the electronic device can selectively enhance the sound effect from multiple audio output channels corresponding to the audio output scene according to the current audio output scene.
  • the flexibility of sound effects processing can further improve the user experience.
  • this application provides a sound effect processing device 300 that runs on an electronic device.
  • the device 300 includes: an audio scene acquisition unit 310, a target determination unit 320, and a sound effect processing unit 330.
  • the audio scene obtaining unit 310 is configured to obtain a current audio output scene, where the audio output scene corresponds to multiple audio output channels, and each of the audio output channels is used to transmit different audio types.
  • a target determining unit 320 is configured to determine, from the multiple audio output channels, a target audio output channel corresponding to the audio output scene, where the target audio output channel is one of the multiple audio output channels that needs to be enhanced by sound effects. Audio output path.
  • the target determination unit 320 is specifically configured to determine the action sound output path among the multiple audio output paths as the target audio output path if the audio scene acquisition unit 310 acquires the audio output scene as a game interface scene. .
  • the target determining unit 320 is further configured to determine, if the audio scene acquiring unit 310 obtains the current audio output scene as an audio scene, a character sound output path among the multiple audio output paths as the target audio. An output path; or, if the audio scene acquisition unit 310 acquires that the current audio output scene is a video playback scene, determine the background music output path among the multiple audio output paths as the target audio output path.
  • the sound effect processing unit 330 is configured to enhance the sound effect of the audio transmitted by the target audio output path.
  • the action sound output path among the multiple audio output paths is determined as the target audio output path.
  • the sound effect processing unit 330 is specifically configured to detect whether the audio transmitted by the target audio output path has phase information; if phase information is detected, enhance the transmission of the target audio output path according to the phase information. Audio sound effects.
  • a sound effect processing device obtains a current audio output scene.
  • the audio output scene corresponds to multiple audio output channels, and each of the audio output channels is used to transmit different audio
  • a target audio output channel corresponding to the audio output scene is determined, and then the audio effect of the audio transmitted by the target audio output channel is enhanced, so that the electronic device can remove the audio from the audio according to the current audio output scene.
  • the output scene corresponds to multiple audio output channels for selective audio enhancement, which improves the flexibility of audio effects processing, which in turn can improve the user experience.
  • this application provides a sound effect processing apparatus 400 that runs on an electronic device.
  • the apparatus 400 includes: an audio scene acquisition unit 410, an associated device acquisition unit 420, an associated path acquisition unit 430, a target determination unit 440, and Sound effect processing unit 450.
  • the audio scene obtaining unit 410 is configured to obtain a current audio output scene, where the audio output scene corresponds to multiple audio output channels, and each of the audio output channels is used to transmit different audio types.
  • An associated device obtaining unit 420 is configured to obtain an associated electronic device associated with the electronic device.
  • the associated device obtaining unit 420 is specifically configured to obtain an associated user account associated with a user account bound to the electronic device; obtain a reference associated electronic device bound with the associated user account; and from the reference Among the associated electronic devices, a device in the same local area network as the electronic device is selected as the associated electronic device.
  • the associated path acquisition unit 430 is configured to acquire a target audio output path determined by the associated electronic device when the audio output scene is displayed.
  • the target determining unit 440 is configured to determine a target audio output path corresponding to the audio output scene according to a target audio output path determined by the associated electronic device.
  • the target determining unit 440 is further configured to add a target audio output path determined by the associated electronic device to a target audio path determined by the electronic device if it is detected that the status information of the associated electronic device meets a preset condition.
  • the method includes:
  • the sound effect processing unit 450 is configured to enhance the sound effect of the audio transmitted by the target audio output path.
  • a sound effect processing device provided by the present application is obtained by acquiring a current audio output scene.
  • the audio output scene corresponds to multiple audio output channels, and each of the audio output channels is used to transmit different audio
  • the associated electronic device associated with the electronic device obtains the target audio path determined by the associated electronic device, and then determines the target corresponding to the audio output scene from the multiple audio output channels according to the target audio path determined by the associated electronic device.
  • the audio output channel further enhances the audio effect of the audio transmitted by the target audio output channel, so that the electronic device can selectively enhance the sound effect from multiple audio output channels corresponding to the audio output scene according to the current audio output scene.
  • the flexibility of sound effects processing can further improve the user experience.
  • 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.
  • a sound effect processing method, device, electronic device, and storage medium provided in this application, by obtaining a current audio output scene, there are multiple audio output channels corresponding to the audio output scene, and each of the audio When the output channel is used to transmit different audio, determining a target audio output channel corresponding to the audio output scene from the multiple audio output channels, and then enhancing the audio effect of the audio transmitted by the target audio output channel, As a result, the electronic device can selectively perform sound enhancement from multiple audio output channels corresponding to the audio output scene according to the current audio output scene, improving the flexibility of sound effect processing, and further improving the user experience.
  • another embodiment of the present application further provides an electronic device 100 that can execute the foregoing terminal control method.
  • the electronic device 100 includes one or more processors (only one is shown in the figure), a memory 104, a wireless module 106, and an audio module 108 that are coupled to each other.
  • the memory 104 stores a program that can execute the content in the foregoing embodiment, and the processor 102 can execute the program stored in the memory 104.
  • the processor 102 may include one or more processing cores.
  • the processor 102 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes or executes instructions, programs, code sets, or instruction sets stored in the memory 104 by calling or executing data stored in the memory 104 to execute Various functions and processing data of the electronic device 100.
  • the processor 102 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 102 may integrate one or a combination of a central processing unit (Central Processing Unit), a graphics 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 target applications; 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 102, and may be implemented by a communication chip alone.
  • the memory 104 may include random access memory (Random Access Memory, RAM), and may also include read-only memory (Read-Only Memory).
  • the memory 104 may be used to store instructions, programs, codes, code sets, or instruction sets.
  • the memory 104 may include a storage program area and a storage data area.
  • the memory 104 may store a sound effect processing device.
  • the sound effect processing device may be the aforementioned device 300 or the device 400.
  • 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.
  • the wireless module 106 is used to receive and send electromagnetic waves, and realize the mutual conversion of electromagnetic waves and electrical signals, so as to communicate with a communication network or other equipment, such as communicating with audio playback equipment.
  • the wireless module 106 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption / decryption chip, a subscriber identity module (SIM) card, a memory, and the like .
  • SIM subscriber identity module
  • the wireless module 106 can communicate with various networks, such as the Internet, an intranet, and a wireless network, or communicate with other electronic devices through a wireless network.
  • the wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network.
  • the above-described wireless networks may use various communication standards, protocols and technologies, including but not limited to IEEE 802 protocol and the Bluetooth protocol, this protocol may even including those not yet been developed.
  • the audio module 108 can be used to process audio output by an application program running in the electronic device 100.
  • the audio module 108 may receive audio processing parameters obtained by the wireless module 106 from other electronic devices, and then adjust the audio processing parameters of the audio module 108.
  • FIG. 10 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • the computer-readable medium 800 stores program code, and the program code can be called by a processor to execute the method described in the foregoing method embodiment.
  • the computer-readable storage medium 800 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 800 includes a non-transitory computer-readable storage medium.
  • the computer-readable storage medium 800 has a storage space for program code 810 that performs any of the method steps in the above-described methods. These program codes can be read from or written into one or more computer program products.
  • the program code 810 may be compressed, for example, in a suitable form.
  • a "computer-readable medium” may be any device that can contain, store, communicate, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. More specific examples (non-exhaustive list) of computer readable media include the following: electrical connections (electronic devices) with one or more wirings, portable computer disk enclosures (magnetic devices), random access memory (RAM), Read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disk read-only memory (CDROM).
  • the computer-readable medium may even be paper or other suitable medium on which the program can be printed, because, for example, by optically scanning the paper or other medium, followed by editing, interpretation, or other suitable Processing to obtain the program electronically and then store it in computer memory.

Abstract

Disclosed are a sound effect processing method and apparatus, and an electronic device and a storage medium. The method comprises: obtaining the current audio output scene, the audio output scene having a plurality of corresponding audio output channels, and each of the audio output channels being used for transmitting different types of audio; determining a target audio output channel corresponding to the audio output scene from the plurality of audio output channels, the target audio output channel being an audio output channel requiring sound effect enhancement among the plurality of audio output channels; and enhancing the sound effect of an audio transmitted by the target audio output channel. The method enables an electronic device to selectively perform sound effect enhancement from the plurality of audio output channels corresponding to the audio output scene according to the current audio output scene, the flexibility of sound effect processing is improved, and thus the user experience can be improved.

Description

音效处理方法、装置、电子设备及存储介质Sound effect processing method, device, electronic equipment and storage medium
相关申请的交叉引用Cross-reference to related applications
本申请要求于2018年9月4日提交的申请号为201811028137.2的中国申请的优先权,其在此出于所有目的通过引用将其全部内容并入本文。This application claims priority from Chinese application with application number 201811028137.2, filed on September 4, 2018, which is hereby incorporated by reference in its entirety for all purposes.
技术领域Technical field
本申请涉及电子设备技术领域,更具体地,涉及一种音效处理方法、装置、电子设备及存储介质。The present application relates to the technical field of electronic devices, and more particularly, to a sound effect processing method, device, electronic device, and storage medium.
背景技术Background technique
随着终端技术的迅速发展,诸如手机、平板等电子设备已成为人们生活不可或缺的组成部分。人们不仅可以利用电子设备进行日常的打电话、发短信等功能,还可以利用电子设备运行各类的应用程序,如游戏类的应用程序、网页浏览类的应用程序、音视频播类的应用程序等等。但是在应用程序的运行过程中,对于应用程序输出音频的音效调节的灵活性以及用户体验方面还有待提升。With the rapid development of terminal technology, electronic devices such as mobile phones and tablets have become an integral part of people's lives. People can not only use electronic devices for daily phone calls, text messages, and other functions, but also use electronic devices to run various applications, such as game applications, web browsing applications, and audio and video broadcast applications. and many more. However, during the running of the application, the flexibility of adjusting the sound effects of the output audio of the application and the user experience need to be improved.
发明内容Summary of the Invention
鉴于上述问题,本申请提出了一种音效处理方法、装置、电子设备及存储介质,以实现改善上述问题。In view of the above problems, this application proposes a sound effect processing method, device, electronic device, and storage medium to achieve improvement of the above problems.
第一方面,本申请提供了一种音效处理方法,应用于电子设备,所述方法包括:获取当前的音频输出场景,所述音频输出场景对应有多个音频输出通路,每个所述音频输出通路用于传输的音频类型不同;从所述多个音频输出通路中,确定所述音频输出场景对应的目标音频输出通路,所述目标音频输出通路为所述多个音频输出通路中需要进行音效增强的音频输出通路;增强所述目标音频输出通路所传输的音频的音效。In a first aspect, the present application provides a sound effect processing method applied to an electronic device. The method includes: obtaining a current audio output scene, where the audio output scene corresponds to multiple audio output channels, and each of the audio outputs The types of audio channels used for transmission are different; from the multiple audio output channels, a target audio output channel corresponding to the audio output scene is determined, and the target audio output channels are sound effects that need to be performed in the multiple audio output channels. Enhanced audio output path; enhancing the sound effect of audio transmitted by the target audio output path.
第二方面,本申请提供了一种音效处理装置,运行于电子设备,所述装置包括:音频场景获取单元,用于获取当前的音频输出场景,所述音频输出场景对应有多个音频输出通路,每个所述音频输出通路用于传输的音频类型不同;目标确定单元,用于从所述多个音频输出通路中,确定所述音频输出场景对应的目标音频输出通路,所述目标音频输出通路为所述多个音频输出通路中需要进行音效增强的音频输出通路;音效处理单元,用于增强所述目标音频输出通路所传输的音频的音效。In a second aspect, the present application provides a sound effect processing device that runs on an electronic device. The device includes: an audio scene acquisition unit configured to obtain a current audio output scene, where the audio output scene corresponds to multiple audio output channels. Each audio output channel has a different audio type for transmission; a target determination unit is configured to determine, from the multiple audio output channels, a target audio output channel corresponding to the audio output scene, and the target audio output The channel is an audio output channel that needs to be enhanced in the multiple audio output channels; a sound effect processing unit is used to enhance the audio effect of the audio transmitted by the target audio output channel.
第三方面,本申请提供了一种电子设备,包括一个或多个处理器以及存储器;一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述的方法。In a third aspect, the present application provides an electronic device including one or more processors and a memory; one or more programs are stored in the memory and configured to be executed by the one or more processors, The one or more programs are configured to perform the method described above.
第四方面,本申请提供的一种计算机可读存储介质,所述计算机可读存储介质中存储有程序代码,其中,在所述程序代码被处理器运行时执行上述的方法。According to a fourth aspect, a computer-readable storage medium provided in the present application, wherein the computer-readable storage medium stores program code, and the method is executed when the program code is executed by a processor.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions in the embodiments of the present application more clearly, the drawings used in the description of the embodiments are briefly introduced below. Obviously, the drawings in the following description are just some embodiments of the application. For those skilled in the art, other drawings can be obtained based on these drawings without paying creative labor.
图1示出了本申请提出的一种音效处理方法的流程图。FIG. 1 shows a flowchart of a sound effect processing method provided by the present application.
图2示出了本申请提出的另一种界面的示意图。FIG. 2 shows a schematic diagram of another interface proposed by the present application.
图3示出了本申请提出的再一种界面的示意图。FIG. 3 is a schematic diagram of still another interface proposed by the present application.
图4示出了本申请提出的另一种音效处理方法的流程图。FIG. 4 shows a flowchart of another sound effect processing method provided by the present application.
图5示出了本申请提出的一种界面的示意图。FIG. 5 shows a schematic diagram of an interface proposed by the present application.
图6示出了本申请提出的一种网络环境的示意图。FIG. 6 shows a schematic diagram of a network environment proposed by the present application.
图7示出了本申请提出的一种音效处理装置的结构框图。FIG. 7 shows a structural block diagram of a sound effect processing device proposed in the present application.
图8示出了本申请提出的另一种音效处理装置的结构框图。FIG. 8 shows a structural block diagram of another sound effect processing device proposed in the present application.
图9示出了本申请提出的一种电子设备的结构框图。FIG. 9 shows a structural block diagram of an electronic device proposed by the present application.
图10是本申请实施例的用于保存或者携带实现根据本申请实施例的音效处理方法的程序代码的存储单元。FIG. 10 is a storage unit for storing or carrying a program code for implementing a sound effect processing method according to an embodiment of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
音效可以是我们生活中无处不在的一种声音。比如走路时的脚步声、开门时的吱吱声、电梯的开关门等音效渗透在我们生活的每个角落。Sound effects can be a ubiquitous sound in our lives. Sound effects such as footsteps when walking, squeaking when opening a door, and door opening and closing of an elevator penetrate into every corner of our lives.
而在电子设备中音效也是无处不在。例如,当电子设备启动时,可以伴随有启动音效,而当电子设备关闭时,会伴随有关闭音效,而当电子设备的电量不足时,电子设备也会发出报警音效等。And sound effects are everywhere in electronic devices. For example, when the electronic device is started, it may be accompanied by a startup sound effect, when the electronic device is turned off, it may be accompanied by a shutdown sound effect, and when the power of the electronic device is insufficient, the electronic device may also emit an alarm sound effect.
而对于电子设备中所运行的应用程序也是如此。例如,对于游戏类的应用程序在运行过程中就可以产生游戏音效。游戏音效指的是电子游戏中发生特定行为或进行特定操作时播放的效果音乐。如子弹发射时的声音、怪物“死亡”时的惨叫、点击按钮时的“咔嚓”声音等。正是因为游戏音效的存在使得用户在玩游戏时,可以有更加真实的体验。The same is true for applications running on electronic devices. For example, a game application can generate game sound effects during running. Game sound effects refer to effect music played when a specific behavior or specific operation occurs in a video game. Such as the sound of a bullet when it is launched, the scream of a monster when it "dies", and the "click" sound when a button is clicked. It is precisely because of the existence of game sound effects that users can have a more realistic experience when playing games.
可以理解的是,除了前述的游戏类型的应用程序存在音效外,其他类型的应用程序也存在音效。例如,音视频播放类的应用程序在播放音视频的过程中的音视频音效,以及网页浏览类的的应用程序在加载网页内容的过程中的音效等。It can be understood that, in addition to the aforementioned game type applications, there are also sound effects. For example, the audio and video sound effects of audio and video playing applications during the playback of audio and video, and the sound effects of web browsing applications during the loading of web page content.
但是,发明人发现,电子设备中通常会对部分音频输出场景的音效进行 增强,以提升用户体验。但是,目前的音效增强方式还缺乏一定的灵活性,从而影响了音效增强的效果,同时也造成了用户体验不佳。因此,发明人提出了本申请中可以提升音效增强的灵活性,并且提升用户体验的音效处理方法、装置、电子设备及存储介质。However, the inventors have found that the sound effects of some audio output scenes are usually enhanced in electronic devices to improve the user experience. However, the current sound enhancement methods still lack some flexibility, which affects the effects of sound enhancement and also results in a poor user experience. Therefore, the inventor proposes a sound effect processing method, device, electronic device, and storage medium that can improve the flexibility of sound effect enhancement and improve the user experience in this application.
下面将结合附图具体描述本申请的各实施例。The embodiments of the present application will be described in detail below with reference to the drawings.
请参阅图1,本申请提供的一种音效处理方法,应用于电子设备,所述方法包括:Please refer to FIG. 1, a sound effect processing method provided in this application is applied to an electronic device, and the method includes:
步骤S110:获取当前的音频输出场景,所述音频输出场景对应有多个音频输出通路,每个所述音频输出通路用于传输的音频类型不同。Step S110: Acquire a current audio output scene, where the audio output scene corresponds to multiple audio output channels, and each of the audio output channels has a different audio type for transmission.
其中,可以理解的是,在电子设备的运行过程中,会有多种场景存在音频输出。例如,当电子设备在运行游戏类的应用程序时,会显示游戏界面场景,在游戏界面场景中可以存在游戏音效、游戏背景音乐或者按键音等音频输出。其中,该游戏音效包括游戏人物动作音效、游戏人物说话声音的音效以及其他NPC(Non Player Character)人物发出的音效。Among them, it can be understood that during the operation of the electronic device, audio output may exist in multiple scenarios. For example, when an electronic device is running a game application, a game interface scene is displayed. In the game interface scene, there may be audio outputs such as game sound effects, game background music, or button sounds. Among them, the game sound effects include the sound effects of game characters, the sound effects of the voice of the game characters, and the sound effects of other NPC (Non Player and Character) characters.
再例如,当电子设备在运行音频类的应用程序时,会显示音频播放场景,在该音频播放场景中存在环境音效。当电子设备在运行视频类的应用程序时,会显示视频画面播放场景,在该视频画面播放场景中会存在人物说话声的音效以及环境音效等。As another example, when an electronic device is running an audio application, an audio playback scene is displayed, and an environmental sound effect exists in the audio playback scene. When the electronic device is running a video-type application, a video screen playing scene is displayed, and in the video screen playing scene, there are sound effects such as human voices and environmental sound effects.
需要说明的是,上述的音频输出场景只是示例性的,并不对本申请作出限定。本申请还可以包括除上述实例的音频输出场景以外的音频输出场景。It should be noted that the foregoing audio output scenario is only exemplary and does not limit the present application. The application may also include audio output scenes other than the audio output scenes of the above examples.
那么基于上述情况,电子设备可以通过多种方式来确定当前的音频输出场景。可选的,电子设备可以通过查询当前正在运行的应用程序来确定当前的音频输出场景。其中,作为一种方式,若电子设备为Android操作系统,可以通过执行ActivityManager的getRunningTasks方法来获取到当前在前台运行的应用程序的名称。此外,电子设备还可以通过UsageStatsManager来获取用户使用的程序的列表,将该列表中记录的最近使用的应用程序识别为当前的前台应用。再者,还可以通过Android自带无障碍功能,监控窗口焦点的变化,拿到焦点窗口对应包名作为当前在前台运行的应用程序。Based on the above situation, the electronic device can determine the current audio output scene in multiple ways. Optionally, the electronic device may determine a current audio output scene by querying a currently running application program. Among them, if the electronic device is an Android operating system, the name of the application currently running in the foreground can be obtained by executing the getRunningTasks method of the ActivityManager. In addition, the electronic device can also obtain a list of programs used by the user through UsageStatsManager, and identify the most recently used application recorded in the list as the current foreground application. In addition, you can also use Android's built-in accessibility function to monitor the focus change of the window and get the package name corresponding to the focus window as the application currently running in the foreground.
当电子设备获取到当前正在运行的应用程序后,可以根据当前运行的应用程序的类型来确定当前的音频输出场景。例如,若应用程序为游戏类的应用程序,那么可以确定当前的音频输出场景为游戏界面场景。若应用程序为音乐播放类的应用程序,那么可以确定当前的音频输出场景为音乐播放场景。若应用程序为视频类的应用程序,那么可以确定当前的音频输出场景为视频播放场景。After the electronic device obtains the currently running application program, it can determine the current audio output scene according to the type of the currently running application program. For example, if the application is a game application, it may be determined that the current audio output scene is a game interface scene. If the application is a music playback application, it can be determined that the current audio output scene is a music playback scene. If the application is a video application, it can be determined that the current audio output scene is a video playback scene.
在音频输出场景中通常包括一种或者多种需要输出的音频类型。例如,在游戏界面场景这种音频输出场景中,可以包括音效、背景音乐以及按键音等几种需要输出的音频类型。而为了能够提升音频输出的效果,可以给不同音频类型的音频配置不同的音频输出通路,从而使得所述音频输出场景对应有多个音频输出通路,每个所述音频输出通路用于传输的音频类型不同。The audio output scene usually includes one or more audio types that need to be output. For example, in an audio output scene such as a game interface scene, there may be several audio types that need to be output, such as sound effects, background music, and key sounds. In order to improve the effect of audio output, different audio output channels can be configured for audio of different audio types, so that the audio output scene corresponds to multiple audio output channels, and each of the audio output channels is used to transmit audio. Different types.
下面再以Android系统为例,对上述内容进行说明。在Android操作系统的电子设备中,定义有11种stream_type(音频类型),也可以看做为音频流的类 型。而对于其中定义的11种stream_type的音频流在进入到Attribute后,电子设备会将其整理成几种类型,然后进行输出,那么这种类型各自对应有一个音频输出通路。The following uses Android system as an example to explain the above content. In the electronic device of the Android operating system, there are 11 stream_types (audio types) defined, which can also be regarded as types of audio streams. And for the 11 types of stream_type audio streams defined therein, after entering the Attribute, the electronic device will sort them into several types and then output them, then this type corresponds to an audio output channel.
步骤S120:从所述多个音频输出通路中,确定所述音频输出场景对应的目标音频输出通路,所述目标音频输出通路为所述多个音频输出通路中需要进行音效增强的音频输出通路。Step S120: From among the multiple audio output channels, determine a target audio output channel corresponding to the audio output scene, and the target audio output channel is an audio output channel among the multiple audio output channels that requires sound enhancement.
可选的,如果对所有的音频输出通路所输出的音频均进行增强,那么可能会造成无法对部分的音频进行突出,反而会造成用户的视听效果不好。例如,在游戏界面场景中,包括的音频类型有游戏音效、游戏背景音乐或者按键音等类型的音频输出。在游戏音效、游戏背景音乐或者按键音等类型的音频分别由不同的音频输出通路进行输出的情况下,若同时对游戏音效、游戏背景音乐或者按键音等类型的音频均进行音效增强,可能会造成声音比较杂乱。Optionally, if the audio output from all audio output channels is enhanced, part of the audio may not be highlighted, and the user's audiovisual effect may be poor. For example, in a game interface scene, the types of audio included include audio output such as game sound effects, game background music, or button sounds. In the case where types of audio such as game sound effects, game background music, or key sound are output through different audio output channels, if the sound effects of game sound effects, game background music, or key sound are all enhanced at the same time, it may be Causes a messy sound.
那么为了便于在存在多种音频类型的情况下,突出某一种音频类型的音频的特点,可以从所述多个音频输出通路中,确定所述音频输出场景对应的目标音频输出通路,从而可以只对目标音频输出通路中所传输的音频进行音效增强。Then, in order to facilitate the highlighting of the audio characteristics of one audio type in the presence of multiple audio types, a target audio output channel corresponding to the audio output scene may be determined from the multiple audio output channels, so that Only the audio transmitted in the target audio output path is enhanced.
可选的,对于不同的音频输出场景,所对应的目标音频输出通路不同。Optionally, for different audio output scenarios, the corresponding target audio output channels are different.
作为一种方式,若所述当前的音频输出场景为游戏界面场景,将所述多个音频输出通路中的动作音效输出通路确定为目标音频输出通路。As a method, if the current audio output scene is a game interface scene, the action sound output path among the multiple audio output paths is determined as the target audio output path.
需要说明的是,在游戏界面场景中,可能会存在游戏用户在场景中进行行走的动作。相应的,游戏界面场景中也可能会存在其他的用户在游戏界面场景行走的情况,那么存在一种情况是,电子设备的游戏用户需要通过其他的游戏用户在游戏界面场景行走的情况来判定其他的游戏用户的方位,从而采取措施捕获或者击毙其他的游戏用户。那么在这种情况下,其他的游戏用户在游戏界面场景行走的情况可以通过动作音效来判断,因此,在将所述多个音频输出通路中的动作音效输出通路确定为目标音频输出通路的情况下,可以将该音频输出通路中输出的动作音效进行增强,从而有利于用户能清楚或者更快的识别其他游戏用户的动作。It should be noted that, in a game interface scene, there may be an action of a game user walking in the scene. Correspondingly, there may be other users walking in the game interface scene in the game interface scene. Then there is a case where the game user of the electronic device needs to determine other situations through the situation of other game users walking in the game interface scene. The position of the game user, taking measures to capture or kill other game users. Then in this case, the situation of other game users walking in the game interface scene can be judged by the action sound effect. Therefore, the case where the action sound effect output path among the multiple audio output paths is determined as the target audio output path Next, the action sound effect output in the audio output path can be enhanced, thereby helping users to clearly or quickly recognize the actions of other game users.
下面再对动作音效包括的具体类型进行说明。The following describes the specific types of action sound effects.
可选的,动作音效可以包括动作信息以及相位信息。其中,动作信息用于标识游戏中人物动作的类型,而相位信息用于标识动作产生的方向。例如,对于游戏中用户走路时会对应都有“咚咚咚”的声音,当用户听到有“咚咚咚”的声音可以判断出有其他游戏用户在走路。而对于该“咚咚咚”的声音对应的相位信息可以使得电子设备的用户不仅能够判断有其他游戏用户在走路,而且可以进一步的判断其他游戏用户走路的方向以及离自己的远近。Optionally, the motion sound effect may include motion information and phase information. Among them, the motion information is used to identify the type of character movement in the game, and the phase information is used to identify the direction in which the action is generated. For example, when the user walks in the game, there will be a sound of "咚咚咚", and when the user hears the sound of "咚咚咚", it can be determined that other game users are walking. The phase information corresponding to the sound of the “咚咚咚” can enable the user of the electronic device not only to judge that other game users are walking, but also to further determine the direction in which other game users are walking and how far they are from themselves.
此外,除了为游戏界面场景外,若所述当前的音频输出场景为音频场景,将所述多个音频输出通路中的人物声音输出通路确定为目标音频输出通路。若所述当前的音频输出场景为视频播放场景,将所述多个音频输出通路中的背景音乐输出通路确定为目标音频输出通路。In addition, in addition to being a game interface scene, if the current audio output scene is an audio scene, a character sound output path among the plurality of audio output paths is determined as a target audio output path. If the current audio output scene is a video playback scene, a background music output path among the multiple audio output paths is determined as a target audio output path.
再者,对于目标音频输出通路也可以由用户通过手动模式自由选择。作为一种方式,可以在电子设备显示的音频输出场景对应的界面中显示音频控制控 件,在检测到用户触发该音频控制控件后,电子设备可以显示一控制界面,在该控制界面中显示用于供用户调节目标音频输出通路的控件,不同的音频控制控件所对应的目标音频输出通路不同。可以理解的是,为了便于用户调节,可以在该控制界面中以表征效果的词语代替通路,便于用户了解不同选项所对应的效果。Furthermore, the target audio output path can also be freely selected by the user through a manual mode. As a method, the audio control control may be displayed in an interface corresponding to the audio output scene displayed by the electronic device. After detecting that the user triggers the audio control control, the electronic device may display a control interface, and the control interface may display a control interface. Controls for the user to adjust the target audio output path. Different audio control controls correspond to different target audio output paths. It can be understood that, in order to facilitate user adjustment, the channel may be replaced by words representing effects in the control interface, so that the user can understand the effects corresponding to different options.
例如,如图2所示,若音频输出场景为图示的游戏界面场景,该游戏界面场景对应有游戏界面99,在该游戏界面99中显示有音频控制控件98。那么当用户触控该音频控制控件98后,如图3所示,可以触发在界面99中悬浮显示一控制界面97。在该控制界面97中显示音效选择控件96,使得用户可以通过对于音效选择控件96的操作来选择期望增强的效果,进而使得电子设备确定目标音频输出通路。例如,若用户选择了增强动作音效,那么所对应确定的目标音频输出通路为传输的音频类型为游戏界面场景的音频输出通路。For example, as shown in FIG. 2, if the audio output scene is the illustrated game interface scene, the game interface scene corresponds to a game interface 99, and audio control controls 98 are displayed in the game interface 99. Then, when the user touches the audio control control 98, as shown in FIG. 3, a control interface 97 can be triggered to be suspended in the interface 99. A sound effect selection control 96 is displayed in the control interface 97, so that a user can select a desired enhanced effect by operating the sound effect selection control 96, so that the electronic device determines a target audio output path. For example, if the user selects enhanced action sound effects, the corresponding determined target audio output path is an audio output path whose transmitted audio type is a game interface scene.
步骤S130:增强所述目标音频输出通路所传输的音频的音效。Step S130: Enhance the audio effect of the audio transmitted by the target audio output path.
可以理解的是,通过增强目标音频输出通路所传输的音频的音效,可以使得目标音频输出通路所传输的音频的音效的效果更加突出,以便提升用户体验。而根据前述的内容可知,动作音效可以包括动作信息以及相位信息。那么作为一种方式,所述增强所述目标音频输出通路所传输的音频的音效的步骤可以包括:检测所述目标音频输出通路所传输的音频是否有相位信息;若检测到有相位信息,那么可以根据所述相位信息增强对所述目标音频输出通路所传输的音频的音效。It can be understood that by enhancing the sound effect of the audio transmitted by the target audio output path, the effect of the sound effect of the audio transmitted by the target audio output path can be made more prominent in order to improve the user experience. According to the foregoing content, it can be known that the motion sound effect may include motion information and phase information. Then, as a way, the step of enhancing the sound effect of the audio transmitted by the target audio output path may include: detecting whether the audio transmitted by the target audio output path has phase information; if phase information is detected, then A sound effect of audio transmitted on the target audio output path may be enhanced according to the phase information.
需要说明的是,发明人发现,人耳辨别方向的机制简单说是由左右耳协同作用所产生的,这就像我们用双眼看物体才可以辨认距离一样。双耳接受的声音存在着“强度差”和“时间差”,在包含更多低频分量的声音中还存在着“相位差”,同时人头对声音还有一定的遮蔽效应从而产生“音色差”。那么对于前述的相位信息可以理解为声音的“强度差”、“时间差”或者“音色差”。It should be noted that the inventor found that the mechanism of the human ear to distinguish the direction is simply produced by the synergy of the left and right ears, just like we can recognize the distance by looking at the object with both eyes. The sounds received by both ears have "intensity difference" and "time difference". There is also a "phase difference" in sounds containing more low-frequency components. At the same time, the human head still has a certain masking effect on the sound to produce "tone color difference". Then, the foregoing phase information can be understood as the “intensity difference”, “time difference”, or “tone color difference” of the sound.
那么可以理解的是,作为一种方式,在动作音效输出通路中可以包括左声道的音频内容以及右声道的音频内容。那么作为一种方式,若检测到有相位信息,根据所述相位信息增强对所述目标音频输出通路所传输的音频的音效可以包括:It can be understood that, as a way, the audio content of the left channel and the audio content of the right channel can be included in the action sound output path. Then, as a way, if phase information is detected, enhancing the sound effect of the audio transmitted on the target audio output path according to the phase information may include:
增强所述动作音效输出通路中左声道和右声道各自所传输的音频内容的参数的差,以增强对所述目标音频输出通路所传输的动作音效的音效效果。The difference of the parameters of the audio content transmitted by the left channel and the right channel in the action sound effect output path is enhanced to enhance the sound effect of the action sound effect transmitted by the target audio output path.
可以理解的是,对于传输动作音效的音频输出通路中,包括的左声道和右声道各自所传输的音频内容是相同的。例如,对于游戏人物“咚咚咚”的走路音效,左声道和右声道所传输的均为“咚咚咚”这个音效。但是,若检测到所传输的音效有对应的相位信息,那么传输动作音效的音频输出通路中,包括的左声道和右声道各自所传输的音频内容所对应的参数就会有所差别。其中参数可以包括声音强度、声音时间以及声音音色等。It can be understood that, in the audio output channel for transmitting motion sound effects, the audio content transmitted by the left and right channels included is the same. For example, for the walking sound effect of the game character "咚咚咚", both the left and right channels transmit the sound effect "咚咚咚". However, if it is detected that the transmitted sound effect has corresponding phase information, then the parameters corresponding to the audio content transmitted by the left and right channels included in the audio output path for transmitting the motion sound effect will be different. The parameters may include sound intensity, sound time, and sound color.
例如,若当前表征“咚咚咚”的走路声音为从游戏界面场景中的电子设备用户所在位置的左侧传到用户这里来的,那么可以将左声道所传输的“咚咚咚”的声音的声音强度设置为高于右声道所传输的“咚咚咚”的声音的声音强度。 再或者,可以将左声道所传输的“咚咚咚”的声音的声音时间在时序上早于右声道所传输的“咚咚咚”的声音的声音时间。那么在这种情况下,增强对所述目标音频输出通路所传输的动作音效的音效效果可以通过增大左声道所传输的声音的声音强度与右声道所传输的声音的声音强度的差值来实现,或者通过增大左声道所传输的声音的声音时间在时序上与右声道所传输的声音的声音时间的时间差值来实现。For example, if the walking sound currently representing "咚咚咚" is transmitted from the left side of the position of the user of the electronic device in the game interface scene to the user, the "的" transmitted by the left channel may be transmitted The sound intensity of the sound is set higher than the sound intensity of the sound of "传输" transmitted in the right channel. Still alternatively, the sound time of the sound of “咚咚咚” transmitted on the left channel may be earlier in time than the sound time of the sound of “咚咚咚” transmitted on the right channel. Then, in this case, enhancing the sound effect of the action sound effect transmitted by the target audio output path can be achieved by increasing the difference between the sound intensity of the sound transmitted from the left channel and the sound intensity of the sound transmitted from the right channel. This can be achieved by increasing the time difference between the sound time of the sound transmitted by the left channel and the sound time of the sound transmitted by the right channel.
其中,作为一种方式,增大左声道和右声道各自所传输的音频内容所对应的参数之间的差值会造成更多的电量消耗,那么对于前述提到的左声道和右声道各自所传输的音频内容所对应的参数之间的差值具体增大多少可以有多种方式来确定。Among them, as a method, increasing the difference between the parameters corresponding to the audio content transmitted by the left channel and the right channel will cause more power consumption, so for the aforementioned left channel and right channel, The specific increase in the difference between the parameters corresponding to the audio content transmitted by the channels can be determined in multiple ways.
可选的,可以根据电子设备当前的音频输出设备来确定。其中,若音频输出设备为音箱或者电子设备自带的扬声器,那么对于音箱和扬声器所播放的声音,通常需要在空气中传播一定距离后才会到达用户的耳朵中,那么为了便于在这种情况下,保证音效增强的效果,可以将左声道和右声道各自所传输的音频内容所对应的参数之间的差值增大第一阈值(这里的第一阈值大于后续所涉及的第二阈值)。Optionally, it may be determined according to the current audio output device of the electronic device. Among them, if the audio output device is a speaker or a speaker provided by an electronic device, the sound played by the speaker and the speaker usually needs to propagate a certain distance in the air before reaching the user's ear, so in order to facilitate this situation Next, to ensure the effect of sound enhancement, the difference between the parameters corresponding to the audio content transmitted by the left and right channels can be increased by a first threshold (the first threshold here is greater than the second involved in the subsequent Threshold).
再者,而若音频输出设备为耳机等可以直接佩戴在用户耳朵里面的音频输出设备,其所播放的声音通常是直接传输到用户的耳朵中的,不需要在空气中再传播一段距离,那么在这种情况下,用户能够更加灵敏的识别左声道(用于佩戴在左耳朵的耳机所播放)和右声道(用于佩戴在右耳朵的耳机所播放)的声音的区别,那么在这种情况下,可以将左声道和右声道各自所传输的音频内容所对应的参数之间的差值增大第二阈值,这里的第二阈值小于前述的第一阈值。Furthermore, if the audio output device is an audio output device such as a headset that can be directly worn in the user's ear, the sound played is usually directly transmitted to the user's ear, and does not need to travel a distance in the air, then In this case, the user can more sensitively identify the difference between the sound of the left channel (played by headphones worn in the left ear) and the sound of the right channel (played by headphones worn in the right ear). In this case, the difference between the parameters corresponding to the audio content transmitted by the left and right channels may be increased by a second threshold, where the second threshold is smaller than the aforementioned first threshold.
那么通过上述方式,可以灵活的根据电子设备当前的音频输出设备来确定左声道和右声道各自所传输的音频内容所对应的参数之间的差值增大的程度,使得在最大程度的保证音效增强效果的同时,节约电量。Then through the above method, the degree of difference between the parameters corresponding to the audio content transmitted by the left channel and the right channel can be flexibly determined according to the current audio output device of the electronic device, so that the maximum degree of While ensuring sound enhancement, save power.
而对于是增大左声道的参数来提升左声道和右声道各自所传输的音频内容所对应的参数之间的差值,还是增大右声道的参数来提升左声道和右声道各自所传输的音频内容所对应的参数之间的差值,电子设备也可以根据多种方式来确定。As for increasing the parameters of the left channel to increase the difference between the parameters corresponding to the audio content transmitted by the left and right channels, or increasing the parameters of the right channel to increase the left and right channels, The electronic device can also determine the difference between the parameters corresponding to the audio content transmitted by the channels in various ways.
例如,在音频输出设备为耳机的情况下,可选的,耳机包括左耳机和右耳机,若检测到左耳机佩戴在右耳朵上,而右耳机佩戴在左耳朵上,那么在检测到有保证左侧的“咚咚咚”的走路声音的情况下,可以通过增大右声道的参数来提升左声道和右声道各自所传输的音频内容所对应的参数之间的差值;若在检测到有保证右侧的“咚咚咚”的走路声音的情况下,可以通过增大左声道的参数来提升左声道和右声道各自所传输的音频内容所对应的参数之间的差值,从而避免了因为用户将耳机带反所带来的方向判断错误。For example, when the audio output device is a headset, optionally, the headset includes a left headset and a right headset. If it is detected that the left headset is worn on the right ear and the right headset is worn on the left ear, then a guarantee is detected. In the case of the "咚咚咚" walking sound on the left, the difference between the parameters corresponding to the audio content transmitted by the left and right channels can be increased by increasing the parameters of the right channel; if In the case where a walking sound of "保证" with a guaranteed right is detected, the parameters of the left channel and the right channel can be increased by increasing the parameters of the left channel by increasing the parameters of the left channel. The difference in value, thereby avoiding the wrong direction judgment caused by the user turning the headset back.
其中,需要说明的是,对于增强左声道和右声道各自所传输的音频内容所对应的参数之间的差值,可以包括提升左声道所传输的音频内容所对应的参数来实现增强左声道和右声道各自所传输的音频内容所对应的参数之间的差值, 也可以是通过减低右声道所传输的音频内容所对应的参数的值来实现,而对于具体采用何种方式,本申请不作具体限定。It should be noted that, for enhancing the difference between the parameters corresponding to the audio content transmitted by the left channel and the right channel, the parameter corresponding to the audio content transmitted by the left channel may be enhanced to achieve enhancement. The difference between the parameters corresponding to the audio content transmitted by the left channel and the right channel can also be achieved by reducing the value of the parameter corresponding to the audio content transmitted by the right channel. In this manner, this application does not specifically limit.
可以理解的是,对于要增强其他方向的动作音效的原理与前述类似,此处不再赘述。It can be understood that the principle of the action sound effect to be enhanced in other directions is similar to the foregoing, and is not repeated here.
本申请提供的一种音效处理方法,通过获取当前的音频输出场景,在所述音频输出场景对应有多个音频输出通路,每个所述音频输出通路用于传输的音频不同的情况下,从所述多个音频输出通路中,确定所述音频输出场景对应的目标音频输出通路,再增强所述目标音频输出通路所传输的音频的音效,从而使得电子设备可以依据当前的音频输出场景从音频输出场景对应有多个音频输出通路中选择性的进行音效增强,提升了音效处理的灵活性,进而可以提升用户体验。A method for processing sound effects provided by this application is to obtain a current audio output scene. In the case where the audio output scene corresponds to multiple audio output channels, and each of the audio output channels is used to transmit different audio, from Among the plurality of audio output channels, a target audio output channel corresponding to the audio output scene is determined, and then the audio effect of the audio transmitted by the target audio output channel is enhanced, so that the electronic device can remove the audio from the audio according to the current audio output scene. The output scene corresponds to multiple audio output channels for selective audio enhancement, which improves the flexibility of audio effects processing, which in turn can improve the user experience.
请参阅图4,本申请提供的一种音效处理方法,应用于电子设备,所述方法包括:Please refer to FIG. 4, a sound effect processing method provided in this application is applied to an electronic device, and the method includes:
步骤S210:获取当前的音频输出场景,所述音频输出场景对应有多个音频输出通路,每个所述音频输出通路用于传输的音频类型不同。Step S210: Acquire a current audio output scene, where the audio output scene corresponds to multiple audio output channels, and each of the audio output channels has a different audio type for transmission.
步骤S220:获取与所述电子设备关联的关联电子设备。Step S220: Acquire an associated electronic device associated with the electronic device.
作为一种获取与所述电子设备关联的关联电子设备的方式,电子设备可以获取与所述电子设备绑定的用户帐号关联的关联用户帐号;获取绑定有所述关联用户帐号的参考关联电子设备;从所述参考关联电子设备中选择与所述电子设备处于同一局域网的设备作为关联电子设备。As a way to obtain an associated electronic device associated with the electronic device, the electronic device may obtain an associated user account associated with a user account bound to the electronic device; obtain a reference associated electronic device bound with the associated user account Device; selecting a device in the same local area network as the electronic device from the reference associated electronic device as the associated electronic device.
例如,如图5所示,在图5所示的网络结构中电子设备95以及电子设备94通过同一个无线接入点92接入到服务器90,而电子设备93通过无线接入点91接入到服务器90。那么若电子设备95所绑定的第一用户帐号、电子设备94所绑定的第二用户帐号以及电子设备93所绑定的第三用户帐号均被服务器90分配为一个游戏组,并且将分组信息分别发送给电子设备95、电子设备94以及电子设备93后,电子设备95即可以识别出第二用户帐号和第三用户帐号为与其所绑定的第一用户帐号关联的关联用户帐号。那么即可识别出绑定第二用户帐号的电子设备94和绑定第三用户帐号的电子设备95为与其关联的参考关联电子设备。For example, as shown in FIG. 5, in the network structure shown in FIG. 5, the electronic device 95 and the electronic device 94 access the server 90 through the same wireless access point 92, and the electronic device 93 accesses through the wireless access point 91. To server 90. Then, if the first user account bound by the electronic device 95, the second user account bound by the electronic device 94, and the third user account bound by the electronic device 93 are all allocated by the server 90 as a game group, After the information is sent to the electronic device 95, the electronic device 94, and the electronic device 93, the electronic device 95 can identify the second user account and the third user account as associated user accounts associated with the first user account to which it is bound. Then, it can be identified that the electronic device 94 bound to the second user account and the electronic device 95 bound to the third user account are reference-related electronic devices associated with them.
进一步的,作为一种方式,为了便于服务器识别处于同一局域网内的不同的电子设备,电子设备可以在与服务器建立通信连接后,可以将自己的局域网IP地址或者自己的MAC地址也上传给服务器,以便作为电子设备的设备标识。Further, as a way, in order for the server to identify different electronic devices in the same local area network, the electronic device may upload its own local area network IP address or its own MAC address to the server after establishing a communication connection with the server. In order to serve as the device identification of the electronic device.
那么在这种情况下,服务器在向每个电子设备发送其所绑定的用户帐号关联的关联用户帐号时,会将关联用户帐号所绑定的电子设备的设备标识一并发送给每个电子设备。若设备标识为局域网IP地址,那么电子设备可以根据接收到的局域网IP地址来识别是否有与自己处于同一局域网的设备。Then in this case, when the server sends the associated user account associated with the user account to which it is bound to each electronic device, the server sends the device identifier of the electronic device bound to the associated user account to each electronic device. device. If the device identification is a local area network IP address, the electronic device can identify whether there is a device in the same local area network as the electronic device according to the received local area network IP address.
步骤S230:获取所述关联电子设备在显示所述音频输出场景时,确定的目标音频输出通路。Step S230: Obtain a target audio output path determined by the associated electronic device when the audio output scene is displayed.
步骤S240:根据所述关联电子设备确定的目标音频输出通路,确定所述音频输出场景对应的目标音频输出通路,所述目标音频输出通路为所述多个音频 输出通路中需要进行音效增强的音频输出通路。Step S240: Determine a target audio output channel corresponding to the audio output scene according to a target audio output channel determined by the associated electronic device, where the target audio output channel is an audio that needs to be enhanced in the multiple audio output channels. Output path.
其中,作为一种方式,电子设备可以保持自己确定的目标音频通路与关联电子设备确定的目标音频通路相同,从而实现达到处于同一局域网的电子设备的用户的音效增强效果相同。Among them, as a method, the electronic device can keep the target audio path determined by itself and the target audio path determined by the associated electronic device the same, so as to achieve the same sound effect enhancement effect for users of electronic devices in the same local area network.
再者,在一些场景中,也可以实现电子设备与关联电子设备确定的目标音频通路不同。例如,对于一些战斗类的游戏,当处于战斗情景时,同一分组的用户的界面以及背景音乐都是相同的。Furthermore, in some scenarios, it can also be achieved that the target audio path determined by the electronic device and the associated electronic device is different. For example, for some combat games, when in a combat scenario, the user interface and background music of the same group are the same.
那么,在这种情况下,所绑定的帐号处于同一分组,且所连接的无线接入点为同一个,那么电子设备可以判断这几个用户相互离得比较近,那么作为一种节约电量的方式,可以让电子设备对动作音效进行增强,而让关联电子设备对背景音乐进行增强,反之亦然。再或者,如果还有另外的关联电子设备,还可以让另外的关联电子设备增强人物声音。从而使得在不需要电子设备对多个音频输出通路都进行音效增强的情况下,使得电子设备的用户依然可以体验同时对多个音频输出通路增强所带来的效果。Then, in this case, the bound accounts are in the same group, and the connected wireless access points are the same, then the electronic device can determine that these users are closer to each other, so as a way to save power In this way, the electronic device can enhance the action sound effect, and the associated electronic device can enhance the background music, and vice versa. Or, if there is another associated electronic device, the other associated electronic device can be used to enhance the character voice. Therefore, without the need for the electronic device to perform sound enhancement on multiple audio output channels, users of the electronic device can still experience the effects brought by the simultaneous enhancement of multiple audio output channels.
例如,如图5所示,若人物A为电子设备所绑定用户帐号对应的人物,人物B为关联电子设备所绑定用户帐号对应的人物。那么人物A和人物B当前所处的均为同一个游戏场景,那么其所对应的音效以及背景音乐可以相同。那么在这种情况下,可以让电子设备对动作音效进行增强,而让关联电子设备对背景音乐进行增强。For example, as shown in FIG. 5, if the character A is a character corresponding to the user account bound to the electronic device, the character B is a character corresponding to the user account bound to the associated electronic device. Then both character A and character B are currently in the same game scene, then their corresponding sound effects and background music can be the same. Then in this case, the electronic device can be enhanced with the action sound effect, and the associated electronic device can be enhanced with the background music.
步骤S250:增强所述目标音频输出通路所传输的音频的音效。Step S250: Enhance the sound effect of the audio transmitted by the target audio output path.
可以理解的是,对于处于同一局域网的关联电子设备可能会因为一些原因造成关联电子设备断开与无线接入点的连接,再或者关联电子设备断开与服务器的数据交互。也就可能会造成关联电子设备无法与电子设备同步显示界面,也就造成音效增强效果无法同步,那么在这种情况下,作为一种方式,所述根据所述关联电子设备确定的目标音频输出通路,确定所述音频输出场景对应的目标音频输出通路的步骤之后还包括:若检测到所述关联电子设备的状态信息符合预设条件,在所述电子设备确定的目标音频通路中增加所述关联电子设备确定的目标音频输出通路。其中,预设条件用于表示关联电子设备无法与所述电子设备进行界面同步显示。It can be understood that, for the associated electronic devices in the same local area network, the associated electronic devices may be disconnected from the wireless access point for some reason, or the associated electronic devices may be disconnected from the data interaction with the server. It may also cause the associated electronic device to fail to synchronize the display interface with the electronic device, which may also cause the audio enhancement effect to fail to synchronize. In this case, as a way, the target audio output determined according to the associated electronic device is After the step of determining a target audio output path corresponding to the audio output scene, the method further includes: if it is detected that the status information of the associated electronic device meets a preset condition, adding the target audio path determined by the electronic device to the target audio path. The target audio output path determined by the associated electronic device. The preset condition is used to indicate that the associated electronic device cannot perform interface synchronous display with the electronic device.
例如,还是以上述图6所示的网络环境为例进行说明。若电子设备95识别出电子设备94为关联电子设备,且若电子设备95所确定的目标音频输出通路为输出音效类型的音频通路,而电子设备94确定的目标音频输出通路为输出背景音乐类型的音频通路。那么当电子设备95检测到电子设备94满足上述预设条件后,除了继续将输出音效类型的音频通路确定为目标音频通路以外,同时还会将输出背景音乐类型的音频通路确定为一个目标音频通路,从而使得对于背景音乐以及音效均增强。从而使得电子设备在检测到关联电子设备无法与自己保持画面同步显示的情况下,可以灵活的调整目标音频通络,以提升用户体验。For example, the network environment shown in FIG. 6 is used as an example for description. If the electronic device 95 recognizes that the electronic device 94 is an associated electronic device, and if the target audio output path determined by the electronic device 95 is an audio path of an output sound effect type, and the target audio output path determined by the electronic device 94 is an output background music type Audio path. Then when the electronic device 95 detects that the electronic device 94 meets the above preset conditions, in addition to continuing to determine the audio path of the output sound effect type as the target audio path, it also determines the audio path of the output background music type as a target audio path. , So that both background music and sound effects are enhanced. As a result, the electronic device can flexibly adjust the target audio communication network when it detects that the associated electronic device cannot display the picture synchronously with itself, so as to improve the user experience.
其中,所述若检测到所述关联电子设备的状态信息符合预设条件包括:Wherein, if it is detected that the status information of the associated electronic device meets a preset condition, the method includes:
若检测到所述关联电子设备解除与所述电子设备的关联关系;若检测到所述关 联电子设备的电量低于设定值;或者若检测到所述关联电子设备切换了无线接入热点。If it is detected that the associated electronic device is disconnected from the electronic device; if it is detected that the power of the associated electronic device is lower than a set value; or if it is detected that the associated electronic device switches the wireless access hotspot.
可选的,若电子设备接收到服务器发送的关联电子设备退出原先分配的用户组的情况下,判断关联电子设备解除与所述电子设备的关联关系。可选的,若电子设备接收到服务器发送的关联电子设备的电量告警提示信息时,判断关联电子设备的电量低于设定值。再或者,检测到服务器判断原先关联的电子设备的局域网IP地址对应的网段发生变化时而发送给电子设备的提示信息后,确定检测到所述关联电子设备切换了无线接入热点。Optionally, if the electronic device receives the associated electronic device sent by the server and exits the user group originally allocated, it determines that the associated electronic device releases the association relationship with the electronic device. Optionally, if the electronic device receives the power alarm prompt information of the associated electronic device sent by the server, it is determined that the power of the associated electronic device is lower than a set value. Alternatively, after detecting that the server sends a prompt message to the electronic device when the network segment corresponding to the local area network IP address of the previously associated electronic device changes, it is determined that the associated electronic device has switched to a wireless access hotspot.
此外,除了检测到关联电子设备无法进行画面同步时,根据前述的原理调整确定的目标音频输出通路外,还可以根据关联电子设备的音频输出情况或者其他参数来进行调整。In addition, in addition to detecting that the associated electronic device is unable to perform screen synchronization, the determined target audio output path is adjusted according to the foregoing principles, and may also be adjusted according to the audio output situation of the associated electronic device or other parameters.
可选的,若检测到关联电子设备的电量低于设定阈值时,可以根据前述方式调整目标音频输出通路。例如,若关联电子设备的电量低于设定值,那么为了减小关联电子设备的电量消耗,可以由电子设备来增强播放原本由关联电子设备增强的音频。再或者,如果检测到关联电子设备关闭了音频输出或者将音频输出切换为耳机模式时,也可以根据前述方式调整目标音频输出通路。Optionally, if it is detected that the power of the associated electronic device is lower than the set threshold, the target audio output path may be adjusted according to the foregoing manner. For example, if the power of the associated electronic device is lower than the set value, in order to reduce the power consumption of the associated electronic device, the electronic device can enhance the playback of the audio originally enhanced by the associated electronic device. Alternatively, if it is detected that the associated electronic device has turned off the audio output or switched the audio output to the headphone mode, the target audio output path may also be adjusted according to the foregoing manner.
需要说明的是,为了便于电子设备实时获取关联电子设备的音频输出状态、网络状态或者电量状态,也为了便于关联电子设备实时获取电子设备的音频输出状态、网络状态或者电量状态。作为一种方式,电子设备或者关联电子设备可以在与服务器建立数据通信后,以预设的频率上传自己的音频输出状态、网络状态或者电量状态,以便服务器将接收到的电子设备上传的音频输出状态、网络状态或者电量状态转发给其他的关联电子设备,或者将接收关联电子设备上传的音频输出状态、网络状态或者电量状态转发给电子设备。It should be noted that, in order to facilitate the electronic device to obtain the audio output status, network status, or power status of the associated electronic device in real time, and to facilitate the associated electronic device to obtain the audio output status, network status, or power status of the electronic device in real time. As a method, the electronic device or associated electronic device may upload its own audio output status, network status, or power status at a preset frequency after the data communication is established with the server, so that the server outputs the audio output uploaded by the electronic device. Forward the status, network status, or power status to other associated electronic devices, or forward the audio output status, network status, or power status uploaded by the associated electronic device to the electronic device.
本申请提供的一种音效处理方法,通过获取当前的音频输出场景,在所述音频输出场景对应有多个音频输出通路,每个所述音频输出通路用于传输的音频不同的情况下,获取与电子设备关联的关联电子设备,再获取关联电子设备确定的目标音频通路,然后根据关联电子设备确定的目标音频通路,从所述多个音频输出通路中,确定所述音频输出场景对应的目标音频输出通路,再增强所述目标音频输出通路所传输的音频的音效,从而使得电子设备可以依据当前的音频输出场景从音频输出场景对应有多个音频输出通路中选择性的进行音效增强,提升了音效处理的灵活性,进而可以提升用户体验。A sound effect processing method provided by the present application is obtained by acquiring a current audio output scene, and in a case where the audio output scene corresponds to multiple audio output channels, and each of the audio output channels is used to transmit different audio, The associated electronic device associated with the electronic device obtains the target audio path determined by the associated electronic device, and then determines the target corresponding to the audio output scene from the multiple audio output channels according to the target audio path determined by the associated electronic device. The audio output channel further enhances the audio effect of the audio transmitted by the target audio output channel, so that the electronic device can selectively enhance the sound effect from multiple audio output channels corresponding to the audio output scene according to the current audio output scene. The flexibility of sound effects processing can further improve the user experience.
请参阅图7,本申请提供了一种音效处理装置300,运行于电子设备,所述装置300包括:音频场景获取单元310、目标确定单元320以及音效处理单元330。Referring to FIG. 7, this application provides a sound effect processing device 300 that runs on an electronic device. The device 300 includes: an audio scene acquisition unit 310, a target determination unit 320, and a sound effect processing unit 330.
音频场景获取单元310,用于获取当前的音频输出场景,所述音频输出场景对应有多个音频输出通路,每个所述音频输出通路用于传输的音频类型不同。The audio scene obtaining unit 310 is configured to obtain a current audio output scene, where the audio output scene corresponds to multiple audio output channels, and each of the audio output channels is used to transmit different audio types.
目标确定单元320,用于从所述多个音频输出通路中,确定所述音频输出场景对应的目标音频输出通路,所述目标音频输出通路为所述多个音频输出通路中需要进行音效增强的音频输出通路。A target determining unit 320 is configured to determine, from the multiple audio output channels, a target audio output channel corresponding to the audio output scene, where the target audio output channel is one of the multiple audio output channels that needs to be enhanced by sound effects. Audio output path.
作为一种方式,目标确定单元320,具体用于若音频场景获取单元310获取 所述音频输出场景为游戏界面场景,将所述多个音频输出通路中的动作音效输出通路确定为目标音频输出通路。As a method, the target determination unit 320 is specifically configured to determine the action sound output path among the multiple audio output paths as the target audio output path if the audio scene acquisition unit 310 acquires the audio output scene as a game interface scene. .
作为另外一种方式,目标确定单元320,还用于若音频场景获取单元310获取所述当前的音频输出场景为音频场景,将所述多个音频输出通路中的人物声音输出通路确定为目标音频输出通路;或者,若音频场景获取单元310获取所述当前的音频输出场景为视频播放场景,将所述多个音频输出通路中的背景音乐输出通路确定为目标音频输出通路。As another way, the target determining unit 320 is further configured to determine, if the audio scene acquiring unit 310 obtains the current audio output scene as an audio scene, a character sound output path among the multiple audio output paths as the target audio. An output path; or, if the audio scene acquisition unit 310 acquires that the current audio output scene is a video playback scene, determine the background music output path among the multiple audio output paths as the target audio output path.
音效处理单元330,用于增强所述目标音频输出通路所传输的音频的音效。The sound effect processing unit 330 is configured to enhance the sound effect of the audio transmitted by the target audio output path.
作为一种方式,若音频场景获取单元310获取所述音频输出场景为游戏界面场景,将所述多个音频输出通路中的动作音效输出通路确定为目标音频输出通路。As a method, if the audio scene acquisition unit 310 acquires that the audio output scene is a game interface scene, the action sound output path among the multiple audio output paths is determined as the target audio output path.
对应的,音效处理单元330,具体用于检测所述目标音频输出通路所传输的音频是否有相位信息;若检测到有相位信息,根据所述相位信息增强对所述目标音频输出通路所传输的音频的音效。Correspondingly, the sound effect processing unit 330 is specifically configured to detect whether the audio transmitted by the target audio output path has phase information; if phase information is detected, enhance the transmission of the target audio output path according to the phase information. Audio sound effects.
本申请提供的一种音效处理装置,通过获取当前的音频输出场景,在所述音频输出场景对应有多个音频输出通路,每个所述音频输出通路用于传输的音频不同的情况下,从所述多个音频输出通路中,确定所述音频输出场景对应的目标音频输出通路,再增强所述目标音频输出通路所传输的音频的音效,从而使得电子设备可以依据当前的音频输出场景从音频输出场景对应有多个音频输出通路中选择性的进行音效增强,提升了音效处理的灵活性,进而可以提升用户体验。A sound effect processing device provided by the present application obtains a current audio output scene. In the case where the audio output scene corresponds to multiple audio output channels, and each of the audio output channels is used to transmit different audio, Among the plurality of audio output channels, a target audio output channel corresponding to the audio output scene is determined, and then the audio effect of the audio transmitted by the target audio output channel is enhanced, so that the electronic device can remove the audio from the audio according to the current audio output scene. The output scene corresponds to multiple audio output channels for selective audio enhancement, which improves the flexibility of audio effects processing, which in turn can improve the user experience.
请参阅图8,本申请提供了一种音效处理装置400,运行于电子设备,所述装置400包括:音频场景获取单元410、关联设备获取单元420、关联通路获取单元430、目标确定单元440以及音效处理单元450。Referring to FIG. 8, this application provides a sound effect processing apparatus 400 that runs on an electronic device. The apparatus 400 includes: an audio scene acquisition unit 410, an associated device acquisition unit 420, an associated path acquisition unit 430, a target determination unit 440, and Sound effect processing unit 450.
音频场景获取单元410,用于获取当前的音频输出场景,所述音频输出场景对应有多个音频输出通路,每个所述音频输出通路用于传输的音频类型不同。The audio scene obtaining unit 410 is configured to obtain a current audio output scene, where the audio output scene corresponds to multiple audio output channels, and each of the audio output channels is used to transmit different audio types.
关联设备获取单元420,用于获取与所述电子设备关联的关联电子设备。An associated device obtaining unit 420 is configured to obtain an associated electronic device associated with the electronic device.
作为一种方式,关联设备获取单元420,具体用于获取与所述电子设备绑定的用户帐号关联的关联用户帐号;获取绑定有所述关联用户帐号的参考关联电子设备;从所述参考关联电子设备中选择与所述电子设备处于同一局域网的设备作为关联电子设备。As one way, the associated device obtaining unit 420 is specifically configured to obtain an associated user account associated with a user account bound to the electronic device; obtain a reference associated electronic device bound with the associated user account; and from the reference Among the associated electronic devices, a device in the same local area network as the electronic device is selected as the associated electronic device.
关联通路获取单元430,用于获取所述关联电子设备在显示所述音频输出场景时,确定的目标音频输出通路。The associated path acquisition unit 430 is configured to acquire a target audio output path determined by the associated electronic device when the audio output scene is displayed.
目标确定单元440,用于根据所述关联电子设备确定的目标音频输出通路,确定所述音频输出场景对应的目标音频输出通路。The target determining unit 440 is configured to determine a target audio output path corresponding to the audio output scene according to a target audio output path determined by the associated electronic device.
目标确定单元440,还用于若检测到所述关联电子设备的状态信息符合预设条件,在所述电子设备确定的目标音频通路中增加所述关联电子设备确定的目标音频输出通路。The target determining unit 440 is further configured to add a target audio output path determined by the associated electronic device to a target audio path determined by the electronic device if it is detected that the status information of the associated electronic device meets a preset condition.
可选的,所述若检测到所述关联电子设备的状态信息符合预设条件包括:Optionally, if it is detected that the status information of the associated electronic device meets a preset condition, the method includes:
若检测到所述关联电子设备解除与所述电子设备的关联关系;If it is detected that the associated electronic device releases the association relationship with the electronic device;
若检测到所述关联电子设备的电量低于设定值;或者If it is detected that the power of the associated electronic device is lower than a set value; or
若检测到所述关联电子设备切换了无线接入热点。If it is detected that the associated electronic device switches a wireless access hotspot.
音效处理单元450,用于增强所述目标音频输出通路所传输的音频的音效。The sound effect processing unit 450 is configured to enhance the sound effect of the audio transmitted by the target audio output path.
本申请提供的一种音效处理装置,通过获取当前的音频输出场景,在所述音频输出场景对应有多个音频输出通路,每个所述音频输出通路用于传输的音频不同的情况下,获取与电子设备关联的关联电子设备,再获取关联电子设备确定的目标音频通路,然后根据关联电子设备确定的目标音频通路,从所述多个音频输出通路中,确定所述音频输出场景对应的目标音频输出通路,再增强所述目标音频输出通路所传输的音频的音效,从而使得电子设备可以依据当前的音频输出场景从音频输出场景对应有多个音频输出通路中选择性的进行音效增强,提升了音效处理的灵活性,进而可以提升用户体验。A sound effect processing device provided by the present application is obtained by acquiring a current audio output scene. In the case where the audio output scene corresponds to multiple audio output channels, and each of the audio output channels is used to transmit different audio, The associated electronic device associated with the electronic device obtains the target audio path determined by the associated electronic device, and then determines the target corresponding to the audio output scene from the multiple audio output channels according to the target audio path determined by the associated electronic device. The audio output channel further enhances the audio effect of the audio transmitted by the target audio output channel, so that the electronic device can selectively enhance the sound effect from multiple audio output channels corresponding to the audio output scene according to the current audio output scene. The flexibility of sound effects processing can further improve the user experience.
需要说明的是,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working processes of the devices and units described above can refer to the corresponding processes in the foregoing method embodiments, and are not repeated here. . In the several embodiments provided in this application, the coupling between the modules may be electrical, mechanical, or other forms of coupling. In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist separately physically, or two or more modules may be integrated into one module. The above integrated modules may be implemented in the form of hardware or software functional modules.
需要说明的是,本申请中具体如何根据音频编码类型对音频数据进行编码是可以采用现有的技术,本申请就不再细述。It should be noted that, in the present application, specifically how to encode audio data according to the type of audio encoding can use existing technology, which will not be described in detail in this application.
综上所述,本申请提供的一种音效处理方法、装置、电子设备及存储介质,通过获取当前的音频输出场景,在所述音频输出场景对应有多个音频输出通路,每个所述音频输出通路用于传输的音频不同的情况下,从所述多个音频输出通路中,确定所述音频输出场景对应的目标音频输出通路,再增强所述目标音频输出通路所传输的音频的音效,从而使得电子设备可以依据当前的音频输出场景从音频输出场景对应有多个音频输出通路中选择性的进行音效增强,提升了音效处理的灵活性,进而可以提升用户体验。In summary, a sound effect processing method, device, electronic device, and storage medium provided in this application, by obtaining a current audio output scene, there are multiple audio output channels corresponding to the audio output scene, and each of the audio When the output channel is used to transmit different audio, determining a target audio output channel corresponding to the audio output scene from the multiple audio output channels, and then enhancing the audio effect of the audio transmitted by the target audio output channel, As a result, the electronic device can selectively perform sound enhancement from multiple audio output channels corresponding to the audio output scene according to the current audio output scene, improving the flexibility of sound effect processing, and further improving the user experience.
下面将结合图9对本申请提供的一种电子设备进行说明。An electronic device provided in the present application will be described below with reference to FIG. 9.
请参阅图9,基于上述的音效处理方法、装置,本申请实施例还提供的另一种可以执行前述终端控制方法的电子设备100。电子设备100包括相互耦合的一个或多个(图中仅示出一个)处理器102、存储器104、无线模块106以及音频模块108。其中,该存储器104中存储有可以执行前述实施例中内容的程序,而处理器102可以执行该存储器104中存储的程序。Referring to FIG. 9, based on the foregoing sound effect processing method and device, another embodiment of the present application further provides an electronic device 100 that can execute the foregoing terminal control method. The electronic device 100 includes one or more processors (only one is shown in the figure), a memory 104, a wireless module 106, and an audio module 108 that are coupled to each other. The memory 104 stores a program that can execute the content in the foregoing embodiment, and the processor 102 can execute the program stored in the memory 104.
其中,处理器102可以包括一个或者多个处理核。处理器102利用各种接口和线路连接整个电子设备100内的各个部分,通过运行或执行存储在存储器104内的指令、程序、代码集或指令集,以及调用存储在存储器104内的数据,执行电子设备100的各种功能和处理数据。可选地,处理器102可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器102可集成中央处理器(Central  Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和目标应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器102中,单独通过一块通信芯片进行实现。The processor 102 may include one or more processing cores. The processor 102 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes or executes instructions, programs, code sets, or instruction sets stored in the memory 104 by calling or executing data stored in the memory 104 to execute Various functions and processing data of the electronic device 100. Optionally, the processor 102 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 102 may integrate one or a combination of a central processing unit (Central Processing Unit), a graphics processor (Graphics Processing Unit, GPU), and a modem. Among them, the CPU mainly handles the operating system, user interface, and target applications; 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 102, and may be implemented by a communication chip alone.
存储器104可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器104可用于存储指令、程序、代码、代码集或指令集。存储器104可包括存储程序区和存储数据区,例如,存储器104中可以存储有音效处理装置。该音效处理装置可以为前述的装置300、或者装置400。其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储终端100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The memory 104 may include random access memory (Random Access Memory, RAM), and may also include read-only memory (Read-Only Memory). The memory 104 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 104 may include a storage program area and a storage data area. For example, the memory 104 may store a sound effect processing device. The sound effect processing device may be the aforementioned device 300 or the device 400. 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.
所述无线模块106用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯,例如和音频播放设备进行通讯。所述无线模块106可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。所述无线模块106可与各种网络如互联网、企业内部网、无线网络进行通讯或者通过无线网络与其他电子设备进行通讯。上述的无线网络可包括蜂窝式电话网、无线局域网或者城域网。上述的无线网络可以使用各种通信标准、协议及技术,包括但并不限于IEEE 802协议以 蓝牙协议,甚至可包括那些当前仍未被开发出来的协议。 The wireless module 106 is used to receive and send electromagnetic waves, and realize the mutual conversion of electromagnetic waves and electrical signals, so as to communicate with a communication network or other equipment, such as communicating with audio playback equipment. The wireless module 106 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption / decryption chip, a subscriber identity module (SIM) card, a memory, and the like . The wireless module 106 can communicate with various networks, such as the Internet, an intranet, and a wireless network, or communicate with other electronic devices through a wireless network. The wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network. The above-described wireless networks may use various communication standards, protocols and technologies, including but not limited to IEEE 802 protocol and the Bluetooth protocol, this protocol may even including those not yet been developed.
再者,该音频模块108可以用于处理电子设备100中所运行的应用程序输出的音频。例如,该音频模块108可以接收无线模块106从其他电子设备获取的音频处理参数,然后调节音频模块108的音频处理参数。Furthermore, the audio module 108 can be used to process audio output by an application program running in the electronic device 100. For example, the audio module 108 may receive audio processing parameters obtained by the wireless module 106 from other electronic devices, and then adjust the audio processing parameters of the audio module 108.
请参考图10,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质800中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 10, which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. The computer-readable medium 800 stores program code, and the program code can be called by a processor to execute the method described in the foregoing method embodiment.
计算机可读存储介质800可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质800包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质800具有执行上述方法中的任何方法步骤的程序代码810的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码810可以例如以适当形式进行压缩。The computer-readable storage medium 800 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read-Only Memory), an EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 800 has a storage space for program code 810 that performs any of the method steps in the above-described methods. These program codes can be read from or written into one or more computer program products. The program code 810 may be compressed, for example, in a suitable form.
就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子设备),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM 或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。For the purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. More specific examples (non-exhaustive list) of computer readable media include the following: electrical connections (electronic devices) with one or more wirings, portable computer disk enclosures (magnetic devices), random access memory (RAM), Read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program can be printed, because, for example, by optically scanning the paper or other medium, followed by editing, interpretation, or other suitable Processing to obtain the program electronically and then store it in computer memory.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to describe the technical solution of the present application, rather than limiting it. Although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still Modifications to the technical solutions described in the foregoing embodiments, or equivalent replacements of some of the technical features thereof; and these modifications or replacements do not drive the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (20)

  1. 一种音效处理方法,其特征在于,应用于电子设备,所述方法包括:A sound effect processing method, which is characterized in that the method is applied to an electronic device, and the method includes:
    获取当前的音频输出场景,所述音频输出场景对应有多个音频输出通路,每个所述音频输出通路用于传输的音频类型不同;Acquiring a current audio output scene, where the audio output scene corresponds to multiple audio output channels, and each of the audio output channels is used to transmit different audio types;
    从所述多个音频输出通路中,确定所述音频输出场景对应的目标音频输出通路,所述目标音频输出通路为所述多个音频输出通路中需要进行音效增强的音频输出通路;Determining, from the plurality of audio output channels, a target audio output channel corresponding to the audio output scene, where the target audio output channel is an audio output channel that requires sound enhancement among the plurality of audio output channels;
    增强所述目标音频输出通路所传输的音频的音效。Enhancing the sound effect of the audio transmitted by the target audio output path.
  2. 根据权利要求1所述的方法,其特征在于,所述从所述多个音频输出通路中,确定所述音频输出场景对应的目标音频输出通路的步骤包括:The method according to claim 1, wherein the step of determining a target audio output path corresponding to the audio output scene from the plurality of audio output paths comprises:
    若所述当前的音频输出场景为游戏界面场景,将所述多个音频输出通路中的动作音效输出通路确定为目标音频输出通路。If the current audio output scene is a game interface scene, determine an action audio output path among the plurality of audio output paths as a target audio output path.
  3. 根据权利要求2所述的方法,其特征在于,所述增强所述目标音频输出通路所传输的音频的音效的步骤包括:The method according to claim 2, wherein the step of enhancing a sound effect of audio transmitted by the target audio output path comprises:
    检测所述目标音频输出通路所传输的音频是否有相位信息;Detecting whether the audio transmitted by the target audio output path has phase information;
    若检测到有相位信息,根据所述相位信息增强对所述目标音频输出通路所传输的音频的音效。If phase information is detected, the sound effect of the audio transmitted on the target audio output path is enhanced according to the phase information.
  4. 根据权利要求2-3任一项所述的方法,其特征在于,所述动作音效输出通路包括左声道的音频内容和右声道的音频内容,所述若检测到有相位信息,根据所述相位信息增强对所述目标音频输出通路所传输的音频的音效的步骤包括:The method according to any one of claims 2-3, wherein the action sound output path includes audio content of a left channel and audio content of a right channel, and if phase information is detected, The step of enhancing the sound effect of the audio transmitted on the target audio output path by the phase information includes:
    增大所述动作音效输出通路中左声道和右声道各自所传输的音频内容的参数的差值,以增强对所述目标音频输出通路所传输的动作音效的音效效果,其中,所述参数包括声音强度、声音时间以及声音音色。Increasing the difference between the parameters of the audio content transmitted by the left channel and the right channel in the action sound effect output path to enhance the sound effect of the action sound effect transmitted by the target audio output path, wherein the Parameters include sound intensity, sound time, and sound tone.
  5. 根据权利要求4所述的方法,其特征在于,所述增大所述动作音效输出通路中左声道和右声道各自所传输的音频内容的参数的差值的步骤包括:The method according to claim 4, wherein the step of increasing the difference between the parameters of the audio content transmitted by the left channel and the right channel in the action sound effect output path comprises:
    获取电子设备当前的音频输出设备的类型;Get the current audio output device type of the electronic device;
    根据所述音频输出设备的类型确定所述左声道和所述右声道各自所传输的音频内容所对应的参数之间的差值增大阈值。Determining, according to the type of the audio output device, a difference between a parameter corresponding to the audio content transmitted by the left channel and the right channel by an increase threshold.
  6. 根据权利要求5所述的方法,其特征在于,所述根据所述音频输出设备的类型确定所述左声道和所述右声道各自所传输的音频内容所对应的参数之间的差值增大阈值的步骤包括:The method according to claim 5, characterized in that the difference between the parameters corresponding to the audio content transmitted by the left channel and the right channel is determined according to the type of the audio output device The steps to increase the threshold include:
    若所述音频输出设备为自带的扬声器,将所述左声道和所述右声道各自所传输的音频内容所对应的参数之间的差值增大第一阈值;If the audio output device is a built-in speaker, increasing a difference between parameters corresponding to the audio content transmitted by the left channel and the right channel by a first threshold value;
    若所述音频输出设备为直接佩戴在用户耳朵里面的音频输出设备,将所述左声道和所述右声道各自所传输的音频内容所对应的参数之间的差值增大第二阈值,所述第二阈值小于所述第一阈值。If the audio output device is an audio output device directly worn in the user's ear, increasing the difference between the parameters corresponding to the audio content transmitted by the left channel and the right channel by a second threshold , The second threshold is smaller than the first threshold.
  7. 根据权利要求5所述的方法,其特征在于,若所述音效输出设备为耳机, 所述耳机包括左耳机和右耳机,所述增大所述动作音效输出通路中左声道和右声道各自所传输的音频内容的参数的差值的步骤包括:The method according to claim 5, characterized in that if the sound effect output device is a headphone, the earphone includes a left earphone and a right earphone, and increasing the left channel and the right channel in the action sound output path The steps of the difference of the parameters of the respective transmitted audio content include:
    若检测到所述左耳机佩戴在右耳朵上,所述右耳机佩戴在左耳朵上,若检测到左侧有声音,通过增大所述右声道的参数来增大所述左声道和所述右声道各自所传输的音频内容所对应的参数之间的差值;If it is detected that the left earphone is worn on the right ear, and the right earphone is worn on the left ear, if a sound is detected on the left side, increase the parameters of the right channel to increase the left channel and A difference between parameters corresponding to the audio content respectively transmitted by the right channels;
    若检测到右侧有声音,通过增大所述左声道的参数来增大所述左声道和所述右声道各自所传输的音频内容所对应的参数之间的差值。If sound is detected on the right side, by increasing the parameters of the left channel, the difference between the parameters corresponding to the audio content transmitted by the left channel and the right channel is increased.
  8. 根据权利要求2所述的方法,其特征在于,所述从所述多个音频输出通路中,确定所述音频输出场景对应的目标音频输出通路的步骤还包括:The method according to claim 2, wherein the step of determining a target audio output path corresponding to the audio output scene from the plurality of audio output paths further comprises:
    若所述当前的音频输出场景为音频场景,将所述多个音频输出通路中的人物声音输出通路确定为目标音频输出通路;If the current audio output scene is an audio scene, determining a person sound output path among the plurality of audio output paths as a target audio output path;
    若所述当前的音频输出场景为视频播放场景,将所述多个音频输出通路中的背景音乐输出通路确定为目标音频输出通路。If the current audio output scene is a video playback scene, a background music output path among the multiple audio output paths is determined as a target audio output path.
  9. 根据权利要求1所述的方法,其特征在于,所述从所述多个音频输出通路中,确定所述音频输出场景对应的目标音频输出通路的步骤包括:The method according to claim 1, wherein the step of determining a target audio output path corresponding to the audio output scene from the plurality of audio output paths comprises:
    显示与所述音频输出场景对应的界面的音频控制控件,所述音频控制控件用于供用户调节目标音频输出通路,不同的音频控制控件所对应的目标音频输出通路不同;Displaying an audio control control of an interface corresponding to the audio output scene, the audio control control being used by a user to adjust a target audio output path, and different audio control controls correspond to different target audio output paths;
    获取所述音频控制控件的触控操作;Obtaining a touch operation of the audio control control;
    根据所述触控操作确定与所述音频控制控件对应的目标音频输出通路。A target audio output path corresponding to the audio control control is determined according to the touch operation.
  10. 根据权利要求1所述的方法,其特征在于,所述从所述多个音频输出通路中,确定所述音频输出场景对应的目标音频输出通路的步骤包括:The method according to claim 1, wherein the step of determining a target audio output path corresponding to the audio output scene from the plurality of audio output paths comprises:
    获取与所述电子设备关联的关联电子设备;Acquiring an associated electronic device associated with the electronic device;
    获取所述关联电子设备在显示所述音频输出场景时,确定的目标音频输出通路;Obtaining a target audio output path determined by the associated electronic device when displaying the audio output scene;
    根据所述关联电子设备确定的目标音频输出通路,确定所述音频输出场景对应的目标音频输出通路。Determining a target audio output path corresponding to the audio output scene according to the target audio output path determined by the associated electronic device.
  11. 根据权利要求10所述的方法,其特征在于,所述获取与所述电子设备关联的关联电子设备的步骤包括:The method according to claim 10, wherein the step of obtaining an associated electronic device associated with the electronic device comprises:
    获取与所述电子设备绑定的用户帐号关联的关联用户帐号;Obtaining an associated user account associated with a user account bound to the electronic device;
    获取绑定有所述关联用户帐号的参考关联电子设备;Obtaining a reference associated electronic device to which the associated user account is bound;
    从所述参考关联电子设备中选择与所述电子设备处于同一局域网的设备作为关联电子设备。A device in the same local area network as the electronic device is selected from the reference associated electronic devices as the associated electronic device.
  12. 根据权利要求11所述的方法,其特征在于,所述获取与所述的电子设备绑定的用户帐号关联的关联用户帐号时还包括:The method according to claim 11, wherein when the obtaining an associated user account associated with a user account bound to the electronic device further comprises:
    获取所述关联用户帐号所绑定的电子设备的设备标识;Obtaining a device identifier of an electronic device bound to the associated user account;
    所述从所述参考关联电子设备中选择与所述电子设备处于同一局域网的设备作为关联电子设备的步骤包括:The step of selecting a device in the same local area network as the associated electronic device from the reference associated electronic device includes:
    基于所述设备标识从所述参考关联电子设备中选择与所述电子设备处于同一局域网的设备作为关联电子设备。A device that is in the same local area network as the electronic device is selected as the associated electronic device from the reference associated electronic device based on the device identification.
  13. 根据权利要求12所述的方法,其特征在于,所述设备标识包括局域网IP地址,所述基于所述设备标识从所述参考关联电子设备中选择与所述电子设备处于同一局域网的设备作为关联电子设备的步骤包括:The method according to claim 12, wherein the device identifier comprises a local area network IP address, and the device associated with the electronic device on the same local area network as the electronic device is selected as an association from the reference associated electronic device based on the device identifier. The steps of the electronic device include:
    检测所述局域网IP地址与所述电子设备所处的局域网IP地址是否一致;Detecting whether the local area network IP address is consistent with the local area network IP address where the electronic device is located;
    若一致,将与所述电子设备处于同一局域网的设备作为关联电子设备。If they are the same, the device in the same local area network as the electronic device is regarded as the associated electronic device.
  14. 根据权利要求10所述的方法,其特征在于,所述根据所述关联电子设备确定的目标音频输出通路,确定所述音频输出场景对应的目标音频输出通路的步骤之后还包括:The method according to claim 10, wherein after the step of determining a target audio output path corresponding to the audio output scene according to the target audio output path determined by the associated electronic device, further comprising:
    若检测到所述关联电子设备的状态信息符合预设条件,在所述电子设备确定的目标音频通路中增加所述关联电子设备确定的目标音频输出通路。If it is detected that the status information of the associated electronic device meets a preset condition, a target audio output path determined by the associated electronic device is added to a target audio path determined by the electronic device.
  15. 根据权利要求14所述的方法,其特征在于,所述若检测到所述关联电子设备的状态信息符合预设条件包括:The method according to claim 14, wherein if the state information of the associated electronic device is detected to meet a preset condition comprises:
    若检测到所述关联电子设备解除与所述电子设备的关联关系;If it is detected that the associated electronic device releases the association relationship with the electronic device;
    若检测到所述关联电子设备的电量低于设定值;或者If it is detected that the power of the associated electronic device is lower than a set value; or
    若检测到所述关联电子设备切换了无线接入热点。If it is detected that the associated electronic device switches a wireless access hotspot.
  16. 根据权利要求1所述的方法,其特征在于,所述获取当前的音频输出场景的步骤包括:The method according to claim 1, wherein the step of obtaining a current audio output scene comprises:
    获取当前正在运行的应用程序;Get the currently running application;
    根据所述应用程序的类型确定当前的音频输出场景。The current audio output scene is determined according to the type of the application.
  17. 根据权利要求16所述的方法,其特征在于,所述根据所述应用程序的类型确定当前的音频输出场景的步骤包括:The method according to claim 16, wherein the step of determining a current audio output scene according to the type of the application comprises:
    若所述应用程序为游戏类的应用程序,确定当前的音频输出场景为游戏界面场景;If the application is a game application, determine that the current audio output scene is a game interface scene;
    若所述应用程序为音乐播放类的应用程序,确定当前的音频输出场景为音乐播放场景;If the application is a music playback application, determining that the current audio output scene is a music playback scene;
    若所述应用程序为视频类的应用程序,确定当前的音频输出场景为视频播放场景。If the application is a video application, determine that the current audio output scene is a video playback scene.
  18. 一种音效处理装置,其特征在于,运行于电子设备,所述装置包括:A sound effect processing device, characterized in that it runs on electronic equipment, and the device includes:
    音频场景获取单元,用于获取当前的音频输出场景,所述音频输出场景对应有多个音频输出通路,每个所述音频输出通路用于传输的音频类型不同;An audio scene obtaining unit, configured to obtain a current audio output scene, where the audio output scene corresponds to multiple audio output channels, and each of the audio output channels is used to transmit different audio types;
    目标确定单元,用于从所述多个音频输出通路中,确定所述音频输出场景对应的目标音频输出通路,所述目标音频输出通路为所述多个音频输出通路中需要进行音效增强的音频输出通路;A target determining unit is configured to determine, from the multiple audio output channels, a target audio output channel corresponding to the audio output scene, where the target audio output channel is an audio that needs to be enhanced in the multiple audio output channels. Output path
    音效处理单元,用于增强所述目标音频输出通路所传输的音频的音效。A sound effect processing unit, configured to enhance the sound effect of the audio transmitted by the target audio output path.
  19. 一种电子设备,其特征在于,包括一个或多个处理器以及存储器;An electronic device, comprising one or more processors and a memory;
    一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行权利要求1-17任一所述的方法。One or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to perform the method of any one of claims 1-17.
  20. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有程序代码,其中,在所述程序代码被处理器运行时执行权利要求1-17 任一所述的方法。A computer-readable storage medium, characterized in that the computer-readable storage medium stores program code, wherein the method according to any one of claims 1-17 is executed when the program code is run by a processor.
PCT/CN2019/094437 2018-09-04 2019-07-02 Sound effect processing method and apparatus, and electronic device and storage medium WO2020048209A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811028137.2A CN109107158B (en) 2018-09-04 2018-09-04 Sound effect processing method and device, electronic equipment and computer readable storage medium
CN201811028137.2 2018-09-04

Publications (1)

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

Family

ID=64861934

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/094437 WO2020048209A1 (en) 2018-09-04 2019-07-02 Sound effect processing method and apparatus, and electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN109107158B (en)
WO (1) WO2020048209A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109165005B (en) * 2018-09-04 2020-08-25 Oppo广东移动通信有限公司 Sound effect enhancement method and device, electronic equipment and storage medium
CN109107158B (en) * 2018-09-04 2020-09-22 Oppo广东移动通信有限公司 Sound effect processing method and device, electronic equipment and computer readable storage medium
CN109218528B (en) * 2018-09-04 2021-03-02 Oppo广东移动通信有限公司 Sound effect processing method and device and electronic equipment
CN110580914A (en) * 2019-07-24 2019-12-17 安克创新科技股份有限公司 Audio processing method and equipment and device with storage function
CN112000835A (en) * 2020-08-31 2020-11-27 上海商米科技集团股份有限公司 Dynamic sound effect loading system and method for electronic equipment
CN117406654B (en) * 2023-12-15 2024-04-16 荣耀终端有限公司 Sound effect processing method and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016011814A1 (en) * 2014-07-25 2016-01-28 中兴通讯股份有限公司 Method and apparatus for audio mixing and playing
CN106095387A (en) * 2016-06-16 2016-11-09 广东欧珀移动通信有限公司 The audio method to set up of a kind of terminal and terminal
CN106775562A (en) * 2016-12-09 2017-05-31 奇酷互联网络科技(深圳)有限公司 The method and device of audio frequency parameter treatment
CN109107158A (en) * 2018-09-04 2019-01-01 Oppo广东移动通信有限公司 Sound effect treatment method, device and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103893971B (en) * 2012-12-25 2015-05-27 腾讯科技(深圳)有限公司 Game sound effect generating method and client
US9959744B2 (en) * 2014-04-25 2018-05-01 Motorola Solutions, Inc. Method and system for providing alerts for radio communications
CN104240738B (en) * 2014-08-28 2018-05-11 杰发科技(合肥)有限公司 A kind of audio method to set up and electronic device
CN106095384B (en) * 2016-06-16 2019-03-15 Oppo广东移动通信有限公司 A kind of effect adjusting method and user terminal
CN107077318A (en) * 2016-12-14 2017-08-18 深圳前海达闼云端智能科技有限公司 A kind of sound processing method, device, electronic equipment and computer program product

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016011814A1 (en) * 2014-07-25 2016-01-28 中兴通讯股份有限公司 Method and apparatus for audio mixing and playing
CN106095387A (en) * 2016-06-16 2016-11-09 广东欧珀移动通信有限公司 The audio method to set up of a kind of terminal and terminal
CN106775562A (en) * 2016-12-09 2017-05-31 奇酷互联网络科技(深圳)有限公司 The method and device of audio frequency parameter treatment
CN109107158A (en) * 2018-09-04 2019-01-01 Oppo广东移动通信有限公司 Sound effect treatment method, device and electronic equipment

Also Published As

Publication number Publication date
CN109107158B (en) 2020-09-22
CN109107158A (en) 2019-01-01

Similar Documents

Publication Publication Date Title
WO2020048209A1 (en) Sound effect processing method and apparatus, and electronic device and storage medium
CN109445740B (en) Audio playing method and device, electronic equipment and storage medium
CN109151212B (en) Equipment control method and device and electronic equipment
WO2020048175A1 (en) Sound effect processing method, device, electronic device and storage medium
CN109151194B (en) Data transmission method, device, electronic equipment and storage medium
CN109413555B (en) Audio output method and device, earphone and electronic equipment
CN109165005B (en) Sound effect enhancement method and device, electronic equipment and storage medium
CN109284080B (en) Sound effect adjusting method and device, electronic equipment and storage medium
CN109410900B (en) Sound effect processing method and device and electronic equipment
CN109379490B (en) Audio playing method and device, electronic equipment and computer readable medium
EP3846020A1 (en) Sound effect adjusting method and apparatus, electronic device, and storage medium
CN109257732B (en) Equipment control method and device and electronic equipment
EP4047471A1 (en) Audio data processing method, server, and storage medium
CN113766477A (en) Device connection method, device, electronic device and computer readable medium
US11507340B2 (en) Audio output method, electronic device, and storage medium
CN109451341A (en) Video broadcasting method, video play device, electronic equipment and storage medium
CN114245328B (en) Voice call transfer method and electronic equipment
CN111277697A (en) Audio processing method and device, storage medium and electronic equipment
CN109041141B (en) Transmission link switching control method and related product
CN110602683A (en) Bluetooth control method, device, mobile terminal and storage medium
CN109298846B (en) Audio transmission method and device, electronic equipment and storage medium
CN116471355A (en) Audio playing method and electronic equipment
CN111107226A (en) Volume control method applied to mobile terminal
WO2020082387A1 (en) Method for changing audio channel, and related device
US20210152965A1 (en) Method for detecting blocking of microphone and related products

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

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

Country of ref document: EP

Kind code of ref document: A1