WO2015089733A1 - Procédé de reproduction d'un fichier audio sur un terminal multimédia, et terminal multimédia - Google Patents

Procédé de reproduction d'un fichier audio sur un terminal multimédia, et terminal multimédia Download PDF

Info

Publication number
WO2015089733A1
WO2015089733A1 PCT/CN2013/089678 CN2013089678W WO2015089733A1 WO 2015089733 A1 WO2015089733 A1 WO 2015089733A1 CN 2013089678 W CN2013089678 W CN 2013089678W WO 2015089733 A1 WO2015089733 A1 WO 2015089733A1
Authority
WO
WIPO (PCT)
Prior art keywords
channel signal
audio file
frames
signal
multimedia terminal
Prior art date
Application number
PCT/CN2013/089678
Other languages
English (en)
Chinese (zh)
Inventor
易见
鲁波
Original Assignee
华为终端有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为终端有限公司 filed Critical 华为终端有限公司
Priority to PCT/CN2013/089678 priority Critical patent/WO2015089733A1/fr
Publication of WO2015089733A1 publication Critical patent/WO2015089733A1/fr

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S1/00Two-channel systems
    • H04S1/007Two-channel systems in which the audio signals are in digital form

Definitions

  • the present invention relates to the field of audio and video technologies, and in particular, to a method for playing an audio file in a multimedia terminal and a multimedia terminal. Background technique
  • the embodiment of the invention provides a method for playing an audio file in a multimedia terminal and a multimedia terminal, which can realize the audio file with the left and right channel signals reversed without distortion in the multimedia terminal of the mono output mechanism, and is enhanced. user experience.
  • a first aspect of the embodiments of the present invention provides a method for playing an audio file, including: decoding, by a multimedia terminal, at least one frame of an audio file, and acquiring a left channel signal and a right channel signal of at least one frame of the audio file. ;
  • the multimedia terminal superimposes the left channel signal and the right channel signal of at least one frame of the audio file and acquires the superimposed superimposed signal;
  • the multimedia terminal determines whether the amplitude of the superimposed signal is within a preset range, and if the amplitude of the superimposed signal is within a preset range, determining a left channel signal and a right channel signal of all frames of the audio file Reverse
  • the multimedia terminal is Decoding all the frames of the audio file, and adjusting the left channel signal and the right channel signal of all frames of the audio file obtained after decoding to the same direction;
  • the multimedia terminal superimposes and plays the left channel signal and the right channel signal of all frames of the audio file adjusted in the same direction.
  • the multimedia terminal determines whether the amplitude of the superimposed signal is within a preset range, and if the amplitude of the superimposed signal is within a preset range, determining the The reverse of the left channel signal and the right channel signal of all frames of the audio file includes:
  • the multimedia terminal determines whether the amplitude of the superimposed signal is zero. If the amplitude of the superimposed signal is zero, it is determined that the left channel signal of all frames of the audio file is opposite to the right channel signal.
  • the multimedia terminal decodes at least one frame of the audio file, and obtains at least one frame of the audio file
  • the channel signal and the right channel signal also include:
  • the multimedia terminal acquires a play instruction for the audio file
  • the multimedia terminal sets a reverse identifier for the play instruction
  • the multimedia terminal decodes all frames of the audio file, and decodes all frames of the audio file obtained after decoding.
  • the adjustment of the left channel signal and the right channel signal to the same direction includes:
  • the multimedia terminal detects whether the reverse identifier is set for the play instruction; if the reverse identifier is detected, the multimedia terminal decodes all frames of the audio file, and the decoded audio is obtained.
  • the left channel signal and the right channel signal of all frames of the file are adjusted in the same direction.
  • the multimedia terminal decodes all frames of the audio file, and after decoding After the left channel signal and the right channel signal of all the frames of the obtained audio file are adjusted to be in the same direction, the method further includes: The multimedia terminal clears the reverse identity.
  • the multimedia terminal is adjusted to the left of all frames of the audio file in the same direction
  • the superposition and playback of the channel signal and the right channel signal include:
  • the multimedia terminal adjusts the left channel signal and the right channel signal of all the frames of the audio file in the same direction to reduce the amplitude by a preset ratio, and then superimposes and plays.
  • the multimedia terminal adjusts the left channel signal and the right channel signal of all frames of the audio file that are adjusted in the same direction. After the scale is reduced, the overlay and play are specifically included:
  • the multimedia terminal adjusts the left channel signal and the right channel signal of all the frames of the audio file in the same direction to reduce the amplitude by 50%, and superimposes and plays.
  • the adjusting the left channel signal and the right channel signal of all frames of the audio file obtained after decoding into the same direction includes:
  • the right channel signal of all frames of the audio file is kept unchanged, and the left channel signal of all frames of the audio file is inverted.
  • the at least one frame of the audio file includes:
  • the first frame of the audio file or the discrete at least two frames.
  • a second aspect of the embodiments of the present invention provides a multimedia terminal, including:
  • An audio decoding module configured to decode at least one frame of the audio file, and acquire a left channel signal and a right channel signal of at least one frame of the audio file;
  • a signal superimposing module configured to superimpose a left channel signal of at least one frame of the audio file and a right channel signal, and obtain a superimposed superimposed signal
  • a signal judging module configured to determine whether a magnitude of the superimposed signal is within a preset range, and if a magnitude of the superimposed signal is within a preset range, determining a left channel signal of all frames of the audio file The right channel signal is reversed;
  • a signal adjustment module for the left channel signal and the right channel signal of all frames of the audio file In the reverse direction, all the frames of the audio file are decoded, and the left channel signal and the right channel signal of all frames of the audio file obtained after decoding are adjusted to be in the same direction;
  • an audio playing module configured to superimpose and play the left channel signal and the right channel signal of all frames of the audio file adjusted to be in the same direction.
  • the signal determining module is configured to determine whether the amplitude of the superimposed signal is zero, and if the amplitude of the superimposed signal is zero, determine the audio file.
  • the left channel signal of all frames is inverted with the right channel signal.
  • the multimedia terminal further includes:
  • a play instruction acquisition module configured to acquire a play instruction for the audio file to trigger the audio decoding module
  • a reverse identifier setting module configured to: if it is determined that the left channel signal of the entire frame of the audio file is opposite to the right channel signal, set a reverse identifier for the play instruction;
  • the signal adjustment module includes:
  • a reverse identifier detecting unit configured to detect whether the reverse identifier is set for the play instruction before decoding the audio file
  • a signal adjustment unit configured to decode all frames of the audio file if the reverse identifier is detected, and decode the left channel signal and the right channel signal of all frames of the audio file obtained after decoding Adjust to the same direction.
  • the multimedia terminal further includes:
  • a reverse identifier clearing module configured to clear the reverse identifier after the audio playing module plays the new audio signal.
  • the audio playing module is configured to adjust all of the audio files in the same direction
  • the left channel signal and the right channel signal of the frame are scaled down by a preset ratio, and then superimposed and played.
  • the audio playback module is configured to adjust a left channel signal and a right channel of all frames of the audio file that are adjusted to be in the same direction The signal is scaled down by 50% and then superimposed and played.
  • the signal adjustment module is used to:
  • the left channel signal of all frames of the audio file is inverted with the right channel signal, decoding all frames of the audio file, and keeping the right channel signal of all frames of the audio file unchanged, The left channel signal of all frames of the audio file is inverted.
  • the at least one frame of the audio file includes:
  • the first frame of the audio file or the discrete at least two frames.
  • a third aspect of the embodiments of the present invention provides a multimedia terminal, where the multimedia terminal includes an audio output device, a memory, and a processor, wherein the memory stores a set of player programs, and the processor is configured to call a player program stored in the memory, Used to do the following:
  • the multimedia terminal decodes at least one frame of the audio file, and acquires a left channel signal and a right channel signal of at least one frame of the audio file;
  • the multimedia terminal superimposes the left channel signal and the right channel signal of at least one frame of the audio file and acquires the superimposed superimposed signal;
  • the multimedia terminal determines whether the amplitude of the superimposed signal is within a preset range, and if the amplitude of the superimposed signal is within a preset range, determining a left channel signal and a right channel signal of all frames of the audio file Reverse
  • the multimedia terminal decodes all the frames of the audio file, and the left frame of all the frames of the audio file obtained after decoding
  • the channel signal and the right channel signal are adjusted to be in the same direction
  • the multimedia terminal superimposes and plays the left channel signal and the right channel signal of all frames of the audio file adjusted in the same direction.
  • the embodiment of the present invention analyzes the pre-decoded left and right channel signals by pre-decoding a partial frame of the audio file, thereby identifying whether the left and right channel signals of the audio file are reversed, and to the left,
  • the audio file in the reverse direction of the right channel is processed, that is, the left and right channel signals are adjusted to be in the same direction and superimposed.
  • the audio file is played without distortion on the audio output device of the mono output mechanism, thereby improving the user experience.
  • FIG. 1 is a schematic flowchart of a method for playing an audio file in a multimedia terminal according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of another method for playing an audio file in a multimedia terminal according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of another method for playing an audio file in a multimedia terminal according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a multimedia terminal according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of a signal adjustment module according to an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of another multimedia terminal according to an embodiment of the present invention.
  • FIG. 7 is a signal diagram of a PCM decoded audio signal according to an embodiment of the present invention
  • FIG. 8 is a signal diagram of a partial audio signal PCM decoded according to an embodiment of the present invention.
  • FIG. 10 is a superimposed signal diagram provided by an embodiment of the present invention.
  • the audio file proposed in the embodiment of the present invention may include audio files in a common format such as MP3, WAV, WMA, and the like, and may also include audio sub-texts in multimedia files such as videos and movies. Piece or data.
  • the embodiments of the present invention are mainly implemented on a multimedia terminal using Android as an operating platform, but are not limited to the Android platform.
  • the equivalent implementation process on other operating platforms is still within the scope of the present invention.
  • FIG. 1 is a schematic flow chart of a method for playing an audio file in a multimedia terminal according to an embodiment of the present invention.
  • the flow of the method for playing an audio file in this embodiment as shown in the figure may include:
  • the multimedia terminal decodes at least one frame of the audio file, and acquires a left channel signal and a right channel signal of at least one frame of the audio file.
  • the audio file is mainly for a two-channel audio file, and each audio file may be split into a plurality of consecutive frames according to a certain unit.
  • the audio file needs to be decoded before being played, in the present invention.
  • the above decoding may be PCM (Pulse Code Modulation) decoding.
  • the multimedia terminal first decodes at least one frame of the audio file to obtain the left channel signal and the right channel signal after the frame decoding.
  • at least one frame of the audio file may be one or more frames randomly selected in the entire audio file, for example, a signal diagram of the PCM decoded audio signal shown in FIG. 7, the above decoded object If it is a frame, it can be the first A frame, or the middle G frame, or the last 0 frame. If the above decoded object is a multi-frame, it can be the first frame of A, B, and C. It can also be the middle 0, H, I three frames, or it can be discrete eight, E, H three frames.
  • At least one of the above frames is preferably a discrete multiframe, thereby reducing misjudgment of audio files in subsequent processes. Improve the accuracy of playing audio files.
  • the multimedia terminal superimposes the left channel signal and the right channel signal of at least one frame of the audio file and acquires the superimposed superimposed signal.
  • the superposition is to sum the two values. Specifically, the multimedia terminal sums the left channel signal and the right channel signal of at least one frame of the audio file, and the summed value is a superimposed signal, and the multimedia terminal acquires the superimposed signal.
  • the multimedia terminal determines whether the amplitude of the superimposed signal is within a preset range, and if the amplitude of the superimposed signal is within a preset range, determining a left channel signal and a right sound of all frames of the audio file
  • the channel signal is reversed.
  • the multimedia terminal determines whether the left channel signal and the right channel signal of all frames of the audio file are reversed according to whether the amplitude of the superimposed signal is within a preset range.
  • the foregoing determining method may specifically be:
  • a partial audio signal is decoded by a PCM signal.
  • the left and right channels of the audio signal are reversed, the left channel signals A1, Bl, and CI are respectively associated with the right channel signals A2 and B2.
  • the superimposed signals Al+A2, Bl+B2, C1+C2 are obtained. Since IA1I « IA2I, IB1I « IB2I, IC1 « IC2I, then Al+A2 « 0, Bl+B2 « 0, Cl+C2 « 0 .
  • another partial audio signal is decoded by the PCM signal.
  • the left and right channels of the audio signal are in the same direction, the left channel signals A1, Bl, and CI are respectively associated with the right channel signal A2.
  • the superimposed signals Al+A2, Bl+B2, and C1+C2 are obtained.
  • the foregoing preset method may directly: determine whether the amplitude of the superimposed signal is zero, and if the amplitude of the superimposed signal is zero, determine that the left channel signal of all frames of the audio file is opposite to the right channel signal.
  • the multimedia terminal decodes all frames of the audio file, and decodes all frames of the audio file obtained after decoding.
  • the left channel signal and the right channel signal are adjusted in the same direction.
  • the multimedia terminal learns that the left channel signal of all frames of the audio file is opposite to the right channel signal, all the frames of the audio file can be decoded and the decoded left and right channel signals are adjusted.
  • the whole signal is in the same direction.
  • the specific adjustment method may be: keeping the left channel signal of all frames of the audio file unchanged, inverting the right channel signal of all frames of the audio file, or maintaining the right channel signal of all frames of the audio file. The same, the left channel signal of all frames of the audio file is inverted.
  • the multimedia terminal superimposes and plays the left channel signal and the right channel signal of all frames of the audio file that are adjusted to be in the same direction.
  • the multimedia terminal in order to simultaneously retain the information of the left channel signal and the right channel signal, the multimedia terminal superimposes the left channel signal and the right channel signal of all the frames of the same audio file to obtain a new signal.
  • the new signal is played simultaneously on the left and right channels of the audio output device.
  • the left channel audio or headphones, right channel audio, or headphones simultaneously output the same music.
  • FIG. 10 a superimposed signal diagram, signals obtained by superimposing mono signals of the left and right channels (ie, signals superimposed by two channels in the figure) may appear.
  • the larger the amplitude, the louder the volume, and the excessive volume will reduce the user experience.
  • the amplitude of the signal exceeds the channel signal threshold, the signal will be cut off and distortion will occur.
  • the above-mentioned channel signal threshold value refers to the maximum value allowed by the channel signal, for example:
  • the general channel signal is a 16-bit binary code, wherein, after the symbol code is removed, the value ranges from -65535 to +65535, when double-voiced When the code value of the track superimposed signal is greater than +655535 or less than -65535, the signal will be truncated.
  • the multimedia terminal superimposes the left channel signal and the right channel signal of all the frames of the same audio file to be reduced by a preset ratio.
  • the preset ratio may be 50%. According to the mathematical derivation of the cartridge, the 50% preset ratio not only avoids signal truncation, but also does not significantly change the final volume.
  • the pre-decoded left and right channel signals are analyzed by pre-decoding a partial frame of the audio file, thereby identifying whether the left and right channel signals of the audio file are reversed, and the left and right channel signals are
  • the reverse audio file is processed, that is, the left and right channel signals are adjusted to be in the same direction and superimposed, and finally the audio file is played without distortion on the audio output device of the mono output mechanism according to the processed signal, thereby improving user experience.
  • 2 is a flow diagram of another method for playing an audio file in a multimedia terminal in an embodiment of the present invention; Schematic diagram. The flow of the method for playing an audio file in this embodiment as shown in the figure may include:
  • the multimedia terminal acquires a play instruction for the audio file.
  • the multimedia terminal acquires a play instruction for the audio file, and performs the following steps S202 to S210 under the play command.
  • the multimedia terminal decodes at least one frame of the audio file, and acquires a left channel signal and a right channel signal of at least one frame of the audio file.
  • the audio file is mainly for a two-channel audio file, and each audio file may be split into a plurality of consecutive frames according to a certain unit.
  • the audio file needs to be decoded before being played, in the present invention.
  • the above decoding may be PCM decoding.
  • the multimedia terminal first decodes at least one frame of the audio file to obtain the left channel signal and the right channel signal after the frame decoding.
  • at least one frame of the audio file may be one or more frames randomly selected in the entire audio file, for example, a signal diagram of the PCM decoded audio signal shown in FIG. 7, the above decoded object If it is a frame, it can be the first A frame, or the middle G frame, or the last 0 frame. If the above decoded object is a multi-frame, it can be the first frame of A, B, and C. It can also be the middle 0, H, I three frames, or it can be discrete eight, E, H three frames.
  • At least one of the above frames is preferably a discrete multiframe, thereby reducing misjudgment of audio files in subsequent processes. Improve the accuracy of playing audio files.
  • the multimedia terminal superimposes the left channel signal and the right channel signal of at least one frame of the audio file, and acquires the superimposed superimposed signal.
  • the superposition is to sum the two values. Specifically, the multimedia terminal sums the left channel signal and the right channel signal of at least one frame of the audio file, and the summed value is a superimposed signal, and the multimedia terminal acquires the superimposed signal.
  • the multimedia terminal determines whether the amplitude of the superposed signal is within a preset range.
  • a partial audio signal is decoded by a PCM signal.
  • the left and right channels of the audio signal are reversed, the left channel signals A1, Bl, and CI are respectively associated with the right channel signals A2 and B2.
  • the superimposed signals Al+A2, Bl+B2, C1+C2 are obtained. Since IA1I « IA2I, IB1I « IB2I, IC1 « IC2I, then Al+A2 « 0, Bl+B2 « 0, Cl+C2 « 0 .
  • another partial audio signal is decoded by the PCM signal.
  • the left and right channels of the audio signal are in the same direction, the left channel signals A1, Bl, and CI are respectively associated with the right channel signal A2.
  • the superimposed signals Al+A2, Bl+B2, and C1+C2 are obtained.
  • the multimedia terminal determines that the left channel signal of all frames of the audio file is opposite to the right channel signal.
  • two channels are the same direction signals
  • the other is that the two channels are reverse signals
  • the above-mentioned same direction signals are the same signals, for example, two positive signals.
  • the reverse signal is a signal with the opposite sign, for example, two positive and negative signals.
  • the multimedia terminal sets a reverse identifier for the play instruction.
  • the reverse identifier is set for later query. For example, when the multimedia terminal is idle, it is determined in advance whether the left and right channel signals of an audio file in the local media library are reversed, and if the reverse direction is set, the reverse identifier is set to immediately know the channel status when the audio file is executed. .
  • the play command is associated with a corresponding parameter variable
  • the multimedia terminal can set the value of the parameter variable.
  • the value of the parameter variable is set to 1, it can be expressed for playing.
  • the instruction setting has a reverse identifier. If it is set to 0, it can indicate that the reverse identifier is not set.
  • the multimedia terminal detects whether the reverse identifier is set for the play instruction. Specifically, before decoding all the frames of the audio file, the multimedia terminal detects whether a reverse identifier is set for the play instruction.
  • the multimedia terminal detects whether the value of the parameter variable in the play command is 1, such as If it is 1, the reverse flag is set for the playback command. If it is 0, it is not.
  • the multimedia terminal decodes all the frames of the audio file, and adjusts the left channel signal and the right channel signal of all frames of the audio file obtained after decoding to In the same direction.
  • the multimedia terminal decodes all the frames of the audio file and adjusts the decoded left and right channel signals to the same direction. signal of.
  • the specific adjustment method may be: keeping the left channel signal of all frames of the audio file unchanged, inverting the right channel signal of all frames of the audio file, or maintaining the right channel signal of all frames of the audio file. The same, the left channel signal of all frames of the audio file is inverted.
  • the multimedia terminal superimposes and plays the left channel signal and the right channel signal of all the frames of the audio file that are adjusted to be in the same direction by a preset ratio.
  • the multimedia terminal adjusts the left channel signal and the right channel signal of all frames of the same audio file to be reduced by a preset ratio and then superimposed. , get a new signal, and play the new signal simultaneously on the left and right channels of the audio output device.
  • the left channel audio or headphones, right channel audio, or headphones simultaneously output the same music.
  • the multimedia terminal reduces the left channel signal and the right channel signal of the audio file by a preset ratio and then superimposes is as follows: a superimposed signal diagram as shown in FIG. 10, left and right
  • the signal obtained by superimposing the mono signal of the channel may have an excessive amplitude.
  • the larger the amplitude, the louder the volume, and the excessive volume will reduce the user experience. .
  • the amplitude of the signal exceeds the channel signal threshold, the signal will be cut off and distortion will occur.
  • the above-mentioned channel signal threshold value refers to the maximum value allowed by the channel signal, for example:
  • the general channel signal is a 16-bit binary code, wherein, after the symbol code is removed, the value ranges from -65535 to +65535, when double-voiced When the code value of the track superimposed signal is greater than +655535 or less than -65535, the signal will be truncated.
  • the multimedia terminal clears the reverse identifier.
  • the multimedia terminal clears the reverse identifier set by the play instruction, so as to avoid causing mishandling to other subsequent audio files.
  • the embodiment of the present invention sets a play instruction for the audio file, and under the play command, the multimedia terminal analyzes the pre-decoded left and right channel signals, and recognizes the audio files with the left and right channel signals reversed, and plays in the play Set the reverse flag in the command.
  • FIG. 3 is a schematic flow chart of another method for playing an audio file in a multimedia terminal according to an embodiment of the present invention.
  • the flow of the method for playing an audio file in this embodiment as shown in the figure may include:
  • the multimedia terminal acquires a play instruction for the audio file.
  • the multimedia terminal acquires a play instruction for the audio file, and performs the following steps S302 to S310 under the play command.
  • the multimedia terminal decodes a first frame of the audio file, and acquires a left channel signal and a right channel signal of the first frame of the audio file.
  • the audio file is mainly for a two-channel audio file, and each audio file may be divided into several consecutive frames according to a certain unit.
  • the audio file needs to be PCM decoded before being played.
  • the above decoding may be PCM decoding.
  • the multimedia terminal first decodes a frame of the audio file to obtain a left channel signal and a right channel signal of the frame.
  • the first frame of the above audio file can refer to an A-frame starting from the audio signal PCM decoded signal pattern as shown in FIG.
  • the multimedia terminal superimposes the left channel signal and the right channel signal of the first frame of the audio file and acquires the superimposed superimposed signal.
  • the superposition is to sum the two values. Specifically, the multimedia terminal sums the left channel signal and the right channel signal of the first frame of the audio file, and the summed value is a superimposed signal, and the multimedia terminal acquires the superimposed signal.
  • the multimedia terminal determines whether the amplitude of the superposed signal is within a preset range.
  • the left channel signal A1 is superimposed with the right channel signal A2 to obtain a superimposed signal A1+A2. Since IA1I « IA2I, Al+A2 « 0.
  • a preset range near "0" such as ⁇ 3
  • the superimposed signal satisfies (Al+A2) c [-3,3]
  • the left and right sounds of the audio file can be determined.
  • the channel signal is reversed.
  • another partial audio signal is decoded by the PCM signal.
  • the left and right channels of the audio signal are in the same direction, the left channel signal A1 is superimposed with the right channel signal A2 to be superimposed.
  • Signal A1+A2 if a preset range around "0", such as ⁇ 3, is still set, then obviously the superimposed signal is not in this range, ie (Al+A2) [-3,3], and the audio can be determined
  • the left channel of the file is in the same direction as the right channel signal.
  • the multimedia terminal determines that the left channel signal of all frames of the audio file is opposite to the right channel signal.
  • the two channels are the same direction signals
  • the other is that the two channels are the reverse signals
  • the above-mentioned same direction signals are the same signals, for example, two positive signals.
  • the reverse signal is a signal with the opposite sign, for example, two positive and negative signals.
  • the multimedia terminal sets a reverse identifier for the play instruction.
  • the reverse identifier is set for later query. For example, when the multimedia terminal is idle, it is determined in advance whether the left and right channel signals of an audio file in the local media library are reversed, and if the reverse direction is set, the reverse identifier is set to immediately know the channel status when the audio file is executed. .
  • the play command is associated with a corresponding parameter variable
  • the multimedia terminal can set the value of the parameter variable.
  • the value of the parameter variable is set to 1, it can be expressed for playing.
  • the instruction setting has a reverse identifier. If it is set to 0, it can indicate that the reverse identifier is not set.
  • the multimedia terminal detects whether the reverse identifier is set for the play instruction. Specifically, before the multimedia file is formally decoded, the multimedia terminal detects whether a reverse identifier is set for the play instruction. In an optional implementation manner, the multimedia terminal detects whether the value of the parameter variable in the play command is 1, and if it is 1, the reverse flag is set for the play command, and if it is 0, it does not.
  • the multimedia terminal decodes all frames of the audio file, and keeps the left channel signal of all frames of the audio file unchanged, and all frames of the audio file are Right channel signal.
  • the multimedia terminal knows that the left channel signal of the audio file is reversed from the right channel signal by the reverse identifier, all the frames of the audio file are decoded and the left channel signal obtained by the decoding is kept unchanged, and the audio file is changed.
  • the right channel signal of all frames is inverted.
  • the multimedia terminal superimposes and plays the left channel signal and the right channel signal of all the frames of the audio file that are adjusted to be in the same direction by 50%.
  • the multimedia terminal adjusts the left channel signal and the right channel signal of all the frames of the same audio file to be reduced by 50%, and then superimposed. , get a new signal, and play the new signal simultaneously on the left and right channels of the audio output device.
  • the left channel audio or headphones, right channel audio, or headphones simultaneously output the same music.
  • the multimedia terminal reduces the left channel signal and the right channel signal of the audio file by 50% and then superimposes is as follows: a superimposed signal diagram as shown in FIG. 10, left and right
  • the signal obtained by superimposing the mono signal of the channel may have an excessive amplitude.
  • the larger the amplitude, the louder the volume, and the excessive volume will reduce the user experience. .
  • the amplitude of the signal exceeds the channel signal threshold, the signal will be cut off and distortion will occur.
  • the above-mentioned channel signal threshold value refers to the maximum value allowed by the channel signal, for example:
  • the general channel signal is a 16-bit binary code, wherein, after the symbol code is removed, the value ranges from -65535 to +65535, when double-voiced When the code value of the track superimposed signal is greater than +655535 or less than -65535, the signal will be truncated.
  • the 50% preset ratio not only avoids signal truncation, but also does not significantly change the final volume.
  • the multimedia terminal clears the reverse identifier.
  • the multimedia terminal clears the reverse identifier set for the playback instruction, so as to avoid erroneous processing on subsequent audio files.
  • the embodiment of the invention sets a play instruction for the audio file, and under the play instruction, the multimedia The terminal analyzes the pre-decoded left and right channel signals, recognizes the audio files whose left and right channel signals are reversed, and sets a reverse identifier in the play command. Before decoding the audio file, the multimedia terminal first detects whether there is a reverse identifier under the play command, and if so, keeps the left channel signal of the audio file unchanged, and inverts the right channel signal to implement left and right sounds. The signals are in the same direction, and the backward signals are scaled down by 50%, and finally the left and right channel signals are reversed without distortion on the audio output device of the mono output mechanism according to the processed signals. Audio files to enhance the user experience. FIG.
  • the multimedia terminal of the invention comprises smart terminals such as smart phones, PAD, MP3 and MP4.
  • the multimedia terminal in the embodiment of the present invention may include at least an audio decoding module 410, a signal superimposing module 420, a signal judging module 430, a signal adjusting module 440, and an audio playing module 450, where:
  • the audio decoding module 410 is configured to decode at least one frame of the audio file, and obtain a left channel signal and a right channel signal of at least one frame of the audio file.
  • the audio file is mainly for a two-channel audio file, and each audio file may be split into a plurality of consecutive frames according to a certain unit.
  • the audio file needs to be decoded before being played, in the present invention.
  • the above decoding may be PCM decoding.
  • the audio decoding module 410 decodes at least one frame of the audio file before performing PCM decoding on the audio file to obtain the left channel signal and the right channel signal after the frame decoding.
  • at least one frame of the audio file may be one or more frames randomly selected in the entire audio file, for example, a signal diagram of the PCM decoded audio signal shown in FIG. 7, the above decoded object If it is a frame, it may be the initial A frame, or the middle G frame, or the last 0 frame. If the above decoded object is a multi-frame, it may be the start A, B, C. The frame may also be the intermediate 0, H, and I frames, or may be discrete eight, E, and H frames.
  • At least one of the above frames is preferably a discrete multiframe, thereby reducing misjudgment of audio files in subsequent processes and improving the accuracy of playing audio files.
  • the signal superimposing module 420 is configured to superimpose the left channel signal and the right channel signal of at least one frame of the audio file and obtain the superimposed superimposed signal.
  • the superposition is to sum the two values.
  • the signal overlay module 420 will The left channel signal and the right channel signal of one frame are summed, and the summed value is a superimposed signal, and the multimedia terminal acquires the superimposed signal.
  • the signal determining module 430 is configured to determine whether the amplitude of the superimposed signal is within a preset range, and if the amplitude of the superimposed signal is within a preset range, determine a left channel signal of all frames of the audio file. Reversed to the right channel signal.
  • the signal determining module 430 determines whether the left channel signal and the right channel signal of all the frames of the audio file are reversed according to whether the amplitude of the superimposed signal is within a preset range.
  • the foregoing determining method may specifically be:
  • a partial audio signal is decoded by a PCM signal.
  • the left and right channels of the audio signal are reversed, the left channel signals A1, Bl, and CI are respectively associated with the right channel signals A2 and B2.
  • the superimposed signals Al+A2, Bl+B2, C1+C2 are obtained. Since IA1I « IA2I, IB1I « IB2I, IC1 « IC2I, then Al+A2 « 0, Bl+B2 « 0, Cl+C2 « 0 .
  • another partial audio signal is decoded by the PCM signal.
  • the left and right channels of the audio signal are in the same direction, the left channel signals A1, Bl, and CI are respectively associated with the right channel signal A2.
  • the superimposed signals Al+A2, Bl+B2, and C1+C2 are obtained.
  • the foregoing preset method may directly be: determining whether the amplitude of the superimposed signal is zero, and if the amplitude of the superimposed signal is zero, determining that the left channel signal of the audio file is opposite to the right channel signal.
  • the signal adjustment module 440 is configured to: if the left channel signal of the entire frame of the audio file is inverted with the right channel signal, decode all the frames of the audio file, and decode the obtained audio file. The left channel signal and the right channel signal of all the frames are adjusted in the same direction.
  • the signal adjusting module 440 can decode all the frames of the audio file and decode the left and right sounds.
  • the channel signal is adjusted to the same direction signal.
  • the specific adjustment method may be: keeping the left channel signal of the audio file unchanged, inverting the right channel signal of the audio file, or keeping the right channel signal of the audio file unchanged, and the left sound of the audio file The signal is inverted.
  • the audio playing module 450 is configured to superimpose and play the left channel signal and the right channel signal of all frames of the audio file adjusted to be in the same direction.
  • the audio playing module 450 in order to simultaneously retain the information of the left channel signal and the right channel signal, the audio playing module 450 superimposes the left channel signal and the right channel signal of all frames adjusted to the same audio file to obtain a new one. Signal and play the new signal simultaneously on the left and right channels of the audio output device. For example, the left channel audio or headphones, right channel audio, or headphones simultaneously output the same music.
  • FIG. 10 a superimposed signal diagram, signals obtained by superimposing mono signals of the left and right channels (ie, signals superimposed by two channels in the figure) may appear.
  • the larger the amplitude, the louder the volume, and the excessive volume will reduce the user experience.
  • the amplitude of the signal exceeds the channel signal threshold, the signal will be cut off and distortion will occur.
  • the above-mentioned channel signal threshold value refers to the maximum value allowed by the channel signal, for example:
  • the general channel signal is a 16-bit binary code, wherein, after the symbol code is removed, the value ranges from -65535 to +65535, when double-voiced When the code value of the track superimposed signal is greater than +655535 or less than -65535, the signal will be truncated.
  • the audio play module 450 superimposes the left channel signal and the right channel signal of all frames adjusted to the same audio file by a preset ratio and then superimposes the amplitude.
  • the preset ratio may be 50%. According to the mathematical derivation of the cartridge, the 50% preset ratio not only avoids signal truncation, but also does not significantly change the final volume.
  • the multimedia terminal may further include a play instruction, and the reverse identifier is set.
  • the module 470 and the reverse identity clearing module 480 wherein:
  • the play instruction acquisition module 460 is configured to acquire a play instruction for the audio file to trigger the audio pre-decoding module.
  • the play instruction acquisition module 460 obtains a play instruction for the audio file, and triggers the audio decoding module under the play command.
  • the reverse identifier setting module 470 is configured to set a reverse identifier for the play command if it is determined that the left channel signal of all frames of the audio file is opposite to the right channel signal.
  • the reverse identity setting module 470 sets the reverse identity for later query. If the multimedia terminal is idle, it is determined in advance whether the left and right channel signals of an audio file in the local media library are reversed. If the reverse direction, the reverse identifier setting module 470 sets the reverse identifier to enable the audio file to be executed. Immediately know the status of its channel.
  • the reverse identifier setting module 470 is provided with a corresponding parameter variable, and the multimedia terminal can set the value of the parameter variable.
  • the value of the parameter variable is set to 1
  • the reverse indication is set for the play instruction, and if it is set to 0, it can mean that the reverse identifier is not set.
  • the reverse identifier clearing module 480 is configured to clear the reverse identifier after the audio playing module plays the new audio signal.
  • the reverse identifier clearing module 480 clears the reverse identifier set for the play command to avoid misprocessing of subsequent audio files.
  • the signal adjustment module 440 may further include: a reverse identifier detection unit 441 and a signal adjustment unit 442, where:
  • the reverse identifier detecting unit 441 is configured to detect whether the reverse identifier is set for the play instruction before decoding the audio file.
  • the reverse identification detecting unit 441 detects whether a reverse identification is set for the playback instruction before the audio file is formally decoded.
  • the reverse identifier detecting unit 441 detects whether the value of the parameter variable in the play command is 1 or not. If it is 1, the reverse flag is set for the play command, and if it is 0, it is not.
  • a signal adjustment unit 442 configured to: if the reverse identifier is detected, the audio file All frames are decoded, and the left channel signal and the right channel signal of all frames of the audio file obtained after decoding are adjusted to be in the same direction.
  • the signal adjustment unit 442 knows that the left channel signal of the audio file is inverted with the right channel signal, the entire frame of the audio file is decoded and the decoded left and right channel signals are adjusted to The same direction signal.
  • FIG. 6 is a schematic structural diagram of another multimedia terminal according to an embodiment of the present invention.
  • the multimedia terminal may include: at least one processor 601, such as a CPU (Central Processing Unit), and a memory 602.
  • the communication bus 603 is used to implement connection communication between these components.
  • the audio output device 604 is used to convert the channel signal of the audio file into sound.
  • the memory 602 can be a high speed RAM memory or a non-volatile memory such as at least one disk memory. Memory 602 can also be at least one storage device located remotely from processor 602. A set of program codes is stored in the memory 602, and the processor is configured to call program code stored in the memory for performing the following operations:
  • the left channel signal and the right channel signal of all frames of the audio file adjusted to be in the same direction are overlapped and played.
  • the processor 601 determines whether the amplitude of the superposed signal is within a preset range. Yes:
  • the processor 601 determines that the left channel signal of all frames of the audio file is opposite to the right channel signal.
  • the specific operations performed by the processor 601 may further include:
  • the multimedia terminal sets a reverse flag for the play command.
  • the processor 601 can detect whether the left channel signal and the right channel signal of all frames of the audio file are reversed by detecting whether the reverse identifier is set for the play instruction.
  • the processor 601 detects the reverse identifier, the entire frame of the audio file is decoded and the left channel signal and the right channel signal are adjusted to be in the same direction.
  • the reverse identifier is cleared.
  • the processor 601 decodes all frames of the audio file and adjusts the left channel signal and the right channel signal to perform the same operation in the same direction:
  • the right channel signal of all frames of the audio file is kept unchanged, and the left channel signal of all frames of the audio file is inverted.
  • the processor 601 superimposes the left channel signal and the right channel signal of all frames of the audio file that are adjusted to be in the same direction.
  • the specific operation may be:
  • the left channel signal and the right channel signal of all the frames of the audio file adjusted to be in the same direction are superimposed by a preset ratio reduction amplitude.
  • the preset ratio can be 50%.
  • the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores a program, and the program execution includes an audio file played in a multimedia terminal according to an embodiment of the present invention in combination with FIG. 1 to FIG. Methods.
  • the invention analyzes the pre-decoded left and right channel signals by pre-decoding a partial frame of the audio file, thereby identifying whether the left and right channel signals of the audio file are reversed, and reversing the left and right channel signals. of The audio file is processed, that is, the left and right channel signals are adjusted to be in the same direction and superimposed, and finally the audio file is played without distortion on the audio output device of the mono output mechanism according to the processed signal.
  • the present invention further provides a play instruction for the above process, in which the recognized audio files of the left and right channel signals are reversely identified, which facilitates the multimedia terminal to execute according to the reverse identifier. Processing of audio files. Further, the present invention adjusts the left and right channel signals to the same direction, and then reduces the amplitude by 50% and then superimposes to avoid signal truncation without significantly changing the volume of the volume, thereby improving the user experience.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Stereophonic System (AREA)

