Audio playing method and device, electronic equipment and readable storage medium

By detecting the type of audio playback application and the type of sound effects, matching and applying additional sound effects, the problem of audio playback devices being unable to set the best sound effects for different applications is solved, thus improving the user's listening experience.

CN115687684BActive Publication Date: 2026-01-30NANJING GOERTEK ACOUSTICS TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211387384.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-07
Publication Date
2026-01-30
Estimated Expiration
2042-11-07

AI Technical Summary

Technical Problem

In existing technologies, when audio playback devices select sound effects for different audio streams or different devices on the platform side, they cannot set the best sound effects for different applications, resulting in a poor listening experience for users.

Method used

By detecting the type of audio playback application and the sound effect type of the audio file, the appropriate additional sound effects are matched and applied to enable the application to set the best sound effects for the audio file to be played.

Benefits of technology

It enables the matching of appropriate additional sound effects to audio files based on different application types and sound effect types, improving the user's listening experience and overcoming the problem that platform-side sound effects cannot meet the optimal sound effects for all applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115687684B_ABST
    Figure CN115687684B_ABST
Patent Text Reader

Abstract

This application provides an audio playback method, apparatus, electronic device, and readable storage medium. The audio playback method includes: if an audio file to be played is received from an audio playback application, detecting the application type corresponding to the audio playback application and the application sound effect type corresponding to the audio file to be played; matching corresponding additional sound effects for the audio file to be played based on the application type and the application sound effect type; and playing the audio file to be played based on the additional sound effects. This application solves the technical problem of poor user listening experience in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of audio playback technology, and in particular to an audio playback method, apparatus, electronic device, and readable storage medium. Background Technology

[0002] With the continuous development of technology, audio playback devices have emerged. To improve the inherent defect of poor sound effects in music playback devices, audio players currently select sound effects on the platform side for different audio streams or different devices to complete audio playback. However, different applications have different optimal sound effects, and the sound effects set on the platform side apply to all applications. This sound effect is not the best sound effect for all applications, resulting in a poor listening experience for users. Summary of the Invention

[0003] The main purpose of this application is to provide an audio playback method, device, electronic device, and readable storage medium, aiming to solve the technical problem of poor user listening experience in the prior art.

[0004] To achieve the above objectives, this application provides an audio playback method, the audio playback method comprising:

[0005] If an audio file to be played is received from an audio playback application, the application type corresponding to the audio playback application and the application sound effect type corresponding to the audio file to be played are detected.

[0006] Based on the application type and the application sound effect type, match the corresponding additional sound effects for the audio file to be played;

[0007] The audio file to be played is played according to the added sound effects.

[0008] To achieve the above objectives, this application also provides an audio playback device, the audio playback device comprising:

[0009] The detection module is used to detect the application type corresponding to the audio playback application and the application sound effect type corresponding to the audio file to be played if an audio file to be played is received from an audio playback application.

[0010] An additional sound effect matching module is used to match corresponding additional sound effects for the audio file to be played based on the application type and the application sound effect type.

[0011] An audio playback module is used to play the audio file to be played according to the added sound effects.

[0012] This application also provides an electronic device, the electronic device comprising: a memory, a processor, and a program of the audio playback method stored in the memory and executable on the processor, wherein when the program of the audio playback method is executed by the processor, it can implement the steps of the audio playback method as described above.

[0013] This application also provides a computer-readable storage medium storing a program implementing an audio playback method, wherein when the program is executed by a processor, it implements the steps of the audio playback method as described above.

[0014] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the audio playback method described above.

[0015] This application provides an audio playback method, apparatus, electronic device, and readable storage medium. Compared to existing technologies where audio players select sound effects for different audio streams or devices on the platform side to complete audio playback, this application first detects the application type of the audio playback application and the application sound effect type of the audio file upon receiving an audio file to be played from an audio playback application. Based on the application type and the application sound effect type, it matches corresponding additional sound effects to the audio file to be played; and then plays the audio file according to the additional sound effects. By combining the application type and the application sound effect type to match corresponding additional sound effects to the file to be played, this application can set different application sound effects for different applications. It achieves sound effect selection for the audio file to be played by the audio playback application on the application side, overcoming the technical shortcomings of existing technologies where different applications have different optimal sound effects, and the sound effects set on the platform side apply to all applications, which are not necessarily the optimal sound effects for all applications. This improves the user's listening experience. Attached Figure Description

