CN116208908A - Recording file playing method and device, electronic equipment and storage medium - Google Patents
Recording file playing method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN116208908A CN116208908A CN202310202690.8A CN202310202690A CN116208908A CN 116208908 A CN116208908 A CN 116208908A CN 202310202690 A CN202310202690 A CN 202310202690A CN 116208908 A CN116208908 A CN 116208908A
- Authority
- CN
- China
- Prior art keywords
- sound
- information
- playing
- stereo
- recording file
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04S—STEREOPHONIC SYSTEMS
- H04S7/00—Indicating arrangements; Control arrangements, e.g. balance control
- H04S7/30—Control circuits for electronic adaptation of the sound field
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04S—STEREOPHONIC SYSTEMS
- H04S2400/00—Details of stereophonic systems covered by H04S but not provided for in its groups
- H04S2400/01—Multi-channel, i.e. more than two input channels, sound reproduction with two speakers wherein the multi-channel information is substantially preserved
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04S—STEREOPHONIC SYSTEMS
- H04S2400/00—Details of stereophonic systems covered by H04S but not provided for in its groups
- H04S2400/15—Aspects of sound capture and related signal processing for recording or reproduction
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Stereophonic System (AREA)
Abstract
The application discloses a recording file playing method, a recording file playing device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring a sound recording file and the number of sound channels of a playing device of the sound recording file, wherein the sound recording file comprises basic information and stereo information of a sound source; a playback device responsive to the audio file having at least two sound channels, generating a stereo signal based on the base information and the stereo information; and playing the stereo signal by using a playing device. Through the mode, the method and the device can improve the sense of reality of playing the audio file.
Description
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to a method and apparatus for playing a sound recording file, an electronic device, and a storage medium.
Background
With the development of science and technology, the requirements of people on electronic equipment are also increasing. At present, when a sound recording file is played by stereo, a pure algorithm is generally adopted to simulate the surround sense of the stereo, but the surround sense simulated by the pure algorithm is unreal, so that the reality sense of playing the sound recording file is poor, and the original sound playback effect is difficult to realize.
Disclosure of Invention
The first aspect of the present application provides a method for playing a recording file, including: acquiring a sound recording file and the number of sound channels of a playing device of the sound recording file, wherein the sound recording file comprises basic information and stereo information of a sound source; a playback device responsive to the audio file having at least two sound channels, generating a stereo signal based on the base information and the stereo information; and playing the stereo signal by using a playing device.
A second aspect of the present application provides a recording file playing device, including: the system comprises an acquisition module, a recording module and a display module, wherein the acquisition module is used for acquiring sound recording files and the number of sound channels of a playing device of the sound recording files, and the sound recording files comprise basic information and stereo information of sound sources; the generating module is used for responding to the playing device of the recording file and has at least two sound channels, and generating a stereo signal based on the basic information and the stereo information; and the playing module is used for playing the stereo signal by utilizing the playing device.
A third aspect of the present application provides an electronic device comprising a memory for storing program data and a processor for executing the program data to implement the aforementioned method, coupled to each other.
A fourth aspect of the present application provides a computer readable storage medium having stored therein program data which, when executed by a processor, is adapted to carry out the method as described above.
The beneficial effects of this application are: compared with the prior art, the method and the device have the advantages that the sound recording file and the number of sound channels of the playing device of the sound recording file are obtained, wherein the sound recording file comprises basic information and stereo information of sound sources, then the playing device responding to the sound recording file is provided with at least two sound channels, stereo signals are generated based on the basic information and the stereo information, and finally the stereo signals are played by the playing device. In addition, the stereo playing is not required to be manually selected and started by a user, and the number of sound channels of the playing device can be automatically identified in the method, so that when the playing device has at least two sound channels, namely stereo playing conditions are met, the space special effect is automatically adapted, the user operation is simplified, and the experience of the user is improved.
Drawings
For a clearer description of the technical solutions in the present application, the drawings required in the description of the embodiments will be briefly described below, it being obvious that the drawings described below are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. Wherein:
FIG. 1 is a flowchart illustrating an embodiment of a method for playing audio files according to the present disclosure;
FIG. 2 is a flowchart illustrating another embodiment of a recording file playing method according to the present application;
FIG. 3 is another schematic flow chart of another embodiment of a recording file playing method of the present application;
FIG. 4 is a flowchart illustrating a method for playing audio files according to another embodiment of the present disclosure;
FIG. 5 is a schematic flow chart of another embodiment of a recording file playing method of the present application;
FIG. 6 is a block diagram illustrating an embodiment of a recording file playback apparatus according to the present application;
FIG. 7 is a block diagram illustrating a schematic structure of an embodiment of an electronic device of the present application;
fig. 8 is a block diagram illustrating the structure of an embodiment of a computer-readable storage medium of the present application.
Detailed Description
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
The terms "first," "second," and the like in this application are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present application, the meaning of "plurality" means at least two, for example, two, three, etc., unless specifically defined otherwise. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
The following description of the technical solutions in the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Referring to fig. 1, fig. 1 is a flowchart illustrating an embodiment of a recording file playing method. The execution main body of the application is electronic equipment such as a mobile phone, a notebook computer, a tablet personal computer, intelligent wearable equipment, a television and the like.
The method may comprise the steps of:
step S11: and acquiring the sound recording file and the number of sound channels of a playing device of the sound recording file, wherein the sound recording file comprises basic information and stereo information of a sound source.
In this embodiment, the recording file may be a local recording file, that is, a recording file is obtained by recording through an electronic device (the executing body of the method). The recording file can be stored locally on the electronic device or in the cloud. For example, a sound recording file obtained by recording a sound by a sound recorder in an electronic apparatus.
Alternatively, the playback device may include, but is not limited to, at least one of a headset, a dual speaker, a multi-channel speaker, a single speaker, a receiver (also known as an earpiece). Generally, headphones and dual speakers have two sound channels, a multi-channel speaker has multiple sound channels, and a single speaker and receiver have a single sound channel.
In some embodiments, when a play recording instruction is detected, step S11 is performed. For example, when a software module (e.g., a recorder application) for playing a sound recording file by the user is detected, step S11 is automatically performed, or step S11 is performed in response to a user selection instruction. In an example, the recording file playing modes include a "recording playing mode" and a "normal playing mode", where the "recording playing mode" is a playing mode that uses the recording file playing method of the present application, and a user may select one of the playing modes to play. In an application scenario, when the device checks a software module used by a user to play a recording file, a selection box is popped up, the user can select a play mode displayed in the selection box, and when the user selects a 'recording play mode', a corresponding user selection instruction is generated.
In some embodiments, the basic information may include, but is not limited to, at least one of an audio signal, a sampling rate, a bit rate, a channel number, and an encoding manner, and the stereoscopic information may include, but is not limited to, at least one of spatial information and a phase.
The Sample Rate (Sample Rate), also known as sampling frequency or sampling speed, defines the number of samples per second that are extracted from a continuous signal and that constitute a discrete signal, the symbol fs, in Hz. The higher the sampling rate, the closer the shape of the digital waveform is to the original analog waveform and the more realistic the sound is reproduced. The Bit Rate (Bit Rate) refers to the number of bits (bits) transmitted per second, and the unit is bps, and the higher the Bit Rate, the larger the amount of data (bits) transmitted per unit time. The Sound channels (Sound channels) refer to mutually independent audio signals collected or played back at different spatial positions when Sound is recorded or played, and the number of popular speaking channels is the number of microphones during recording and the number of sounds during playing. The number of channels, also called channel number, track number. Common numbers of channels are mono, binaural (i.e., stereo), 5.1 channels, 7.1 channels, etc., where the.1 channel refers to the bass channel. The encoding means may include, but are not limited to: PCM (Pulse Code Modulation ) coding, WMA (Windows Media Audio) coding, ADPCM (Adaptive Differential Pulse Code Modulation ) coding, LPC (Linear Predictive Coding, linear prediction coding) coding, MP3 (Moving Picture Experts Group Audio Layer III) coding, AAC (Advanced Audio Coding ) coding, CELP (Code Excited Linear Prediction, code excited linear prediction) coding, and the like.
In addition to the basic information described above, a sampling Bit number (Bit Depth), also called Bit width, bit Depth, literally the number of bits of binary coding of the sampling value, may be included. The number of sampling bits reflects the resolution of the sampling system on the sound, and the higher the number of bits, the finer the recording of the sound, so is also called the sampling accuracy, sampling depth. It will be appreciated that the above is merely an example of basic information and is not limited thereto.
The spatial information records a spatial sense of sound, and may be an audio signal collected by the third channel when the sound is recorded. In this embodiment, the recording file is an audio signal obtained by recording sound based on at least three microphones, where the spatial positions of the three microphones are different, and different microphones are used to record the audio signal of the sound at different spatial positions. Generally, audio files recorded by a plurality of microphones only retain audio signals collected by two channels during encoding, and the audio signals are respectively used for outputting stereo sound when being played, and spatial information is lost in the process. In contrast, the present application retains the audio signal recorded in the third channel as spatial information during audio encoding. In an application scene, when a sound recording file is played in stereo, the surrounding sense needs to be increased, but the surrounding sense is simulated by adopting a pure algorithm at present, the reality of the mode of simulating the surrounding sense by adopting the pure algorithm is poor, and when the sound recording file is played in stereo, the three-dimensional surrounding sense is more real after the spatial information stored in the actual collection of the sound recording file is combined.
The phase is a scale that determines whether it is at a peak, trough, or some point in between. The phase describes a measure of the change in waveform of a signal, often in degrees (e.g., angle), also known as the phase angle. When the waveform of the signal changes in a periodic manner, the waveform circulates for 360 degrees. The same phase is the same phase angle or 0 degrees apart; the opposite phases are 180 degrees apart. The phase is used to reflect the time relationship between a plurality of signals containing the same information. When two audio signals containing the same sound source are aliased, phase cancellation may occur if they differ from each other in phase, resulting in loss of signals at certain frequencies, even the entire signal. The stereo information contains phase information, and a plurality of audio signals acquired by a plurality of microphones can be recorded, so that the phase of the audio signals played by each sound channel during playing can be adjusted according to the phase of the plurality of audio signals, and signal loss of certain frequencies caused by phase offset is avoided.
In some embodiments, the base information is arranged in the sound recording file in a public coding manner, and the stereo information is arranged in the sound recording file in an encrypted coding manner. Thus, the base information is arranged in the recording file in a public coding mode, so that a player which does not have the function of generating a stereo signal based on the stereo information can play based on the base information, but the stereo information is arranged in the recording file in an encryption coding mode, and the player which has the function of generating the stereo signal based on the stereo information can recognize the encryption coded stereo information, so that the stereo signal can be generated based on the base information and the stereo information, and better stereo playing can be realized.
Step S12: a playback device responsive to the audio file has at least two sound channels, and a stereo signal is generated based on the base information and the stereo information.
Wherein the stereo signal comprises at least two stereo signals corresponding to sound channels, each sound channel being for playing one stereo signal.
In some embodiments, the base information includes an audio signal and other base information, and the audio signal may be adjusted based on the other base information and the stereo information to generate the stereo signal. Generally, an audio signal in a recording file is a time-domain signal, and for adjusting the audio signal, the time-domain signal may be converted into a frequency-domain signal and then processed.
For the stereo information set in the record file in the encryption coding mode, firstly, the stereo information is decrypted, the data is restored, then the decoder is utilized to decode the stereo information and the basic information according to the coding mode, and the decoded stereo information and the decoded basic information are obtained.
In some embodiments, after decoding the audio file, a corresponding stereo generation strategy may also be selected to generate a stereo signal based on type or spatial arrangement information of at least two sound channels of the playback device. The types of sound channels may include, among others, loud sound channels such as sound channels of loudspeakers and non-loud sound channels such as sound channels of headphones, earphones. The spatial arrangement information may be at least one of distance information and azimuth information between at least two sound channels. It can be understood that the spatial arrangement between the sound channels is different, and in order to achieve better stereo playback when implementing multi-channel audio playback, adaptive adjustment is required for audio signals played by each channel according to the spatial arrangement between the sound channels. In addition, the adjustment modes are different for different types of sound channels, for example, when the volume of the audio signal is adjusted, the volume of the audio signal of the external sound channel is higher than that of the audio signal of the non-external sound channel.
In some embodiments, the resulting stereo signal may be further post-processed, which may include, but is not limited to: at least one of noise suppression (including equalizer adjustment), echo cancellation, automatic gain, virtual bass, boost low frequency, limiter (Limiter) adjustment, and finally, the audio signal is transmitted to a player for playing. Wherein in mixing the main function of the limiter is to keep the loudness maximized without clipping.
Step S13: and playing the stereo signal by using a playing device.
Specifically, each sound channel of the playback device may be controlled to play one stereo signal, so that a user may experience a stereo playback effect when at least two sound channels are played simultaneously.
According to the scheme, the sound recording file comprises the basic information of the sound source and the stereo information, then the stereo signal is generated based on the basic information and the stereo information by responding to the fact that the playing device of the sound recording file is provided with at least two sound channels, and finally the stereo signal is played by utilizing the playing device.
Referring to fig. 2 to 3, fig. 2 is a schematic flow chart of another embodiment of the recording file playing method of the present application, and fig. 3 is another schematic flow chart of another embodiment of the recording file playing method of the present application.
The method may comprise the steps of:
step S21: and acquiring the sound recording file and the number of sound channels of a playing device of the sound recording file, wherein the sound recording file comprises basic information and stereo information of a sound source.
The recording file is obtained by recording through recording equipment such as a microphone.
For the description of this step, please refer to the above embodiment, and the description thereof is omitted here.
Step S22: a playback device responsive to the audio file has at least two sound channels, and a stereo signal is generated based on the base information and the stereo information.
In some implementations, a stereo signal may be generated based on the base information and the stereo information in response to the playback device of the audio recording being at least one of headphones, dual speakers, and multi-channel speakers.
Step S23: and playing the stereo signal by using a playing device.
Step S24: a playback device responsive to the audio file has a sound channel that generates a single channel signal based on the base information.
In this embodiment, it is also possible to generate a single-channel signal based on the basic information in response to the playback device of the audio file having one sound channel, unlike the above-described embodiment. Specifically, a corresponding single-channel generation strategy may also be selected to generate a single-channel signal according to the type of the sound channel. For example, a play-out single channel generation strategy is selected for a play-out single channel to generate a single channel signal, and a non-play-out single channel generation strategy is selected for a non-play-out single channel to generate a single channel signal. In an example, the volume of the single channel signal generated by the single channel-out generation strategy is higher than the volume of the single channel signal generated by the single channel-out generation strategy.
In some implementations, a single channel signal may be generated based on the base information in response to the playback device of the audio recording being at least one of a receiver, a single speaker.
Step S25: and playing the single-channel signal by using a playing device.
At present, the recording tone quality and the background noise are contradictory, in order to ensure low background noise in the recording process, stronger noise reduction parameters are required to be added for processing in the recording process, and the recording tone quality can be damaged, especially when the earphone is used for listening. If in order to guarantee tone quality, noise reduction parameters cannot be very strong but can lead to the fact that the noise of the sound recording file can be relatively large, when the sound recording file is played through external amplification, the small signals in the playing signals can be amplified due to the fact that the loudness is improved through external amplification, so that the noise of the sound recording file can be amplified, and therefore a user can hear relatively strong noise, and the user is uncomfortable in hearing.
Therefore, in order to reduce the noise of the recorder, the following processes are generally selected in the recording and playing links:
recording: the recording mode for enhancing noise reduction, such as a conference mode or a human voice highlight, is manually selected, noise reduction parameters of the recorder are enhanced after a user selects the mode, and then a recording file with smaller recording noise is obtained.
And (3) playing steps: the playing mode for enhancing noise reduction, such as a 'recording enhancing' mode of the apple mobile phone, is manually selected, and when a recording file is played, the player automatically loads noise reduction parameters, namely the recording file is played after noise reduction treatment.
The above processing method has the following problems: firstly, the recording and playing links all require the user to manually select a playing mode, so that the selection cost of the user is increased; secondly, noise reduction in the recording link can cause the tone quality of the recording file to be impaired. The sound quality evaluation of the shared sound records of the sound quality impaired sound record files is poor.
Based on the above problems, the present application provides another method for playing a recording file, in which the recording file does not need to be subjected to strong noise reduction or noise reduction in the recording link, and the audio can be recorded in a voice quality priority mode, so that the audio quality is ensured, but the background noise of the recording file is also larger. The method and the device aim at the characteristics of the sound recording file with larger background noise when being played by different types of playing devices, and pertinently adopt the noise reduction strength corresponding to the type of the playing devices when noise reduction processing is carried out, so that the original sound replay is realized better. Specific methods can be found in the examples below.
Referring to fig. 4 to 5, fig. 4 is a schematic flow chart of a further embodiment of the recording file playing method of the present application, and fig. 5 is another schematic flow chart of a further embodiment of the recording file playing method of the present application.
On the basis of the above embodiment, in order to better implement the acoustic playback, before playing the stereo signal by using the playing device in this embodiment, the method may further include the following steps:
step S31: and responding to the playing device of the sound record file as an external playing device, and performing first processing on the stereo signal.
It will be appreciated that the driver at the bottom of the system may invoke a device or path for the playback channel, which is transparent to the system, and that the upper layer program or application package (e.g., APK) may monitor the invocation of this path to determine the type of playback device for the audio file.
Step S32: responding to the playing device of the sound recording file as a non-playing device, and performing second processing on the stereo signal; wherein the intensity of noise reduction of the stereo signal by the second process is smaller than the intensity of noise reduction of the stereo signal by the first process.
Alternatively, the playback device may comprise a speaker comprising at least one of a single speaker, a dual speaker and a multi-channel speaker. Alternatively, the non-playback device may comprise at least one of an earphone and a receiver.
In some embodiments, the noise reduction strength of the stereo signal by the second process may be zero, that is, when the playback device responsive to the audio file is a non-play-out device, the stereo signal may not be subjected to noise reduction (i.e., player pass-through) to guarantee the sound quality of the audio record.
In some embodiments, the noise reduction strength of the stereo signal by the second process may be non-zero, i.e., the stereo signal may be noise reduced when the playback device responsive to the audio file is a non-playback device, but less noise reduction strength than the first process.
In some embodiments, the first process and the second process are noise reduction of the stereo signal by adjusting parameters of an Equalizer (EQ for short). The equalizer may be Graphic Equalizer (GEQ), intelligent equalizer (Intelligent Equalizer, IEQ), volume equalizer (volume equalizer), etc. The graphic equalizer uses a slide controller (slider) as a multi-segment variable equalizer for parameter adjustment. The identification under the slider control corresponds to its frequency response. Each player device corresponds to an EQ. In an example, the second processing may be to perform noise reduction processing on the stereo signal using any one of the noise reduction parameters of 0 to 5, and the first processing may perform noise reduction processing on the stereo signal using any one of the noise reduction parameters of greater than 5. In another example, the second process may be to perform noise reduction processing on the stereo signal using the noise reduction parameter 1, and the first process may perform noise reduction processing on the stereo signal using the noise reduction parameter 10.
It is understood that the noise reduction process may not be limited to an equalizer, such as an Audio Regulator (AR), a dynamic range controller (Dynamic Range Control DRC), or other devices or modules related to noise reduction. Wherein the audio adjuster corresponds to a limiter that can be used to control the peak below a threshold, so that the transient level and signal peak can be controlled below the threshold; the dynamic range controller can be used for dynamically adjusting the amplitude of the audio output, pressing the volume within a certain range when the volume is large, and properly lifting the volume when the volume is small. The intensity of noise reduction of the stereo signal by the second process is smaller than that of the stereo signal by the first process, and the intensity of noise reduction is compared in the process of noise reduction of the stereo signal by the same device or module.
In some embodiments, the playing device can identify the local recording file obtained by local recording and the third party recording file except the recording file, and because the recording sound source characteristics of the third party recording file (such as whether three-microphone recording is performed, the noise degree of the recording environment, the noise reduction processing during recording, and the like), the playing processing is not performed on the third party recording file by adopting the recording file playing method of the application, so as to avoid the degradation of sound quality. In other embodiments, the recording file playing method of the present application may also be used to perform playing processing under the condition that the recording sound source feature of the third party recording file can be obtained. Optionally, the playing mode of the third-party audio file by the user may be pre-selected, for example, the user may open or close the playing authority of the third-party audio file, and correspondingly, the device responds to the user operation to open to play the third-party audio file by adopting the audio file playing method of the application.
The present embodiment is described with respect to a stereo signal, and it is understood that the above-described noise reduction method is also applicable to a single channel signal. That is, before the single-channel signal is played by the playing device, the method further comprises the steps of responding to the playing device of the audio record file as an external playing device, performing first processing on the single-channel signal, and then responding to the playing device of the audio record file as a non-external playing device, performing second processing on the single-channel signal; the noise reduction strength of the second processing on the single-channel signal is smaller than that of the first processing on the single-channel signal, and details are omitted here.
According to the scheme, before the stereo signal is played, the stereo signal is subjected to noise reduction processing aiming at different noise reduction intensities of the external device and the non-external device, so that the phenomenon that all playing devices adopt the same noise reduction parameters to reduce noise is avoided. For an external device (such as a loudspeaker), the defect that noise is increased due to the fact that a small signal is lifted in the playing process of the closed loudspeaker is overcome, and noise reduction is properly enhanced, so that bottom noise heard by external sound is not obvious; for non-external devices (such as headphones and receivers), the noise reduction intensity can be reduced by adopting smaller noise reduction intensity, so that the playing tone quality is ensured. Above, the recording file playing method can better match the recording file with the playing device, and better realize the original sound replay.
Referring to fig. 6, fig. 6 is a schematic block diagram illustrating an embodiment of a recording file playing device according to the present application.
The recording file playing device 100 includes an obtaining module 110 for obtaining a recording file and the number of channels of a playing device of the recording file, where the recording file includes basic information and stereo information of a sound source; the generating module 120 is configured to generate a stereo signal based on the base information and the stereo information in response to the playback device of the audio file having at least two sound channels; the playing module 130 is used for playing the stereo signal by using the playing device.
In some implementations, the generating module 120 is further configured to generate a stereo signal based on the base information and the stereo information in response to the playback device of the audio file being at least one of headphones, dual speakers, and multi-channel speakers.
In some embodiments, the generating module 120 is further configured to generate a single channel signal based on the base information in response to the playback device of the audio file having one sound channel; and playing the single-channel signal by using a playing device.
In some embodiments, the generating module 120 is further configured to generate a single channel signal based on the base information in response to the playback device of the audio recording being at least one of a receiver and a single speaker.
In some embodiments, the base information is arranged in the sound recording file in a public coding manner, and the stereo information is arranged in the sound recording file in an encrypted coding manner.
In some embodiments, the generating module 120 is further configured to select a corresponding stereo generating strategy to generate a stereo signal based on the type or spatial arrangement information of at least two sound channels of the playing device.
In some embodiments, the basic information includes at least one of an audio signal, a sampling rate, a bit rate, a number of channels, and an encoding scheme, and the stereoscopic information includes at least one of spatial information and a phase.
In some embodiments, the generating module 120 is further configured to perform a first process on the stereo signal before playing the stereo signal with the playing device, in response to the playing device of the audio file being an external playing device; responding to the playing device of the sound recording file as a non-playing device, and performing second processing on the stereo signal; wherein the intensity of noise reduction of the stereo signal by the second process is smaller than the intensity of noise reduction of the stereo signal by the first process.
In some embodiments, the playback device comprises a speaker comprising at least one of a single speaker, a dual speaker, and a multi-channel speaker; and/or the non-play-out device comprises at least one of a headset and a receiver.
In this embodiment, please refer to the foregoing method embodiments for the description of the above steps, which is not repeated here.
Referring to fig. 7, fig. 7 is a schematic block diagram illustrating an embodiment of an electronic device according to the present application.
The electronic device 200 comprises a memory 210 and a processor 220 coupled to each other, the memory 210 being adapted to store program data and the processor 220 being adapted to execute the program data to carry out the steps of any of the method embodiments described above.
The electronic device 200 may include, but is not limited to: personal computers (e.g., desktop, notebook, tablet, palmtop, etc.), cell phones, servers, wearable devices, as well as augmented Reality (Augmented Reality, AR), virtual Reality (VR) devices, televisions, etc., without limitation.
In particular, the processor 220 is configured to control itself and the memory 210 to implement the steps of any of the method embodiments described above. The processor 220 may also be referred to as a central processing unit (Central Processing Unit, CPU). The processor 220 may be an integrated circuit chip having signal processing capabilities. The processor 220 may also be a general purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a Field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. In addition, the processor 220 may be commonly implemented by a plurality of integrated circuit chips.
Referring to fig. 8, fig. 8 is a block diagram illustrating the structure of an embodiment of a computer-readable storage medium of the present application.
The computer readable storage medium 300 stores program data 310, which when executed by a processor, implements the steps of any of the method embodiments described above.
The computer readable storage medium 300 may be a medium such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, which may store a computer program, or may be a server storing the computer program, which may send the stored computer program to another device for execution, or may also run the stored computer program itself.
In the above, the term "and/or" in this application is merely an association relationship describing an association object, and indicates that three relationships may exist, for example, a and/or B may indicate: a exists alone, A and B exist together, and B exists alone. In addition, the term "at least one" in this application means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of A, B, C, and may mean including any one or more elements selected from the group consisting of A, B and C.
In the several embodiments provided in the present application, it should be understood that the disclosed methods and apparatus may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical, or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in part or all or part of the technical solution contributing to the prior art or in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing description is only exemplary embodiments of the present application and is not intended to limit the scope of the present application, and all equivalent structures or equivalent processes using the descriptions and the drawings of the present application, or direct or indirect application in other related technical fields are included in the scope of the present application.
Claims (12)
1. A method for playing a sound recording file, comprising:
acquiring a sound recording file and the number of sound channels of a playing device of the sound recording file, wherein the sound recording file comprises basic information and stereo information of a sound source;
a playback device responsive to the audio file having at least two sound channels, generating a stereo signal based on the base information and the stereo information;
and playing the stereo signal by using the playing device.
2. A method as claimed in claim 1, wherein,
the playback device responsive to the audio recording has at least two sound channels, generates a stereo signal based on the base information and the stereo information, comprising:
and responding to at least one of a headset, a double-loudspeaker and a multi-channel loudspeaker of the playing device of the audio record file, and generating a stereo signal based on the basic information and the stereo information.
3. The method as recited in claim 1, wherein the method further comprises:
a playing device responding to the sound recording file is provided with a sound channel, and a single-channel signal is generated based on the basic information;
and playing the single-channel signal by using the playing device.
4. A method according to claim 3, wherein,
the playback device responsive to the audio file has a sound channel that generates a single channel signal based on the base information, comprising:
and responding to the playing device of the sound recording file to be at least one of a receiver and a single loudspeaker, and generating a single-channel signal based on the basic information.
5. The method of claim 1, wherein the base information is disposed in the audio recording file in a public encoding manner, and the stereoscopic information is disposed in the audio recording file in an encrypted encoding manner.
6. The method of claim 1, wherein the playback device responsive to the audio recording has at least two sound channels, generating a stereo signal based on the base information and the stereo information, comprising:
and selecting a corresponding stereo generation strategy to generate the stereo signal based on the type or spatial arrangement information of at least two sound channels of the playing device.
7. The method of claim 1, wherein the basic information includes at least one of an audio signal, a sampling rate, a bit rate, a number of channels, and a coding scheme, and the stereoscopic information includes at least one of spatial information and a phase.
8. A method as claimed in claim 1, wherein,
before the playing device plays the stereo signal, the method further comprises:
responding to the playing device of the audio record file as an external playing device, and performing first processing on the stereo signal;
responding to the playing device of the audio record file as a non-playing device, and performing second processing on the stereo signal;
wherein the intensity of noise reduction of the stereo signal by the second process is less than the intensity of noise reduction of the stereo signal by the first process.
9. The method of claim 8, wherein the step of providing the first layer comprises,
the speaker includes at least one of a single speaker, a dual speaker, and a multi-channel speaker; and/or
The non-externally-placed device comprises at least one of an earphone and a receiver.
10. A sound recording file playing device, comprising:
the system comprises an acquisition module, a recording module and a display module, wherein the acquisition module is used for acquiring sound recording files and the number of sound channels of a playing device of the sound recording files, and the sound recording files comprise basic information and stereo information of sound sources;
the generation module is used for responding to the fact that a playing device of the recording file is provided with at least two sound channels, and generating a stereo signal based on the basic information and the stereo information;
and the playing module is used for playing the stereo signal by utilizing the playing device.
11. An electronic device comprising a memory and a processor coupled to each other, the memory for storing program data, the processor for executing the program data to implement the method of any of claims 1-9.
12. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein program data, which when executed by a processor, is adapted to carry out the method according to any one of claims 1-9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310202690.8A CN116208908A (en) | 2023-03-03 | 2023-03-03 | Recording file playing method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310202690.8A CN116208908A (en) | 2023-03-03 | 2023-03-03 | Recording file playing method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116208908A true CN116208908A (en) | 2023-06-02 |
Family
ID=86507435
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310202690.8A Pending CN116208908A (en) | 2023-03-03 | 2023-03-03 | Recording file playing method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116208908A (en) |
-
2023
- 2023-03-03 CN CN202310202690.8A patent/CN116208908A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9208767B2 (en) | Method for adaptive audio signal shaping for improved playback in a noisy environment | |
US20190181822A1 (en) | Metadata for ducking control | |
EP1540988B1 (en) | Smart speakers | |
US20110170710A1 (en) | Method and apparatus for adjusting volume | |
JP2002078100A (en) | Method and system for processing stereophonic signal, and recording medium with recorded stereophonic signal processing program | |
JP6231102B2 (en) | Audio content conversion for subjective fidelity | |
JP5658506B2 (en) | Acoustic signal conversion apparatus and acoustic signal conversion program | |
CN104604254A (en) | Audio processing device, method, and program | |
KR102302683B1 (en) | Sound output apparatus and signal processing method thereof | |
US9756437B2 (en) | System and method for transmitting environmental acoustical information in digital audio signals | |
US9743215B2 (en) | Apparatus and method for center signal scaling and stereophonic enhancement based on a signal-to-downmix ratio | |
US20220060824A1 (en) | An Audio Capturing Arrangement | |
EP2917915B1 (en) | Multi-resolution audio signals | |
US11632643B2 (en) | Recording and rendering audio signals | |
JP4706666B2 (en) | Volume control device and computer program | |
JP2010136236A (en) | Audio signal processing apparatus and method, and program | |
US10587983B1 (en) | Methods and systems for adjusting clarity of digitized audio signals | |
CN116208908A (en) | Recording file playing method and device, electronic equipment and storage medium | |
US20190074805A1 (en) | Transient Detection for Speaker Distortion Reduction | |
US20210384879A1 (en) | Acoustic signal processing device, acoustic signal processing method, and non-transitory computer-readable recording medium therefor | |
WO2021214380A1 (en) | Apparatus, methods and computer programs for enabling rendering of spatial audio signals | |
JP2020537470A (en) | How to set parameters for personal application of audio signals | |
US20060245305A1 (en) | System comprising sound reproduction means and ear microphones | |
WO2024180595A1 (en) | Reproduced-sound direction/distance/localization control device, reproduced-sound direction/distance/localization control method | |
JP2012090249A (en) | Sound reproducer and reproduction voice adjusting method in the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |