CN110933217A - Audio control method and device - Google Patents

Audio control method and device Download PDF

Info

Publication number
CN110933217A
CN110933217A CN201811092730.3A CN201811092730A CN110933217A CN 110933217 A CN110933217 A CN 110933217A CN 201811092730 A CN201811092730 A CN 201811092730A CN 110933217 A CN110933217 A CN 110933217A
Authority
CN
China
Prior art keywords
loudspeaker
mode
distance
audio
audio playing
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
Application number
CN201811092730.3A
Other languages
Chinese (zh)
Inventor
刘凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201811092730.3A priority Critical patent/CN110933217A/en
Publication of CN110933217A publication Critical patent/CN110933217A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/0206Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings
    • H04M1/0208Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings characterized by the relative motions of the body parts
    • H04M1/0214Foldable telephones, i.e. with body parts pivoting to an open position around an axis parallel to the plane they define in closed position
    • H04M1/0216Foldable in one direction, i.e. using a one degree of freedom hinge
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0266Details of the structure or mounting of specific components for a display module assembly
    • H04M1/0268Details of the structure or mounting of specific components for a display module assembly including a flexible display panel

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Stereophonic System (AREA)

Abstract

The embodiment of the invention provides an audio control method and an audio control device, wherein the method is applied to terminal equipment, the terminal equipment comprises a folding screen, a folding shaft, a first loudspeaker and a second loudspeaker, and the first loudspeaker and the second loudspeaker are positioned on two sides of the folding shaft, and the method comprises the following steps: acquiring a folding angle between a first part of screen and a second part of screen in the folding screen, wherein the first part of screen and the second part of screen can rotate along a folding axis of the terminal equipment; determining an audio playing mode of the terminal equipment according to the folding angle, wherein the audio playing mode comprises a stereo mode and a monaural mode; and setting sound effect parameters of the first loudspeaker and the second loudspeaker according to the audio playing mode of the terminal equipment. The audio playing effect is improved.

Description

Audio control method and device
Technical Field
The embodiment of the invention relates to the technical field of audio, in particular to an audio control method and device.
Background
At present, more and more terminal devices (such as mobile phones, tablet computers, and the like) have foldable screens, and two parts of the foldable screens can rotate along a folding axis to fold the screens of the terminal devices.
In practical applications, speakers are usually disposed on the top and the bottom of the terminal device, and the terminal device can play audio through the two speakers. In the prior art, sound effect parameters of two speakers are generally controlled so that the two speakers play stereo, and when the two speakers are set to play stereo, waveforms of audio played by the two speakers are different. When the folding screen of the terminal equipment is folded, the distance between the two loudspeakers is possibly short, so that the audio played by the two loudspeakers cannot reach the stereo effect, the interference between the two different audio with different waveforms is large, and the audio playing effect is poor.
Disclosure of Invention
The embodiment of the invention provides an audio control method and device, which improve the audio playing effect.
In a first aspect, an embodiment of the present invention provides an audio control method applied to a terminal device, where the terminal device includes a folding screen, a folding axis, a first speaker and a second speaker, and the first speaker and the second speaker are located on two sides of the folding axis, and the method includes:
acquiring a folding angle between a first part of screen and a second part of screen in the folding screen, wherein the first part of screen and the second part of screen can rotate along a folding axis of the terminal equipment;
determining an audio playing mode of the terminal equipment according to the folding angle, wherein the audio playing mode comprises a stereo mode and a monaural mode;
and setting sound effect parameters of the first loudspeaker and the second loudspeaker according to the audio playing mode of the terminal equipment.
In a possible implementation manner, the determining an audio playing mode of the terminal device according to the folding angle includes:
judging whether the folding angle is larger than a preset angle or not;
if so, determining that the audio playing mode of the terminal equipment is a stereo mode;
and if not, determining that the audio playing mode of the terminal equipment is a non-stereo mode.
In another possible implementation manner, the determining an audio playing mode of the terminal device according to the folding angle includes:
acquiring a first distance between the first loudspeaker and the folding shaft and a second distance between the second loudspeaker and the folding shaft;
determining a third distance between the first speaker and the second speaker according to the first distance, the second distance and the folding angle;
and setting an audio playing mode of the terminal equipment according to the third distance.
In another possible implementation manner, the determining an audio playing mode of the terminal device according to the third distance includes:
judging whether the third distance is greater than a preset distance, wherein the preset distance is the minimum distance for realizing stereo sound effect;
if so, determining that the audio playing mode of the terminal equipment is a stereo mode;
and if not, determining that the audio playing mode of the terminal equipment is a non-stereo mode.
In another possible implementation manner, setting sound effect parameters of the first speaker and the second speaker according to an audio playing mode of the terminal device includes:
when the audio playing mode is a stereo mode, setting different phase parameters for the first loudspeaker and the second loudspeaker so as to enable the phase of the audio played by the first loudspeaker to be different from the phase of the audio played by the second loudspeaker;
and when the audio playing mode is a non-stereo mode, setting the same phase parameters for the first loudspeaker and the second loudspeaker so as to enable the phase of the audio played by the first loudspeaker to be the same as the phase of the audio played by the second loudspeaker.
In a second aspect, an embodiment of the present invention provides an audio control apparatus, which is applied to a terminal device, where the terminal device includes a foldable screen, a foldable shaft, a first speaker and a second speaker, where the first speaker and the second speaker are located on two sides of the foldable shaft, the apparatus includes an obtaining module, a determining module, and a setting module, where,
the obtaining module is used for obtaining a folding angle between a first part screen and a second part screen in the folding screen, and the first part screen and the second part screen can rotate along a folding axis of the terminal device;
the determining module is used for determining an audio playing mode of the terminal equipment according to the folding angle, wherein the audio playing mode comprises a stereo mode and a monaural mode;
the setting module is used for setting sound effect parameters of the first loudspeaker and the second loudspeaker according to the audio playing mode of the terminal equipment.
In a possible implementation, the determining module is specifically configured to:
judging whether the folding angle is larger than a preset angle or not;
if so, determining that the audio playing mode of the terminal equipment is a stereo mode;
and if not, determining that the audio playing mode of the terminal equipment is a non-stereo mode.
In another possible implementation manner, the determining module is specifically configured to:
acquiring a first distance between the first loudspeaker and the folding shaft and a second distance between the second loudspeaker and the folding shaft;
determining a third distance between the first speaker and the second speaker according to the first distance, the second distance and the folding angle;
and setting an audio playing mode of the terminal equipment according to the third distance.
In another possible implementation manner, the determining module is specifically configured to:
judging whether the third distance is greater than a preset distance, wherein the preset distance is the minimum distance for realizing stereo sound effect;
if so, determining that the audio playing mode of the terminal equipment is a stereo mode;
and if not, determining that the audio playing mode of the terminal equipment is a non-stereo mode.
In another possible implementation manner, the setting module is specifically configured to:
when the audio playing mode is a stereo mode, setting different phase parameters for the first loudspeaker and the second loudspeaker so as to enable the phase of the audio played by the first loudspeaker to be different from the phase of the audio played by the second loudspeaker;
and when the audio playing mode is a non-stereo mode, setting the same phase parameters for the first loudspeaker and the second loudspeaker so as to enable the phase of the audio played by the first loudspeaker to be the same as the phase of the audio played by the second loudspeaker.
In a third aspect, an embodiment of the present invention provides a terminal device, including: a processor coupled with a memory;
the memory is used for storing a computer program;
the processor is configured to execute the computer program stored in the memory to enable the terminal device to perform the method of any of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a readable storage medium, which includes a program or instructions, and when the program or instructions are run on a computer, the method according to any one of the first aspect is performed.
According to the audio control method and device provided by the embodiment of the invention, in the operation process of the terminal equipment, the folding angle between the first part of screen and the second part of screen in the folding screen is obtained, the audio playing mode of the terminal equipment is determined according to the folding angle, the audio playing mode comprises a stereo mode and a monaural mode, and the sound effect parameters of the first loudspeaker and the second loudspeaker are set according to the audio playing mode of the terminal equipment. In the above process, when the folding angle is large, so that the distance between the first speaker and the second speaker satisfies the stereo playing distance, the audio playing mode of the first speaker and the second speaker can be set to be the stereo mode, and the audio which can be played by the first speaker and the second speaker can reach the stereo effect. When the folding angle is small, so that the distance between the first loudspeaker and the second loudspeaker does not satisfy the stereo playing distance, the audio playing mode of the first loudspeaker and the second loudspeaker can be set to be a non-stereo mode, and in the non-stereo mode, the waveforms of the audio played by the first loudspeaker and the second loudspeaker are the same, so that the interference between the audio played by the first loudspeaker and the second loudspeaker is reduced, and the audio playing effect is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic structure of a terminal device according to an embodiment of the present invention;
fig. 2 is a first flowchart illustrating an audio control method according to an embodiment of the present invention;
fig. 3 is a second flowchart illustrating an audio control method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an audio processing process according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an audio control apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic structure of a terminal device according to an embodiment of the present invention. Referring to fig. 1, the terminal device has a folding screen (including a first partial screen M and a second partial screen N), a folding axis P, a first speaker a, and a second speaker B.
The first partial screen M and the second partial screen M may be rotated along the folding axis P to have a certain folding angle θ therebetween. Optionally, the first partial screen M may be an upper half screen of the terminal device, and the second partial screen M is a lower half screen of the terminal device. Alternatively, the first partial screen M may be a left half screen of the terminal device, and the second partial screen N may be a right half screen of the terminal device.
The first speaker a and the second speaker B are disposed on both sides of the folding axis. Alternatively, when the first partial screen M may be an upper half screen of the terminal device and the second partial screen M is a lower half screen of the terminal device, the first speaker a may be disposed at the top of the terminal device, and the second speaker B may be disposed at the bottom of the terminal device. When the first partial screen M may be a left half screen of the terminal device and the second partial screen N may be a right half screen of the terminal device, the first speaker a may be disposed on the left side of the terminal device and the second speaker B may be disposed on the right side of the terminal device. Optionally, the first speaker a and the second speaker B are arranged opposite to each other.
It should be noted that fig. 1 is a schematic structural diagram of the terminal device in an exemplary form, and is not a limitation on the structure of the terminal device, and in an actual application process, the structure of the terminal device may be set according to an actual need, which is not specifically limited in the embodiment of the present invention.
In this application, the terminal device may obtain a folding angle between the first partial screen and the second partial screen, and set the audio playback mode of the first speaker and the second speaker to the stereo mode or the non-stereo mode according to the folding angle. When the folding angle is large, and the distance between the first loudspeaker and the second loudspeaker meets the stereo playing distance, the audio playing mode of the first loudspeaker and the second loudspeaker can be set to be a stereo mode, so that the audio which can be played by the first loudspeaker and the second loudspeaker can reach the stereo effect. When the folding angle is small, so that the distance between the first loudspeaker and the second loudspeaker does not satisfy the stereo playing distance, the audio playing mode of the first loudspeaker and the second loudspeaker can be set to be a non-stereo mode, and in the non-stereo mode, the waveforms of the audio played by the first loudspeaker and the second loudspeaker are the same, so that the interference between the audio played by the first loudspeaker and the second loudspeaker is reduced, and the audio playing effect is improved.
The technical means shown in the present application will be described in detail below with reference to specific examples. It should be noted that the following embodiments may be combined with each other, and the description of the same or similar contents in different embodiments is not repeated.
Fig. 2 is a first flowchart illustrating an audio control method according to an embodiment of the present invention. Referring to fig. 2, the method may include:
s201, acquiring a folding angle between a first part of screen and a second part of screen in the folding screen.
The execution main body of the embodiment of the invention can be terminal equipment, and can also be an audio control device arranged in the terminal equipment. Alternatively, the audio control means may be implemented by software, or the audio control may be implemented by a combination of software and hardware.
Optionally, a magnetic angle sensor may be disposed in the terminal device, and the folding angle between the first partial screen and the second partial screen may be acquired by the magnetic angle sensor.
For example, referring to fig. 1, a magnetic angle sensor may be disposed at a folding axis of the terminal device, so that the magnetic angle sensor collects the angle β, and the terminal device may calculate a folding angle θ between the first partial screen and the second partial screen according to the angle β collected by the magnetic angle sensor, where θ is 180- β.
Of course, the folding angle between the first partial screen and the second partial screen may also be obtained through other possible implementations, which is not specifically limited in the embodiment of the present invention.
Wherein the first partial screen and the second folded screen may be rotated along a folding axis of the terminal device.
For example, when the first partial screen is an upper half screen of the terminal device, the second partial screen is a lower half screen of the terminal device. When the first part of screen is the left half screen of the terminal device, the second part of screen is the right half screen of the terminal device.
S202, according to the folding angle, determining an audio playing mode of the terminal equipment, wherein the audio playing mode comprises a stereo mode and a monaural mode.
Optionally, the audio playing mode of the terminal device may be determined according to at least two possible implementations as follows:
one possible implementation is:
and judging whether the folding angle is larger than a preset angle, if so, setting the audio playing mode of the terminal equipment to be a stereo mode. And if not, setting the audio playing mode of the terminal equipment to be a non-stereo mode.
Alternatively, the larger the folding angle, the larger the distance between the first speaker and the second speaker.
In the practical application process, when the distance between the first loudspeaker and the second loudspeaker is larger than a certain distance, the first loudspeaker and the second loudspeaker can realize the stereo effect.
Optionally, the preset angle may be an angle corresponding to a minimum distance that enables the first speaker and the second speaker to realize a stereo effect.
For example, the preset angle may be 45 degrees, 30 degrees, etc.
Optionally, when the folding angle is greater than the preset angle, the first speaker and the second speaker may implement a stereo effect. When the folding angle is smaller than or equal to the preset angle, the first loudspeaker and the second loudspeaker cannot realize the stereo effect.
In the practical application process, the minimum distance of the stereo sound effect of the loudspeaker can be realized, and the minimum distance is related to the type, the attribute and the like of the loudspeaker.
For example, the types of speakers may include: an electrodynamic (moving coil) speaker, an electromagnetic speaker, an electrostatic (capacitive) speaker, a piezoelectric (crystal) speaker, a discharge (ion) speaker, and the like.
For example, the properties of the speaker may include: impedance, frequency, total quality factor value, effective volume, vibrational mass, etc.
As can be seen from the above, the preset angle is related to the type and properties of the first speaker, the type and properties of the second speaker, and the size of the terminal device.
Alternatively, the terminal device in which the first speaker and the second speaker are installed may be tested to determine the preset angle.
For example, the folding angle may be adjusted, and it is determined whether the first speaker and the second speaker can realize the stereo effect at each folding angle. The minimum folding angle that can cause the first speaker and the second speaker to realize the stereoscopic sound effect is determined as a preset angle.
Another possible implementation:
acquiring a first distance between a first loudspeaker and a folding shaft and a second distance between a second loudspeaker and the folding shaft; determining a third distance between the first loudspeaker and the second loudspeaker according to the first distance, the second distance and the folding angle; and setting an audio playing mode of the terminal equipment according to the third distance.
Optionally, judging whether the third distance is greater than a preset distance, wherein the preset distance is the minimum distance for realizing the stereo sound effect; if so, setting the audio playing mode of the terminal equipment to be a stereo mode; and if not, setting the audio playing mode of the terminal equipment to be a non-stereo mode.
Optionally, when the first part of screen is the upper half screen of the terminal device, the first speaker is disposed at the top end of the terminal device, the second part of screen is the lower half screen of the terminal device, and the second speaker is disposed at the bottom of the terminal device, the first distance is the distance between the top of the terminal device and the folding axis, and the second distance is the distance between the bottom of the terminal device and the folding axis.
Optionally, when the first partial screen is a left half screen of the terminal device, the first speaker is disposed on the left side of the terminal device, the second partial screen is a right half screen of the terminal device, and the second speaker is disposed on the right side of the terminal device, the first distance is a distance between the left side of the terminal device and the folding axis, and the second distance is a distance between the right side of the terminal device and the folding axis.
For example, assuming that the first distance is a, the second distance is b, and the folding angle is θ, the third distance c may be obtained by the following formula one:
Figure BDA0001804771790000081
it should be noted that, for the process of determining the preset distance, reference may be made to the process of determining the preset angle, which is not described in detail herein in the embodiment of the present invention.
S203, setting sound effect parameters of the first loudspeaker and the second loudspeaker according to the audio playing mode of the terminal equipment.
Optionally, the sound effect parameters may include a phase parameter, a gain parameter, a frequency response parameter, and the like.
Certainly, in the actual application process, the sound effect parameters may be set according to actual needs, and this is not specifically limited in the embodiment of the present invention.
Optionally, when the audio playing mode is the stereo mode, different phase parameters are set for the first speaker and the second speaker, so that the phase of the audio played by the first speaker is different from the phase of the audio played by the second speaker.
Optionally, when the audio playing mode is the non-stereo mode, the same phase parameter is set for the first speaker and the second speaker, so that the phase of the audio played by the first speaker is the same as the phase of the audio played by the second speaker.
When the phase of the audio played by the first loudspeaker is the same as that of the audio played by the second loudspeaker, and the distance between the first loudspeaker and the second loudspeaker is greater than the preset distance, the first loudspeaker and the second loudspeaker can realize the stereo effect.
When the phase of the audio played by the first loudspeaker is the same as that of the audio played by the second loudspeaker, the first loudspeaker and the second loudspeaker realize the non-stereo effect.
Alternatively, the parameters of the first speaker and the second speaker may be set in a Digital Signal Processor (DSP for short), respectively.
When the audio playing mode of the terminal device is determined to be the stereo mode, the phase parameters of the first speaker and the phase parameters of the second speaker may be modified in the DSP to make the settings of the first speaker different. Of course, other parameter settings of the first speaker and the second speaker may be different, and this is not particularly limited in the embodiment of the present invention.
When the audio playing mode of the terminal device is determined to be the monaural mode, the phase parameters of the first speaker and the phase parameters of the second speaker may be modified in the DSP so that the settings of the first speaker are the same. Of course, other parameters of the first speaker and the second speaker may also be set to be the same, and this is not particularly limited in the embodiment of the present invention.
It should be noted that when the audio playback mode is the non-stereo mode, any one of the two speakers may also be turned off.
According to the audio control method provided by the embodiment of the invention, in the operation process of the terminal equipment, the folding angle between the first part of screen and the second part of screen in the folding screen is obtained, the audio playing mode of the terminal equipment is determined according to the folding angle, the audio playing mode comprises a stereo mode and a monaural mode, and the sound effect parameters of the first loudspeaker and the second loudspeaker are set according to the audio playing mode of the terminal equipment. In the above process, when the folding angle is large, so that the distance between the first speaker and the second speaker satisfies the stereo playing distance, the audio playing mode of the first speaker and the second speaker can be set to be the stereo mode, and the audio which can be played by the first speaker and the second speaker can reach the stereo effect. When the folding angle is small, so that the distance between the first loudspeaker and the second loudspeaker does not satisfy the stereo playing distance, the audio playing mode of the first loudspeaker and the second loudspeaker can be set to be a non-stereo mode, and in the non-stereo mode, the waveforms of the audio played by the first loudspeaker and the second loudspeaker are the same, so that the interference between the audio played by the first loudspeaker and the second loudspeaker is reduced, and the audio playing effect is improved.
In addition to the embodiment shown in fig. 2, the embodiment shown in fig. 2 will be described in detail below with reference to the embodiment shown in fig. 3.
Fig. 3 is a flowchart illustrating a second audio control method according to an embodiment of the present invention. On the basis of the embodiment shown in fig. 2, referring to fig. 3, the method may include:
s301, acquiring a folding angle between a first partial screen and a second partial screen in the folding screen.
It should be noted that the execution process of S301 may refer to the execution process of S201, and is not described herein again.
S302, a first distance between the first loudspeaker and the folding shaft and a second distance between the second loudspeaker and the folding shaft are obtained.
Alternatively, the first distance and the second distance may be stored in a preset storage location of the terminal device. The first distance and the second distance stored in the preset storage position can be measured and stored in advance for a user.
Correspondingly, the first distance and the second distance can be directly obtained from the preset storage position.
S303, determining a third distance between the first loudspeaker and the second loudspeaker according to the first distance, the second distance and the folding angle.
Alternatively, the third distance may be determined by the above equation one.
S304, judging whether the third distance is larger than the preset distance.
If so, S305-S306 are performed.
If not, S307-S308 are executed.
S305, determining that the audio playing mode of the terminal equipment is a stereo mode.
S306, setting different phase parameters for the first loudspeaker and the second loudspeaker.
When the first loudspeaker and the second loudspeaker set different phase parameters, the phase of the audio played by the first loudspeaker is different from that of the audio played by the second loudspeaker. Accordingly, the audio played by the first speaker and the second speaker has a stereo effect.
S307, determining that the audio playing mode of the terminal equipment is a non-stereo mode.
And S308, setting the same phase parameters for the first loudspeaker and the second loudspeaker.
And when the first loudspeaker and the second loudspeaker set the same phase parameter, the phase of the audio played by the first loudspeaker is the same as that of the audio played by the second loudspeaker. Accordingly, the audio played by the first speaker and the second speaker does not have a stereo effect.
It should be noted that the execution processes of S305 to S308 may refer to the corresponding execution processes in 203, and are not described herein again.
In the embodiment shown in fig. 3, the audio playing mode can be accurately determined by the third distance between the first speaker and the second speaker. And then the terminal equipment can accurately set the parameters of the first loudspeaker and the second loudspeaker according to the audio playing mode. The audio playing effect is further improved.
It should be noted that fig. 3 illustrates an audio control method by way of example only, and the audio control method is not limited to this, and in the actual application process, the audio control method may be selected according to actual needs. For example, the audio playing mode of the terminal device may also be determined only by the folding angle between the first partial screen and the second partial screen.
The processing of the audio is further described below with reference to fig. 4.
Fig. 4 is a schematic diagram of an audio processing process according to an embodiment of the present invention. Referring to fig. 4, the apparatus includes an Application Processor (AP) 401, a DSP402, a Codec (Codec)403, a first speaker 404, and a second speaker 405.
Referring to fig. 4, the AP404 may determine the audio playing mode of the terminal device by the method shown in the above embodiment, and send the audio playing mode to the DSP 402. The DSP402 sets audio parameters of a first speaker and audio parameters of a second speaker, and the DSP402 sets the audio parameters of the first speaker and the audio parameters of the second speaker according to an audio playback mode.
When the terminal device needs to play audio, before the audio reaches the DSP402, the audio is copied into two identical pieces, the DSP402 processes one of the audio pieces according to the audio parameters of the first speaker, and the DSP402 processes the other audio piece according to the audio parameters of the second speaker. After the two processed audio signals reach the encoder 403, a Digital-to-analog converter (DAC) in the codec 403 respectively performs Digital-to-analog conversion on the two audio signals to obtain a first audio signal and a second audio signal, where the first audio signal is sent to the first speaker and the second audio signal is sent to the second speaker.
Fig. 5 is a schematic structural diagram of an audio control apparatus according to an embodiment of the present invention. The device is applied to terminal equipment, terminal equipment includes folding screen, folding axle, first speaker and second speaker, first speaker with the second speaker is located folding axle both sides. Referring to fig. 5, the apparatus includes an obtaining module 11, a determining module 12 and a setting module 13, wherein,
the obtaining module 11 is configured to obtain a folding angle between a first partial screen and a second partial screen in the folded screen, where the first partial screen and the second partial screen are rotatable along a folding axis of the terminal device;
the determining module 12 is configured to determine an audio playing mode of the terminal device according to the folding angle, where the audio playing mode includes a stereo mode and a monaural mode;
the setting module 13 is configured to set sound effect parameters of the first speaker and the second speaker according to an audio playing mode of the terminal device.
The audio control apparatus provided in the embodiment of the present invention may implement the technical solutions shown in the above method embodiments, and the implementation principles and beneficial effects thereof are similar, and are not described herein again.
In a possible implementation, the determining module 12 is specifically configured to:
judging whether the folding angle is larger than a preset angle or not;
if so, determining that the audio playing mode of the terminal equipment is a stereo mode;
and if not, determining that the audio playing mode of the terminal equipment is a non-stereo mode.
In another possible implementation, the determining module 12 is specifically configured to:
acquiring a first distance between the first loudspeaker and the folding shaft and a second distance between the second loudspeaker and the folding shaft;
determining a third distance between the first speaker and the second speaker according to the first distance, the second distance and the folding angle;
and setting an audio playing mode of the terminal equipment according to the third distance.
In another possible implementation, the determining module 12 is specifically configured to:
judging whether the third distance is greater than a preset distance, wherein the preset distance is the minimum distance for realizing stereo sound effect;
if so, determining that the audio playing mode of the terminal equipment is a stereo mode;
and if not, determining that the audio playing mode of the terminal equipment is a non-stereo mode.
In another possible implementation, the setting module 13 is specifically configured to:
when the audio playing mode is a stereo mode, setting different phase parameters for the first loudspeaker and the second loudspeaker so as to enable the phase of the audio played by the first loudspeaker to be different from the phase of the audio played by the second loudspeaker;
and when the audio playing mode is a non-stereo mode, setting the same phase parameters for the first loudspeaker and the second loudspeaker so as to enable the phase of the audio played by the first loudspeaker to be the same as the phase of the audio played by the second loudspeaker.
The audio control apparatus provided in the embodiment of the present invention may implement the technical solutions shown in the above method embodiments, and the implementation principles and beneficial effects thereof are similar, and are not described herein again.
An embodiment of the present invention provides a terminal device, including: a processor coupled with a memory;
the memory is used for storing a computer program;
the processor is configured to execute the computer program stored in the memory to enable the terminal device to perform the method according to any of the method embodiments described above.
Embodiments of the invention provide a readable storage medium comprising a program or instructions for performing a method as described in any of the method embodiments above when the program or instructions are run on a computer.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the embodiments of the present invention, and are not limited thereto; although embodiments of the present invention have been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the embodiments of the present invention.