[0016] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0017] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 This is a flowchart illustrating the first embodiment of the audio playback method of this application;

[0019] Figure 2 This is a flowchart illustrating the second embodiment of the audio playback method of this application;

[0020] Figure 3 This is a schematic diagram of the structure of an embodiment of the audio playback device of this application;

[0021] Figure 4 This is a schematic diagram of the device structure of the hardware operating environment involved in the audio playback method in the embodiments of this application.

[0022] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0023] To make the above-mentioned objectives, features, and advantages of this application more apparent and understandable, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0024] Example 1

[0025] Currently, audio players select sound effects on the platform side for different audio streams or different devices to complete audio playback. However, different applications have different optimal sound effects, and the sound effects set on the platform side apply to all applications. This sound effect is not the best sound effect for all applications, resulting in a poor listening experience for users.

[0026] This application provides an audio playback method. In the first embodiment of the audio playback method of this application, refer to... Figure 1 The audio playback method includes:

[0027] Step S10: If an audio file to be played from an audio playback application is received, then the application type corresponding to the audio playback application and the application sound effect type corresponding to the audio file to be played are detected.

[0028] In this embodiment of the application, it should be noted that the application type refers to the classification type of the application, such as music playback type, voice chat type, game type, etc. The application sound effect type includes one of real-time audio and existing audio. The application type and the application sound effect type are used to determine the audio stream type of the file to be played. Different additional sound effects can be matched according to the audio stream type. For example, sound effect 1 is set for audio stream type 1 that belongs to normal playback, where sound effect 1 includes bass enhancement, virtual surround, etc., and sound effect 2 is set for audio stream type 2 that belongs to voice transmission, where sound effect 2 includes voice enhancement, human voice enhancement, etc. The audio stream type is used to represent the data type of the audio file to be played. Different audio stream types correspond to different playback scenarios. For example, if the audio stream type is voice transmission, the corresponding playback scenario or client may be telephone communication. If the audio stream type is music, the corresponding playback scenario or client may be a music player or a video player.

[0029] As an example, step S10 includes: detecting whether an audio file to be played from an audio playback application has been received; if the audio file to be played from the audio playback application has been received, then detecting the application type corresponding to the audio playback application and the application sound effect type corresponding to the audio file to be played; if the audio file to be played from the audio playback application has not been received, then continuously monitoring whether an audio file to be played from the audio playback application has been received.

[0030] Step S20: Match corresponding additional sound effects to the audio file to be played based on the application type and the application sound effect type;

[0031] In the embodiments of this application, it should be noted that the additional sound effects include streaming sound effects and device sound effects. The sound effects refer to the sounds or noises superimposed on the vocal cords to enhance the realism, atmosphere, or dramatic information of a scene. The sound effects can be obtained by setting sound effect parameters, which include sub-bass, mid-bass, mid-range, mid-high, and ultra-high frequencies.

[0032] Step S30: Play the audio file to be played according to the added sound effects.

[0033] As an example, steps S20 to S30 include: determining the audio stream type corresponding to the audio file to be played based on the application type and the application sound effect type; matching a corresponding additional sound effect to the audio file to be played based on the audio stream type; and playing the audio file to be played based on the additional sound effect. For example, assuming the application type is voice chat and the application sound effect type is real-time audio, the audio stream type corresponding to the audio file to be played can be determined to be voice transmission, thereby determining that the additional sound effect to be matched to the audio file to be played is voice enhancement.

[0034] The step of matching corresponding additional sound effects to the audio file to be played based on the application type and the application sound effect type includes:

[0035] Step S21: Based on the application type and the application sound effect type, search for at least one sound effect mode corresponding to the audio playback application in the sound effect mode correspondence table;