Abstract

L'invention concerne un procédé de reproduction de fichiers audio, comportant les étapes consistant à: pré-décoder au moins une trame d'un fichier audio; juger si des signaux de voie sonore gauche et des signaux de voie sonore droite de toutes les trames du fichier audio sont de sens opposés d'après un signal de voie sonore gauche et un signal de voie sonore droite de la ou des trames obtenues après pré-décodage; si les signaux de voie sonore gauche et les signaux de voie sonore droite de toutes les trames du fichier audio sont de sens opposés, décoder toutes les trames du fichier audio et régler les signaux de voie sonore gauche et les signaux de voie sonore droite de toutes les trames du fichier audio pour qu'ils soient de même sens; et superposer les signaux de voie sonore gauche et les signaux de voie sonore droite de toutes les trames du fichier audio qui sont réglés pour être de même sens et les reproduire. En conséquence, l'invention concerne également un terminal multimédia. Au moyen de la présente invention, un fichier audio dont les signaux de voie sonore gauche et droite se trouvent dans des sens inverses peut être reproduit sans distorsion sur un terminal multimédia à l'aide d'un mécanisme de sortie à voie sonore unique, améliorant ainsi l'agrément d'utilisation.
PCT/CN2013/089678 2013-12-17 2013-12-17 Procédé de reproduction d'un fichier audio sur un terminal multimédia, et terminal multimédia WO2015089733A1 (fr)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/089678 WO2015089733A1 (fr) 2013-12-17 2013-12-17 Procédé de reproduction d'un fichier audio sur un terminal multimédia, et terminal multimédia

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/089678 WO2015089733A1 (fr) 2013-12-17 2013-12-17 Procédé de reproduction d'un fichier audio sur un terminal multimédia, et terminal multimédia

