Audio effect comparison method and apparatus, and electronic device
By dividing the audio stream into two channels, without processing one way, the problem of the tuner's difficulty in objectively evaluating the audio effects before and after the sound effect processing is solved, and more accurate sound effect parameter adjustment is achieved.
Patent Information
- Application Number
- PCT/CN2024/098620
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-07-31
- Filing Date
- 2024-06-12
- Publication Date
- 2025-02-06
AI Technical Summary
Prior Art In the audio processing process, it is difficult for tuners to objectively evaluate the audio effects before and after the sound effect processing, especially when facing unfamiliar songs.
By dividing the audio stream to be played in the first audio stream file into two channels, playing directly without sound effects processing, and playing after sound effects processing, users can intuitively compare the audio effects before and after sound effects processing.
Users can evaluate audio effects more objectively, thereby adjusting the sound effects parameters in the sound effects algorithm more accurately.
Smart Images

Figure CN2024098620_06022025_PF_FP_ABST
Abstract
Description
Audio effect comparison method, device and electronic equipment
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on July 31, 2023, application number 202310956045.5, and application name "A method, device and electronic device for comparing audio effects", the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present invention relates to the field of audio processing technology, and in particular to an audio effect comparison method, device and electronic equipment. Background Art
[0003] With the rapid development of science and technology, people’s pursuit of quality of life is getting higher and higher, and electronic devices are becoming more and more diverse, such as smart headphones, smart speakers, smart glasses and smart watches. However, in the process of developing electronic devices, sound effects may be added to the audio so that the tuner can judge whether the sound effect parameters in the sound effect algorithm need to be adjusted based on the audio effect. However, the existing way of processing the audio stream of audio is to process and output it to the player of the electronic device. Therefore, once the sound effect processing instruction is received, the electronic device will process the audio stream based on the sound effect algorithm corresponding to the sound effect processing instruction, and the audio output to the player will change immediately. This method makes it difficult for the tuner to make an objective evaluation of the sound effect based solely on the audio with the sound effect added when facing an unfamiliar song.
[0004] Summary of the Invention
[0005] The purpose of the present invention is to provide an audio effect comparison method, device and electronic device. For the audio stream to be played in the first audio stream file, it is divided into two paths, one path is played directly through one device without sound effect processing, and the other path is played through another device after sound effect processing. In this way, the user can intuitively compare the audio effects before and after sound effect processing, and thus can make a more objective evaluation of the audio effects.
[0006] To solve the above technical problems, the present invention provides an audio effect comparison method, which is applied to electronic devices and includes:
[0007] Determine a first audio stream file;
[0008] Upon receiving the first sound effect processing instruction, dividing the audio stream to be played in the first audio stream file into a first audio stream and a second audio stream, where the first audio stream is identical to the second audio stream;
[0009] The second audio stream is processed with sound effects based on the sound effect algorithm corresponding to the first sound effect processing instruction to obtain a third audio stream, and one of the player and another playback device in the electronic device is controlled to play the first audio stream and the other to play the third audio stream.
[0010] Optionally, before determining the first audio stream file, the method further includes:
[0011] Determine the user type, where the user type includes professional users and ordinary users;
[0012] Controlling the display of the electronic device to display a display operation interface corresponding to the user type, so that the user can operate the audio stream file according to the display operation interface;
[0013] If the user type is a professional user, the process proceeds to the step of determining a first audio stream file.
[0014] Optionally, determine the user type, including:
[0015] Obtaining user information, including user name and password;
[0016] A user type is determined based on the user information.
[0017] Optionally, it also includes:
[0018] If the user type is a common user, determining a second audio stream file;
[0019] Upon receiving the second sound effect processing instruction, performing sound effect processing on the audio stream to be played in the second audio stream file based on the sound effect algorithm corresponding to the second sound effect processing instruction to obtain a fourth audio stream;
[0020] Control a player in the electronic device to play the fourth audio stream.
[0021] Optionally, dividing the audio stream to be played in the first audio stream file into a first audio stream and a second audio stream includes:
[0022] Determining a playback format of the first audio stream file;
[0023] When the playback format of the first audio stream file is WAV format, storing the audio stream to be played in the first audio stream file into a byte buffer;
[0024] dividing the audio stream to be played in the byte buffer into a first audio stream and a second audio stream;
[0025] When the playback format of the first audio stream file is a format other than the WAV format, converting the first audio stream file into a first audio stream file in the WAV format by the player, and storing the first audio stream file in the WAV format into a byte buffer;
[0026] The audio stream to be played in the first audio stream file in the byte buffer is divided into a first audio stream and a second audio stream.
[0027] Optionally, after determining the first audio stream file, the method further includes:
[0028] Controlling a player in the electronic device to play the audio stream corresponding to the first audio stream file;
[0029] Controlling one of a player and another playback device in the electronic device to play the first audio stream and the other to play the third audio stream, comprising:
[0030] The player in the electronic device is controlled to play the first audio stream, and the other playback device is controlled to play the third audio stream.
[0031] Optionally, it also includes:
[0032] When a sound effect algorithm parameter adjustment instruction is received, the parameters in the sound effect algorithm are adjusted according to the sound effect algorithm parameter adjustment instruction.
[0033] Optionally, after determining the first audio stream file, the method further includes:
[0034] When the playback format of the first audio stream file is WAV format, determining a first memory occupied by the first audio stream file;
[0035] When detecting that the drag bar is dragged on the audio progress bar, determining the second memory of the remaining audio to be played based on the position of the drag bar on the audio progress bar when the dragging stops and the first memory;
[0036] Determining an audio data transmission rate of the audio stream corresponding to the first audio stream file;
[0037] determining a duration of the remaining audio to be played based on the second memory and the audio data transmission rate;
[0038] Adding the duration of the remaining audio to be played to the header file of the first audio stream file, and entering the step of dividing the audio stream to be played in the first audio stream file into a first audio stream and a second audio stream;
[0039] The duration of the remaining audio to be played = the second memory / the audio data transmission rate.
[0040] To solve the above technical problems, the present invention further provides an audio effect comparison device, comprising:
[0041] memory for storing computer programs;
[0042] A processor is used to implement the steps of the audio effect comparison method as described in any one of the above when executing the computer program.
[0043] In order to solve the above technical problems, the present invention also provides an electronic device, including the audio effect comparison device as described above.
[0044] The present invention provides an audio effect comparison method, device and electronic device, including: determining a first audio stream file; upon receiving a first sound effect processing instruction, dividing the audio stream to be played in the first audio stream file into a first audio stream and a second audio stream, the first audio stream being the same as the second audio stream; performing sound effect processing on the second audio stream based on the sound effect algorithm corresponding to the first sound effect processing instruction to obtain a third audio stream, and controlling a player in the electronic device and one of another playback devices to play the first audio stream, and the other to play the third audio stream. It can be seen that the solution of the present application divides the audio stream to be played in the first audio stream file into two paths, one path is played directly through one device without sound effect processing, and the other path is played through another device after sound effect processing. In this way, the user can intuitively compare the audio effects before and after the sound effect processing, and can make a more objective evaluation of the audio effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the prior art and the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0046] FIG1 is a flow chart of an audio effect comparison method provided by the present invention;
[0047] FIG2 is a schematic diagram of an electronic device and playback device provided by the present invention;
[0048] FIG3 is a flow chart of another audio effect comparison method provided by the present invention;
[0049] FIG4 is a schematic structural diagram of an audio effect comparison device provided by the present invention. DETAILED DESCRIPTION
[0050] The core of the present invention is to provide an audio effect comparison method, device and electronic device. For the audio stream to be played in the first audio stream file, it is divided into two paths, one path is played directly through one device without sound effect processing, and the other path is played through another device after sound effect processing. In this way, the user can intuitively compare the audio effects before and after sound effect processing, and thus can make a more objective evaluation of the audio effects.
[0051] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.
[0052] Please refer to FIG1 , which is a flow chart of an audio effect comparison method provided by the present invention, which is applied to electronic devices. The method includes:
[0053] S11: Determine a first audio stream file;
[0054] S12: upon receiving the first sound effect processing instruction, dividing the audio stream to be played in the first audio stream file into a first audio stream and a second audio stream, where the first audio stream is identical to the second audio stream;
[0055] S13: Perform sound effect processing on the second audio stream based on the sound effect algorithm corresponding to the first sound effect processing instruction to obtain a third audio stream, and control one of the player and another playback device in the electronic device to play the first audio stream and the other to play the third audio stream.
[0056] It should be noted that the audio effect comparison method of the present application can be applied to the tuning APP or audio playback APP of electronic devices, and the operating system of the electronic device can be but is not limited to the Android system. The sound effects and corresponding sound effect algorithms referred to in this application are also existing sound effects and sound effect algorithms, wherein the sound effect processing here can be, for example, to adjust the loudness and frequency of the audio, which will not be described in detail in this application. In practical applications, the use of this solution can make it easier for tuners to compare the audio effects before and after the sound effect processing, and then make a more objective evaluation of the audio effect, so as to subsequently adjust the sound effect parameters in the sound effect algorithm.
[0057] The electronic devices in this application may be headphones, speakers, glasses, VR (Virtual Reality) devices, watches and other devices, and this application does not make any special restrictions here.
[0058] When it is necessary to determine the sound effect, the first audio stream file can be determined first. Specifically, when receiving an audio playback instruction sent by the user, the audio to be played can be determined based on the audio playback instruction sent by the user, and then the first audio stream file corresponding to the audio to be played can be determined. Alternatively, a default pre-set audio can be determined, and then the first audio stream file corresponding to the audio can be determined. In a specific implementation, after determining the first audio stream file, the player of the electronic device can be directly controlled to play the audio based on the first audio stream file. Alternatively, the audio can be played without first being played, and then playback can be started after receiving the first sound effect processing instruction and performing sound effect processing.
[0059] Based on the above description, it can be seen that when the first sound effect processing instruction is received, the audio corresponding to the first audio stream file may be playing or may not have started playing yet; in addition, in actual applications, the first sound effect processing instruction and the audio playback instruction may be received at the same time, or the audio playback instruction may be received first and then the first sound effect processing instruction. This will also make it possible that when the first sound effect processing instruction is received, the audio corresponding to the first audio stream file may be playing or may not have started playing. When the audio stream corresponding to the first audio stream file has not started playing, the audio stream to be played in the first audio stream file is the complete audio stream corresponding to the first audio stream file; when the audio stream corresponding to the first audio stream file is playing, the audio stream to be played in the first audio stream file is the remaining unplayed audio stream in the audio stream corresponding to the first audio stream file.
[0060] Therefore, in order to facilitate the subsequent comparison of audio without sound effects and audio with sound effects added, the present application first divides the audio stream to be played into a first audio stream and a second audio stream. Specifically, upon receiving the first sound effect processing instruction, the audio stream to be played in the first audio stream file is first determined, and then the audio stream is layered to obtain the first audio stream and the second audio stream, wherein the first audio stream, the second audio stream and the audio stream to be played are the same.
[0061] After obtaining the first audio stream and the second audio stream, directly control the player in the electronic device and one of the other playback devices to play the first audio stream. At the same time, perform sound effect processing on the second audio stream based on the sound effect algorithm corresponding to the first sound effect processing instruction to obtain a third audio stream. Send the third audio stream to the player in the electronic device and the other of the other playback devices so that they can play the third audio stream. Here, communication can be carried out via Bluetooth or USB, and this application does not make any special restrictions. Specifically, the player of the electronic device can be controlled to play the first audio stream, and the playback module can be controlled to play the third audio stream. The player of the electronic device can also be controlled to play the third audio stream, and the playback module can be controlled to play the first audio stream. The specific method to be adopted depends on the actual situation.
[0062] The present invention provides an audio effect comparison method. For an audio stream to be played in a first audio stream file, it is divided into two paths. One path is played directly through one device without sound effect processing, and the other path is played through another device after sound effect processing. In this way, a user can intuitively compare the audio effects before and after sound effect processing, and thus can make a more objective evaluation of the audio effects.
[0063] Please refer to FIG. 2 and FIG. 3 , FIG. 2 is a schematic diagram of an electronic device and playback device provided by the present invention, and FIG. 3 is a flow chart of another audio effect comparison method provided by the present invention.
[0064] Based on the above embodiment:
[0065] In some embodiments, before determining the first audio stream file, the method further includes:
[0066] Determine the user type, which includes professional users and ordinary users;
[0067] Controlling the display of the electronic device to display a display operation interface corresponding to the user type, so that the user can operate the audio stream file according to the display operation interface;
[0068] If the user type is a professional user, the process proceeds to the step of determining the first audio stream file.
[0069] Taking into account that not all users are able to judge the sound effects in actual applications, in this application, before determining the first audio stream file, the user type is first determined, where the user types include professional users and ordinary users. Professional users can compare sound effects and then determine whether it is necessary to adjust the parameters of the sound effect algorithm based on the comparison results. It is suitable for audio algorithm developers to adjust parameters based on audio effects. Ordinary users do not need to compare sound effects. They usually use sound effects while listening to audio. Therefore, it is only necessary to retain the function of selecting sound effects. If the user type is a professional user, the step of determining the first audio stream file is entered, that is, the sound effect comparison is started.
[0070] Furthermore, after determining the user type, the electronic device's display can be controlled to display an operation interface corresponding to the user type, allowing the user to operate the audio stream file according to the displayed operation interface. For professional users, the operation interface may include a sound effect selection button, sound effect parameter adjustment buttons, and an audio selection button; for ordinary users, the operation interface may include a sound effect selection button, an audio selection button, etc. This application does not impose any specific limitations on this.
[0071] It can be seen that this solution can provide different functions to different users. Only professional users can compare sound effects, which improves the user experience.
[0072] In some embodiments, determining the user type includes:
[0073] Get user information, including username and password;
[0074] The user type is determined based on the user information.
[0075] Considering that users enter their username and password when logging into a tuning app or audio playback app, this solution links the username and password to the user type. This means that all usernames and passwords have a corresponding user type, including professional and ordinary users. When a user logs into a tuning app or audio playback app, user information is obtained, and the user type can be subsequently determined based on this information. This method of determining user type is simple and reliable.
[0076] In practical applications, other methods of determining the user type may also be used, and this application does not impose any particular limitation thereto.
[0077] In some embodiments, further comprising:
[0078] If the user type is a common user, determining a second audio stream file;
[0079] Upon receiving the second sound effect processing instruction, performing sound effect processing on the audio stream to be played in the second audio stream file based on the sound effect algorithm corresponding to the second sound effect processing instruction to obtain a fourth audio stream;
[0080] Control the player in the electronic device to play the fourth audio stream.
[0081] In this application, in addition to providing professional users with the function of sound effect comparison, it also provides ordinary users with the function of selecting audio effects. Specifically, if the user type is an ordinary user, the second audio stream file is first determined, wherein the audio to be played can be determined according to the audio playback instruction sent by the user, and then the second audio stream file corresponding to the audio to be played is determined. In actual applications, after determining the second audio stream file, the player of the electronic device can be controlled to play the audio stream corresponding to the second audio stream file. During the playback process, if a second sound effect processing instruction is received, the audio stream to be played in the second audio stream file can be processed with sound effects based on the sound effect algorithm corresponding to the second sound effect processing instruction to obtain a fourth audio stream, and the player in the electronic device can be controlled to play the fourth audio stream. Among them, for the introduction of the audio stream to be played, please refer to the above embodiment, and this application will not repeat it here.
[0082] It can be seen that by adopting this solution, ordinary users can directly experience the audio effects of electronic devices, and professional users can effectively improve debugging efficiency and directly compare the sound effects before and after algorithm processing in real time, thereby optimizing the sound effects in time and making the audio equipment more objective in sound effect adjustment.
[0083] In some embodiments, dividing the audio stream to be played in the first audio stream file into the first audio stream and the second audio stream includes:
[0084] Determine a playback format of the first audio stream file;
[0085] When the playback format of the first audio stream file is wav format, storing the audio stream to be played in the first audio stream file into a byte buffer;
[0086] Splitting the audio stream to be played in the byte buffer into a first audio stream and a second audio stream;
[0087] When the playback format of the first audio stream file is a format other than the WAV format, converting the first audio stream file into a first audio stream file in the WAV format through the player, and storing the first audio stream file in the WAV format into the byte buffer;
[0088] The audio stream to be played in the first audio stream file in the byte buffer is divided into a first audio stream and a second audio stream.
[0089] Specifically, considering that the playback format of the received first audio stream file may be different, and the player can usually only play audio in audio stream files in WAV format, after receiving the first sound effect processing instruction, the playback format of the first audio stream file is first determined. If the playback format of the first audio stream file is WAV format, only the audio stream to be played in the first audio stream file is stored in the byte buffer, and the audio stream to be played in the byte buffer is divided into a first audio stream and a second audio stream. If the playback format of the first audio stream file is a format other than WAV format, such as MP3 or MP4, the first audio stream file is first converted into a first audio stream file in WAV format by the player, and then the first audio stream file in WAV format is stored in the byte buffer; finally, the audio stream to be played in the first audio stream file in the byte buffer is divided into the first audio stream and the second audio stream.
[0090] It can be seen that by adopting this method, the sound effects of the audio streams corresponding to the first audio stream files in different playback formats can be compared, thereby improving the user experience.
[0091] In addition, the player here can be MediaPlayer or AudioPlayer, and MediaPlayer or AudioPlayer ultimately plays the PCM audio stream, among which most of the audio stream files in wav format are PCM audio streams, and the two players also have different ways of converting the format of the first audio stream file. Taking MediaPlayer as an example, after decompressing the first audio stream file, it can call the interface of the framework layer, rewrite and encapsulate the onDataAvailable method, and then store the converted first audio stream file in the byte buffer. It should be noted that the conversion process already exists in the prior art and will not be repeated in this application.
[0092] Furthermore, when playing the first audio stream file other than the wav format, the playback process of MediaPlayer is: calling the interface of the framework layer, creating the corresponding audio decoder and AudioTrack in the framework layer, the audio decoder can decode the first audio stream file into a PCM audio stream, and send the decoded PCM audio stream to AudioTrack, and then pass it to AudioFlinger for mixing, and finally pass it to the hardware for playback.
[0093] If you want to play the first audio stream file in a format other than WAV, you need to set up an audio decoder in the player in advance for AudioPlayer so that the audio decoder can decode the first audio stream file into a PCM audio stream and pass the PCM audio stream to AudioPlayer for playback.
[0094] In some embodiments, after determining the first audio stream file, the method further includes:
[0095] Controlling a player in the electronic device to play the audio stream corresponding to the first audio stream file;
[0096] Controlling one of a player and another playback device in an electronic device to play a first audio stream and the other to play a third audio stream, including:
[0097] A player in an electronic device is controlled to play the first audio stream, and another player is controlled to play the third audio stream.
[0098] Specifically, after determining the first audio effect stream file, that is, after receiving the audio playback instruction, the player in the electronic device can be controlled to play the audio stream corresponding to the first audio stream file. During the playback of the audio stream corresponding to the first audio stream file, if the first audio effect processing instruction is received, after dividing the audio stream to be played in the first audio stream file into a first audio stream and a second audio stream, the player in the electronic device is controlled to play the first audio stream. At the same time, the second audio stream is processed with sound effects based on the sound effect algorithm corresponding to the first sound effect processing instruction to obtain a third audio stream, and another playback device is controlled to play the third audio stream.
[0099] It can be seen that since the player in the electronic device was playing the audio stream that had not been processed with sound effects before receiving the first sound effect processing instruction, in order to avoid switching, after subsequently receiving the first sound effect processing instruction, the player in the electronic device is still controlled to play the first audio stream that has not been processed with sound effects, and the playback device is controlled to play the third audio stream that has been processed with sound effects, thereby avoiding switching of the audio stream played by the player in the electronic device and improving the reliability of audio playback.
[0100] In some embodiments, further comprising:
[0101] When the sound effect algorithm parameter adjustment instruction is received, the parameters in the sound effect algorithm are adjusted according to the sound effect algorithm parameter adjustment instruction.
[0102] After playing audio through two devices, professional users can intuitively compare the audio effects before and after sound effect processing, and then make a more objective evaluation of the audio effect, and thus determine whether the parameters of the sound effect algorithm need to be adjusted. When the parameters of the sound effect algorithm need to be adjusted, a sound effect algorithm parameter adjustment instruction can be sent to the electronic device, so that the sound effect corresponding to the sound effect algorithm can be adjusted, improving the accuracy of the sound effect adjustment.
[0103] In some embodiments, after determining the first audio stream file, the method further includes:
[0104] When the playback format of the first audio stream file is WAV format, determining the first memory occupied by the first audio stream file;
[0105] When detecting that the drag bar is dragged on the audio progress bar, determining the second memory of the remaining audio to be played based on the position of the drag bar on the audio progress bar when the dragging stops and the first memory;
[0106] Determining an audio data transmission rate of an audio stream corresponding to a first audio stream file;
[0107] determining a remaining duration of the audio to be played based on the second memory and the audio data transfer rate;
[0108] Adding the remaining duration of the audio to be played to the header file of the first audio stream file, and entering the step of dividing the audio stream to be played in the first audio stream file into a first audio stream and a second audio stream;
[0109] The remaining duration of the audio to be played = the second memory / the audio data transmission rate.
[0110] Considering that in actual applications, users may adjust the audio playback progress by dragging the slider, which may cause the audio stream to be played in the first audio stream file to change. If the playback format of the first audio stream file is a format other than WAV, the electronic device only needs to call the encapsulated getCurrentPosition method while monitoring the status of the slider to reach the user's desired playback position. The remaining duration of the audio to be played can then be determined based on the playback position of the slider.
[0111] As for the first audio stream file in wav format, since the audio corresponding to the first audio stream file in wav format is lossless audio, the memory cannot be loaded at one time and can only be played while writing. This makes it difficult to obtain the audio duration and locate the desired position. To solve this problem, in this application, when the playback format of the first audio stream file is wav format, the first memory (buffersize) occupied by the first audio stream file is first determined, that is, the first memory is determined before it is played. Then, based on the position of the drag bar on the audio progress bar when dragging stops and the first memory, the second memory of the remaining audio to be played is determined, and the audio data transmission rate of the audio stream corresponding to the first audio stream file is determined. Then, based on the second memory and the audio data transmission rate, the duration of the remaining audio to be played is determined, and the duration of the remaining audio to be played is added to the header file of the first audio stream file. In this way, the playback position of the audio to be played can be determined based on the duration of the audio to be played. Among them, the duration of the remaining audio to be played = second memory / audio data transmission rate.
[0112] In addition, since the audio data transmission rate bytePerSecond is not a constant value, it is related to the sampling rate sampleRate, the sampling accuracy bitsPerSample and the number of channels channels, which satisfy the equation: bytePerSecond = sampleRate*(bitsPerSample / 8)*channels.
[0113] Because sound effects processing differs from normal audio playback, these values may change regularly. Therefore, when rewriting the header file, the original byte positions must be remembered and the new duration of the remaining audio to be played must be written. Furthermore, when positioning, the first audio stream file played can also be divided by the existing duration, with positioning accuracy accurate to the second. This can then be associated with the drag bar to implement fixed-point audio playback.
[0114] It can be seen that when the solution of the present application is used during the tuning process, when the electronic device switches songs or drags the drag bar, the playback device can maintain good playback consistency with the electronic device.
[0115] Please refer to FIG4 , which is a schematic diagram of the structure of an audio effect comparison device provided by the present invention. The device includes:
[0116] Memory 1, for storing computer programs;
[0117] Processor 2 is configured to implement any of the above-mentioned steps of the audio effect comparison method when executing a computer program.
[0118] For an introduction to the principles of an audio effect comparison device provided in this application, please refer to the above method embodiment, and this application will not go into details here.
[0119] The present invention also provides an electronic device comprising the above-mentioned audio effect comparison device.
[0120] Specifically, the electronic device here can be a smart headset, a smart speaker, smart glasses, or a smart watch, which is not specifically limited in this application.
[0121] It should be noted that, in this specification, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.
[0122] The above description of the disclosed embodiments is intended to enable one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention is not limited to the embodiments shown herein but is intended to conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. An audio effect comparison method, characterized in that: Used in electronic equipment, including: Determine a first audio stream file; Upon receiving the first sound effect processing instruction, dividing the audio stream to be played in the first audio stream file into a first audio stream and a second audio stream, wherein the first audio stream is the same as the second audio stream; The second audio stream is processed with sound effects based on the sound effect algorithm corresponding to the first sound effect processing instruction to obtain a third audio stream, and one of the player and another playback device in the electronic device is controlled to play the first audio stream and the other to play the third audio stream.
2. The audio effect comparison method according to claim 1, characterized in that: Before determining the first audio stream file, the method further includes: Determine the user type, wherein the user type includes professional users and ordinary users; Controlling the display of the electronic device to display a display operation interface corresponding to the user type, so that the user can operate the audio stream file according to the display operation interface; If the user type is a professional user, the process proceeds to the step of determining a first audio stream file.
3. The audio effect comparison method according to claim 2, characterized in that: Identify the user type, including: Obtaining user information, including a user name and a password; A user type is determined based on the user information.
4. The audio effect comparison method according to claim 2, characterized in that: Also includes: If the user type is a common user, determining a second audio stream file; When receiving the second sound effect processing instruction, performing sound effect processing on the audio stream to be played in the second audio stream file based on the sound effect algorithm corresponding to the second sound effect processing instruction to obtain a fourth audio stream; Control a player in the electronic device to play the fourth audio stream.
5. The audio effect comparison method according to claim 1, characterized in that: The audio stream to be played in the first audio stream file is divided into a first audio stream and a second audio stream, comprising: Determining a playback format of the first audio stream file; When the playback format of the first audio stream file is wav format, storing the audio stream to be played in the first audio stream file into a byte buffer; Dividing the audio stream to be played in the byte buffer into a first audio stream and a second audio stream; When the playback format of the first audio stream file is a format other than the wav format, converting the first audio stream file into a first audio stream file in the wav format through the player, and storing the first audio stream file in the wav format into a byte buffer; The audio stream to be played in the first audio stream file in the byte buffer is divided into a first audio stream and a second audio stream.
6. The audio effect comparison method according to claim 1, characterized in that: After determining the first audio stream file, the method further includes: Controlling a player in the electronic device to play the audio stream corresponding to the first audio stream file; Controlling one of a player and another playback device in the electronic device to play the first audio stream and the other to play the third audio stream, comprising: A player in the electronic device is controlled to play the first audio stream, and another player is controlled to play the third audio stream.
7. The audio effect comparison method according to claim 1, characterized in that: Also includes: When a sound effect algorithm parameter adjustment instruction is received, the parameters in the sound effect algorithm are adjusted according to the sound effect algorithm parameter adjustment instruction.
8. The audio effect comparison method according to any one of claims 1 to 7, characterized in that: After determining the first audio stream file, the method further includes: When the playback format of the first audio stream file is wav format, determining a first memory occupied by the first audio stream file; When it is detected that the drag bar is dragged on the audio progress bar, determining the second memory of the remaining audio to be played based on the position of the drag bar on the audio progress bar when the dragging stops and the first memory; Determine an audio data transmission rate of the audio stream corresponding to the first audio stream file; Determining the duration of the remaining audio to be played based on the second memory and the audio data transmission rate; Adding the duration of the remaining audio to be played in the header file of the first audio stream file, and entering the step of dividing the audio stream to be played in the first audio stream file into a first audio stream and a second audio stream; The duration of the remaining audio to be played = the second memory / the audio data transmission rate.
9. An audio effect comparison device, characterized in that: include: Memory for storing computer programs; A processor, used to implement the steps of the audio effect comparison method as described in any one of claims 1 to 8 when executing the computer program.
10. An electronic device, characterized in that: Comprising the audio effect comparison device as described in claim 9.
Citation Information
Patent Citations
Full-view audio data synchronous providing method
CN107861707A
Sound effect setting method, device, electronic device and storage medium
CN109271128A
Sound effect configuration method and device
CN115334405A
Audio effect comparison method and device and electronic equipment
CN117253506A
Audio apparatus
JP2006173765A