[0036] Step S22: Based on the sound effect switch setting information corresponding to the sound effect mode, determine the additional sound effect that matches the audio file to be played.

[0037] As an example, steps S21 to S22 include: searching for at least one sound effect mode corresponding to the audio playback application in a sound effect mode correspondence table according to the application type and the application sound effect type, wherein the sound effect mode correspondence table is used to represent the mapping relationship between the audio playback application and the sound effect mode; and determining the additional sound effect matched by the audio file to be played according to the sound effect switch setting information corresponding to the sound effect mode. For example, assuming that the application type is voice chat and the application sound effect type is real-time audio, the sound effect mode corresponding to the voice chat application can be found in the sound effect mode correspondence table as voice mode. In the sound effect switch setting information corresponding to the voice mode, if the switch for the sound effect of voice enhancement is turned on and the switches for other sound effects are turned off, then it can be determined that the additional sound effect matched by the audio file to be played is voice enhancement.

[0038] Prior to the step of detecting the application type corresponding to the audio playback application and the application sound effect type corresponding to the audio file to be played, the audio playback method further includes:

[0039] Step S11: In response to the sound effect mode adjustment command, associate the audio playback application with the preset sound effect mode to set the sound effect mode correspondence table.

[0040] In this embodiment of the application, it should be noted that the sound effect mode adjustment command is used to adjust the sound effect mode corresponding to the audio playback application. The sound effect mode is associated with at least one audio playback application, and the sound effect mode includes at least one sound effect type. For example, sound effect mode 1 is associated with audio playback application A and audio playback application B, and sound effect mode 2 is associated with audio playback application C. Optionally, the sound effect mode can be classical music mode, movie mode, game mode, pop music mode, etc., and the sound effect type includes equalization, dynamic range compression, bass enhancement, virtual surround, etc.

[0041] Optionally, users can drag and drop the audio playback application to the desired corresponding sound effect mode, thereby associating the audio playback application with the sound effect mode to set up the sound effect mode correspondence table.

[0042] Furthermore, it should be noted that new applications are constantly emerging, and the sound effect mode correspondence table cannot possibly record all the sound effect modes corresponding to all audio playback applications. When an audio playback application cannot find a corresponding sound effect mode in the sound effect mode correspondence table, the audio playback application can be associated with a default sound effect mode. The audio playback application not included in the sound effect mode correspondence table is set as the default sound effect mode, thereby improving the adaptability of the sound effect modes in this application embodiment. The default sound effect mode can be selected from the existing sound effect modes in the sound effect mode correspondence table according to actual needs. This application embodiment does not limit the specific sound effect mode. For example, the default sound effect mode can be set to the normal mode. The default sound effect mode and the sound effect mode can be the same or different.

[0043] As an example, step S11 includes: in response to a sound effect mode adjustment command, associating the audio playback application with the sound effect mode; and setting the sound effect mode correspondence table according to the correspondence between the audio playback application and the sound effect mode. For example, it can be assumed that the audio playback application that needs to have its sound effect mode set is application A, and the sound effect mode that application A needs to be associated with is sound effect mode 1. Then, in response to the sound effect mode adjustment command, application A can be dragged and dropped under sound effect mode 1 to complete the association between application A and sound effect mode 1, thereby completing the setting of the sound effect mode correspondence table.

[0044] Prior to the step of associating the audio playback application with the sound effect mode in response to the sound effect mode adjustment command, the audio playback method further includes:

[0045] Step S111: Determine whether the audio playback application belongs to the preset conflict application set corresponding to the sound effect mode;

[0046] In this embodiment, it should be noted that the preset conflict application set refers to a set of audio playback applications that cannot be set in the sound effect mode. The preset conflict application set is used to reduce sound effect conflicts that occur when platform sound effects and application sound effects are enabled simultaneously. For example, suppose the audio playback application is a music player, and the sound effect type for the music player on the platform side is a sound enhancement effect. If the sound effect of the audio playback application is set to a sound reduction effect on the application side, it will conflict with the sound enhancement effect on the platform side. This sound effect conflict will cause a bad listening experience for the user. Therefore, by setting the preset conflict application set, it can play a restrictive role when the user sets the application mode correspondence table, thereby further reducing the occurrence of sound effect conflicts.