Claims (10)

1. An audio control method is applied to a terminal device, wherein the terminal device comprises a folding screen, a folding shaft, a first loudspeaker and a second loudspeaker, and the first loudspeaker and the second loudspeaker are positioned on two sides of the folding shaft, and the method comprises the following steps:
acquiring a folding angle between a first part of screen and a second part of screen in the folding screen, wherein the first part of screen and the second part of screen can rotate along a folding axis of the terminal equipment;
determining an audio playing mode of the terminal equipment according to the folding angle, wherein the audio playing mode comprises a stereo mode and a monaural mode;
and setting sound effect parameters of the first loudspeaker and the second loudspeaker according to the audio playing mode of the terminal equipment.
2. The method according to claim 1, wherein the determining the audio playing mode of the terminal device according to the folding angle comprises:
judging whether the folding angle is larger than a preset angle or not;
if so, determining that the audio playing mode of the terminal equipment is a stereo mode;
and if not, determining that the audio playing mode of the terminal equipment is a non-stereo mode.
3. The method according to claim 1, wherein the determining the audio playing mode of the terminal device according to the folding angle comprises:
acquiring a first distance between the first loudspeaker and the folding shaft and a second distance between the second loudspeaker and the folding shaft;
determining a third distance between the first speaker and the second speaker according to the first distance, the second distance and the folding angle;
and setting an audio playing mode of the terminal equipment according to the third distance.
4. The method according to claim 3, wherein the determining the audio playing mode of the terminal device according to the third distance comprises:
judging whether the third distance is greater than a preset distance, wherein the preset distance is the minimum distance for realizing stereo sound effect;
if so, determining that the audio playing mode of the terminal equipment is a stereo mode;
and if not, determining that the audio playing mode of the terminal equipment is a non-stereo mode.
5. The method according to claim 2 or 4, wherein setting the sound effect parameters of the first speaker and the second speaker according to the audio playing mode of the terminal device comprises:
when the audio playing mode is a stereo mode, setting different phase parameters for the first loudspeaker and the second loudspeaker so as to enable the phase of the audio played by the first loudspeaker to be different from the phase of the audio played by the second loudspeaker;
and when the audio playing mode is a non-stereo mode, setting the same phase parameters for the first loudspeaker and the second loudspeaker so as to enable the phase of the audio played by the first loudspeaker to be the same as the phase of the audio played by the second loudspeaker.
6. An audio control device is applied to terminal equipment, the terminal equipment comprises a folding screen, a folding shaft, a first loudspeaker and a second loudspeaker, the first loudspeaker and the second loudspeaker are positioned on two sides of the folding shaft, the device comprises an acquisition module, a determination module and a setting module, wherein,
the obtaining module is used for obtaining a folding angle between a first part screen and a second part screen in the folding screen, and the first part screen and the second part screen can rotate along a folding axis of the terminal device;
the determining module is used for determining an audio playing mode of the terminal equipment according to the folding angle, wherein the audio playing mode comprises a stereo mode and a monaural mode;
the setting module is used for setting sound effect parameters of the first loudspeaker and the second loudspeaker according to the audio playing mode of the terminal equipment.
7. The apparatus of claim 6, wherein the determining module is specifically configured to:
judging whether the folding angle is larger than a preset angle or not;
if so, determining that the audio playing mode of the terminal equipment is a stereo mode;
and if not, determining that the audio playing mode of the terminal equipment is a non-stereo mode.
8. The apparatus of claim 6, wherein the determining module is specifically configured to:
acquiring a first distance between the first loudspeaker and the folding shaft and a second distance between the second loudspeaker and the folding shaft;
determining a third distance between the first speaker and the second speaker according to the first distance, the second distance and the folding angle;
and setting an audio playing mode of the terminal equipment according to the third distance.
9. The apparatus of claim 8, wherein the determining module is specifically configured to:
judging whether the third distance is greater than a preset distance, wherein the preset distance is the minimum distance for realizing stereo sound effect;
if so, determining that the audio playing mode of the terminal equipment is a stereo mode;
and if not, determining that the audio playing mode of the terminal equipment is a non-stereo mode.
10. The apparatus according to claim 7 or 9, wherein the setting module is specifically configured to:
when the audio playing mode is a stereo mode, setting different phase parameters for the first loudspeaker and the second loudspeaker so as to enable the phase of the audio played by the first loudspeaker to be different from the phase of the audio played by the second loudspeaker;
and when the audio playing mode is a non-stereo mode, setting the same phase parameters for the first loudspeaker and the second loudspeaker so as to enable the phase of the audio played by the first loudspeaker to be the same as the phase of the audio played by the second loudspeaker.
CN201811092730.3A 2018-09-19 2018-09-19 Audio control method and device Pending CN110933217A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811092730.3A CN110933217A (en) 2018-09-19 2018-09-19 Audio control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811092730.3A CN110933217A (en) 2018-09-19 2018-09-19 Audio control method and device

