WO2023011473A1 - 声道切换方法、装置和电子设备 - Google Patents

声道切换方法、装置和电子设备 Download PDF

Info

Publication number
WO2023011473A1
WO2023011473A1 PCT/CN2022/109706 CN2022109706W WO2023011473A1 WO 2023011473 A1 WO2023011473 A1 WO 2023011473A1 CN 2022109706 W CN2022109706 W CN 2022109706W WO 2023011473 A1 WO2023011473 A1 WO 2023011473A1
Authority
WO
WIPO (PCT)
Prior art keywords
channel signal
speaker
channel
electronic device
state
Prior art date
Application number
PCT/CN2022/109706
Other languages
English (en)
French (fr)
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 维沃移动通信有限公司
Publication of WO2023011473A1 publication Critical patent/WO2023011473A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R5/00Stereophonic arrangements
    • H04R5/04Circuit arrangements, e.g. for selective connection of amplifier inputs/outputs to loudspeakers, for loudspeaker detection, or for adaptation of settings to personal preferences or hearing impairments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/12Circuits for transducers, loudspeakers or microphones for distributing signals to two or more loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2205/00Details of stereophonic arrangements covered by H04R5/00 but not provided for in any of its subgroups
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups
    • H04R2430/20Processing of the output signals of the acoustic transducers of an array for obtaining a desired directivity characteristic
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present application belongs to the technical field of communication, and in particular relates to a channel switching method, device and electronic equipment.
  • many electronic devices are equipped with a plurality of speakers, and audios of different channels are played through speakers in different directions to achieve a stereo playback effect.
  • audios of different channels are played through speakers in different directions to achieve a stereo playback effect.
  • the left channel audio is played through the two speakers on the top of the electronic device, and the right channel audio is played through the bottom two speakers to achieve a stereo effect.
  • the electronic device switches postures, such as when it is rotated or folded, the orientation of the speaker will change.
  • the channel signal played by some speakers will not match the human ear, thereby affecting the stereo playback effect.
  • the purpose of the embodiments of the present application is to provide a channel switching method, device and electronic equipment, which can solve the problem that the existing electronic equipment has poor stereo playback effect when switching gestures.
  • the embodiment of the present application provides a channel switching method, which is applied to an electronic device, and the method includes:
  • the telescopic range is the screen telescopic range of the electronic device
  • the first channel signal and the second channel signal are fused according to the first fusion method to obtain a third channel signal, and the first channel signal and the second channel signal are The signals are fused according to the second merging method to obtain a fourth channel signal;
  • the embodiment of the present application provides a channel switching device, which is applied to electronic equipment, and the channel switching device includes:
  • An acquisition module configured to acquire state change parameters of the electronic device when the electronic device plays audio and the target state of the electronic device changes, wherein the state change parameters include folding angle and rotation angle or stretching range, the stretching range is the screen stretching range of the electronic device;
  • a processing module configured to fuse the first channel signal and the second channel signal according to the first fusion method according to the state change parameter to obtain a third channel signal, and perform fusion on the first channel signal and the obtained The second channel signal is fused according to the second fusion method to obtain the fourth channel signal;
  • the control module is used to control the first speaker to switch from playing the first channel signal to playing the third channel signal, and to control the second speaker to switch from playing the second channel signal to playing the fourth channel signal.
  • a channel signal wherein, before the channel signal is switched, the channels played by the first speaker and the second speaker do not match the directions they are in.
  • an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor, and the program or instruction is The processor implements the steps of the channel switching method described in the first aspect when executed.
  • an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the channel switching as described in the first aspect is realized method steps.
  • the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the first aspect The steps of the channel switching method.
  • an embodiment of the present application provides a computer program product, the program product is stored in a non-volatile storage medium, and the program product is executed by at least one processor to implement the computer program product described in the first aspect. The steps of the channel switching method.
  • the embodiment of the present application provides an electronic device configured to execute the steps of the channel switching method described in the first aspect.
  • the state change parameters of the electronic device are acquired, wherein the state change parameters include folding angle, rotation angle Or the stretching range, the stretching range is the screen stretching range of the electronic device; according to the state change parameter, the first sound channel signal and the second sound channel signal are fused according to the first fusion method to obtain the third sound channel signal, and fuse the first channel signal and the second channel signal according to the second fusion method to obtain the fourth channel signal; control the first speaker to switch from playing the first channel signal to playing The third channel signal, and controlling the second speaker to switch from playing the second channel signal to playing the fourth channel signal, wherein, before switching the channel signal, the first speaker and the The channel played by the second speaker does not match the orientation it is in.
  • Fig. 1 is a flow chart of the channel switching method provided by the embodiment of the present application.
  • Fig. 2a is a schematic diagram of the first folded state of the electronic device provided by the embodiment of the present application.
  • Fig. 2b is a schematic diagram of a second folded state of the electronic device provided by the embodiment of the present application.
  • Fig. 3a is a schematic diagram of an electronic device provided in an embodiment of the present application in an unfolded state
  • Fig. 3b is a schematic diagram of the electronic device provided by the embodiment of the present application after being rotated 90 degrees clockwise in the unfolded state;
  • Fig. 3c is a schematic diagram of the electronic device provided in the embodiment of the present application after being rotated 180 degrees clockwise in the unfolded state;
  • Fig. 3d is a schematic diagram of the electronic device provided in the embodiment of the present application after being rotated 270 degrees clockwise in the unfolded state;
  • Fig. 4a is a schematic diagram of an electronic device provided in an embodiment of the present application in a horizontal screen state
  • Fig. 4b is a schematic diagram of an electronic device rotated 180 degrees clockwise in a horizontal screen state provided by an embodiment of the present application;
  • FIG. 5 is a schematic structural diagram of a channel switching device provided in an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
  • first, second and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific sequence or sequence. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein and that "first" and “second” distinguish objects. It is usually one category, and the number of objects is not limited. For example, there may be one or more first objects.
  • “and/or” in the description and claims means at least one of the connected objects, and the character “/” generally means that the related objects are an "or” relationship.
  • FIG. 1 is a flow chart of the channel switching method provided by the embodiment of the present application, which is applied to electronic equipment. As shown in FIG. 1, the method includes the following steps:
  • Step 101 when the electronic device plays audio and the target state of the electronic device changes, acquire a state change parameter of the electronic device.
  • the state change parameter includes a folding angle, a rotation angle or a stretching range
  • the stretching range is the screen stretching range of the electronic device.
  • the embodiments of the present application can be applied to folding screen electronic equipment, scrolling screen electronic equipment, or ordinary electronic equipment, etc., and are applicable to electronic equipment with multiple speakers, for example, electronic equipment with four speakers, where two speakers are set on the electronic On the top of the device, two speakers are placed on the bottom of the electronic device.
  • electronic equipment with four speakers where two speakers are set on the electronic On the top of the device, two speakers are placed on the bottom of the electronic device.
  • an electronic device with a folding screen or a scrolling screen when the electronic device is in an unfolded state, one speaker at the top and one bottom is located on the left side of the electronic device, and the other speaker at the top and bottom is located at the right side of the electronic device.
  • the top two speakers are located on the left or right side of the electronic device, and correspondingly, the bottom two speakers are located on the right or left side of the electronic device.
  • the aforementioned target state may be a folded state, a rotated state, or a stretched state, and so on.
  • the state change parameter may be a folded angle, a rotated angle, or a stretched range.
  • the folding angle of the electronic device can be acquired when its folding state changes, for example, when the folding screen electronic device is folded or unfolded, specifically by detecting the folding angle in real time.
  • the rotation angle of the electronic device can be acquired, specifically through real-time detection The rotation angle is obtained.
  • the stretching range of the electronic device can be obtained when its stretching state changes, for example, when the scrolling screen is stretched or shrunk, specifically, it can be obtained by detecting the stretching range in real time.
  • the left channel audio is usually played through the top speaker
  • the right channel audio is played through the bottom speaker
  • the electronic device is rotated, folded or stretched
  • the electronic The orientation of some speakers of the device will change accordingly.
  • FIG. 2a and FIG. 2b when the folding screen electronic device 20 is gradually unfolded from the folded state, the top speaker 21 and the bottom speaker 22 are located on the left side of the electronic device 20, The top speaker 23 and the bottom speaker 24 are located on the right side of the electronic device 20; and as shown in FIG.
  • the left side of 20 is switched to the right side of the electronic device 20, and the bottom speaker 24 is switched from the right side of the electronic device 20 to the left side of the electronic device 20; as shown in Figure 4a and Figure 4b, the electronic device 20 is rotated 180 degrees clockwise from the horizontal screen state , the top speaker 21 and the top speaker 23 are switched from the left side of the electronic device 20 to the right side of the electronic device 20, and the bottom speaker 22 and the bottom speaker 24 are switched from the right side of the electronic device 20 to the left side of the electronic device 20; for scroll screen electronic devices, When stretching outward from the retracted state, one speaker at the top and the bottom is switched to the left side of the electronic device, and the other speaker at the top and the bottom is switched to the right side of the electronic device.
  • a good stereo playback effect can switch channels for speakers whose orientation changes and the playback channel does not match the current orientation, ensuring that the channel audio played by each speaker matches the human ear after the target state of the electronic device changes, and
  • the channel signals of these speakers can be fused according to the real-time state change parameters of the electronic device. For example, for the original left sound The speaker of the channel signal can change the parameters according to the current state, and fuse the left channel signal and the right channel signal according to the corresponding ratio, so that the speaker can play the fused channel signal.
  • Step 102 According to the state change parameters, fuse the first channel signal and the second channel signal according to the first fusion method to obtain a third channel signal, and perform fusion on the first channel signal and the second channel signal
  • the two-channel signals are fused according to the second fusion method to obtain the fourth-channel signals.
  • the first channel signal and the second channel signal in the audio currently played by the electronic device can be obtained, specifically, different channels can be obtained in real time from an audio digital signal processor (audio Digital Signal Process, aDSP).
  • aDSP audio Digital Signal Process
  • Channel signal wherein, the first channel signal and the second channel signal can refer to the left channel signal and the right channel signal respectively, of course, for more channels such as front channel, rear channel channel, the first channel signal and the second channel signal may also be other channel signals except the left and right channel signals.
  • the first channel signal and the second channel signal may be fused according to a first fusion method to obtain a fused third channel signal, and Fusing the first channel signal and the second channel signal according to a second fusion method to obtain a fused fourth channel signal, specifically, the fusion ratio may be determined based on the state change parameter coefficient, and then blend the one-channel signal into another channel signal according to the ratio coefficient. For example, when the fusion ratio coefficient is determined to be 0.3, the first fusion method can be to multiply the second channel signal by 0.3 to blend into the second channel signal.
  • the second fusion method may be to multiply the first channel signal by 0.3 and fuse it into the second channel signal, or, it may also be to divide the first channel signal and the second channel signal by 7: The ratio of 3 is fused to obtain the third channel signal, and the first channel signal and the second channel signal are fused at a ratio of 3:7 to obtain the fourth channel signal.
  • the first fusion method may be to combine the first sound channel
  • the signal is switched to the second channel signal
  • the second fusion method may be to switch the second channel signal to the first channel signal, that is, in this case, the third channel
  • the signal is the second channel signal
  • the fourth channel signal is the first channel signal.
  • the step 102 includes:
  • the first channel signal and the second channel signal when the first channel signal and the second channel signal are fused, firstly obtain the first channel signal and the second channel signal at frequency Spectrum amplitude on the domain to obtain the first spectrum amplitude and the second spectrum amplitude; then according to the state change parameter, the first spectrum amplitude and the second spectrum amplitude, determine the fusion
  • the component may be based on the state change parameter, determine the change ratio of the target state, and use the corresponding ratio of the difference between the first spectrum amplitude and the second spectrum amplitude as the fusion component of the channel signal ;
  • the first arithmetic processing can be performed on the first spectral magnitude and the fusion component, for example, simple addition and subtraction processing or weighting processing are performed to obtain a third spectral magnitude, and the second spectral magnitude
  • second calculation processing with the fused component for example, performing simple addition and subtraction processing or weighting processing to obtain a fourth spectral amplitude, wherein the third spectral amplitude is the fused third channel
  • the corresponding fusion of the first sound channel signal and the second sound channel signal can be implemented according to the amount of state change of the electronic device, so as to ensure a sound channel switching effect.
  • the time domain signal characteristics of the signals may be obtained, and then the time domain signal characteristics are transformed to obtain the frequency domain amplitude characteristics. That is to say, said separately acquiring the first spectral amplitude of the first channel signal and the second spectral amplitude of the second channel signal may include:
  • the amplitude characteristics of the first channel signal and the second channel signal in the frequency domain can be respectively obtained first, and then the first channel signal and the second channel signal in the frequency domain Fourier transform is performed on the magnitude feature of the transformed magnitude feature, and finally the transformed magnitude feature is converted into a spectrum magnitude, so that the first spectrum magnitude of the first channel signal and the second spectrum of the second channel signal can be obtained amplitude.
  • , the spectrum amplitude of the right channel signal can be expressed as X 2 (k)′
  • the frequency spectrum amplitudes of the first channel signal and the second channel signal can be quickly acquired.
  • the determining the fusion component according to the state change parameter, the first spectral magnitude and the second spectral magnitude includes:
  • the state coefficient may be determined according to the state change parameter and the maximum change value of the target state, for example, it may be determined according to the ratio of the state change parameter to the maximum change value of the target state
  • the state coefficient, and the product of the difference between the first spectrum amplitude and the second spectrum amplitude and the state coefficient is used as a fusion component.
  • the maximum change value of the above-mentioned target state can be specifically determined according to the specific type of the target state or the type of the state change parameter.
  • the state change parameter is the folding angle
  • the value of the target state is 180 degrees;
  • the maximum change value of the target state is 90 degrees or 180 degrees
  • the maximum change value of the target state is the maximum stretching range of the screen of the electronic device.
  • the maximum change value of the folded state can be 180 degrees;
  • the orientation of the speaker will change, so the maximum value of the rotation state can be determined as 90 degrees.
  • the situation of flipping the electronic device left and right in the horizontal screen state can also be considered.
  • you can The second maximum rotation of 180 degrees is the maximum value of the rotation state;
  • the maximum telescopic range of the screen of an electronic device such as a scroll screen is the maximum value of the telescopic state, and the maximum telescopic range is also the maximum telescopic range of the scroll screen when it is fully expanded. The difference between the screen length and the screen length when fully retracted.
  • the fusion component consistent with the target state variation can be quickly calculated, thereby ensuring the effect of subsequent channel fusion.
  • performing the first calculation processing on the first spectral magnitude and the fusion component to obtain the third spectral magnitude of the fused third channel signal includes:
  • the second calculation processing is performed on the second spectral amplitude and the fusion component to obtain the fourth spectral amplitude of the fused fourth channel signal, including:
  • the spectrum amplitudes of the first channel signal and the second channel signal can be added and subtracted from the fusion component to obtain the spectrum amplitude of the fused channel signal, specifically Subtracting the fusion component from the first spectrum amplitude can obtain the third spectrum amplitude of the fused third channel signal, and adding the second spectrum amplitude to the fusion component can obtain the fusion The fourth spectrum amplitude of the subsequent fourth channel signal.
  • the fused new left channel spectrum amplitude can be X 1 (k)'-delta
  • the fused The new right channel spectrum magnitude may be X 2 (k)'+delta
  • the fusion switching of the two-channel signal can be completed, and the two-channel signal is adjusted according to the amount of state variables.
  • the signal is blended in proportion to ensure a smooth channel blending effect.
  • Step 103 controlling the first speaker to switch from playing the first channel signal to playing the third channel signal, and controlling the second speaker to switch from playing the second channel signal to playing the fourth channel signal signal, wherein, before the channel signal is switched, the channels played by the first speaker and the second speaker and their positions are located.
  • channel switching can be performed on the speaker whose orientation changes with the change of the target state so that the original playback channel does not match the current orientation , specifically, for the speaker whose playback channel is the first channel signal before the target state changes, and the channel signal does not match the current orientation, its playback channel may be switched to the third channel signal, for the speaker whose playback channel is the second channel signal before the change of the target state, and the channel signal does not match the current orientation, switch its playback channel to the fourth channel signal, thereby Complete the follow-up switching of the speaker playback channel with the target state.
  • the above-mentioned first speaker may refer to the original playback channel as the first channel signal, and the location is about to change with the change of the target state or is no longer suitable for the first channel signal after the change.
  • the speaker, the above-mentioned second speaker may refer to the original playback channel is the second channel signal, and the location is about to change or has changed with the change of the target state and is no longer suitable for the second channel signal speaker.
  • the bottom speaker 22 that originally played the right channel will no longer match the current position
  • the top speaker 23 that originally played the left channel will no longer match the current position.
  • the top speaker 23 and The bottom speaker 22 is the first speaker and the second speaker that need to switch channels, so the left channel signal and the right channel signal can be fused according to step 102, and the playback channel of the top speaker 23 is controlled by the left channel signal Gradually switch to the right channel signal, and control the playback channel of the bottom speaker 22 to gradually switch from the right channel signal to the left channel signal.
  • the method further includes:
  • the channel currently played by the target speaker among the plurality of speakers does not match the predicted orientation of the target speaker, determine that the target speaker is the speaker to be switched, wherein the channel currently played by the speaker to be switched
  • the speaker of the first channel signal is the first speaker
  • the speaker currently playing the second channel signal among the speakers to be switched is the second speaker.
  • the orientation of each speaker of the electronic device after the change in the target state can be predicted.
  • a folding screen electronic device When it is gradually unfolded from the folded state, it is possible to predict the orientation of each speaker on the top and bottom after unfolding, or, when the electronic device is switched from portrait to landscape, it is possible to predict the orientation of each speaker after switching .
  • the predicted orientation it can be judged whether the sound channel currently played by each loudspeaker matches the changed orientation, for example, as shown in Figure 2a and Figure 2b, for the top speaker 23, it can be judged that the left channel signal currently played by it and its expanded The right orientation does not match, and it is determined that the right channel signal currently played by the bottom speaker 22 does not match the left orientation where it is deployed, or, as shown in Figures 3a and 3b, the top speaker 21 is clockwise After rotating 90 degrees, it will switch from the left side to the right side, so that the original left channel signal does not match the current orientation. The channel signal does not match the current bearing.
  • the speaker whose channel needs to be switched can be determined according to the orientation of each speaker after the target state changes and the current playing channel signal, and the above-mentioned first speaker can be determined further according to the playing channel of the speaker whose channel is to be switched and the aforementioned second speaker.
  • This embodiment can more accurately and quickly determine the speaker to be switched.
  • the folding screen electronic device 20 includes a top speaker 21 and a top speaker 23 , and a bottom speaker 22 and a bottom speaker 24 .
  • the top speaker 21 and the top speaker 23 (or the bottom speaker 22 and the bottom speaker 24) play the left channel audio
  • the bottom speaker 22 and the bottom speaker 24 (or the top speaker 21 and The top speaker 23) plays the right channel audio.
  • the top speaker 21 and the bottom speaker 22 (or the top speaker 23 and the bottom speaker 24) play the left channel audio
  • the top speaker 23 and the bottom speaker 24 (or the top speaker 21 and The bottom speaker 22) plays the right channel audio.
  • the folding screen electronic device 20 changes between the two states of folding to unfolding or unfolding to folding, the playback channels of the top speaker 21 and the bottom speaker 24 (or the bottom speaker 22 and the top speaker 23) remain unchanged, and the bottom speaker 22 and the top speaker 23 (or the top speaker 21 and the bottom speaker 24) will perform channel fusion switching as the folding state changes.
  • the state coefficient ⁇ transitions from 0 to 1 (or from 1 to 0)
  • the channel switching is completed and ended, that is, the change between the two states of the folding screen electronic device 20 from folding to unfolding (or unfolding to folding) is completed At this time, all switching between the left and right channels is realized.
  • the channel fusion switching method in the embodiment of the present application may also be applied to screen flipping of a folding screen electronic device in a fully unfolded state.
  • Fig. 3 a is the unfolded state of the folding screen electronic device 20, playing music or video in this state
  • the top speaker 21 and the bottom speaker 22 are located on the left side of the folding screen electronic device 20, playing the left channel audio
  • the speaker 24 is located on the right side of the folding screen electronic device 20, and plays right channel audio.
  • FIG 3b shows that the folding screen electronic device 20 is rotated 90 degrees clockwise. In this state, music or video is played.
  • the bottom speaker 22 and the bottom speaker 24 are located on the left side of the folding screen electronic device 20, playing the left channel audio; the top speaker 21 and the top speaker
  • the speaker 23 is located on the right side of the folding screen electronic device 20 and plays right channel audio.
  • FIG 3c shows that the folding screen electronic device 20 is rotated 180 degrees clockwise. In this state, music/video is played.
  • the top speaker 23 and the bottom speaker 24 are located on the left side of the folding screen electronic device 20, playing the left channel audio; the top speaker 21 and the bottom speaker
  • the speaker 22 is located on the right side of the folding screen electronic device 20 and plays right channel audio.
  • Figure 3d shows that the folding screen electronic device 20 rotates 270 degrees clockwise. In this state, music/video is played.
  • the top speaker 21 and the top speaker 23 are located on the left side of the folding screen electronic device 20, playing the left channel audio; the bottom speaker 22 and the bottom
  • the speaker 24 is located on the right side of the folding screen electronic device 20, and plays right channel audio.
  • 0° in the original state of the screen, and rotate clockwise sequentially, that is, during the rotation of ⁇ from 0° to 90° to 180° to 270° to 360°, the top speaker 21, the bottom speaker 22, the top speaker
  • the channel switching of loudspeaker 23 and bottom loudspeaker 24 is as follows:
  • the top speaker 21 performs channel fusion switching from the left channel, the right channel, the right channel to the left channel in turn;
  • Bottom speaker 22 carries out channel fusion switching from left channel, left channel, right channel to right channel in turn;
  • the top speaker 23 performs channel fusion switching from the right channel, the right channel, the left channel to the left channel in turn;
  • Bottom speaker 24 carries out channel fusion switching from right channel, left channel, left channel to right channel in turn;
  • the playback channels of the top speaker 21, the bottom speaker 22, the top speaker 23, and the bottom speaker 24 in the initial state It is the left channel, the left channel, the right channel and the right channel in turn; when at a certain angle, the channel signals of the top speaker 21 and the bottom speaker 24 are at X′ 1 (k)-delta and X′ 2 respectively (k)+delta; when the rotation reaches 90 degrees, the playback channels of the top speaker 21, the bottom speaker 22, the top speaker 23 and the bottom speaker 24 are merged and switched to the right channel, the left channel, the right channel and the left sound respectively When the rotation reaches 180 degrees, the playback channels of the top speaker 21, the bottom speaker 22, the top speaker 23 and the bottom speaker 24 are respectively fused and switched to the right channel, the right channel, the left channel and the left channel; When reaching 270 degrees, the playback channels of the top speaker 21, the bottom speaker 22, the top
  • the above four placement states can realize that the two speakers on the left play the left channel audio, and the two speakers on the right play the right channel audio.
  • the phase of the sound can be kept in sync with the video picture, and in the process of channel switching, smooth fusion switching can be achieved, so that users can obtain a user listening experience with a full sense of technology.
  • the channel fusion switching method in the embodiment of the present application can also be applied to folding screen electronic devices or ordinary electronic devices in a fully folded state, when the mobile phone is playing video on the horizontal screen, the sound channel is turned over when the screen is turned. channel switching.
  • Fig. 4a is a folding screen electronic device 20 (or ordinary electronic device) in a folded and horizontal state.
  • the electronic device 20 plays a video in a horizontal screen
  • the top speaker 21 and top speaker 23 are located on the left side of the folding screen electronic device 20.
  • Channel audio, the bottom speaker 22 and the bottom speaker 24 are located on the right side of the folding screen electronic device 20, and play the right channel audio.
  • Figure 4b shows that after the folding screen electronic device 20 is rotated 180 degrees clockwise or counterclockwise, the folding screen electronic device 20 plays the video on the horizontal screen.
  • the bottom speaker 22 and the bottom speaker 24 are located on the left side of the folding screen electronic device 20, playing the left audio channel.
  • Audio: the top speaker 21 and the top speaker 23 are located on the right side of the folding screen electronic device 20, and play the right channel audio.
  • the electronic device can keep the phase of the sound synchronized with the video screen when switching between the two horizontal screen placement states.
  • the left speaker plays the left channel audio
  • the right speaker plays the right channel audio, and during the channel switching process In the process, there will be no interruption and stuttering, and smooth fusion switching will be realized, so that users can obtain a user listening experience with a full sense of technology.
  • the channel fusion switching method in the embodiment of the present application can also be applied to a four-speaker scroll screen electronic device, which can realize speaker channel fusion switching according to the stretching state of the scroll screen. For example, in the rolled up state, that is, in the retracted state, the top two speakers play the left channel audio, and the bottom two speakers play the right channel audio; while in the stretched state, the left two speakers switch to the left channel audio, and the right The two speakers on the side are switched to the right channel audio to achieve a large-screen stereo sound effect.
  • the channel fusion switching method introduced in the embodiments of this application can be used to achieve a smooth switching effect without stuttering and improve the user's listening experience.
  • the state change parameters of the electronic device are acquired, wherein the state change parameters include folding Angle, rotation angle or stretching range, the stretching range is the screen stretching range of the electronic device; according to the state change parameter, the first sound channel signal and the second sound channel signal are fused according to the first fusion method to obtain The third channel signal, and merging the first channel signal and the second channel signal according to the second fusion method to obtain a fourth channel signal; controlling the first speaker to play the first channel signal switch the signal to play the third channel signal, and control the second speaker to switch from playing the second channel signal to playing the fourth channel signal, wherein, before switching the channel signal, the first The channels played by the speaker and the second speaker do not match the orientation.
  • the state change parameters include folding Angle, rotation angle or stretching range
  • the stretching range is the screen stretching range of the electronic device
  • the channel switching method provided in the embodiment of the present application may be executed by a channel switching device, or a control module in the channel switching device for executing the channel switching method.
  • the method for switching the channel performed by the channel switching device is taken as an example to illustrate the channel switching device provided in the embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of the channel switching device provided by the embodiment of the present application, which is applied to electronic equipment. As shown in FIG. 5, the channel switching device 500 includes:
  • the obtaining module 501 is configured to obtain state change parameters of the electronic device when the electronic device plays audio and the target state of the electronic device changes, wherein the state change parameters include folding angle, rotation Angle or stretching range, the stretching range is the screen stretching range of the electronic device;
  • the processing module 502 is configured to fuse the first channel signal and the second channel signal according to the first fusion method according to the state change parameter to obtain a third channel signal, and perform fusion on the first channel signal and the second channel signal
  • the second channel signal is fused according to a second fusion method to obtain a fourth channel signal
  • the control module 503 is configured to control the first speaker to switch from playing the first channel signal to playing the third channel signal, and control the second speaker to switch from playing the second channel signal to playing the third channel signal.
  • a four-channel signal wherein, before the channel signal is switched, the channels played by the first speaker and the second speaker do not match the orientation.
  • processing module 502 includes:
  • an acquiring unit configured to respectively acquire the first spectral amplitude of the first channel signal and the second spectral amplitude of the second channel signal;
  • a determining unit configured to determine a fusion component according to the state change parameter, the first spectral magnitude and the second spectral magnitude
  • a first processing unit configured to perform a first calculation process on the first spectral amplitude and the fusion component to obtain a third spectral amplitude of the fused third channel signal
  • the second processing unit is configured to perform a second calculation process on the second spectral amplitude and the fusion component to obtain a fourth spectral amplitude of the fused fourth channel signal.
  • the determining unit includes:
  • a determining subunit configured to determine a state coefficient according to the state change parameter and the maximum change value of the target state
  • a calculation subunit configured to calculate the product of the state coefficient and a first difference value to obtain the fusion component, wherein the first difference value is the product of the first spectrum amplitude and the second spectrum amplitude difference.
  • the first processing unit is configured to subtract the first spectral magnitude from the fusion component to obtain the third spectral magnitude
  • the second processing unit is configured to add the second spectral magnitude to the fusion component to obtain the fourth spectral magnitude.
  • the maximum change value of the target state is 180 degrees
  • the maximum change value of the target state is 90 degrees or 180 degrees
  • the maximum change value of the target state is the maximum stretching range of the screen of the electronic device.
  • the acquisition unit includes:
  • an acquiring subunit configured to respectively acquire a first amplitude feature of the first channel signal in the frequency domain and a second amplitude feature of the second channel signal in the frequency domain;
  • a processing subunit is configured to respectively convert the first amplitude feature and the second amplitude feature into spectral amplitudes to obtain the first spectral amplitude and the second spectral amplitude.
  • the channel switching device 500 also includes:
  • a prediction module configured to predict the orientation of each speaker in the plurality of speakers of the electronic device after the target state of the electronic device changes
  • a determining module configured to determine that the target speaker is a speaker to be switched when the channel currently played by the target speaker among the plurality of speakers does not match the predicted orientation of the target speaker, wherein the target speaker is a speaker to be switched.
  • the speaker currently playing the first channel signal among the switched speakers is the first speaker
  • the speaker currently playing the second channel signal among the speakers to be switched is the second speaker.
  • the channel switching device in the embodiment of the present application acquires the state change parameters of the electronic device when the electronic device plays audio and the target state of the electronic device changes, wherein the state change parameters include folding Angle, rotation angle or stretching range, the stretching range is the screen stretching range of the electronic device; according to the state change parameter, the first sound channel signal and the second sound channel signal are fused according to the first fusion method to obtain The third channel signal, and merging the first channel signal and the second channel signal according to the second fusion method to obtain a fourth channel signal; controlling the first speaker to play the first channel signal switch the signal to play the third channel signal, and control the second speaker to switch from playing the second channel signal to playing the fourth channel signal, wherein, before switching the channel signal, the first The channels played by the speaker and the second speaker do not match the orientation.
  • the state change parameters include folding Angle, rotation angle or stretching range
  • the stretching range is the screen stretching range of the electronic device
  • the first sound channel signal and the second sound channel signal are fused according to the first fusion method to obtain The third channel signal,
  • the channel switching device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal.
  • the device may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant).
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • Network Attached Storage NAS
  • personal computer personal computer, PC
  • television television
  • teller machine or self-service machine etc.
  • the channel switching device in the embodiment of the present application may be a device with an operating system.
  • the operating system may be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
  • the audio channel switching device provided in the embodiment of the present application can realize various processes realized by the method embodiments in FIG. 1 to FIG. 4b , and details are not repeated here to avoid repetition.
  • the embodiment of the present application further provides an electronic device 600, including a processor 601, a memory 602, and programs or instructions stored in the memory 602 and operable on the processor 601,
  • the program or instruction is executed by the processor 601
  • the various processes of the above-mentioned channel switching method embodiment can be achieved, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
  • the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710, etc. part.
  • the electronic device 700 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 710 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions.
  • a power supply such as a battery
  • the structure of the electronic device shown in FIG. 7 does not constitute a limitation to the electronic device.
  • the electronic device may include more or fewer components than shown in the figure, or combine some components, or arrange different components, and details will not be repeated here. .
  • the processor 710 is configured to obtain state change parameters of the electronic device when the electronic device plays audio and the target state of the electronic device changes, wherein the state change parameters include folding angle, rotation Angle or stretching range, the stretching range is the screen stretching range of the electronic device;
  • the first channel signal and the second channel signal are fused according to the first fusion method to obtain a third channel signal, and the first channel signal and the second channel signal are The signals are fused according to the second merging method to obtain a fourth channel signal;
  • the processor 710 is further configured to respectively acquire the first spectral amplitude of the first channel signal and the second spectral amplitude of the second channel signal;
  • the processor 710 is further configured to determine a state coefficient according to the state change parameter and the maximum change value of the target state;
  • the processor 710 is further configured to subtract the first spectral magnitude from the fused component to obtain the third spectral magnitude;
  • the maximum change value of the target state is 180 degrees
  • the maximum change value of the target state is 90 degrees or 180 degrees
  • the maximum change value of the target state is the maximum stretching range of the screen of the electronic device.
  • the processor 710 is further configured to separately acquire a first amplitude feature of the first channel signal in the frequency domain and a second amplitude feature of the second channel signal in the frequency domain;
  • the processor 710 is further configured to predict the orientation of each speaker in the plurality of speakers of the electronic device after the target state of the electronic device changes;
  • the target speaker is the speaker to be switched, wherein the channel currently played by the speaker to be switched is The speaker of the first channel signal is the first speaker, and the speaker currently playing the second channel signal among the speakers to be switched is the second speaker.
  • the electronic device in the embodiment of the present application acquires state change parameters of the electronic device when audio is played and the target state of the electronic device changes, wherein the state change parameters include folding angle, rotation angle, or stretching range, the stretching range is the screen stretching range of the electronic device; according to the state change parameter, the first sound channel signal and the second sound channel signal are fused according to the first fusion method to obtain the third sound channel signal , and fuse the first channel signal and the second channel signal according to a second fusion method to obtain a fourth channel signal; control the first speaker to switch from playing the first channel signal to playing the the third channel signal, and control the second speaker to switch from playing the second channel signal to playing the fourth channel signal, wherein, before switching the channel signal, the first speaker and the first speaker The channel played by the second speaker does not match the orientation.
  • the state change parameters include folding angle, rotation angle, or stretching range
  • the stretching range is the screen stretching range of the electronic device
  • the first sound channel signal and the second sound channel signal are fused according to the first fusion method to obtain the third sound
  • the audio output unit 703 may be a speaker.
  • the input unit 704 may include a graphics processor (Graphics Processing Unit, GPU) 7041 and a microphone 7042, and the graphics processor 7041 is used for still pictures or video images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode.
  • the data is processed.
  • the display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 707 includes a touch panel 7071 and other input devices 7072 .
  • the touch panel 7071 is also called a touch screen.
  • the touch panel 7071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 7072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, and joysticks, which will not be repeated here.
  • the memory 709 can be used to store software programs as well as various data, including but not limited to application programs and operating systems.
  • the processor 710 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, user interface, application program, etc., and the modem processor mainly processes wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 710 .
  • the embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, each process of the above-mentioned channel switching method embodiment is realized, and can achieve The same technical effects are not repeated here to avoid repetition.
  • the processor is the processor in the electronic device described in the above embodiments.
  • the readable storage medium includes computer readable storage medium, such as computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
  • the embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the above embodiment of the channel switching method Each process, and can achieve the same technical effect, in order to avoid repetition, will not repeat them here.
  • chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
  • the embodiment of the present application also provides a computer program product, the computer program product is stored in a non-transitory storage medium, and the computer program product is executed by at least one processor to implement the above-mentioned channel switching method embodiments. process, and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
  • the term “comprising”, “comprising” or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase “comprising a " does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
  • the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