[0047] Step S112: If yes, then the sound effect mode adjustment command is invalid.

[0048] In this embodiment of the application, it should be noted that invalidating the sound effect mode adjustment command means canceling the sound effect mode adjustment command, that is, not executing the sound effect mode adjustment command.

[0049] Step S113, if not, then perform the step: in response to the sound effect mode adjustment command, associate the audio playback application with the sound effect mode.

[0050] As an example, steps S111 to S113 include: determining whether the audio playback application belongs to the preset conflicting application set corresponding to the sound effect mode; if the audio playback application belongs to the preset conflicting application set corresponding to the sound effect mode, then invalidating the sound effect mode adjustment command; if the audio playback application does not belong to the preset conflicting application set corresponding to the sound effect mode, then executing step S11: in response to the sound effect mode adjustment command, associating the audio playback application with the sound effect mode. For example, it can be assumed that the sound effect mode corresponding to audio playback application A needs to be set to sound effect mode 1, and the preset conflicting application set corresponding to sound effect mode 1 includes audio playback application A and audio playback application B. It can be seen that the preset conflicting application set corresponding to sound effect mode 1 includes audio playback application A, so it can be concluded that the sound effect mode corresponding to audio playback application A cannot be set to sound effect mode 1, and the sound effect mode adjustment command associated with audio playback application A to sound effect mode 1 needs to be invalidated. This application embodiment can restrict the audio effect modes that can be associated with an audio playback application when the user sets the audio effect mode mapping table by pre-setting a conflict application set, thereby avoiding audio effect conflicts caused by the simultaneous activation of platform audio effects and application audio effects.

[0051] Prior to the step of associating the audio playback application with the sound effect mode in response to the sound effect mode adjustment command, the audio playback method further includes:

[0052] Step A111: Obtain at least one application information tag corresponding to the audio playback application;

[0053] In this embodiment of the application, it should be noted that the application information tag is used to determine the application type, and the application information tag includes the application name, application attributes, etc.

[0054] Step A112: Based on the matching degree between the application information tags and the sound effect types of the sound effect modes, determine the sound effect mode priority information corresponding to the audio playback application.

[0055] In this embodiment of the application, it should be noted that the sound effect mode priority information is used to recommend sound effect modes when setting the sound effect mode of the audio playback application. For example, it can be assumed that sound effect mode 1 includes sound effect A and sound effect B, sound effect mode 2 includes sound effect C, and sound effect mode 3 includes sound effect D. The matching degree between application 1 and sound effect A is 50%, the matching degree between application 1 and sound effect B is 60%, the matching degree between application 1 and sound effect C is 70%, and the matching degree between application 1 and sound effect D is 20. Then the average matching value between application 1 and sound effect mode 1 is 55, the average matching value between application 1 and sound effect mode 2 is 70, and the average matching value between application 1 and sound effect mode 2 is 20. Since 70>55>20, the sound effect mode priority information will include sound effect mode 1 and sound effect mode 2, and sound effect mode 2 will be recommended first.

[0056] Step A113: Based on the sound effect mode priority information, display the recommended priority list of the sound effect modes.

[0057] As an example, steps A111 to A113 include: obtaining at least one application information tag corresponding to the audio playback application; determining the application type of the audio playback application based on the application information tag; determining the average matching value between each application type and each sound effect mode based on the pairwise matching degree between each application type and each sound effect mode; determining the sound effect mode priority information corresponding to the audio playback application based on the average matching value; and displaying a recommended priority list of each sound effect mode in order of the size of the average matching value based on the sound effect mode priority information. For example, it can be assumed that the application name of audio playback application A is "X Music Box". The application type of audio playback application A can be determined to be music playback type through the application name. By matching the music type with the sound effect type of each sound effect mode, the sound effect modes with the highest average matching value are sound effect mode 1 and sound effect mode 2. Then, sound effect mode 1 and sound effect mode 2 will constitute the recommended priority list of sound effect modes. When the user sets the sound effect mode of audio playback application A, the user will be given priority to set sound effect mode 1 and sound effect mode 2. In this embodiment of the application, when the user sets the sound effect mode correspondence table, the sound effect mode is recommended through the recommended priority list of sound effect modes, thereby facilitating the setting of the sound effect mode correspondence table and making it easier for the user to select the best sound effect mode for the audio playback application.