Publications (1)

Publication Number Publication Date
CN110933217A true CN110933217A (en) 2020-03-27

Family

ID=69855131

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811092730.3A Pending CN110933217A (en) 2018-09-19 2018-09-19 Audio control method and device

Country Status (1)

Country Link
CN (1) CN110933217A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111756893A (en) * 2020-05-29 2020-10-09 维沃移动通信有限公司 Audio output method, electronic device, and medium
CN112882542A (en) * 2021-02-10 2021-06-01 联想(北京)有限公司 Electronic equipment and control method
CN116320150A (en) * 2023-03-16 2023-06-23 珠海市魅族科技有限公司 Folding screen mobile terminal and loudspeaker control method thereof
WO2023192046A1 (en) * 2022-03-29 2023-10-05 Dolby Laboratories Licensing Corporation Context aware audio capture and rendering

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853521A (en) * 2012-12-03 2014-06-11 三星电子株式会社 Portable apparatus having a plurality of touch screens and method of outputting sound thereof
US20140241551A1 (en) * 2013-02-27 2014-08-28 Samsung Electronics Co., Ltd. Electronic device sound reproduction system
CN108040313A (en) * 2017-11-30 2018-05-15 维沃移动通信有限公司 A kind of play parameter control method and electronic equipment
CN108134868A (en) * 2017-01-03 2018-06-08 中兴通讯股份有限公司 A kind of speaker control method and mobile terminal
CN108551636A (en) * 2018-05-29 2018-09-18 维沃移动通信有限公司 A kind of speaker control method and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853521A (en) * 2012-12-03 2014-06-11 三星电子株式会社 Portable apparatus having a plurality of touch screens and method of outputting sound thereof
US20140241551A1 (en) * 2013-02-27 2014-08-28 Samsung Electronics Co., Ltd. Electronic device sound reproduction system
CN108134868A (en) * 2017-01-03 2018-06-08 中兴通讯股份有限公司 A kind of speaker control method and mobile terminal
CN108040313A (en) * 2017-11-30 2018-05-15 维沃移动通信有限公司 A kind of play parameter control method and electronic equipment
CN108551636A (en) * 2018-05-29 2018-09-18 维沃移动通信有限公司 A kind of speaker control method and mobile terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111756893A (en) * 2020-05-29 2020-10-09 维沃移动通信有限公司 Audio output method, electronic device, and medium
CN112882542A (en) * 2021-02-10 2021-06-01 联想(北京)有限公司 Electronic equipment and control method
WO2023192046A1 (en) * 2022-03-29 2023-10-05 Dolby Laboratories Licensing Corporation Context aware audio capture and rendering
CN116320150A (en) * 2023-03-16 2023-06-23 珠海市魅族科技有限公司 Folding screen mobile terminal and loudspeaker control method thereof