Abstract

本申请公开了一种声道切换方法、装置和电子设备,属于通信技术领域。方法包括:在电子设备播放音频,且电子设备的目标状态发生变化的情况下,获取电子设备的状态变化参数,其中,状态变化参数包括折叠角度、旋转角度或伸缩幅度;根据状态变化参数,对第一声道信号和第二声道信号根据第一融合方式进行融合,得到第三声道信号,以及对第一声道信号和第二声道信号根据第二融合方式进行融合,得到第四声道信号;控制第一扬声器由播放第一声道信号切换为播放第三声道信号,以及控制第二扬声器由播放第二声道信号切换为播放第四声道信号,其中,在切换声道信号前,第一扬声器和第二扬声器播放的声道与所处的方位不匹配。

Description

声道切换方法、装置和电子设备
相关申请的交叉引用
本申请主张在2021年08月06日在中国提交的中国专利申请No.202110901164.1的优先权,其全部内容通过引用包含于此。
技术领域
本申请属于通信技术领域,具体涉及一种声道切换方法、装置和电子设备。
背景技术
目前,许多电子设备都配备了多个扬声器,通过不同方位的扬声器播放不同声道的音频,来实现立体声播放效果。以四扬声器的电子设备为例,通常是通过电子设备顶部的两个扬声器播放左声道音频,通过底部的两个扬声器播放右声道音频,实现立体声效果。然而,在电子设备切换姿态时,如进行旋转或折叠时,扬声器的方位会发生变化,此时会导致某些扬声器播放的声道信号与人耳不匹配,进而影响立体声播放效果。
发明内容
本申请实施例的目的是提供一种声道切换方法、装置和电子设备,能够解决现有电子设备在切换姿态时立体声播放效果较差的问题。
第一方面,本申请实施例提供了一种声道切换方法,应用于电子设备,该方法包括:
在所述电子设备播放音频,且所述电子设备的目标状态发生变化的情况下,获取所述电子设备的状态变化参数,其中,所述状态变化参数包括折叠角度、旋转角度或伸缩幅度,所述伸缩幅度为所述电子设备的屏幕伸缩幅度;
根据所述状态变化参数,对第一声道信号和第二声道信号根据第一融合方式进行融合,得到第三声道信号,以及对所述第一声道信号和所述第二声 道信号根据第二融合方式进行融合,得到第四声道信号;
控制第一扬声器由播放所述第一声道信号切换为播放所述第三声道信号,以及控制第二扬声器由播放所述第二声道信号切换为播放所述第四声道信号,其中,在切换声道信号前,所述第一扬声器和所述第二扬声器播放的声道与所处的方位不匹配。
第二方面,本申请实施例提供了一种声道切换装置,应用于电子设备,该声道切换装置包括:
获取模块,用于在所述电子设备播放音频,且所述电子设备的目标状态发生变化的情况下,获取所述电子设备的状态变化参数,其中,所述状态变化参数包括折叠角度、旋转角度或伸缩幅度,所述伸缩幅度为所述电子设备的屏幕伸缩幅度;
处理模块,用于根据所述状态变化参数,对第一声道信号和第二声道信号根据第一融合方式进行融合,得到第三声道信号,以及对所述第一声道信号和所述第二声道信号根据第二融合方式进行融合,得到第四声道信号;
控制模块,用于控制第一扬声器由播放所述第一声道信号切换为播放所述第三声道信号,以及控制第二扬声器由播放所述第二声道信号切换为播放所述第四声道信号,其中,在切换声道信号前,所述第一扬声器和所述第二扬声器播放的声道与所处的方位不匹配。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的声道切换方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的声道切换方法的步骤。
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的声道切换方法的步骤。
第六方面,本申请实施例提供了一种计算机程序产品,所述程序产品被存储在非易失的存储介质中,所述程序产品被至少一个处理器执行以实现如第一方面所述的声道切换方法的步骤。
第七方面,本申请实施例提供了一种电子设备,所述电子设备被配置成用于执行如第一方面所述的声道切换方法的步骤。
在本申请实施例中,在电子设备播放音频,且所述电子设备的目标状态发生变化的情况下,获取所述电子设备的状态变化参数,其中,所述状态变化参数包括折叠角度、旋转角度或伸缩幅度,所述伸缩幅度为所述电子设备的屏幕伸缩幅度;根据所述状态变化参数,对第一声道信号和第二声道信号根据第一融合方式进行融合,得到第三声道信号,以及对所述第一声道信号和所述第二声道信号根据第二融合方式进行融合,得到第四声道信号;控制第一扬声器由播放所述第一声道信号切换为播放所述第三声道信号,以及控制第二扬声器由播放所述第二声道信号切换为播放所述第四声道信号,其中,在切换声道信号前,所述第一扬声器和所述第二扬声器播放的声道与所处的方位不匹配。这样,在电子设备的目标状态发生变化时,通过对方位发生变化的扬声器的声道信号按状态变化参数进行融合,可保证各扬声器播放的声道信号与所处方位匹配,实现顺滑的声道切换,保证电子设备在目标状态发生变化过程中也能获得较好的立体声播放效果。
附图说明
图1是本申请实施例提供的声道切换方法的流程图;
图2a是本申请实施例提供的电子设备的第一折叠状态示意图;
图2b是本申请实施例提供的电子设备的第二折叠状态示意图;
图3a是本申请实施例提供的电子设备在展开状态下的示意图;
图3b是本申请实施例提供的电子设备在展开状态下顺时针旋转90度后的示意图;
图3c是本申请实施例提供的电子设备在展开状态下顺时针旋转180度后的示意图;
图3d是本申请实施例提供的电子设备在展开状态下顺时针旋转270度后的示意图;
图4a是本申请实施例提供的电子设备在横屏状态下的示意图;
图4b是本申请实施例提供的电子设备在横屏状态下顺时针旋转180度的示意图;
图5是本申请实施例提供的声道切换装置的结构示意图;
图6是本申请实施例提供的电子设备的结构示意图;
图7是本申请实施例提供的电子设备的硬件结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的术语在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”所区别的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”一般表示前后关联对象是一种“或”的关系。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的声道切换方法进行详细地说明。
请参见图1,图1为本申请实施例提供的声道切换方法的流程图,应用于电子设备,如图1所示,该方法包括以下步骤:
步骤101、在所述电子设备播放音频,且所述电子设备的目标状态发生变化的情况下,获取所述电子设备的状态变化参数。
其中,所述状态变化参数包括折叠角度、旋转角度或伸缩幅度,所述伸 缩幅度为所述电子设备的屏幕伸缩幅度。
本申请实施例可适用于折叠屏电子设备、卷轴屏电子设备或普通电子设备等,且适用于具备多个扬声器的电子设备,例如,具备四扬声器的电子设备,其中,两个扬声器设置于电子设备的顶部,两个扬声器设置于电子设备的底部。对于折叠屏或卷轴屏电子设备而言,当电子设备处于展开状态时,顶部和底部各一个扬声器位于电子设备的左侧,顶部和底部另一个扬声器位于电子设备的右侧。当电子设备由竖屏状态切换至横屏状态时,顶部的两个扬声器位于电子设备的左侧或右侧,相应地,底部的两个扬声器位于电子设备的右侧或左侧。
上述目标状态可以是折叠状态、旋转状态或伸缩状态等,相应地,所述状态变化参数可以是折叠角度、旋转角度或伸缩幅度等。
对于折叠屏电子设备而言,可以在其折叠状态发生变化,如将折叠屏电子设备折叠或展开时,获取所述电子设备的折叠角度,具体可以通过实时检测折叠角度获得。
可以在所述电子设备的旋转状态发生变化,如将电子设备顺时针或逆时针旋转以在横屏使用与竖屏使用之间切换时,获取所述电子设备的旋转角度,具体可以通过实时检测旋转角度获得。
对于卷轴屏电子设备而言,可以在其伸缩状态发生变化,如将卷轴屏拉伸或收缩时,获取所述电子设备的伸缩幅度,具体可以通过实时检测伸缩幅度获得。
相关技术中,在电子设备处于正常的竖屏状态时,通常是通过顶部的扬声器播放左声道音频,通过底部的扬声器播放右声道音频,但在电子设备发生旋转、折叠或伸缩时,电子设备的某些扬声器的方位会随之变化,例如,如图2a和图2b所示,在折叠屏电子设备20由折叠状态逐渐展开时,顶部扬声器21和底部扬声器22位于电子设备20左侧,顶部扬声器23和底部扬声器24则位于电子设备20右侧;又如图3a和图3b所示,展开状态的折叠屏电子设备20由竖屏状态顺时针旋转90度时,顶部扬声器21由电子设备20 左侧切换为电子设备20右侧,底部扬声器24由电子设备20右侧切换为电子设备20左侧;又如图4a和图4b所示,电子设备20由横屏状态顺时针旋转180度时,顶部扬声器21和顶部扬声器23由电子设备20左侧切换为电子设备20右侧,底部扬声器22和底部扬声器24由电子设备20右侧切换为电子设备20左侧;对于卷轴屏电子设备,在由收缩状态向外拉伸时,顶部和底部各一扬声器切换为电子设备左侧,顶部和底部另一扬声器切换为电子设备右侧。
本申请实施例中,考虑到电子设备在上述目标状态发生变化时,电子设备的某些扬声器所处的方位会发生变化,若各扬声器仍保持现有播放声道不变,则可能会导致有些左侧扬声器播放右声道音频,有些右侧扬声器播放左声道音频,这与人耳听觉是不匹配的,会影响人的听感,也即立体声播放效果会变差,因此,为了获得较好的立体声播放效果,可以对这些方位发生变化且播放声道与当前方位不匹配的扬声器切换声道,保证电子设备在目标状态发生变化后各扬声器播放的声道音频与人耳保持匹配,且为了保证目标状态变化过程中的音频播放效果,避免出现卡顿或无声等问题,可以根据所述电子设备实时的状态变化参数,对这些扬声器的声道信号进行融合,例如,对于原来播放左声道信号的扬声器,可以随当前状态变化参数,将左声道信号和右声道信号按相应比例进行融合,使扬声器播放融合后的声道信号。
步骤102、根据所述状态变化参数,对第一声道信号和第二声道信号根据第一融合方式进行融合,得到第三声道信号,以及对所述第一声道信号和所述第二声道信号根据第二融合方式进行融合,得到第四声道信号。
故该步骤中,可以获取所述电子设备当前播放的音频中的第一声道信号和第二声道信号,具体可以是从音频数字信号处理器(audio Digital Signal Process,aDSP)中实时获取不同声道信号,其中,所述第一声道信号和所述第二声道信号可以分别是指左声道信号和右声道信号,当然,对于具备更多声道如前声道、后声道的场景,所述第一声道信号和所述第二声道信号也可以是除左右声道信号外的其他声道信号。
然后,可根据所述电子设备当前的状态变化参数,对所述第一声道信号和所述第二声道信号根据第一融合方式进行融合,以得到融合后的第三声道信号,以及对所述第一声道信号和所述第二声道信号根据第二融合方式进行融合,以得到融合后的第四声道信号,具体地,可以是基于所述状态变化参数,确定融合比例系数,然后将一声道信号按该比例系数融合到另一声道信号中,例如,在确定融合比例系数为0.3时,第一融合方式可以是将第二声道信号乘以0.3融合到第一声道信号中,第二融合方式可以是将第一声道信号乘以0.3融合到第二声道信号中,或者,也可以是将第一声道信号和第二声道信号按7:3的比例融合,得到第三声道信号,将第一声道信号和第二声道信号按3:7的比例融合,得到第四声道信号。
其中,需说明的是,在所述电子设备的目标状态变化到位后,如屏幕完全展开后,或由竖屏切换为横屏后,所述第一融合方式可以是将所述第一声道信号切换为所述第二声道信号,所述第二融合方式可以是将所述第二声道信号切换为所述第一声道信号,也即这种情况下,所述第三声道信号为所述第二声道信号,所述第四声道信号为所述第一声道信号。
可选地,所述步骤102包括:
分别获取所述第一声道信号的第一频谱幅值和所述第二声道信号的第二频谱幅值;
根据所述状态变化参数、所述第一频谱幅值和所述第二频谱幅值,确定融合分量;
对所述第一频谱幅值与所述融合分量作第一运算处理,得到融合后的所述第三声道信号的第三频谱幅值;
对所述第二频谱幅值与所述融合分量作第二运算处理,得到融合后的所述第四声道信号的第四频谱幅值。
即一种实施方式中,在对所述第一声道信号和所述第二声道信号进行融合时,可以是先分别获取所述第一声道信号和所述第二声道信号在频域上的频谱幅值,得到所述第一频谱幅值和所述第二频谱幅值;再根据所述状态变 化参数、所述第一频谱幅值和所述第二频谱幅值,确定融合分量,具体可以是基于所述状态变化参数,确定所述目标状态的变化比例,将所述第一频谱幅值和所述第二频谱幅值的差值的相应比例作为声道信号的融合分量;然后,可以对所述第一频谱幅值与所述融合分量作第一运算处理,例如,进行简单的加减处理或加权处理,得到第三频谱幅值,对所述第二频谱幅值与所述融合分量作第二运算处理,例如,进行简单的加减处理或加权处理,得到第四频谱幅值,其中,所述第三频谱幅值便为融合后的第三声道信号的频谱幅值,所述第四频谱幅值便为融合后的第四声道信号的频谱幅值,可通过将所述第三频谱幅值和所述第四频谱幅值分别转换为时域上的声道信号,来得到所述第三声道信号和所述第四声道信号。
这样,通过该实施方式,可实现根据电子设备的状态变化量对所述第一声道信号和所述第二声道信号进行相应的融合,保证声道切换效果。
其中,在获取所述第一声道信号和所述第二声道信号的频谱幅值时,可以是通过获取信号的时域信号特征,再对时域信号特征进行变换来得到频域上的幅值特征。也就是说,所述分别获取所述第一声道信号的第一频谱幅值和所述第二声道信号的第二频谱幅值,可以包括:
分别获取所述第一声道信号在频域上的第一幅度特征和所述第二声道信号在频域上的第二幅度特征;
分别将所述第一幅度特征和所述第二幅度特征转换为频谱幅值,得到所述第一频谱幅值和所述第二频谱幅值。
即可以先分别获取所述第一声道信号和所述第二声道信号在频域上的幅度特征,然后分别对所述第一声道信号和所述第二声道信号在频域上的幅度特征进行傅里叶变换,最后将变换后的幅度特征转换为频谱幅值,即可得到所述第一声道信号的第一频谱幅值和所述第二声道信号的第二频谱幅值。
例如,可以从aDSP中实时获取左声道信号x 1在频域上的幅度特征X 1和右声道信号x 2在频域上的幅度特征X 2,并对左右声道信号进行快速傅里叶变换,变换公式为,
Figure PCTCN2022109706-appb-000001
其中,ω N=e (-2πi)/N;再将 左右声道信号变换后的幅度特征转换为频谱幅值,其中,左声道信号的频谱幅值可表示为X 1(k)′=|20×log 10X 1(k)|,右声道信号的频谱幅值可表示为X 2(k)′=|20×log 10X 2(k)|。
这样,通过该实施方式,可快速获取到所述第一声道信号和所述第二声道信号的频谱幅值。
可选地,所述根据所述状态变化参数、所述第一频谱幅值和所述第二频谱幅值,确定融合分量,包括:
根据所述状态变化参数和所述目标状态的最大变化值,确定状态系数;
计算所述状态系数与第一差值的乘积,得到所述融合分量,其中,所述第一差值为所述第一频谱幅值与所述第二频谱幅值的差值。
即一种实施方式中,可以根据所述状态变化参数和所述目标状态的最大变化值,确定状态系数,例如,可以根据所述状态变化参数占所述目标状态的最大变化值的比例,确定状态系数,再将所述第一频谱幅值与所述第二频谱幅值的差值与所述状态系数的乘积,作为融合分量。
其中,上述目标状态的最大变化值具体可以根据所述目标状态的具体类型或所述状态变化参数的类型确定,一种实施方式中,所述状态变化参数为折叠角度时,所述目标状态的最大变化值为180度;
所述状态变化参数为旋转角度时,所述目标状态的最大变化值为90度或180度;
所述状态变化参数为伸缩幅度时,所述目标状态的最大变化值为所述电子设备的屏幕的最大伸缩幅度。
例如,对于折叠状态而言,由于最大折叠角度为180度,故折叠状态的最大变化值可以是180度;对于旋转状态而言,考虑到展开状态下折叠屏电子设备每次旋转90度时,扬声器方位会发生变化,故可以将旋转状态的最大值确定为90度,另一种情况下,对于普通电子设备而言,也可以考虑横屏状态下左右翻转电子设备的情况,此时可以每次最大旋转180度为旋转状态的最大值;对于伸缩状态而言,可以电子设备的屏幕如卷轴屏的最大伸缩幅度 为伸缩状态的最大值,该最大伸缩幅度也即卷轴屏在完全展开时的屏幕长度与完全收缩时的屏幕长度之差。
以最大折叠角度180度为例,假设当前折叠角度为α,则状态系数σ可以为α/180°,将左右声道的频谱幅值的差值(即两个声道之间的频域特征差异),乘以状态系数σ,便可得到预期的融合分量delta,即delta=σ·[X 1(k)′-X 2(k)′],其中,0≤σ≤1。
这样,通过该实施方式,可快速计算得到与目标状态变化量相一致的融合分量,进而保证后续的声道融合效果。
可选地,所述对所述第一频谱幅值与所述融合分量作第一运算处理,得到融合后的所述第三声道信号的第三频谱幅值,包括:
将所述第一频谱幅值与所述融合分量相减,得到所述第三频谱幅值;
所述对所述第二频谱幅值与所述融合分量作第二运算处理,得到融合后的所述第四声道信号的第四频谱幅值,包括:
将所述第二频谱幅值与所述融合分量相加,得到所述第四频谱幅值。
即按前述方式确定融合分量后,可以对第一声道信号和第二声道信号的频谱幅值,与该融合分量进行加减,来得到融合后的声道信号的频谱幅值,具体为将所述第一频谱幅值减去所述融合分量,可得到融合后的第三声道信号的第三频谱幅值,将所述第二频谱幅值加上所述融合分量,可得到融合后的第四声道信号的第四频谱幅值。
例如,在融合分量delta=σ·[X 1(k)′-X 2(k)′]时,融合后的新左声道频谱幅值可以为X 1(k)′-delta,融合后的新右声道频谱幅值可以为X 2(k)′+delta。
需说明的是,在前述方式中计算融合分量时,也可以将所述第二频谱幅值与所述第一频谱幅值的差值乘以状态系数,来得到融合分量,即delta=σ·[X 2(k)′-X 1(k)′],在这种计算方式下,可以相应地将所述第一频谱幅值加上该融合分量,得到融合后的第三频谱幅值,将所述第二频谱幅值减去该融合分量,得到融合后的第四频谱幅值。
其中,在计算得到融合后的声道频谱幅值后,可以将融合后的声道频谱幅值还原为时域信号,也即可对所述第三频谱幅值和所述第四频谱幅值进行快速傅里叶逆变换,来得到时域上的第三声道信号和第四声道信号,其中,快速傅里叶逆变换的计算公式可以为
Figure PCTCN2022109706-appb-000002
其中,ω N=e (-2πi)/N
这样,通过该实施方式,通过对两声道信号的频谱幅值,结合状态系数进行简单的计算处理,即可完成对两声道信号的融合切换,并且这种根据状态变量量对两声道信号按比例的融合方式,可保证顺滑的声道融合效果。
步骤103、控制第一扬声器由播放所述第一声道信号切换为播放所述第三声道信号,以及控制第二扬声器由播放所述第二声道信号切换为播放所述第四声道信号,其中,在切换声道信号前,所述第一扬声器和所述第二扬声器播放的声道与所处的方位。
在对所述第一声道信号和所述第二声道信号进行融合之后,可以对于当前随所述目标状态变化而改变方位,以致原播放声道与当前方位不匹配的扬声器进行声道切换,具体地,可以对于所述目标状态变化前播放声道为所述第一声道信号,且该声道信号与当前方位不匹配的扬声器,将其播放声道切换为所述第三声道信号,对于所述目标状态变化前播放声道为所述第二声道信号,且该声道信号与当前方位不匹配的扬声器,将其播放声道切换为所述第四声道信号,从而完成扬声器播放声道随所述目标状态的跟随切换。
其中,上述第一扬声器可以是指原播放声道为所述第一声道信号,且所处方位随所述目标状态变化而即将变化或已经变化后不再适合所述第一声道信号的扬声器,上述第二扬声器可以是指原播放声道为所述第二声道信号,且所处方位随所述目标状态变化而即将变化或已经变化后不再适合所述第二声道信号的扬声器。
例如,在电子设备20由图2a所示的折叠状态切换为图2b所示的展开状态时,顶部扬声器21和底部扬声器22的方位变为左侧,顶部扬声器23和底部扬声器24的方位变为右侧,从而原来播放右声道的底部扬声器22将不再 匹配当前所处方位,原来播放左声道的顶部扬声器23也将不再匹配当前所处方位,此种情况下,顶部扬声器23和底部扬声器22即为需要切换声道的第一扬声器和第二扬声器,故可以对左声道信号和右声道信号按步骤102进行融合,并控制顶部扬声器23的播放声道由左声道信号逐渐向右声道信号切换,控制底部扬声器22的播放声道由右声道信号逐渐向左声道信号切换。
可选地,所述步骤103之前,所述方法还包括:
预测所述电子设备的多个扬声器中每个扬声器在所述电子设备的目标状态发生变化后的方位;
在所述多个扬声器中的目标扬声器当前播放的声道与预测的所述目标扬声器的方位不匹配的情况下,确定所述目标扬声器为待切换扬声器,其中,所述待切换扬声器中当前播放所述第一声道信号的扬声器为所述第一扬声器,所述待切换扬声器中当前播放所述第二声道信号的扬声器为所述第二扬声器。
即一种实施方式中,可以在检测到所述电子设备的目标状态发生变化时,预测所述电子设备的每个扬声器在所述目标状态发生变化后的方位,例如,对于折叠屏电子设备,在其由折叠状态逐渐展开时,可以预测顶部和底部的各个扬声器在展开后所处的方位,或者,在电子设备由竖屏切换为横屏状态时,可预测切换后各扬声器所处的方位。
并可以根据预测的方位,判断各扬声器当前播放的声道是否与变化后方位匹配,例如,如图2a和图2b所示,对于顶部扬声器23,可以判断其当前播放的左声道信号与其展开所处的右侧方位不匹配,以及判断出底部扬声器22当前播放的右声道信号与其展开所处的左侧方位不匹配,或者,如图3a和图3b所示,顶部扬声器21在顺时针旋转90度后将由左侧切换为右侧,从而原播放的左声道信号与当前方位不匹配,底部扬声器24在顺时针旋转90度后将由右侧切换为左侧,从而原播放的右声道信号与当前方位不匹配。
这样,可根据各扬声器在所述目标状态变化后的方位和当前播放声道信号,确定出需切换声道的扬声器,并进一步根据待切换声道的扬声器的播放声道,确定上述第一扬声器和上述第二扬声器。该实施方式能够较为准确快 速地确定出待切换声道的扬声器。
下面结合图2a至图4b,对本申请实施例的具体实施方式进行举例说明:
图2a和图2b为折叠屏电子设备20的两种状态,如图可以看到折叠屏电子设备20包括顶部扬声器21和顶部扬声器23,底部扬声器22和底部扬声器24。
折叠屏电子设备20在折叠状态播放音乐或视频时,顶部扬声器21和顶部扬声器23(或者底部扬声器22和底部扬声器24)播放左声道音频,底部扬声器22和底部扬声器24(或者顶部扬声器21和顶部扬声器23)播放右声道音频。
折叠屏电子设备20在展开状态播放音乐或视频时,顶部扬声器21和底部扬声器22(或者顶部扬声器23和底部扬声器24)播放左声道音频,顶部扬声器23和底部扬声器24(或者顶部扬声器21和底部扬声器22)播放右声道音频。
当折叠屏电子设备20在折叠到展开或展开到折叠这两种状态之间变化时,顶部扬声器21和底部扬声器24(或者底部扬声器22和顶部扬声器23)的播放声道不变,底部扬声器22和顶部扬声器23(或者顶部扬声器21和底部扬声器24)会随着折叠状态的变化,而进行声道融合切换。当状态系数σ从0到1(或从1到0)过渡时,完成并结束声道切换,即在折叠屏电子设备20从折叠到展开(或展开到折叠)这两种状态之间变化完成时,实现了左右两个声道之间的全部切换。
如图3a至图3d所示,本申请实施例中的声道融合切换方法也可以应用于折叠屏电子设备在完全展开状态下的屏幕翻转。
其中,图3a为折叠屏电子设备20的展开状态,此状态下播放音乐或视频,顶部扬声器21和底部扬声器22位于折叠屏电子设备20的左侧,播放左声道音频;顶部扬声器23和底部扬声器24位于折叠屏电子设备20的右侧,播放右声道音频。
图3b为折叠屏电子设备20顺时针旋转90度,此状态下播放音乐或视频, 底部扬声器22和底部扬声器24位于折叠屏电子设备20的左侧,播放左声道音频;顶部扬声器21和顶部扬声器23位于折叠屏电子设备20的右侧,播放右声道音频。
图3c为折叠屏电子设备20顺时针旋转180度,此状态下播放音乐/视频,顶部扬声器23和底部扬声器24位于折叠屏电子设备20的左侧,播放左声道音频;顶部扬声器21和底部扬声器22位于折叠屏电子设备20的右侧,播放右声道音频。
图3d为折叠屏电子设备20顺时针旋转270度,此状态下播放音乐/视频,顶部扬声器21和顶部扬声器23位于折叠屏电子设备20的左侧,播放左声道音频;底部扬声器22和底部扬声器24位于折叠屏电子设备20的右侧,播放右声道音频。
声道融合切换原理同前述方式,可跟随设备状态系数σ进行频域逼近,分别对左右声道信号进行处理,进行声道融合切换,其中σ为屏幕翻转的角度占比,如图3a中的β为翻转的角度,σ=β/90°,屏幕每翻转90度,扬声器根据翻转状态完成一次声道融合切换。
从图3a开始,屏幕原始状态下β=0°,顺时针依次旋转,即β从0°到90°到180°到270°到360°的旋转过程中,顶部扬声器21、底部扬声器22、顶部扬声器23和底部扬声器24的声道切换如下:
顶部扬声器21依次从左声道、右声道、右声道到左声道进行声道融合切换;
底部扬声器22依次从左声道、左声道、右声道到右声道进行声道融合切换;
顶部扬声器23依次从右声道、右声道、左声道到左声道进行声道融合切换;
底部扬声器24依次从右声道、左声道、左声道到右声道进行声道融合切换;
这样,折叠屏电子设备20展开进行播放音乐或视频时,无论怎样切换摆 放状态,都可以顺滑的进行声道融合切换,声音切换过程中不会出现中断卡顿的现象。
例如,折叠屏电子设备20在展开状态下从图3a旋转为图3d的过程中,初始状态(旋转角度为0时)顶部扬声器21、底部扬声器22、顶部扬声器23和底部扬声器24的播放声道依次为左声道、左声道、右声道和右声道;处于某个角度时,顶部扬声器21和和底部扬声器24的声道信号分别处于X′ 1(k)-delta和X′ 2(k)+delta;当旋转达到90度时,顶部扬声器21、底部扬声器22、顶部扬声器23和底部扬声器24的播放声道分别融合切换为右声道、左声道、右声道和左声道;当旋转达到180度时,顶部扬声器21、底部扬声器22、顶部扬声器23和底部扬声器24的播放声道分别融合切换为右声道、右声道、左声道和左声道;当旋转达到270度时,顶部扬声器21、底部扬声器22、顶部扬声器23和底部扬声器24的播放声道分别融合切换为左声道、右声道、左声道和右声道。其中,每旋转90度,某个扬声器仍位于同一侧(左侧或右侧)时,则该扬声器的播放声道不做变化。
通过本申请实施例中的声道融合切换技术,上述四种摆放状态,都可以实现左侧两个扬声器播放左声道音频,右侧两个扬声器播放右声道音频,无论处于哪种摆放状态,都可以保持声音的相位与视频画面同步,而且在声道切换过程中,可实现顺滑的融合切换,使用户获得科技感十足的用户听觉体验。
如图4a和图4b所示,本申请实施例中的声道融合切换方法还可以应用于折叠屏电子设备或普通电子设备在完全折叠状态下,手机横屏播放视频时屏幕翻转情境下的声道切换。
图4a为折叠屏电子设备20(或普通电子设备)的折叠横放状态,此状态下电子设备20横屏播放视频,顶部扬声器21和顶部扬声器23位于折叠屏电子设备20的左侧,播放左声道音频,底部扬声器22和底部扬声器24位于折叠屏电子设备20的右侧,播放右声道音频。
图4b为折叠屏电子设备20顺时针或逆时针旋转180度后,折叠屏电子 设备20横屏播放视频,此时底部扬声器22和底部扬声器24位于折叠屏电子设备20的左边,播放左声道音频;顶部扬声器21和顶部扬声器23位于折叠屏电子设备20的右边,播放右声道音频。
声道融合切换原理同前述方式,跟随设备状态系数σ进行频域逼近,分别对左右声道信号进行处理,进行声道融合切换,其中σ为屏幕翻转的角度占比,如图4b中的γ为翻转的角度,σ=γ/180°,屏幕顺时针或逆时针翻转180度,扬声器根据翻转状态完成一次声道融合切换。
这样,电子设备切换两种横屏摆放状态,都可以保持声音的相位与视频画面同步,左侧的扬声器播放左声道音频,右侧的扬声器播放右声道音频,而且在声道切换过程中,不会出现中断卡顿,实现顺滑的融合切换,使用户获得科技感十足的用户听觉体验。
本申请实施例中的声道融合切换方法也可以应用于四扬声器的卷轴屏电子设备,可根据卷轴屏的伸缩状态,实现扬声器声道融合切换。例如,卷起状态即收缩状态下,顶部两个扬声器播放左声道音频,底部两个扬声器播放右声道音频;而在拉伸状态下,左侧两个扬声器切换为左声道音频,右侧两个扬声器切换为右声道音频,实现大屏立体声音效。在拉伸或卷起过程中的声道切换,可使用本申请实施例中介绍的声道融合切换方法,实现无卡顿的顺滑切换效果,提升用户听觉体验。
本申请实施例中的声道切换方法,在电子设备播放音频,且所述电子设备的目标状态发生变化的情况下,获取所述电子设备的状态变化参数,其中,所述状态变化参数包括折叠角度、旋转角度或伸缩幅度,所述伸缩幅度为所述电子设备的屏幕伸缩幅度;根据所述状态变化参数,对第一声道信号和第二声道信号根据第一融合方式进行融合,得到第三声道信号,以及对所述第一声道信号和所述第二声道信号根据第二融合方式进行融合,得到第四声道信号;控制第一扬声器由播放所述第一声道信号切换为播放所述第三声道信号,以及控制第二扬声器由播放所述第二声道信号切换为播放所述第四声道信号,其中,在切换声道信号前,所述第一扬声器和所述第二扬声器播放的 声道与所处的方位不匹配。这样,在电子设备的目标状态发生变化时,通过对方位发生变化的扬声器的声道信号按状态变化参数进行融合,可保证各扬声器播放的声道信号与所处方位匹配,实现顺滑的声道切换,保证电子设备在目标状态发生变化过程中也能获得较好的立体声播放效果。
需要说明的是,本申请实施例提供的声道切换方法,执行主体可以为声道切换装置,或者该声道切换装置中的用于执行声道切换方法的控制模块。本申请实施例中以声道切换装置执行声道切换方法为例,说明本申请实施例提供的声道切换装置。
请参见图5,图5为本申请实施例提供的声道切换装置的结构示意图,应用于电子设备,如图5所示,声道切换装置500包括:
获取模块501,用于在所述电子设备播放音频,且所述电子设备的目标状态发生变化的情况下,获取所述电子设备的状态变化参数,其中,所述状态变化参数包括折叠角度、旋转角度或伸缩幅度,所述伸缩幅度为所述电子设备的屏幕伸缩幅度;
处理模块502,用于根据所述状态变化参数,对第一声道信号和第二声道信号根据第一融合方式进行融合,得到第三声道信号,以及对所述第一声道信号和所述第二声道信号根据第二融合方式进行融合,得到第四声道信号;
控制模块503,用于控制第一扬声器由播放所述第一声道信号切换为播放所述第三声道信号,以及控制第二扬声器由播放所述第二声道信号切换为播放所述第四声道信号,其中,在切换声道信号前,所述第一扬声器和所述第二扬声器播放的声道与所处的方位不匹配。
可选地,处理模块502包括:
获取单元,用于分别获取所述第一声道信号的第一频谱幅值和所述第二声道信号的第二频谱幅值;
确定单元,用于根据所述状态变化参数、所述第一频谱幅值和所述第二频谱幅值,确定融合分量;
第一处理单元,用于对所述第一频谱幅值与所述融合分量作第一运算处 理,得到融合后的所述第三声道信号的第三频谱幅值;
第二处理单元,用于对所述第二频谱幅值与所述融合分量作第二运算处理,得到融合后的所述第四声道信号的第四频谱幅值。
可选地,所述确定单元包括:
确定子单元,用于根据所述状态变化参数和所述目标状态的最大变化值,确定状态系数;
计算子单元,用于计算所述状态系数与第一差值的乘积,得到所述融合分量,其中,所述第一差值为所述第一频谱幅值与所述第二频谱幅值的差值。
可选地,所述第一处理单元用于将所述第一频谱幅值与所述融合分量相减,得到所述第三频谱幅值;
所述第二处理单元用于将所述第二频谱幅值与所述融合分量相加,得到所述第四频谱幅值。
可选地,所述状态变化参数为折叠角度时,所述目标状态的最大变化值为180度;
所述状态变化参数为旋转角度时,所述目标状态的最大变化值为90度或180度;
所述状态变化参数为伸缩幅度时,所述目标状态的最大变化值为所述电子设备的屏幕的最大伸缩幅度。
可选地,所述获取单元包括:
获取子单元,用于分别获取所述第一声道信号在频域上的第一幅度特征和所述第二声道信号在频域上的第二幅度特征;
处理子单元,用于分别将所述第一幅度特征和所述第二幅度特征转换为频谱幅值,得到所述第一频谱幅值和所述第二频谱幅值。
可选地,声道切换装置500还包括:
预测模块,用于预测所述电子设备的多个扬声器中每个扬声器在所述电子设备的目标状态发生变化后的方位;
确定模块,用于在所述多个扬声器中的目标扬声器当前播放的声道与预 测的所述目标扬声器的方位不匹配的情况下,确定所述目标扬声器为待切换扬声器,其中,所述待切换扬声器中当前播放所述第一声道信号的扬声器为所述第一扬声器,所述待切换扬声器中当前播放所述第二声道信号的扬声器为所述第二扬声器。
本申请实施例中的声道切换装置,在电子设备播放音频,且所述电子设备的目标状态发生变化的情况下,获取所述电子设备的状态变化参数,其中,所述状态变化参数包括折叠角度、旋转角度或伸缩幅度,所述伸缩幅度为所述电子设备的屏幕伸缩幅度;根据所述状态变化参数,对第一声道信号和第二声道信号根据第一融合方式进行融合,得到第三声道信号,以及对所述第一声道信号和所述第二声道信号根据第二融合方式进行融合,得到第四声道信号;控制第一扬声器由播放所述第一声道信号切换为播放所述第三声道信号,以及控制第二扬声器由播放所述第二声道信号切换为播放所述第四声道信号,其中,在切换声道信号前,所述第一扬声器和所述第二扬声器播放的声道与所处的方位不匹配。这样,在电子设备的目标状态发生变化时,通过对方位发生变化的扬声器的声道信号按状态变化参数进行融合,可保证各扬声器播放的声道信号与所处方位匹配,实现顺滑的声道切换,保证电子设备在目标状态发生变化过程中也能获得较好的立体声播放效果。
本申请实施例中的声道切换装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的声道切换装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可 能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的声道切换装置能够实现图1至图4b的方法实施例实现的各个过程,为避免重复,这里不再赘述。
可选地,如图6所示,本申请实施例还提供一种电子设备600,包括处理器601,存储器602,存储在存储器602上并可在所述处理器601上运行的程序或指令,该程序或指令被处理器601执行时实现上述声道切换方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。
图7为实现本申请实施例的一种电子设备的硬件结构示意图。
该电子设备700包括但不限于:射频单元701、网络模块702、音频输出单元703、输入单元704、传感器705、显示单元706、用户输入单元707、接口单元708、存储器709、以及处理器710等部件。
本领域技术人员可以理解,电子设备700还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器710逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图7中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,处理器710,用于在电子设备播放音频,且所述电子设备的目标状态发生变化的情况下,获取所述电子设备的状态变化参数,其中,所述状态变化参数包括折叠角度、旋转角度或伸缩幅度,所述伸缩幅度为所述电子设备的屏幕伸缩幅度;
根据所述状态变化参数,对第一声道信号和第二声道信号根据第一融合方式进行融合,得到第三声道信号,以及对所述第一声道信号和所述第二声道信号根据第二融合方式进行融合,得到第四声道信号;
控制第一扬声器由播放所述第一声道信号切换为播放所述第三声道信号,以及控制第二扬声器由播放所述第二声道信号切换为播放所述第四声道信号, 其中,所述第一扬声器和所述第二扬声器播放的声道与所处的方位不匹配。
可选地,处理器710,还用于分别获取所述第一声道信号的第一频谱幅值和所述第二声道信号的第二频谱幅值;
根据所述状态变化参数、所述第一频谱幅值和所述第二频谱幅值,确定融合分量;
对所述第一频谱幅值与所述融合分量作第一运算处理,得到融合后的所述第三声道信号的第三频谱幅值;
对所述第二频谱幅值与所述融合分量作第二运算处理,得到融合后的所述第四声道信号的第四频谱幅值。
可选地,处理器710,还用于根据所述状态变化参数和所述目标状态的最大变化值,确定状态系数;
计算所述状态系数与第一差值的乘积,得到所述融合分量,其中,所述第一差值为所述第一频谱幅值与所述第二频谱幅值的差值。
可选地,处理器710,还用于将所述第一频谱幅值与所述融合分量相减,得到所述第三频谱幅值;
将所述第二频谱幅值与所述融合分量相加,得到所述第四频谱幅值。
可选地,所述状态变化参数为折叠角度时,所述目标状态的最大变化值为180度;
所述状态变化参数为旋转角度时,所述目标状态的最大变化值为90度或180度;
所述状态变化参数为伸缩幅度时,所述目标状态的最大变化值为所述电子设备的屏幕的最大伸缩幅度。
可选地,处理器710,还用于分别获取所述第一声道信号在频域上的第一幅度特征和所述第二声道信号在频域上的第二幅度特征;
分别将所述第一幅度特征和所述第二幅度特征转换为频谱幅值,得到所述第一频谱幅值和所述第二频谱幅值。
可选地,处理器710,还用于预测所述电子设备的多个扬声器中每个扬 声器在所述电子设备的目标状态发生变化后的方位;
在所述多个扬声器中的目标扬声器当前播放的声道与预测的所述目标扬声器的方位不匹配的情况下,确定所述目标扬声器为待切换扬声器,其中,所述待切换扬声器中当前播放所述第一声道信号的扬声器为所述第一扬声器,所述待切换扬声器中当前播放所述第二声道信号的扬声器为所述第二扬声器。
本申请实施例中的电子设备,在播放音频且所述电子设备的目标状态发生变化的情况下,获取所述电子设备的状态变化参数,其中,所述状态变化参数包括折叠角度、旋转角度或伸缩幅度,所述伸缩幅度为所述电子设备的屏幕伸缩幅度;根据所述状态变化参数,对第一声道信号和第二声道信号根据第一融合方式进行融合,得到第三声道信号,以及对所述第一声道信号和所述第二声道信号根据第二融合方式进行融合,得到第四声道信号;控制第一扬声器由播放所述第一声道信号切换为播放所述第三声道信号,以及控制第二扬声器由播放所述第二声道信号切换为播放所述第四声道信号,其中,在切换声道信号前,所述第一扬声器和所述第二扬声器播放的声道与所处的方位不匹配。这样,在电子设备的目标状态发生变化时,通过对方位发生变化的扬声器的声道信号按状态变化参数进行融合,可保证各扬声器播放的声道信号与所处方位匹配,实现顺滑的声道切换,保证电子设备在目标状态发生变化过程中也能获得较好的立体声播放效果。
应理解的是,本申请实施例中,音频输出单元703可以为扬声器。输入单元704可以包括图形处理器(Graphics Processing Unit,GPU)7041和麦克风7042,图形处理器7041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元706可包括显示面板7061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板7061。用户输入单元707包括触控面板7071以及其他输入设备7072。触控面板7071,也称为触摸屏。触控面板7071可包括触摸检测装置和触摸控制器两个部分。其他输入设备7072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存 储器709可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器710可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器710中。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述声道切换方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述声道切换方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
本申请实施例还提供一种计算机程序产品,所述计算机程序产品被存储在非瞬态的存储介质中,所述计算机程序产品被至少一个处理器执行以实现上述声道切换方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申 请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (13)

  1. 一种声道切换方法,应用于电子设备,所述方法包括:
    在所述电子设备播放音频,且所述电子设备的目标状态发生变化的情况下,获取所述电子设备的状态变化参数,其中,所述状态变化参数包括折叠角度、旋转角度或伸缩幅度,所述伸缩幅度为所述电子设备的屏幕伸缩幅度;
    根据所述状态变化参数,对第一声道信号和第二声道信号根据第一融合方式进行融合,得到第三声道信号,以及对所述第一声道信号和所述第二声道信号根据第二融合方式进行融合,得到第四声道信号;
    控制第一扬声器由播放所述第一声道信号切换为播放所述第三声道信号,以及控制第二扬声器由播放所述第二声道信号切换为播放所述第四声道信号,其中,在切换声道信号前,所述第一扬声器和所述第二扬声器播放的声道与所处的方位不匹配。
  2. 根据权利要求1所述的方法,其中,所述根据所述状态变化参数,对第一声道信号和第二声道信号根据第一融合方式进行融合,得到第三声道信号,以及对所述第一声道信号和所述第二声道信号根据第二融合方式进行融合,得到第四声道信号,包括:
    分别获取所述第一声道信号的第一频谱幅值和所述第二声道信号的第二频谱幅值;
    根据所述状态变化参数、所述第一频谱幅值和所述第二频谱幅值,确定融合分量;
    对所述第一频谱幅值与所述融合分量作第一运算处理,得到融合后的所述第三声道信号的第三频谱幅值;
    对所述第二频谱幅值与所述融合分量作第二运算处理,得到融合后的所述第四声道信号的第四频谱幅值。
  3. 根据权利要求2所述的方法,其中,所述根据所述状态变化参数、所 述第一频谱幅值和所述第二频谱幅值,确定融合分量,包括:
    根据所述状态变化参数和所述目标状态的最大变化值,确定状态系数;
    计算所述状态系数与第一差值的乘积,得到所述融合分量,其中,所述第一差值为所述第一频谱幅值与所述第二频谱幅值的差值。
  4. 根据权利要求3所述的方法,其中,所述对所述第一频谱幅值与所述融合分量作第一运算处理,得到融合后的所述第三声道信号的第三频谱幅值,包括:
    将所述第一频谱幅值与所述融合分量相减,得到所述第三频谱幅值;
    所述对所述第二频谱幅值与所述融合分量作第二运算处理,得到融合后的所述第四声道信号的第四频谱幅值,包括:
    将所述第二频谱幅值与所述融合分量相加,得到所述第四频谱幅值。
  5. 根据权利要求3所述的方法,其中,所述状态变化参数为折叠角度时,所述目标状态的最大变化值为180度;
    所述状态变化参数为旋转角度时,所述目标状态的最大变化值为90度或180度;
    所述状态变化参数为伸缩幅度时,所述目标状态的最大变化值为所述电子设备的屏幕的最大伸缩幅度。
  6. 根据权利要求2所述的方法,其中,所述分别获取所述第一声道信号的第一频谱幅值和所述第二声道信号的第二频谱幅值,包括:
    分别获取所述第一声道信号在频域上的第一幅度特征和所述第二声道信号在频域上的第二幅度特征;
    分别将所述第一幅度特征和所述第二幅度特征转换为频谱幅值,得到所述第一频谱幅值和所述第二频谱幅值。
  7. 根据权利要求1所述的方法,其中,所述控制第一扬声器由播放所述第一声道信号切换为播放所述第三声道信号,以及控制第二扬声器由播放所述第二声道信号切换为播放所述第四声道信号之前,所述方法还包括:
    预测所述电子设备的多个扬声器中每个扬声器在所述电子设备的目标状 态发生变化后的方位;
    在所述多个扬声器中的目标扬声器当前播放的声道与预测的所述目标扬声器的方位不匹配的情况下,确定所述目标扬声器为待切换扬声器,其中,所述待切换扬声器中当前播放所述第一声道信号的扬声器为所述第一扬声器,所述待切换扬声器中当前播放所述第二声道信号的扬声器为所述第二扬声器。
  8. 一种声道切换装置,应用于电子设备,所述声道切换装置包括:
    获取模块,用于在所述电子设备播放音频,且所述电子设备的目标状态发生变化的情况下,获取所述电子设备的状态变化参数,其中,所述状态变化参数包括折叠角度、旋转角度或伸缩幅度,所述伸缩幅度为所述电子设备的屏幕伸缩幅度;
    处理模块,用于根据所述状态变化参数,对第一声道信号和第二声道信号根据第一融合方式进行融合,得到第三声道信号,以及对所述第一声道信号和所述第二声道信号根据第二融合方式进行融合,得到第四声道信号;
    控制模块,用于控制第一扬声器由播放所述第一声道信号切换为播放所述第三声道信号,以及控制第二扬声器由播放所述第二声道信号切换为播放所述第四声道信号,其中,在切换声道信号前,所述第一扬声器和所述第二扬声器播放的声道与所处的方位不匹配。
  9. 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-7中任一项所述的声道切换方法的步骤。
  10. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-7中任一项所述的声道切换方法的步骤。
  11. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1-7中任一项所述的声道切换方法的步骤。
  12. 一种计算机程序产品,所述程序产品被存储在非易失的存储介质中, 所述程序产品被至少一个处理器执行以实现如权利要求1-7任一项所述的声道切换方法的步骤。
  13. 一种电子设备,所述电子设备被配置成用于执行如权利要求1-7任一项所述的声道切换方法的步骤。