[0058] Prior to the step of detecting the application type corresponding to the audio playback application and the application sound effect type corresponding to the audio file to be played, the audio playback method further includes:

[0059] Step B11: In response to the sound effect setting command, search in the sound effect mode for whether there is an additional sound effect that is the same as the sound effect to be set;

[0060] In this embodiment of the application, it should be noted that the sound effect to be set can be adjusted by using an equalizer according to the user's needs, thereby completing the sound effect setting. The equalizer is an electronic device that can adjust the amplification of various frequency components of electrical signals. By adjusting various different frequency electrical signals, the defects of the speaker and sound field are compensated. That is, by superimposing filters, the sound effect parameters are adjusted, thereby compensating for and modifying various sound sources.

[0061] If the condition is met in step B12, then the sound effect setting command is invalidated.

[0062] In this embodiment of the application, it should be noted that the invalidation of the sound effect setting command means canceling the sound effect type setting command, that is, not executing the sound effect type setting command.

[0063] Step B13: If not, add the sound effect to be set in the sound effect mode.

[0064] As an example, steps B11 to B13 include: in response to a sound effect setting command, obtaining the sound effect to be set, and searching in the sound effect mode for an additional sound effect identical to the sound effect to be set; if an additional sound effect identical to the sound effect to be set is found in the sound effect mode, then the sound effect setting command is invalidated; if no additional sound effect identical to the sound effect to be set is found in the sound effect mode, then the sound effect to be set is added in the sound effect mode. For example, it can be assumed that sound effect C needs to be added in sound effect mode 1. Sound effect mode 1 currently has sound effect A and sound effect B, where sound effect A is bass enhancement, sound effect B is virtual surround, and sound effect C is sound equalization. It can be seen that there is no additional sound effect identical to sound effect C in sound effect mode 1, so sound effect C can be added in sound effect mode 1, thereby making sound effect mode 1 have three sound effects set, namely sound effect A: bass enhancement, sound effect B: virtual surround, and sound effect C: sound equalization.

[0065] This application provides an audio playback method. Compared to existing technologies where music players select sound effects on the platform side for different audio streams or devices to complete audio playback, this application first detects the application type of the audio playback application and the application sound effect type of the audio file upon receiving the audio file to be played from an audio playback application. Based on the application type and the application sound effect type, it matches corresponding additional sound effects to the audio file to be played. Then, it plays the audio file according to the additional sound effects. This application, by combining the application type and the application sound effect type to match corresponding additional sound effects to the file to be played, allows for setting different application sound effects for different applications. This enables the selection of sound effects for the audio playback application's audio file to be played on the application side, overcoming the technical shortcomings of existing technologies where different applications have different optimal sound effects, and the sound effects set on the platform side apply to all applications, meaning the sound effect is not the optimal sound effect for all applications. This improves the user's listening experience.

[0066] Example 2

[0067] Furthermore, referring to Figure 2 In another embodiment of this application, content that is the same as or similar to that in Embodiment 1 described above can be referred to the above description and will not be repeated hereafter. Based on this, before the step of detecting the application type corresponding to the audio playback application and the application sound effect type corresponding to the audio file to be played if an audio playback application is received, the audio playback method further includes:

[0068] Step A10: In response to the platform sound effect selection command, enable the platform sound effect attachment function, wherein the platform sound effect attachment function is used to set additional sound effects for the audio file to be played;

[0069] Step A20, and / or, in response to the application sound effect selection instruction, enable the application sound effect attachment function, wherein the application sound effect attachment function is used to set application sound effects for the audio file to be played.