Publications (1)

Publication Number Publication Date
WO2015089733A1 true WO2015089733A1 (fr) 2015-06-25

Family

ID=53401922

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/089678 WO2015089733A1 (fr) 2013-12-17 2013-12-17 Procédé de reproduction d'un fichier audio sur un terminal multimédia, et terminal multimédia

Country Status (1)

Country Link
WO (1) WO2015089733A1 (fr)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4342059A (en) * 1979-04-24 1982-07-27 Polaroid Corporation Electronic gain and noise control for recording of analog information
CN102113315A (zh) * 2008-07-29 2011-06-29 Lg电子株式会社 用于处理音频信号的方法和装置
CN102264026A (zh) * 2010-05-25 2011-11-30 晨星软件研发(深圳)有限公司 音讯处理装置及音讯处理方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4342059A (en) * 1979-04-24 1982-07-27 Polaroid Corporation Electronic gain and noise control for recording of analog information
CN102113315A (zh) * 2008-07-29 2011-06-29 Lg电子株式会社 用于处理音频信号的方法和装置
CN102264026A (zh) * 2010-05-25 2011-11-30 晨星软件研发(深圳)有限公司 音讯处理装置及音讯处理方法

Similar Documents

Publication Publication Date Title
US10768889B2 (en) Audio adjustment system
TWI664623B (zh) 用於音訊編碼系統中使用者互動性之響度控制之音訊處理器和對應方法、及音訊編碼器
AU2008295723B2 (en) A method and an apparatus of decoding an audio signal
EP2044592A1 (fr) Dispositif et procede de lecture de contenu audio-video
JPWO2004077406A1 (ja) 再生装置および再生方法
CN106303816B (zh) 一种信息控制方法及电子设备
WO2010091555A1 (fr) Procede et dispositif de codage stereo
CN106792048B (zh) 一种识别智能电视用户语音命令的方法和装置
CN103841451B (zh) 多媒体播放方法、装置及终端
CN106878290B (zh) 音视频的播放方法及装置
CN105654973A (zh) 一种音频文件处理方法及系统
CA2449255A1 (fr) Procede de codage / decodage hierarchique sans pertes, procede de codage hierarchique sans pertes, procede de decodage hierarchique sans pertes, appareil et programme correspondants
US11638112B2 (en) Spatial audio capture, transmission and reproduction
WO2015089733A1 (fr) Procédé de reproduction d'un fichier audio sur un terminal multimédia, et terminal multimédia
JP2011090290A (ja) 楽曲抽出装置および楽曲録音装置
KR101073407B1 (ko) 오디오 데이터 믹싱 제어 방법 및 장치
US11729574B2 (en) Spatial audio augmentation and reproduction
US20190213215A1 (en) Method and device for continuing a running playback of audio and/or video content from a first source after a temporary interruption or overlaying the running playback by a playback of audio and/or video content from a second source
JP2009277277A (ja) 音声処理装置
JP2010074823A5 (fr)
TW200603079A (en) Data processor and data processing method, program and program recording medium, and data recording medium
JP2008286904A (ja) オーディオ複号化装置
CN106941649B (zh) 改变车辆的音频输出模式的方法及其装置
WO2019051689A1 (fr) Procédé et appareil de commande de son pour terminal intelligent
JP2003162299A (ja) 音声再生回路、デコード回路、音声再生装置及び音声再生方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13899954

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13899954

Country of ref document: EP

Kind code of ref document: A1