PCT/CN2022/109706 2021-08-06 2022-08-02 声道切换方法、装置和电子设备 WO2023011473A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110901164.1 2021-08-06
CN202110901164.1A CN113630695B (zh) 2021-08-06 2021-08-06 声道切换方法、装置和电子设备

Publications (1)

Publication Number Publication Date
WO2023011473A1 true WO2023011473A1 (zh) 2023-02-09

Family

ID=78383075

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/109706 WO2023011473A1 (zh) 2021-08-06 2022-08-02 声道切换方法、装置和电子设备

Country Status (2)

Country Link
CN (1) CN113630695B (zh)
WO (1) WO2023011473A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116471355A (zh) * 2023-06-20 2023-07-21 荣耀终端有限公司 音频播放的方法及电子设备
CN116567489A (zh) * 2023-07-12 2023-08-08 荣耀终端有限公司 一种音频数据处理方法及相关装置

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113630695B (zh) * 2021-08-06 2023-05-26 维沃移动通信有限公司 声道切换方法、装置和电子设备
CN114257854A (zh) * 2021-11-19 2022-03-29 支付宝(杭州)信息技术有限公司 音量控制方法、音量控制装置以及电子设备
CN114630237B (zh) * 2022-03-10 2024-03-01 维沃移动通信有限公司 音频设备及其控制方法和装置和电子设备

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103780765A (zh) * 2014-02-28 2014-05-07 联想(北京)有限公司 一种切换方法、装置及电子设备
US20140286502A1 (en) * 2013-03-22 2014-09-25 Htc Corporation Audio Playback System and Method Used in Handheld Electronic Device
CN104754490A (zh) * 2013-12-31 2015-07-01 环达电脑(上海)有限公司 左右声道自动切换装置及方法
CN208834288U (zh) * 2018-09-27 2019-05-07 上海闻泰信息技术有限公司 扬声器声道切换结构及电子设备
CN110730260A (zh) * 2019-09-30 2020-01-24 维沃移动通信有限公司 电子设备的控制方法及电子设备
CN112689220A (zh) * 2021-01-22 2021-04-20 深圳市锐尔觅移动通信有限公司 电子设备
CN113206905A (zh) * 2021-05-17 2021-08-03 维沃移动通信有限公司 一种电子设备、扬声器声道配置方法及装置
CN113630695A (zh) * 2021-08-06 2021-11-09 维沃移动通信有限公司 声道切换方法、装置和电子设备

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108040313A (zh) * 2017-11-30 2018-05-15 维沃移动通信有限公司 一种播放参数控制方法及电子设备
KR102482960B1 (ko) * 2018-02-07 2022-12-29 삼성전자주식회사 듀얼 스피커를 이용한 오디오 데이터 재생 방법 및 그의 전자 장치
CN108551636B (zh) * 2018-05-29 2019-12-10 维沃移动通信有限公司 一种扬声器控制方法及移动终端
CN110809226A (zh) * 2019-10-18 2020-02-18 维沃移动通信有限公司 一种音频播放方法及电子设备
CN113223539B (zh) * 2020-01-20 2023-05-26 维沃移动通信有限公司 一种音频传输方法及电子设备
CN111629304A (zh) * 2020-05-15 2020-09-04 维沃移动通信有限公司 扬声器控制方法、装置及电子设备
CN112312273B (zh) * 2020-11-06 2023-02-03 维沃移动通信有限公司 声音播放方法、声音接收方法和电子设备

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140286502A1 (en) * 2013-03-22 2014-09-25 Htc Corporation Audio Playback System and Method Used in Handheld Electronic Device
CN104754490A (zh) * 2013-12-31 2015-07-01 环达电脑(上海)有限公司 左右声道自动切换装置及方法
CN103780765A (zh) * 2014-02-28 2014-05-07 联想(北京)有限公司 一种切换方法、装置及电子设备
CN208834288U (zh) * 2018-09-27 2019-05-07 上海闻泰信息技术有限公司 扬声器声道切换结构及电子设备
CN110730260A (zh) * 2019-09-30 2020-01-24 维沃移动通信有限公司 电子设备的控制方法及电子设备
CN112689220A (zh) * 2021-01-22 2021-04-20 深圳市锐尔觅移动通信有限公司 电子设备
CN113206905A (zh) * 2021-05-17 2021-08-03 维沃移动通信有限公司 一种电子设备、扬声器声道配置方法及装置
CN113630695A (zh) * 2021-08-06 2021-11-09 维沃移动通信有限公司 声道切换方法、装置和电子设备

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116471355A (zh) * 2023-06-20 2023-07-21 荣耀终端有限公司 音频播放的方法及电子设备
CN116471355B (zh) * 2023-06-20 2023-11-10 荣耀终端有限公司 音频播放的方法及电子设备
CN116567489A (zh) * 2023-07-12 2023-08-08 荣耀终端有限公司 一种音频数据处理方法及相关装置
CN116567489B (zh) * 2023-07-12 2023-10-20 荣耀终端有限公司 一种音频数据处理方法及相关装置