[0070] In this embodiment of the application, it should be noted that the platform audio effect addition function is used to set additional audio effects for the audio file to be played, and the application audio effect addition function is used to set application audio effects for the audio file to be played. Generally, in order to prevent audio effect conflicts caused by the simultaneous activation of the platform audio effect addition function and the application audio effect addition function, usually only one audio effect addition function is activated.

[0071] Optionally, a human-computer interaction can be established between the user terminal and the audio playback device to complete the selection of additional sound effects functions. The user terminal provides the user with a visual interface and an operable interface. Optionally, the user terminal can be the touch screen of the audio playback device. The user can complete the sound effect selection command by touching the virtual buttons on the touch screen. Optionally, the user terminal can be the display interface of the audio playback device. The user can control the cursor on the display interface to move to the virtual button position by controlling a signal output device such as a control handle or mouse. Pressing the trigger button of the signal output device can complete the function of the virtual button, thereby completing the sound effect selection command.

[0072] Additionally, it should be noted that if it is necessary to disable the platform sound effect addition function or the application sound effect addition function, it needs to be done through the sound effect disable command. Specifically, in response to the platform sound effect disable command, the platform sound effect addition function is disabled, wherein the platform sound effect addition function is used to set additional sound effects for the audio file to be played; and / or, in response to the application sound effect disable command, the application sound effect addition function is disabled, wherein the application sound effect addition function is used to set application sound effects for the audio file to be played.

[0073] As an example, steps A10 to A20 include: enabling the platform sound effect addition function in response to the platform sound effect selection instruction; enabling the platform sound effect addition function in response to the application sound effect selection instruction; enabling the platform sound effect addition function and the application sound effect addition function in response to the platform sound effect selection instruction and the application sound effect selection instruction, wherein the platform sound effect addition function is used to set additional sound effects for the audio file to be played, and the application sound effect addition function is used to set application sound effects for the audio file to be played.

[0074] This application provides a method for selecting additional sound effects. Firstly, in response to a platform sound effect selection command, the method activates the platform sound effect addition function, which is used to set additional sound effects for the audio file to be played. Secondly, in response to an application sound effect selection command, the method activates the application sound effect addition function, which is used to set application sound effects for the audio file to be played. This application provides sound effect settings on both the platform and application sides. The sound effect selection command can correspondingly activate the corresponding additional sound effect function, allowing users to choose to activate either the platform or application sound effect addition function. These two functions provide different listening experiences, allowing users to personalize their selection according to their needs, thereby enhancing the user's listening experience.

[0075] Example 3

[0076] This application also provides an audio playback device, see embodiments thereof. Figure 3 The audio playback device includes:

[0077] The detection module 10 is used to detect the application type corresponding to the audio playback application and the application sound effect type corresponding to the audio file to be played if an audio file to be played from an audio playback application is received.

[0078] The additional sound effect matching module 20 is used to match the corresponding additional sound effect for the audio file to be played based on the application type and the application sound effect type.

[0079] The audio playback module 30 is used to play the audio file to be played according to the additional sound effects.

[0080] Optionally, the additional sound effect matching module 20 further includes:

[0081] Based on the application type and the application sound effect type, search for at least one sound effect mode corresponding to the audio playback application in the sound effect mode correspondence table;

[0082] Based on the sound effect switch settings information corresponding to the sound effect mode, determine the additional sound effects corresponding to the audio file to be played.

[0083] Optionally, the audio playback device further includes:

[0084] In response to a sound effect mode adjustment command, the audio playback application is associated with the sound effect mode to set a sound effect mode mapping table.

[0085] Optionally, the audio playback device further includes:

[0086] Determine whether the audio playback application belongs to the preset conflicting application set corresponding to the sound effect mode;

[0087] If so, the sound effect mode adjustment command will be invalid.

[0088] If not, then perform the following step: in response to the sound effect mode adjustment command, associate the audio playback application with the sound effect mode.

[0089] Optionally, the audio playback device further includes:

[0090] Obtain at least one application information tag corresponding to the audio playback application;

[0091] Based on the matching degree between each application information tag and the sound effect type of each sound effect mode, the priority information of the sound effect mode corresponding to the audio playback application is determined.

[0092] Based on the sound effect mode priority information, a recommended priority list for each sound effect mode is displayed.

[0093] Optionally, the audio playback device further includes:

[0094] In response to a sound effect setting command, the system searches for an additional sound effect that is identical to the sound effect to be set in the sound effect mode.

[0095] If so, the aforementioned sound effect setting command will be invalid;

[0096] If not, then add the sound effect to be set in the sound effect mode.

[0097] Optionally, the audio playback device further includes:

[0098] In response to the platform's audio effect selection command, the platform's audio effect attachment function is enabled, wherein the platform's audio effect attachment function is used to set additional audio effects for the audio file to be played; and / or

[0099] In response to the application sound effect selection command, the application sound effect attachment function is enabled, wherein the application sound effect attachment function is used to set application sound effects for the audio file to be played.

[0100] The audio playback device provided in this application, employing the audio playback method in the above embodiments, solves the technical problem of poor user listening experience. Compared with the prior art, the beneficial effects of the audio playback device provided in this application are the same as those of the audio playback method provided in the above embodiments, and other technical features in this audio playback device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.

[0101] Example 4

[0102] This application provides an electronic device, which can be an audio playback device. The electronic device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the audio playback method in the first embodiment described above.

[0103] The following is for reference. Figure 4 The diagram illustrates a structural schematic of an electronic device suitable for implementing embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as head-mounted audio devices, mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 4 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.

[0104] like Figure 4 As shown, an electronic device may include a processing unit (such as a central processing unit, graphics processing unit, etc.) that can perform various appropriate actions and processes based on a program stored in read-only memory (ROM) or a program loaded from a storage device into random access memory (RAM). The RAM also stores various programs and data required for the operation of the electronic device. The processing unit, ROM, and RAM are interconnected via a bus. Input / output (I / O) interfaces are also connected to the bus.

[0105] Typically, the following systems can be connected to the I / O interface: input devices including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices including, for example, magnetic tapes, hard disks, etc.; and communication devices. Communication devices allow electronic devices to communicate wirelessly or wiredly with other devices to exchange data. Although electronic devices with various systems are shown in the figures, it should be understood that it is not required to implement or possess all the systems shown. More or fewer systems may be implemented alternatively.

[0106] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from a storage device, or installed from a ROM. When the computer program is executed by a processing device, it performs the functions defined above in the methods of embodiments of this disclosure.

[0107] The electronic device provided in this application, employing the audio playback method described in Embodiment 1 or Embodiment 2 above, solves the technical problem of poor user listening experience. Compared with the prior art, the beneficial effects of the electronic device provided in this application are the same as those of the audio playback method provided in Embodiment 1 above, and other technical features of the electronic device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.

[0108] It should be understood that various parts of this disclosure can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics may be combined in any suitable manner in one or more embodiments or examples.

[0109] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0110] Example 5

[0111] This embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon, which are used to execute the audio playback method in the first embodiment described above.

[0112] The computer-readable storage medium provided in this application embodiment may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0113] The aforementioned computer-readable storage medium may be included in an electronic device or may exist independently without being assembled into an electronic device.

[0114] The aforementioned computer-readable storage medium carries one or more programs that, when executed by an electronic device, cause the electronic device to: upon receiving an audio file to be played from an audio playback application, detect the application type corresponding to the audio playback application and the application sound effect type corresponding to the audio file to be played; match corresponding additional sound effects for the audio file to be played based on the application type and the application sound effect type; and play the audio file to be played based on the additional sound effects.

[0115] Computer program code for performing the operations of this disclosure can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0116] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0117] The modules described in the embodiments of this disclosure can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.

[0118] The computer-readable storage medium provided in this application stores computer-readable program instructions for executing the above-described audio playback method, thus solving the technical problem of poor user listening experience. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the audio playback method provided in the above-described embodiments, and will not be repeated here.

[0119] Example 6

