Audio file playback method, device and storage medium
By separating the management of singing audio files and sound effect processing configuration files in the music creation APP, the problem of increased cloud server storage space and inflexible sound effect processing is solved, and efficient storage and flexible playback of audio files are achieved.
Patent Information
- Application Number
- CN202110321007.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-25
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-03-25
AI Technical Summary
When existing music creation apps store and play back audio files automatically generated by users, the cloud server storage space increases and the sound effect processing cannot be flexibly changed, affecting the user experience.
By separating the management of singing audio files, accompaniment audio files and sound effect processing configuration files between the mobile terminal and the storage server, the user uploads the singing audio files and sound effect processing configuration files when recording, and performs sound effect processing according to the configuration files during playback. Allows users to dynamically adjust sound effect types.
It effectively avoids a significant increase in cloud server storage space, provides flexibility in sound effect processing during playback, and improves the user's audio playback experience.
Smart Images

Figure CN113077772B
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to an audio file playback method, device and storage medium. Background Art
[0002] With the popularity of mobile karaoke applications (APPs) and other music creation apps, more and more users are recording their singing and other sounds through their mobile phones, thus generating a large number of user-generated content (UGC) audio files. As the number of UGC audio files increases, APP service providers need to continuously invest in expanding the corresponding cloud server storage space to meet the needs of users to play back their recorded karaoke audio files anytime and anywhere.
[0003] Existing music creation apps all mix and process the three audio sources of the user's singing voice, song accompaniment, and sound effect processing on the mobile phone, merge them into one audio file, and then upload it to its cloud server for storage. In the process of implementing this application, the inventor found that there are at least the following problems in the prior art:
[0004] 1. For the same song, when any different user sings karaoke, the accompaniment of the song needs to be mixed and packaged with the user's own singing voice, resulting in a significant increase in the storage space consumed by the cloud server.
[0005] 2. Because the sound effect processed sound has been mixed and packaged with the user's singing voice before being saved to the server, when the user subsequently plays back and listens to it, the sound effect processing cannot be changed dynamically and flexibly. Summary of the invention
[0006] The purpose of the embodiments of the present application is to provide an audio file playback method, device and storage medium, which are used to solve the problems of the prior art that the cloud server storage space consumption is significantly increased and the sound effect processing cannot be flexibly changed during playback.
[0007] In order to solve the above technical problems, this application is implemented as follows:
[0008] In a first aspect, an embodiment of the present application provides an audio file playback method, which is applied to a mobile terminal, and the method includes:
[0009] receiving a first input from a user;
[0010] In response to the first input, sending a song playback request to a storage server;
[0011] Receive a first target singing audio file, a first target accompaniment audio file and a first target sound effect processing configuration file corresponding to the song playback request and sent by the storage server;
[0012] Based on the first target singing voice audio file, the first target accompaniment audio file and the first target sound effect processing configuration file, a target audio file is obtained and played back;
[0013] Among them, the first target singing audio file and the first target sound effect processing configuration file are sent to the storage server after the user's singing recording is completed, and the first target accompaniment audio file is pre-stored in the storage server.
[0014] In a second aspect, an embodiment of the present application provides an audio file playback method, which is applied to a storage server, and the method includes:
[0015] Receiving a song playback request from a mobile terminal;
[0016] In response to the song playback request, a first target singing audio file, a first target accompaniment audio file and a first target sound effect processing configuration file corresponding to the song playback request are sent to the mobile terminal so that the mobile terminal can obtain the target audio file and play it back;
[0017] Among them, the first target singing audio file and the first target sound effect processing configuration file are sent to the storage server by the mobile terminal after the user's singing recording is completed, and the first target accompaniment audio file is pre-stored in the storage server.
[0018] In a third aspect, an embodiment of the present application provides an audio file playback device, which is applied to a mobile terminal, and the device includes:
[0019] A first receiving module, used to receive a first input from a user;
[0020] A first sending module, configured to send a song playback request to a storage server in response to the first input;
[0021] A second receiving module is used to receive a first target singing audio file, a first target accompaniment audio file and a first target sound effect processing configuration file corresponding to the song playback request and sent by the storage server;
[0022] A playback module, used to obtain a target audio file based on the first target singing voice audio file, the first target accompaniment audio file and the first target sound effect processing configuration file, and to play back the target audio file;
[0023] Among them, the first target singing audio file and the first target sound effect processing configuration file are sent to the storage server after the user's singing recording is completed, and the first target accompaniment audio file is pre-stored in the storage server.
[0024] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect or the second aspect.
[0025] In a fifth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect or the second aspect are implemented.
[0026] In a sixth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the steps of the method described in the first aspect or the second aspect.
[0027] In the audio file playback method, device and storage medium provided in the embodiments of the present application, the first target singing audio file and the first target sound effect processing configuration file are sent to the storage server after the user's singing recording is completed, and the first target accompaniment audio file is pre-stored in the storage server, which can avoid the problem of significantly increasing the consumption of cloud server storage space and the inability to flexibly change the sound effect processing during playback. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0029] Figure 1 This is one of the flowcharts of the audio file playback method provided in the embodiment of the present application;
[0030] Figure 2 This is the second flow chart of the audio file playback method provided in the embodiment of the present application;
[0031] Figure 3 It is a flowchart of user singing recording and saving provided by an embodiment of the present application;
[0032] Figure 4It is a schematic diagram of a process of a user playing back a karaoke song provided in an embodiment of the present application;
[0033] Figure 5 It is a structural diagram of an audio file playback device provided by an embodiment of the invention of this application;
[0034] Figure 6 A schematic diagram of the structure of an electronic device provided for implementing an embodiment of the present application;
[0035] Figure 7 A schematic diagram of the hardware structure of an electronic device provided to implement an embodiment of the present application. DETAILED DESCRIPTION
[0036] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0037] The terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein.
[0038] It should be understood that "one embodiment" or "an embodiment" mentioned in the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner.
[0039] In the various embodiments of the present application, it should be understood that the size of the serial numbers of the following processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0040] In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the previously and subsequently associated objects are in an "or" relationship.
[0041] The audio file playback method, device and storage medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.
[0042] Figure 1 This is one of the flow charts of the audio file playback method provided in the embodiment of the present application, which is applied to a mobile terminal. Figure 1 As shown, the method includes:
[0043] Step 101: Receive a first input from a user.
[0044] Specifically, when the user wants to play back a karaoke song, he needs to select the song to be played back through the mobile terminal, and the first input is an operation for selecting a karaoke song. The first input can be a gesture input in the corresponding interface of the APP, of course, it can also be other forms of command input, which is not specifically limited in the embodiment of the present application.
[0045] Step 102, in response to the first input, sending a song playback request to a storage server.
[0046] Specifically, after receiving the first input, the mobile terminal learns that the user wants to play back a song, determines the playback track based on the first input, and sends a song playback request to the storage server. It can be understood that the song playback request contains the user's identity information and the indication information of the corresponding track, and based on the above information, the corresponding file can be quickly obtained in the storage server.
[0047] Step 103, receiving a first target singing audio file, a first target accompaniment audio file and a first target sound effect processing configuration file corresponding to the song playback request and sent by the storage server.
[0048] Specifically, the storage server quickly obtains the corresponding first target singing audio file, first target accompaniment audio file and first target sound effect processing configuration file based on the indication information in the song playback request, and sends them to the mobile terminal.
[0049] Step 104, based on the first target singing voice audio file, the first target accompaniment audio file and the first target sound effect processing configuration file, a target audio file is obtained and played back;
[0050] Among them, the first target singing audio file and the first target sound effect processing configuration file are sent to the storage server after the user's singing recording is completed, and the first target accompaniment audio file is pre-stored in the storage server.
[0051] Specifically, the mobile terminal can obtain the target audio file based on the first target singing audio file, the first target accompaniment audio file and the first target sound effect processing configuration file, and play it back.
[0052] It is worth noting that the embodiment of the present application does not adopt the existing technology to mix and process the three sound sources of the user's singing voice, the song accompaniment sound, and the sound effect processing sound, and merge them into one audio file, and then upload it to its cloud server for storage. Instead, the accompaniment audio file is pre-stored in the storage server. When the user wants to record a song, the corresponding accompaniment audio file is downloaded from the storage server, and the song is recorded based on the accompaniment audio file. After the recording is completed, the singing audio file and the sound effect processing configuration file are uploaded to the storage server. During playback, the sound effect processing is performed based on the sound effect processing configuration file. In this way, it can avoid repeated uploading of the accompaniment audio file and can flexibly adjust the sound effect processing type during the playback process.
[0053] The audio file playback method provided in the embodiment of the present application, the first target singing audio file and the first target sound effect processing configuration file are sent to the storage server after the user's singing recording is completed, and the first target accompaniment audio file is pre-stored in the storage server, which can avoid the problem of significantly increasing the consumption of cloud server storage space and the inability to flexibly change the sound effect processing during playback.
[0054] Based on the above embodiment, the method of obtaining a target audio file based on the first target singing voice audio file, the first target accompaniment audio file and the first target sound effect processing configuration file, and playing it back includes:
[0055] Performing mixing and synthesis processing on the first target singing voice audio file and the first target accompaniment audio file to obtain a target audio file;
[0056] Determining a first target sound effect processing type based on the first target sound effect processing configuration file;
[0057] The target audio file is played, and based on the first target audio effect processing type, real-time audio effect processing is performed on the target audio.
[0058] Specifically, the mobile terminal first performs mixing and synthesis processing on the first target singing audio file and the first target accompaniment audio file to obtain the target audio file, and then determines the first target sound effect processing type based on the first target sound effect processing configuration file. When playing the target audio file, the target audio is subjected to real-time sound effect processing based on the first target sound effect processing type, thereby realizing the playback of the recorded track.
[0059] It is worth noting that the embodiment of the present application does not adopt the existing technology to mix the three sound sources of the user's singing voice, the song accompaniment sound, and the sound effect processing sound and merge them into one audio file, and then upload it to its cloud server for storage and preservation. Instead, the singing audio file and the sound effect processing configuration file are uploaded to the storage server separately. When playback is required, the sound effect processing configuration file is downloaded, and the sound effect processing type is determined based on the configuration file. During the playback process, the user can flexibly change the sound effect processing type.
[0060] The audio file playback method provided in the embodiment of the present application determines the first target sound effect processing type based on the first target sound effect processing configuration file, plays the target audio file, and performs real-time sound effect processing on the target audio based on the first target sound effect processing type. The user can flexibly change the sound effect processing type during the playback process, thereby increasing the flexibility of the user when playing back karaoke audio.
[0061] Based on the above embodiment, the playing of the target audio file and performing real-time sound effect processing on the target audio based on the first target sound effect processing type includes:
[0062] receiving a second input from the user;
[0063] In response to the second input, adjusting the first target sound effect processing type to a second target sound effect processing type;
[0064] Based on the second target sound effect processing type, real-time sound effect processing is performed on the target audio.
[0065] Specifically, during playback, the user can input an instruction to change the sound effect processing type (i.e., the second input), and the mobile terminal determines the second target sound effect processing type based on the second input, and performs real-time sound effect processing on the target audio based on the second target sound effect processing type, thereby achieving flexible control of the sound effect processing type during playback. The second input can be a gesture input in the corresponding interface of the APP, and of course, it can also be other forms of command input, which is not specifically limited in the embodiments of the present application.
[0066] The audio file playback method provided in the embodiment of the present application receives a second input from the user, adjusts the first target sound effect processing type to a second target sound effect processing type, and performs real-time sound effect processing on the target audio based on the second target sound effect processing type. The user can flexibly change the sound effect processing type during the playback process, thereby increasing the flexibility of the user when playing back karaoke audio.
[0067] Based on the above embodiment, before receiving the first input from the user, the method further includes:
[0068] receiving a third input from the user;
[0069] In response to the third input, acquiring the first target accompaniment audio file from the storage server;
[0070] Recording the user singing based on the first target accompaniment audio file;
[0071] When the user's singing recording is completed, the first target singing audio file and the first target sound effect processing configuration file are sent to the storage server.
[0072] Specifically, before the user plays back a karaoke song, the karaoke song needs to be recorded first. Based on this, when the user wants to record a karaoke song, he needs to select a recording track through the mobile terminal, and the third input is an operation for selecting a karaoke song to be recorded. The third input can be a gesture input in the corresponding interface of the APP, and of course, it can also be other forms of command input, which is not specifically limited in the embodiment of the present application.
[0073] After receiving the third input, the mobile terminal learns the song that the user wants to record, determines the recording track based on the third input, and sends a song recording request to the storage server. It can be understood that the song recording request contains the user's identity information and the indication information of the corresponding track. Based on the above information, the corresponding accompaniment audio file (i.e., the first target accompaniment audio file) can be quickly obtained in the storage server.
[0074] After obtaining the first target accompaniment audio file, the user can start singing recording;
[0075] When the recording is completed, the mobile terminal will send the target singing audio file (i.e., the first target singing audio file) and the target sound effect processing configuration file (i.e., the first target sound effect processing configuration file) corresponding to the recorded song to the storage server for subsequent playback. The mobile terminal can determine that the recording is completed based on the user's click operation on the recording completion button on the APP interface. Of course, the determination of the completion of the recording can also be made based on other judgment conditions, which is not specifically limited in the embodiments of the present application.
[0076] The audio file playback method provided in the embodiment of the present application records the user's singing based on the first target accompaniment audio file. When the recording is completed, the first target singing audio file and the first target sound effect processing configuration file are sent to the storage server, which can avoid the significant increase in the consumption of cloud server storage space and the inability to flexibly change the sound effect processing during playback.
[0077] Figure 2The second flowchart of the audio file playback method provided in the embodiment of the present application is applied to a storage server. Figure 2 As shown, the method includes:
[0078] Step 201, receiving a song playback request from a mobile terminal.
[0079] Specifically, the storage server receives a song playback request from a mobile terminal. It is understandable that the song playback request includes the user's identity information and the indication information of the corresponding track, and based on the above information, the corresponding file can be quickly obtained in the storage server.
[0080] Step 202, in response to the song playback request, sending a first target singing audio file, a first target accompaniment audio file and a first target sound effect processing configuration file corresponding to the song playback request to the mobile terminal so that the mobile terminal can obtain the target audio file and play it back;
[0081] Among them, the first target singing audio file and the first target sound effect processing configuration file are sent to the storage server by the mobile terminal after the user's singing recording is completed, and the first target accompaniment audio file is pre-stored in the storage server.
[0082] Specifically, the storage server quickly obtains the corresponding first target singing audio file, first target accompaniment audio file and first target sound effect processing configuration file based on the indication information in the song playback request, and sends them to the mobile terminal.
[0083] It is worth noting that the embodiment of the present application does not adopt the existing technology to mix and process the three sound sources of the user's singing voice, the song accompaniment sound, and the sound effect processing sound and merge them into one audio file, and then upload it to its cloud server for storage and preservation. Instead, the accompaniment audio file is pre-stored in the storage server. When the user wants to record a song, the corresponding accompaniment audio file is downloaded from the storage server, and the song is recorded based on the accompaniment audio file. After the recording is completed, the singing audio file and the sound effect processing configuration file are uploaded to the storage server. During playback, the sound effect processing is performed based on the sound effect processing configuration file. In this way, it can avoid repeated uploading of the accompaniment audio file and can flexibly adjust the sound effect processing type during the playback process.
[0084] The audio file playback method provided in the embodiment of the present application, the first target singing audio file and the first target sound effect processing configuration file are sent by the mobile terminal to the storage server after the user's singing recording is completed, and the first target accompaniment audio file is pre-stored in the storage server, which can avoid the problem of significantly increasing the consumption of cloud server storage space and the inability to flexibly change the sound effect processing during playback.
[0085] The detailed process of the method for realizing audio file playback through interaction between a mobile terminal and a storage server in the above embodiment is described below with a specific example:
[0086] Figure 3 This is a flow chart of the user singing recording and saving provided in the embodiment of the present application. Figure 3 As shown, the specific process of saving the user's singing recording includes the following steps:
[0087] Step 1: The "accompaniment sound selection and downloading module" downloads the accompaniment sound audio file corresponding to the song from the "storage server device" through the "mobile terminal communication module" according to the song selected by the user (that is, receives the user's third input, and obtains the first target accompaniment sound file from the storage server in response to the third input).
[0088] Step 2: The "vocal & accompaniment sound mixing and synthesis module" is responsible for mixing and synthesizing the user's singing voice and the song accompaniment sound recorded by the microphone.
[0089] Step 3: The "sound effect selection processing module" performs real-time sound effect processing on the user's singing voice according to the type of sound effect selected by the user (such as adding reverberation effect, beautifying vocals, voice changing, etc.).
[0090] Step 2 and step 3 are the process of recording the user's singing based on the first target accompaniment audio file.
[0091] Step 4: The mobile terminal device plays the mixed and synthesized sound through various types of speakers, thereby providing the user with a real-time ear return function.
[0092] It is worth noting that during the actual recording process, the mobile terminal will play the mixed and synthesized sound, thereby providing users with a real-time ear return function, allowing users to judge the recording effect.
[0093] Step 5: The "mobile terminal communication module" transmits the selection configuration items of the user's singing voice, song accompaniment, and sound effect processing type to the "storage server device" for storage.
[0094] That is, when the recording is completed, the first target singing voice audio file corresponding to the recorded song and the first target sound effect processing configuration file are sent to the storage server. Of course, the user can also choose to upload the selected configuration item of the song accompaniment to the storage server for subsequent quick search.
[0095] Step 6: The "server communication module" transmits the user's singing voice to the "user singing voice storage module" for separate storage, and at the same time, separately stores the selected configuration files of the song accompaniment track and the sound effect processing type.
[0096] The selected configuration files of the user's singing voice, song accompaniment tracks and sound effect processing types are saved separately to facilitate mixing synthesis and real-time sound effect processing during subsequent playback.
[0097] Figure 4 The flowchart of the user playing back karaoke songs provided in the embodiment of the present application is as follows. Figure 4 As shown, the specific process of a user playing back a karaoke song includes the following steps:
[0098] Step 1: The "server communication module" obtains the singing audio file from the "user singing storage module", the accompaniment audio file from the "accompaniment storage module", and the sound effect processing configuration file from the "sound effect processing configuration storage module" according to the playback song selected by the user in the mobile terminal, and then transmits them to the "mobile communication module" of the mobile terminal device.
[0099] Specifically, this step corresponds to the step in which the mobile terminal receives a first input from a user, sends a song playback request to a storage server in response to the first input, and receives a first target singing audio file, a first target accompaniment audio file, and a first target sound effect processing configuration file corresponding to the song playback request sent by the storage server; and at the same time corresponds to the step in which the storage server receives a song playback request from a user, sends the first target singing audio file, a first target accompaniment audio file, and a first target sound effect processing configuration file corresponding to the song playback request to the mobile terminal in response to the song playback request.
[0100] Step 2: The "voice & accompaniment sound mixing and synthesis module" mixes and synthesizes the user's singing voice and accompaniment sound obtained from the "mobile communication module".
[0101] Specifically, this step corresponds to the step in which the mobile terminal performs mixing and synthesis processing on the first target singing audio file and the first target accompaniment audio file to obtain the target audio file.
[0102] Step 3: The "sound effect selection processing module" performs corresponding real-time sound effect processing on the singing voice according to the sound effect processing configuration file obtained from the "mobile communication module". At the same time, it also allows the user to dynamically select and change the sound effect processing type in real time.
[0103] Step 4: The speaker plays back the mixed and synthesized sound for the user to listen to.
[0104] Specifically, this step corresponds to the step of the mobile terminal determining the first target sound effect processing type based on the first target sound effect processing configuration file, playing the target audio file, and performing real-time sound effect processing on the target audio based on the first target sound effect processing type, and receiving a second input from the user, adjusting the first target sound effect processing type to a second target sound effect processing type in response to the second input, and performing real-time sound effect processing on the target audio based on the second target sound effect processing type.
[0105] It should be noted that the audio file playback method provided in the embodiment of the present application can be executed by an audio file playback device, or a control module in the audio file playback device for executing the loaded audio file playback method. In the embodiment of the present application, the audio file playback method provided in the embodiment of the present application is described by taking the audio file playback device executing the loaded audio file playback method as an example. It should be understood that the modules in the above examples and in the following audio file playback device are only divided and named based on the corresponding functions for the convenience of description. In practical applications, other module divisions and naming methods can also be used, which should not constitute any limitation on the structure of the mobile terminal, storage server and audio file playback device in the embodiment of the present application.
[0106] Figure 5 A schematic diagram of the structure of the audio file playback device provided in the embodiment of the present invention is shown in FIG. Figure 5 As shown, the embodiment of the present invention provides an audio file playback device, which is applied to a mobile terminal, including:
[0107] A first receiving module 501, configured to receive a first input from a user;
[0108] A first sending module 502, configured to send a song playback request to a storage server in response to the first input;
[0109] The second receiving module 503 is used to receive the first target singing audio file, the first target accompaniment audio file and the first target sound effect processing configuration file corresponding to the song playback request sent by the storage server;
[0110] A playback module 504, configured to obtain a target audio file based on the first target singing voice audio file, the first target accompaniment audio file and the first target sound effect processing configuration file, and to play back the target audio file;
[0111] Among them, the first target singing audio file and the first target sound effect processing configuration file are sent to the storage server after the user's singing recording is completed, and the first target accompaniment audio file is pre-stored in the storage server.
[0112] Specifically, the audio file playback device provided in the embodiment of the present application is used to execute the method in the above-mentioned corresponding embodiments. The specific steps of executing the method in the above-mentioned corresponding embodiments by the audio file playback device provided by this embodiment are the same as those in the above-mentioned corresponding embodiments and will not be repeated here.
[0113] Based on any of the above embodiments, the playback module includes:
[0114] A mixing and synthesis submodule, used for performing mixing and synthesis processing on the first target singing voice audio file and the first target accompaniment audio file to obtain a target audio file;
[0115] A sound effect processing type determination submodule, configured to determine a first target sound effect processing type based on the first target sound effect processing configuration file;
[0116] The sound effect processing submodule is used to play the target audio file and perform real-time sound effect processing on the target audio based on the first target sound effect processing type.
[0117] Based on any of the above embodiments, the playback module further includes:
[0118] A first receiving submodule, used for receiving a second input from a user;
[0119] an audio effect processing type adjustment submodule, configured to adjust the first target audio effect processing type to a second target audio effect processing type in response to the second input;
[0120] The sound effect processing submodule is further used to perform real-time sound effect processing on the target audio based on the second target sound effect processing type.
[0121] Based on any of the above embodiments, the device further includes:
[0122] A second sending module is used to send the singing audio file and the sound effect processing configuration file to the storage server after the user's singing recording is completed;
[0123] The second sending module includes:
[0124] A second receiving submodule, used to receive a third input from a user;
[0125] an accompaniment audio file acquisition submodule, configured to acquire the first target accompaniment audio file from the storage server in response to the third input;
[0126] A singing recording submodule, used for recording the user singing based on the first target accompaniment audio file;
[0127] The first sending submodule is used to send the first target singing audio file and the first target sound effect processing configuration file to the storage server when the recording is completed.
[0128] Specifically, the audio file playback device provided in the embodiment of the present application is used to execute the method in the above-mentioned corresponding embodiments. The specific steps of executing the method in the above-mentioned corresponding embodiments by the audio file playback device provided by this embodiment are the same as those in the above-mentioned corresponding embodiments and will not be repeated here.
[0129] The audio file playback device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device can be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0130] The audio file playback device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0131] The audio file playback device provided in the embodiment of the present application can achieve Figure 1-4 To avoid repetition, the various processes implemented by the audio file playback device in the method embodiment are not described here.
[0132] In the audio file playback device provided in the embodiment of the present application, the first target singing audio file and the first target sound effect processing configuration file are sent to the storage server after the user's singing recording is completed, and the first target accompaniment audio file is pre-stored in the storage server, which can avoid the problem of significantly increasing the consumption of cloud server storage space and the inability to flexibly change the sound effect processing during playback.
[0133] Optional, such as Figure 6As shown, an embodiment of the present application also provides an electronic device, including a processor 601, a memory 602, and a program or instruction stored in the memory 602 and executable on the processor 601. When the program or instruction is executed by the processor 601, each process of the above-mentioned audio file playback method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0134] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0135] Figure 7 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0136] The electronic device 700 includes but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710.
[0137] Those skilled in the art will appreciate that the electronic device 700 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 710 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 7 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0138] It should be understood that in the embodiment of the present application, the input unit 704 may include a graphics processor (Graphics Processing Unit, GPU) 7041 and a microphone 7042, and the graphics processor 7041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071 is also called a touch screen. The touch panel 7071 may include two parts: a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0139] The memory 709 can be used to store software programs or instructions and various data. The memory 709 can mainly include a program or instruction storage area and a data storage area, wherein the program or instruction storage area can store an operating system, an application program or instruction required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 709 can include a high-speed random access memory, and can also include a non-volatile memory, wherein the non-volatile memory can be a read-only memory (Read-Only Memory, ROM), a programmable read-only memory (Programmable ROM, PROM), an erasable programmable read-only memory (Erasable PROM, EPROM), an electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or a flash memory. For example, at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices.
[0140] The processor 710 may include one or more processing units; optionally, the processor 710 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs or instructions, etc., and the modem processor mainly processes wireless communications, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 710.
[0141] In the first aspect, the user input unit 707 is used to receive a first input from a user;
[0142] The radio frequency unit 701 is used to send a song playback request to the storage server in response to the first input;
[0143] The radio frequency unit 701 is further used to receive a first target singing audio file, a first target accompaniment audio file and a first target sound effect processing configuration file corresponding to the song playback request sent by the storage server;
[0144] Processor 710 is used to obtain a target audio file and play it back based on the first target singing audio file, the first target accompaniment audio file and the first target sound effect processing configuration file; wherein the first target singing audio file and the first target sound effect processing configuration file are sent to the storage server after the user's singing recording is completed, and the first target accompaniment audio file is pre-stored in the storage server.
[0145] In the electronic device provided in the embodiment of the present application, the first target singing audio file and the first target sound effect processing configuration file are sent to the storage server after the user's singing recording is completed, and the first target accompaniment audio file is pre-stored in the storage server, which can avoid the problem of significantly increasing the consumption of cloud server storage space and the inability to flexibly change the sound effect processing during playback.
[0146] Optionally, the processor 710 is further configured to perform mixing and synthesis processing on the first target singing voice audio file and the first target accompaniment audio file to obtain a target audio file;
[0147] Determining a first target sound effect processing type based on the first target sound effect processing configuration file;
[0148] The target audio file is played, and based on the first target audio effect processing type, real-time audio effect processing is performed on the target audio.
[0149] The electronic device provided in the embodiment of the present application determines the first target sound effect processing type based on the first target sound effect processing configuration file, plays the target audio file, and performs real-time sound effect processing on the target audio based on the first target sound effect processing type. The user can flexibly change the sound effect processing type during the playback process, thereby increasing the user's flexibility when playing back karaoke audio.
[0150] Optionally, the user input unit 707 is further used to receive a second input from the user;
[0151] The processor 710 is further configured to adjust the first target sound effect processing type to a second target sound effect processing type in response to the second input;
[0152] Based on the second target sound effect processing type, real-time sound effect processing is performed on the target audio.
[0153] The electronic device provided in an embodiment of the present application receives a second input from a user, and in response to the second input, adjusts the first target sound effect processing type to a second target sound effect processing type, and performs real-time sound effect processing on the target audio based on the second target sound effect processing type. The user can flexibly change the sound effect processing type during playback, thereby increasing the user's flexibility in playing back karaoke audio.
[0154] Optionally, the user input unit 707 is further configured to receive a third input from the user;
[0155] The radio frequency unit 701 is further configured to obtain the first target accompaniment audio file from the storage server in response to the third input;
[0156] The processor 710 is further configured to record the user singing based on the first target accompaniment audio file;
[0157] The radio frequency unit 701 is also used to send the first target singing audio file and the first target sound effect processing configuration file to the storage server when the user singing recording is completed.
[0158] The electronic device provided in the embodiment of the present application records user singing based on the first target accompaniment audio file. When the user singing recording is completed, the first target singing audio file and the first target sound effect processing configuration file are sent to the storage server, which can avoid the problem of significantly increasing the consumption of cloud server storage space and the inability to flexibly change the sound effect processing during playback.
[0159] In the second aspect, the radio frequency unit 701 is used to receive a song playback request from a mobile terminal;
[0160] The radio frequency unit 701 is further configured to, in response to the song playback request, send a first target singing voice audio file, a first target accompaniment audio file, and a first target sound effect processing configuration file corresponding to the song playback request to the mobile terminal so that the mobile terminal can obtain the target audio file and play it back;
[0161] Among them, the first target singing audio file and the first target sound effect processing configuration file are sent to the storage server by the mobile terminal after the user's singing recording is completed, and the first target accompaniment audio file is pre-stored in the storage server.
[0162] In the electronic device provided by the embodiment of the present application, the first target singing audio file and the first target sound effect processing configuration file are sent by the mobile terminal to the storage server after the user's singing recording is completed, and the first target accompaniment audio file is pre-stored in the storage server, which can avoid the problem of significantly increasing the consumption of cloud server storage space and the inability to flexibly change the sound effect processing during playback.
[0163] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned audio file playback method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0164] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0165] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned audio file playback method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0166] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0167] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0168] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0169] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. An audio file playback method, applied to a mobile terminal, characterized in that: include: receiving a first input from a user; In response to the first input, sending a song playback request to a storage server; Receive a first target singing audio file, a first target accompaniment audio file and a first target sound effect processing configuration file corresponding to the song playback request and sent by the storage server; Based on the first target singing voice audio file, the first target accompaniment audio file and the first target sound effect processing configuration file, a target audio file is obtained and played back; Among them, the first target singing audio file and the first target sound effect processing configuration file are sent to the storage server after the user's singing recording is completed, and the first target accompaniment audio file is pre-stored in the storage server.
2. The audio file playback method according to claim 1, characterized in that: The method of obtaining a target audio file based on the first target singing voice audio file, the first target accompaniment audio file and the first target sound effect processing configuration file and playing it back comprises: Performing mixing and synthesis processing on the first target singing voice audio file and the first target accompaniment audio file to obtain a target audio file; Determining a first target sound effect processing type based on the first target sound effect processing configuration file; The target audio file is played, and based on the first target audio effect processing type, real-time audio effect processing is performed on the target audio.
3. The audio file playback method according to claim 2, characterized in that: The playing of the target audio file and performing real-time sound effect processing on the target audio based on the first target sound effect processing type includes: receiving a second input from the user; In response to the second input, adjusting the first target sound effect processing type to a second target sound effect processing type; Based on the second target sound effect processing type, real-time sound effect processing is performed on the target audio.
4. The audio file playback method according to claim 1, characterized in that: Before receiving the first input from the user, the method further includes: receiving a third input from the user; In response to the third input, acquiring the first target accompaniment audio file from the storage server; Recording the user singing based on the first target accompaniment audio file; When the user's singing recording is completed, the first target singing audio file and the first target sound effect processing configuration file are sent to the storage server.
5. An audio file playback method, applied to a storage server, characterized in that: include: Receiving a song playback request from a mobile terminal; In response to the song playback request, a first target singing audio file, a first target accompaniment audio file and a first target sound effect processing configuration file corresponding to the song playback request are sent to the mobile terminal so that the mobile terminal can obtain the target audio file and play it back; Among them, the first target singing audio file and the first target sound effect processing configuration file are sent to the storage server by the mobile terminal after the user's singing recording is completed, and the first target accompaniment audio file is pre-stored in the storage server.
6. An audio file playback device, applied to a mobile terminal, characterized in that: include: A first receiving module, used to receive a first input from a user; A first sending module, configured to send a song playback request to a storage server in response to the first input; A second receiving module is used to receive a first target singing audio file, a first target accompaniment audio file and a first target sound effect processing configuration file corresponding to the song playback request and sent by the storage server; A playback module, used to obtain a target audio file based on the first target singing voice audio file, the first target accompaniment audio file and the first target sound effect processing configuration file, and to play back the target audio file; Among them, the first target singing audio file and the first target sound effect processing configuration file are sent to the storage server after the user's singing recording is completed, and the first target accompaniment audio file is pre-stored in the storage server.
7. The audio file playback device according to claim 6, characterized in that: The playback module comprises: A mixing and synthesis submodule, used for performing mixing and synthesis processing on the first target singing voice audio file and the first target accompaniment audio file to obtain a target audio file; A sound effect processing type determination submodule, configured to determine a first target sound effect processing type based on the first target sound effect processing configuration file; The sound effect processing submodule is used to play the target audio file and perform real-time sound effect processing on the target audio based on the first target sound effect processing type.
8. The audio file playback device according to claim 7, characterized in that: The playback module also includes: A first receiving submodule, used for receiving a second input from a user; an audio effect processing type adjustment submodule, configured to adjust the first target audio effect processing type to a second target audio effect processing type in response to the second input; The sound effect processing submodule is further used to perform real-time sound effect processing on the target audio based on the second target sound effect processing type.
9. An electronic device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the audio file playback method as claimed in any one of claims 1 to 4 or claim 5.
10. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the audio file playback method according to any one of claims 1 to 4 or claim 5 are implemented.