Also Published As

Publication number Publication date
CN113630695B (zh) 2023-05-26
CN113630695A (zh) 2021-11-09

Similar Documents

Publication Publication Date Title
WO2023011473A1 (zh) 声道切换方法、装置和电子设备
KR102155688B1 (ko) 사용자 단말 장치 및 이의 디스플레이 방법
CN107967706B (zh) 多媒体数据的处理方法、装置及计算机可读存储介质
RU2666966C2 (ru) Способ и прибор управления для воспроизведения аудио
CN108449641B (zh) 播放媒体流的方法、装置、计算机设备和存储介质
WO2021093583A1 (zh) 视频流处理方法、装置、终端设备及计算机可读存储介质
US9594945B2 (en) Method and apparatus for protecting eyesight
EP3979048A1 (en) User terminal device and displaying method thereof
WO2021104236A1 (zh) 一种共享拍摄参数的方法及电子设备
WO2016124122A1 (zh) 一种手持式电子设备图片缩放及播放内容切换的方法及装置
WO2019114514A1 (zh) 在直播间显示音高信息的方法及装置、存储介质
US11284151B2 (en) Loudness adjustment method and apparatus, and electronic device and storage medium
CN108281152B (zh) 音频处理方法、装置及存储介质
WO2020253295A1 (zh) 控制方法、装置及终端设备
CN111586431B (zh) 进行直播处理的方法、装置、设备及存储介质
WO2017032078A1 (zh) 一种界面控制方法及移动终端
WO2017032066A1 (zh) 一种联系人管理方法及移动终端
CN109451248B (zh) 视频数据的处理方法、装置、终端及存储介质
US20210274301A1 (en) Method and terminal for playing audio data, and storage medium thereof
CN111142838A (zh) 音频播放方法、装置、计算机设备及存储介质
CN110769313A (zh) 视频处理方法及装置、存储介质
US20230014836A1 (en) Method for chorus mixing, apparatus, electronic device and storage medium
US20230403413A1 (en) Method and apparatus for displaying online interaction, electronic device and computer readable medium
WO2023169367A1 (zh) 音频播放方法和电子设备
CN112133319A (zh) 音频生成的方法、装置、设备及存储介质

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: 22852185

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2022852185

Country of ref document: EP

Effective date: 20240306