[0120] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the audio playback method described above.

[0121] The computer program product provided in this application solves the technical problem of poor user listening experience. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as the beneficial effects of the audio playback method provided in the above embodiments, and will not be repeated here.

[0122] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent scope of this application.

Claims

1. An audio playback method, characterized by, The audio playing method comprises: If a to-be-played audio file of an audio playing application is received, detecting an application type corresponding to the audio playing application and an application sound effect type corresponding to the to-be-played audio file, the application sound effect type comprising one of real-time audio and existing audio; According to the application type and the application sound effect type, searching for at least one sound effect mode corresponding to the audio playing application in a sound effect mode corresponding table; According to sound effect switch setting information corresponding to the sound effect mode, determining an additional sound effect matched to the to-be-played audio file; According to the additional sound effect, playing the to-be-played audio file; Before the step of detecting the application type corresponding to the audio playing application and the application sound effect type corresponding to the to-be-played audio file, the audio playing method further comprises: Determining whether the audio playing application belongs to a preset conflict application set corresponding to the sound effect mode; If yes, invalidating a sound effect mode adjustment command; If no, in response to a sound effect mode adjustment command, associating the audio playing application with the sound effect mode to set a sound effect mode corresponding table.

2. The audio playback method of claim 1, wherein, Before the step of associating the audio playing application with the sound effect mode in response to the sound effect mode adjustment command, the audio playing method further comprises: Obtaining at least one application information tag corresponding to the audio playing application; Based on a matching degree between the application information tag and a sound effect type of the sound effect mode, determining sound effect mode priority information corresponding to the audio playing application; Based on the sound effect mode priority information, displaying a recommended priority list of the sound effect mode.

3. The audio playback method of claim 1, wherein, Before the step of detecting the application type corresponding to the audio playing application and the application sound effect type corresponding to the to-be-played audio file, the audio playing method further comprises: In response to a sound effect setting command, determining whether there is an additional sound effect same as a to-be-set sound effect in the sound effect mode; If yes, invalidating the sound effect setting command; If no, adding the to-be-set sound effect in the sound effect mode.

4. The audio playback method of claim 1, wherein, Before the step of detecting the application type corresponding to the audio playing application and the application sound effect type corresponding to the to-be-played audio file, the audio playing method further comprises: In response to a platform sound effect selection instruction, starting a platform sound effect additional function, wherein the platform sound effect additional function is used to set an additional sound effect for the to-be-played audio file; and / or In response to an application sound effect selection instruction, starting an application sound effect additional function, wherein the application sound effect additional function is used to set an application sound effect for the to-be-played audio file.

5. An audio playback device, characterized by The audio playing device comprises: The detection module is configured to, if an audio file to be played of an audio playing application is received, detect an application type corresponding to the audio playing application and an application sound effect type corresponding to the audio file to be played, the application sound effect type including one of real-time audio and existing audio. Before the step of detecting the application type corresponding to the audio playing application and the application sound effect type corresponding to the audio file to be played, the detection module is further configured to determine whether the audio playing application belongs to a preset conflict application set corresponding to a sound effect mode. If yes, a sound effect mode adjustment command is invalidated. If no, the audio playing application is associated with the sound effect mode in response to a sound effect mode adjustment command, to set a sound effect mode corresponding table. The additional sound effect matching module is configured to, according to the application type and the application sound effect type, find at least one sound effect mode corresponding to the audio playing application in the sound effect mode corresponding table, and determine an additional sound effect corresponding to the audio file to be played according to sound effect switch setting information corresponding to the sound effect mode. The audio playing module is configured to play the audio file to be played according to the additional sound effect.

6. An electronic device, comprising: The electronic device includes: at least one processor; and a memory connected with the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the steps of the audio playing method in any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a program for implementing an audio playing method, and the program is executed by a processor to implement the steps of the audio playing method in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Method for setting audio effect and mobile terminal

    CN106095385A

  • Misoperation processing method and device and terminal equipment

    CN110795321A

  • Audio playing control method and system, electronic equipment and storage medium

    CN112217486A