Similar Documents

Publication Publication Date Title
CN110933217A (en) Audio control method and device
US9215528B2 (en) Flat panel electronic device and audio playing apparatus thereof
CN106470379B (en) Method and apparatus for processing audio signal based on speaker position information
US20160330562A1 (en) Calibration of virtual height speakers using programmable portable devices
CN106507251A (en) Stereo and FILTER TO CONTROL for multiple loudspeaker device
US20150172817A1 (en) Accoustic speaker system
CN109302525B (en) Method for playing sound and multi-screen terminal
CN103327156A (en) Method and device for outputting audio files
CN112911065B (en) Audio playing method and device for terminal, electronic equipment and storage medium
CN107017000B (en) Apparatus, method and computer program for encoding and decoding an audio signal
US20150310874A1 (en) Adaptive audio signal filtering
EP3422735A1 (en) Sound collecting apparatus
CN103987000A (en) Audio frequency correction method and terminal
WO2024037189A1 (en) Acoustic image calibration method and apparatus
JP5598589B1 (en) Equalizer device and equalizer program
CN102387446B (en) Sound equipment structure and electronic device using the same
CN108769864B (en) Audio equalization processing method and device and electronic equipment
CN113055789B (en) Single sound channel sound box, method and system for increasing surround effect in single sound channel sound box
US10362396B2 (en) Phase control signal generation device, phase control signal generation method, and phase control signal generation program
CN112738692B (en) Filter design method, device, earphone, electronic equipment and storage medium
CN108574914B (en) Method and device for adjusting multicast playback file of sound box and receiving end
CN114067817A (en) Bass enhancement method, bass enhancement device, electronic equipment and storage medium
CN211352437U (en) Audio output device and electronic equipment
KR20210028124A (en) Loudspeaker system with active directivity control
EP3718312A1 (en) Processing audio signals

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200327