WO2014187099A1 - 一种播放音频的方法及装置 - Google Patents

一种播放音频的方法及装置 Download PDF

Info

Publication number
WO2014187099A1
WO2014187099A1 PCT/CN2013/088064 CN2013088064W WO2014187099A1 WO 2014187099 A1 WO2014187099 A1 WO 2014187099A1 CN 2013088064 W CN2013088064 W CN 2013088064W WO 2014187099 A1 WO2014187099 A1 WO 2014187099A1
Authority
WO
WIPO (PCT)
Prior art keywords
speaker
mobile terminal
speakers
spatial attitude
information
Prior art date
Application number
PCT/CN2013/088064
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 华为技术有限公司
Priority to EP13876772.8A priority Critical patent/EP2827614B1/en
Priority to US14/489,735 priority patent/US9503831B2/en
Publication of WO2014187099A1 publication Critical patent/WO2014187099A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S1/00Two-channel systems
    • 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
    • H04R2205/00Details of stereophonic arrangements covered by H04R5/00 but not provided for in any of its subgroups
    • H04R2205/024Positioning of loudspeaker enclosures for spatial sound reproduction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/03Connection circuits to selectively connect loudspeakers or headphones to amplifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2499/00Aspects covered by H04R or H04S not otherwise provided for in their subgroups
    • H04R2499/10General applications
    • H04R2499/11Transducers incorporated or for use in hand-held devices, e.g. mobile phones, PDA's, camera's

Definitions

  • the present invention relates to the field of audio playback, and in particular, to a method and apparatus for playing audio.
  • the mobile terminal uses a dual speaker to play an audio signal, and while the audio signal is fixedly played through the left channel, the other audio signal is fixedly played through the right channel to achieve a stereo effect.
  • Mobile terminals such as mobile phones and tablet computers can be used to play multimedia files, and the multimedia files to be played are composed of two parts: audio information and video information.
  • the mobile terminal is provided with two speakers, and the two speakers are respectively disposed on the left and right sides of the mobile terminal with respect to the mobile terminal.
  • the left channel of the audio information is played through the speaker on the left side of the mobile terminal
  • the right channel of the audio information is played through the speaker on the right side of the mobile terminal to achieve a stereo sound effect.
  • the channel refers to independent audio signals that are collected or played back in different spatial positions during recording or playback.
  • the left channel that is, the low-audio area signal is compressed, plays the track that passes through, and simulates the sound output generated by the hearing range of the human left ear, and the right channel is opposite to the left channel.
  • the inventor finds that at least the following problems exist in the prior art:
  • the spatial posture of the mobile terminal changes, wherein the video information will follow the spatial posture of the mobile terminal.
  • the change of the change, but the audio information broadcast by the two speakers is fixed, so that the audio information that should be broadcast through the speaker on the right side of the mobile terminal is wrong in the mobile terminal
  • the speaker on the left side outputs, causing the output audio information to not match the video information displayed on the mobile terminal.
  • An embodiment of the present invention provides a method and an apparatus for playing audio, which are used to solve the problem that the audio information output by the mobile terminal and the mobile terminal are displayed due to the change of the spatial posture of the mobile terminal in the process of playing the multimedia file in the prior art.
  • an embodiment of the present invention provides a method for playing audio, including: acquiring spatial attitude information when a mobile terminal performs screen rotation, where the spatial posture information is a space of a mobile terminal collected according to the spatial attitude sensor. Information generated by the posture position information; controlling the audio content played by each speaker according to the spatial posture information, so that the speaker located on the left side of the currently played video information plays the left channel, located on the right side of the currently played video information The speaker plays the right channel.
  • the controlling the audio content played by each speaker according to the spatial attitude information comprises: according to the spatial attitude information, from the at least three speakers Selecting at least one pair of speakers; controlling a first speaker of the at least one pair of speakers to play a left channel, a second speaker of the at least one pair of speakers playing a right channel, wherein the first speaker is located at the current On the left side of the played video information, the second speaker is located on the right side of the currently played video information.
  • controlling the audio content played by each speaker according to the spatial attitude information further includes: if the at least three speakers are There are remaining speakers in addition to at least one pair of speakers, which are controlled to silence the remaining speakers.
  • the controlling the audio content played by each speaker according to the spatial attitude information comprises: acquiring a spatial attitude change rate, according to the spatial attitude change rate and Determining, by the preset rate threshold, whether the spatial attitude of the mobile terminal changes slowly; if the spatial attitude of the mobile terminal changes slowly, according to the spatial attitude information And the spatial attitude change rate controls the volume of the left channel and the right channel played by each of the at least three speakers, so that the sound field intensity of the left and right sides of the currently played video information is maintained during the volume change process. equal.
  • the spatial attitude information includes an angle and an angle. Acceleration and rate of angular change.
  • an embodiment of the present invention provides a mobile terminal, including a spatial attitude sensor and at least three speakers, wherein the at least three speakers are not in the same line, and the mobile terminal further includes: an acquiring unit, where the mobile terminal performs And the spatial attitude information is information generated according to the spatial posture position information of the mobile terminal collected by the spatial attitude sensor;
  • control unit configured to control, according to the spatial attitude information acquired by the acquiring unit, the audio content played by each speaker, so that the speaker located on the left side of the currently played video information plays the left channel, located in the currently played video information.
  • the right speaker plays the right channel.
  • control unit in combination with the implementation of the second aspect, includes:
  • Selecting a subunit configured to select at least one pair of speakers from the at least three speakers according to the spatial attitude information acquired by the acquiring unit;
  • a first execution subunit controlling a first speaker of the at least one pair of speakers selected by the selection subunit to play a left channel, and a second speaker of the at least one pair of speakers playing a right channel, wherein the first The speaker is located on the left side of the currently played video information, and the second speaker is located on the right side of the currently played video information.
  • control unit further includes:
  • a second execution subunit configured to: if there is at least one pair of speakers selected from the selection subunit of at least 3 speakers, there are remaining speakers, and the remaining speakers are controlled to mute the remaining speakers.
  • control unit in combination with the implementation manner of the second aspect, include:
  • a determining subunit configured to determine, according to the spatial attitude change rate acquired by the acquiring subunit and a preset rate threshold, whether the spatial posture of the mobile terminal changes slowly;
  • a third execution subunit configured to: if the determining subunit determines that the spatial attitude change of the mobile terminal is slow, control a left sound played by each of the at least three speakers according to the spatial attitude information and the spatial attitude change rate
  • the volume of the channel and the right channel are such that the intensity of the sound field on the left and right sides of the currently played video information remains equal during the volume change.
  • the mobile terminal further includes:
  • the spatial attitude information includes an angle, an angular acceleration, and an angular rate of change.
  • the method and device for playing audio when the mobile terminal performs screen rotation, acquiring spatial posture information, and controlling audio content played by each speaker according to the spatial posture information, so as to be located in the current play.
  • the speaker on the left side of the video information plays the left channel
  • the speaker located on the right side of the currently played video information plays the right channel, so that the currently played video information always corresponds to the audio content;
  • the audio content played by each speaker is controlled by acquiring the spatial attitude information of the mobile terminal, so that the video information currently played by the mobile terminal always corresponds to the audio content, and the mobile terminal that exists in the prior art is used to perform the screen.
  • the problem that the video information currently played by the mobile terminal does not match the audio content when rotated.
  • 1A is a flowchart of a method for playing audio according to an embodiment of the present invention
  • FIG. 1B is a flow chart of step 102 in the flow chart shown in FIG. 1 of the present invention.
  • FIG. 2 is a schematic diagram of a mobile terminal in a method for playing audio according to another embodiment of the present invention
  • FIG. 3 is a flowchart of a method for playing audio according to another embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a mobile terminal in a method for playing audio according to another embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a gesture of a mobile terminal for playing a method according to another embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a gesture of a mobile terminal for playing a method according to another embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of an apparatus for playing audio according to an embodiment of the present invention.
  • FIG 8 is a schematic structural view 1 of the control unit in the structural diagram shown in Figure 7;
  • FIG. 9 is a schematic structural view 2 of the control unit in the structural diagram shown in FIG. 7;
  • FIG 10 is a schematic structural view 3 of the control unit in the structural diagram shown in Figure 7;
  • FIG. 11 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
  • the method and device for playing audio are provided to solve the problem that the video information currently played by the mobile terminal does not match the audio content when the mobile terminal in the prior art performs screen rotation.
  • a method and an apparatus for playing audio provided by an embodiment of the present invention are described in detail below with reference to the accompanying drawings.
  • a method for playing audio is provided for a mobile terminal having a spatial attitude sensor, the mobile terminal includes at least three speakers, and the at least three speakers are not in the same line. , including:
  • Step 101 Acquire spatial attitude information when the mobile terminal performs screen rotation, where the spatial posture information is information generated according to spatial attitude position information of the mobile terminal collected by the spatial attitude sensor.
  • the spatial attitude information includes an angle, an angular acceleration, and an angular change rate;
  • Attitude sensors include, but are not limited to, gravity sensors, magnetic sensors, and the like.
  • Step 102 Control audio content played by each speaker according to the spatial attitude information, so that the speaker on the left side of the currently played video information plays a left channel, and the speaker located on the right side of the currently played video information plays a right sound. Road.
  • the step 102 includes:
  • Step 1021 Select at least one pair of speakers from the at least three speakers according to the spatial posture information.
  • Step 1022 Control a first speaker of the at least one pair of speakers to play a left channel, and a second speaker of the at least one pair of speakers plays a right channel, where the first speaker is located at a left of the currently played video information. On the side, the second speaker is located on the right side of the currently played video information.
  • the controlling the audio content played by each speaker according to the spatial attitude information may further include: acquiring space a posture change rate, determining whether the spatial attitude of the mobile terminal changes slowly according to the spatial attitude change rate and a preset rate threshold; if the spatial attitude change of the mobile terminal is slow, according to the spatial attitude information and the spatial attitude change The rate controls the volume of the left channel and the right channel played by each of the at least three speakers.
  • a method for playing audio according to an embodiment of the present invention is: when the mobile terminal performs screen rotation, acquiring spatial posture information, and controlling audio content played by each speaker according to the spatial posture information, so as to be located in the currently played video.
  • the speaker on the left side of the information plays the left channel
  • the speaker located on the right side of the currently played video information plays the right channel, so that the currently played video information always corresponds to the audio content
  • Controlling the audio content played by each speaker by acquiring the spatial posture information of the mobile terminal, so that the video information currently played by the mobile terminal always corresponds to the audio content, which solves the problem that the mobile terminal in the prior art performs screen rotation.
  • the problem that the video information currently played by the mobile terminal does not match the audio content.
  • Another embodiment of the present invention provides a method for playing audio, which is used in a mobile terminal, the mobile terminal includes a gravity sensor and three speakers, and three speakers are respectively a speaker eight and a speaker B. And a speaker C, wherein, as shown in FIG. 2, in the case of the posture 1, the speaker A is located at the lower left of the mobile terminal, the speaker B is located at the lower right of the mobile terminal, and the speaker C is located at the upper right of the mobile terminal.
  • the method for playing audio includes:
  • Step 301 Acquire spatial attitude information and a spatial attitude change rate when the mobile terminal performs screen rotation.
  • the screen displayed on the mobile terminal may rotate, specifically, for example,
  • the mobile terminal takes the attitude 1 as the reference attitude.
  • the screen display of the mobile terminal is rotated by 90 degrees, as shown in FIG. 4, the posture 1 is rotated clockwise.
  • 90 degrees when the mobile terminal is in the state of the attitude 2, the screen display of the mobile terminal is also rotated by 90 degrees; when the mobile terminal rotates by more than 150 degrees with the attitude 1 as the reference attitude, the screen display of the mobile terminal is rotated by 180 degrees.
  • FIG. 1 the mobile terminal rotates by more than 60 degrees with the attitude 1 as the reference attitude
  • the screen display of the mobile terminal is rotated by 90 degrees, as shown in FIG. 4
  • the posture 1 is rotated clockwise.
  • 90 degrees when the mobile terminal is in the state of the attitude 2
  • the screen display of the mobile terminal is also rotated by 90 degrees
  • the screen display of the mobile terminal is rotated by 180 degrees.
  • the spatial attitude information is information generated according to position information of the mobile terminal collected by the gravity sensor, including an angle, an angular acceleration, and an angular change rate.
  • Step 302 Determine whether the mobile terminal spatial posture changes slowly according to the spatial attitude change rate and the preset rate threshold. If the mobile terminal spatial posture changes slowly, step 304 is performed; otherwise, step 303 is performed.
  • Step 303 Select a pair of speakers from the three speakers according to the spatial attitude information, and control a first speaker of the pair of speakers to play a left channel, and a second speaker of the pair of speakers plays a right The channel, the remaining speakers except one pair of speakers are muted.
  • the first speaker is located on the left side of the currently played video information, and the second speaker is located on the right side of the currently played video information.
  • the speaker A is located at the upper left of the mobile terminal according to the spatial attitude information, and the speaker B is located at the left of the mobile terminal.
  • the speaker C is located at the lower right of the speaker, from which the speaker is selected ⁇
  • the speaker C is a pair of speakers. At this time, the speaker A is muted, the speaker B plays the left channel, and the speaker C plays the right channel.
  • the speaker A is located at the upper right of the mobile terminal according to the spatial attitude information
  • the speaker B is located at the upper left of the mobile terminal
  • the speaker C is Located at the lower left of the speaker, select the speaker eight, and the speaker B is a pair of speakers.
  • the control speaker C is muted, the speaker B plays the left channel, and the speaker A plays the right channel.
  • the speaker A is located at the lower right of the mobile terminal according to the spatial attitude information
  • the speaker B is located at the upper right of the mobile terminal
  • the speaker C is Located at the upper left of the speaker, select the speaker eight, and the speaker C is a pair of speakers.
  • the control speaker B is muted, the speaker C plays the left channel, and the speaker A plays the right channel.
  • Step 304 If the spatial attitude change of the mobile terminal is slow, control the volume of the left channel and the right channel played by each speaker according to the spatial attitude information and the spatial attitude change rate, so as to make the currently played video information The intensity of the sound field on both sides remains equal during the volume change.
  • the control speaker A, the speaker B, and the speaker C both play the left and right channels, and the posture is based on the speaker A at the mobile terminal.
  • the left channel right channel volume played in the control speaker A is uniformly reduced according to the spatial attitude change rate
  • the left channel volume played in the speaker B is increased according to the spatial attitude change rate.
  • the right channel volume is reduced according to the spatial attitude change rate
  • the left channel volume played in the speaker C is uniformly reduced according to the spatial attitude change rate
  • the right channel volume is uniformly increased according to the spatial attitude change rate, during the volume change process.
  • the volume of the left and right channels played by controlling the speaker A and the volume of the left and right channels played by the speaker B are equal to the volume of the left and right channels played by the speaker C, so that the currently played video information is The intensity of the sound field on the left and right sides remains equal during the volume change.
  • the left channel right channel volume played in the sound A is reduced to 0, that is, the speaker A is in the mute state
  • the right channel volume played in the speaker B is reduced to 0, that is, the speaker B plays the left channel
  • the speaker C plays the broadcast.
  • the volume of the left channel is reduced to 0, that is, the speaker C plays the right channel.
  • the control speaker A, the speaker B, and the speaker C both play the left and right channels, and the posture is based on the speaker A at the mobile terminal.
  • the left channel volume played in the control speaker A is reduced according to the spatial attitude change rate
  • the right channel volume is increased according to the spatial attitude change rate
  • the left sound played in the speaker B The volume of the channel increases uniformly according to the rate of change of the spatial attitude
  • the volume of the right channel decreases uniformly according to the rate of change of the spatial attitude.
  • the volume of the left channel and the right channel of the speaker C are uniformly reduced according to the rate of change of the spatial attitude, during the volume change process.
  • the volume of the left and right channels played by controlling the speaker B and the volume of the left and right channels played by the speaker B are equal to the volume of the left and right channels played by the speaker A, so that the currently played video information is The intensity of the sound field on the left and right sides remains equal during the volume change, and finally, when the mobile terminal is gestured 1 After changing to pose 3, the volume of the left channel played in speaker A is reduced to 0, that is, speaker A plays the right channel, and the volume of the right channel played in speaker B is reduced to 0, that is, speaker B plays the left channel, the speaker The left channel right channel volume played in C is reduced to 0, that is, the speaker C is in the mute state.
  • the control speaker A, the speaker B, and the speaker C both play the left and right channels, and the posture is based on the speaker A at the mobile terminal.
  • the left channel volume played in the control speaker A is reduced according to the spatial attitude change rate
  • the right channel volume is increased according to the spatial attitude change rate
  • the left sound played in the speaker B The right channel volume is uniformly reduced according to the spatial attitude change rate
  • the left channel volume played in the speaker C is uniformly increased according to the spatial attitude change rate
  • the right channel volume is uniformly decreased according to the spatial attitude change rate, during the volume change process.
  • the volume of the left and right channels played by controlling the speaker A and the volume of the left and right channels played by the speaker B are equal to the volume of the left and right channels played by the speaker C, so that the currently played video information is The intensity of the sound field on the left and right sides remains equal during the volume change, and finally, when the mobile terminal is gestured 1 After changing to pose 4, the left channel volume played in speaker A is reduced to 0, that is, speaker A plays the right channel, and the left channel right channel volume played in speaker B is reduced to 0, that is, speaker B is muted. In the state, the volume of the right channel played in the speaker C is reduced to 0, that is, the speaker C plays the left channel.
  • a method for playing audio provided by an embodiment of the present invention due to screen rotation on a mobile terminal Obtaining spatial attitude information, controlling audio content played by each speaker according to the spatial posture information, so that the speaker located on the left side of the currently played video information plays a left channel, located in the currently played video The speaker on the right side of the information plays the right channel, so that the currently played video information always corresponds to the audio content; compared with the prior art, the audio content played by each speaker is controlled by acquiring the spatial attitude information of the mobile terminal, The video information currently played by the mobile terminal is always corresponding to the audio content, which solves the problem that the video information currently played by the mobile terminal does not match the audio content when the mobile terminal performs screen rotation in the prior art.
  • an apparatus for playing audio includes a spatial attitude sensor and at least three speakers, wherein the at least three speakers are not on the same line, and the apparatus for playing audio, Also includes:
  • the acquiring unit 71 is configured to acquire spatial attitude information when the mobile terminal performs screen rotation, where the spatial attitude information is information generated according to spatial attitude position information of the mobile terminal collected by the spatial attitude sensor; Step 101 shown in FIG. 1 is the same and will not be described again here.
  • the spatial attitude information includes an angle, an angular acceleration, and an angular rate of change; the spatial attitude sensor includes, but is not limited to, a gravity sensor, a magnetic sensor, and the like.
  • the control unit 72 is configured to control the audio content played by each speaker according to the spatial posture information acquired by the acquiring unit, so that the speaker located on the left side of the currently played video information plays the left channel, and is located in the currently played video.
  • the speaker on the right side of the information plays the right channel; the specific implementation is the same as the step 102 shown in FIG. 1 , and details are not described herein again.
  • control unit 72 includes:
  • a selection subunit 81 configured to select at least one pair of speakers from the at least three speakers according to the spatial attitude information acquired by the acquiring unit; the specific implementation is the same as step 303 shown in FIG. No longer.
  • a first execution sub-unit 82 controlling a first speaker of the at least one pair of speakers selected by the selection sub-unit to play a left channel, and a second speaker of the at least one pair of speakers playing a right channel, wherein the A speaker is located on the left side of the currently played video information, and the second speaker is located on the right side of the currently played video information.
  • the control unit 72 further includes:
  • a second execution subunit 91 configured to: if there are remaining speakers of at least 3 speakers other than the at least one pair of speakers selected by the selection subunit, control the remaining speakers to silence the remaining speakers;
  • the specific implementation is the same as step 303 shown in FIG. 3, and details are not described herein again.
  • control unit 72 further includes:
  • the obtaining sub-unit 1001 is used to obtain the spatial attitude change rate; the specific implementation is the same as the step 301 shown in FIG. 3, and details are not described herein again.
  • the determining sub-unit 1002 is configured to determine, according to the rate of change of the spatial attitude and the rate threshold that is obtained by the acquiring sub-unit, whether the spatial posture of the mobile terminal changes slowly; the specific implementation is the same as the step 302 shown in FIG. I will not repeat them here.
  • the process proceeds to the third execution subunit 1003, and if the determining subunit determines that the spatial posture change of the mobile terminal is normal, the process proceeds to the selection subunit. 81.
  • a third execution subunit 1003, configured to: if the determining subunit determines that the spatial posture of the mobile terminal changes slowly, control, according to the spatial attitude information and the spatial attitude change rate, the left speaker of each of the at least three speakers The volume of the channel and the right channel, so that the intensity of the sound field on the left and right sides of the currently played video information remains equal during the volume change; the specific implementation is the same as step 304 shown in FIG. 3, and is no longer here. Narration.
  • An apparatus for playing audio which acquires spatial attitude information when the mobile terminal performs screen rotation, and controls audio content played by each speaker according to the spatial posture information, so that the currently played video is located.
  • the speaker on the left side of the information plays the left channel
  • the speaker located on the right side of the currently played video information plays the right channel, so that the currently played video information always corresponds to the audio content;
  • Controlling the audio content played by each speaker by acquiring the spatial posture information of the mobile terminal, so that the video information currently played by the mobile terminal always corresponds to the audio content, which solves the problem that the mobile terminal in the prior art performs screen rotation.
  • the problem that the video information currently played by the mobile terminal does not match the audio content.
  • another embodiment of the present invention provides a mobile terminal, including a screen 1101, a spatial attitude sensor 1102, at least three speakers 1103, and a processor 1104.
  • the screen 1101 is configured to display video information played by the mobile terminal.
  • the spatial attitude sensor 1102 is configured to collect spatial attitude information of the mobile terminal.
  • the at least three speakers 1103 are configured to output audio content played by the mobile terminal.
  • the at least three speakers 1103 include: a speaker 1, a speaker 2, a speaker 3, a speaker n.
  • the processor 1104 is configured to control audio content played by each speaker according to the spatial posture information, so that the speaker located on the left side of the mobile terminal plays a left channel, and the speaker located on the right side of the mobile terminal plays Right channel.
  • the spatial attitude information is information generated according to location information of the mobile terminal collected by the spatial attitude sensor.
  • the processor 1104 is specifically configured to determine, according to the spatial attitude change rate and a preset rate threshold, whether the spatial posture of the mobile terminal changes slowly. If the spatial attitude change of the mobile terminal is slow, controlling the volume of the left channel and the right channel played by each of the at least three speakers according to the spatial attitude information and the spatial attitude change rate; otherwise, according to the The spatial attitude information selects at least one pair of speakers from the at least three speakers, controls a first speaker of the at least one pair of speakers to play a left channel, and a second speaker of the at least one pair of speakers plays a right channel
  • the first speaker is located on the left side of the currently played video information
  • the second speaker is located on the right side of the currently played video information
  • if the at least three speakers are at least one of the at least one speaker There are also remaining speakers in addition to the speakers, which are controlled to silence the remaining speakers.
  • a mobile terminal obtains spatial attitude information when the mobile terminal performs screen rotation, and controls audio content played by each speaker according to the spatial posture information, so that the video currently located in the mobile terminal is played.
  • the speaker on the left side of the information plays the left channel
  • the speaker located on the right side of the video information currently played by the mobile terminal plays the right channel, so that the video information currently played by the mobile terminal always corresponds to the audio content;
  • the audio content played by each speaker is controlled by acquiring the spatial attitude information of the mobile terminal, so that the video information currently played by the mobile terminal always corresponds to the audio content, and the mobile terminal existing in the prior art is solved.
  • the video information currently played by the mobile terminal does not match the audio content when the screen is rotated. Question.
  • Computer readable media includes both computer storage media and communication media, including communication media including any medium that facilitates transfer of a computer program from one location to another.
  • a storage medium may be any available media that can be accessed by a computer.
  • computer readable media may comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage media or other magnetic storage device, or can be used for carrying or storing in the form of an instruction or data structure.
  • the desired program code and any other medium that can be accessed by the computer may suitably be a computer readable medium.
  • the software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable , fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, wireless, and microwaves are included in the fixing of the associated media.
  • coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, wireless, and microwaves are included in the fixing of the associated media.
  • a disk and a disc include a compact disc (CD), a laser disc, a compact disc, a digital versatile disc (DVD), a floppy disc, and a Blu-ray disc, wherein the disc is usually magnetically copied, and the disc is The laser is used to optically replicate the data. Combinations of the above should also be included within the scope of the computer readable media.

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Stereophonic System (AREA)
  • Telephone Function (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

一种播放音频的方法及装置,应用于音频播放领域,用于解决在播放多媒体文件的过程中由于移动终端的空间姿态的变化,移动终端播放的音频信息和视频信息不匹配的问题。一种播放音频的方法,用于具有空间姿态传感器的移动终端,该移动终端包括至少3个扬声器,所述至少3个扬声器不处于同一直线上,该方法包括:在移动终端进行屏幕旋转时,获取空间姿态信息(101);根据所述空间姿态信息控制各个扬声器播放的音频内容,以使得位于当前播放的视频信息的左侧的所述扬声器播放左声道,位于当前播放的视频信息的右侧的扬声器播放右声道(102)。该播放音频的方法及装置可以应用于具有空间姿态传感器的移动终端。

Description

一种播放音频的方法及装置 本申请要求于 2013年 5月 22日提交中国专利局、申请号为 201310194267.4、 发明名称为 "一种播放音频的方法及装置" 的中国专利申请的优先权, 其全部 内容通过引用结合在本申请中。 技术领域
本发明涉及音频播放领域, 尤其涉及一种播放音频的方法及装置。
背景技术
随着社会发展, 越来越多的多媒体文件在移动终端上进行播放, 在播放过 程中, 由于声道输出的音频信号方向固定, 进而如何使得播放的声音效果随移 动终端空间姿态的改变而改变成为待解决问题。 现有技术中, 移动终端使用双 扬声器播放音频信号, 一边通过左声道固定播放音频信号, 一边通过右声道固 定播放另一音频信号, 以实现立体声效果。
手机、 平板电脑等移动终端可以用来播放多媒体文件, 其中播放的多媒体 文件多由音频信息和视频信息两部分组成。
目前, 移动终端上多设置有双扬声器, 双扬声器相对于所述移动终端, 分 别设置在所述移动终端的左右两侧。 通过移动终端左侧的扬声器播放音频信息 的左声道, 同时通过移动终端右侧的扬声器播放音频信息的右声道以实现立体 声效果。 其中, 声道是指声音在录制或播放时在不同空间位置采集或回放的相 互独立的音频信号。 其中, 左声道即低音频区信号压缩后播放所通过的音轨, 模拟人类左耳的听觉范围产生的声音输出, 右声道与所述左声道相对。
在实现本发明实施例的过程中, 发明人发现现有技术中至少存在如下问题: 在播放多媒体文件的过程中, 移动终端的空间姿态会发生变化, 其中视频信息 会随着移动终端的空间姿态的变化而变化, 但是双扬声器播出的音频信息是固 定的, 使得本应通过移动终端右侧的扬声器播出的音频信息错误的在移动终端 左侧的扬声器进行输出, 导致输出的音频信息和移动终端显示的视频信息不匹 配。
发明内容
本发明的实施例提供一种播放音频的方法及装置, 用于解决现有技术中, 在播放多媒体文件的过程中由于移动终端的空间姿态的变化, 移动终端输出的 音频信息和移动终端显示的视频信息不匹配的问题。
为达到上述目的, 本发明的实施例采用如下技术方案:
第一方面, 本发明实施例提供一种播放音频的方法, 包括: 在移动终端进 行屏幕旋转时, 获取空间姿态信息, 所述空间姿态信息为根据所述空间姿态传 感器采集到的移动终端的空间姿态位置信息生成的信息; 根据所述空间姿态信 息控制各个扬声器播放的音频内容, 以使得位于当前播放的视频信息的左侧的 所述扬声器播放左声道, 位于当前播放的视频信息的右侧的扬声器播放右声道。
在第一种可能实现的方式中, 结合第一方面的实现方式, 所述根据所述空 间姿态信息控制各个扬声器播放的音频内容, 包括: 根据所述空间姿态信息从 所述至少 3 个扬声器中选出至少一对扬声器; 控制所述至少一对扬声器中的第 一扬声器播放左声道, 所述至少一对扬声器中的第二扬声器播放右声道, 其中 所述第一扬声器位于所述当前播放的视频信息的左侧, 所述第二扬声器位于所 述当前播放的视频信息的右侧。
在第二种可能的实现方式中, 结合第一方面的第一种可能, 所述根据所述 空间姿态信息控制各个扬声器播放的音频内容, 还包括: 若所述至少 3 个扬声 器中除所述至少一对扬声器之外还存在剩余扬声器, 控制所述剩余扬声器以使 得所述剩余扬声器静音。
在第三种可能的实现方式中, 结合第一方面的实现方式, 所述根据所述空 间姿态信息控制各个扬声器播放的音频内容, 包括: 获取空间姿态变化速率, 根据所述空间姿态变化速率以及预先设置的速率阈值判断所述移动终端空间姿 态是否变化緩慢; 若所述移动终端空间姿态变化緩慢, 根据所述空间姿态信息 以及所述空间姿态变化速率控制所述至少 3 个扬声器中各个扬声器播放的左声 道、 右声道的音量, 以使得当前播放的视频信息的左右两侧的音场强度在音量 变化过程中保持相等。
在第四种可能的实现方式中, 结合第一方面的的实现方式或第一方面的第 一种至第三种可能的实现方式中的任意一种可能, 所述空间姿态信息包括角度、 角加速度以及角变化速率。
第二方面, 本发明实施例提供一种移动终端, 包括空间姿态传感器以及至 少 3个扬声器, 所述至少 3个扬声器不处于同一直线上, 所述移动终端还包括: 获取单元, 在移动终端进行屏幕旋转时, 用于获取空间姿态信息, 所述空 间姿态信息为根据所述空间姿态传感器采集到的移动终端的空间姿态位置信息 生成的信息;
控制单元, 用于根据所述获取单元获取的空间姿态信息控制各个扬声器播 放的音频内容, 以使得位于当前播放的视频信息的左侧的所述扬声器播放左声 道, 位于当前播放的视频信息的右侧的扬声器播放右声道。
在第一种可能的实现方式中, 结合第二方面的实现方式, 所述控制单元, 包括:
选择子单元,用于根据所述获取单元获取的所述空间姿态信息从所述至少 3 个扬声器中选出至少一对扬声器;
第一执行子单元, 控制所述选择子单元选出的所述至少一对扬声器中的第 一扬声器播放左声道, 所述至少一对扬声器中的第二扬声器播放右声道, 其中 第一扬声器位于所述当前播放的视频信息的左侧, 第二扬声器位于所述当前播 放的视频信息的右侧。
在第二种可能的实现方式中, 结合第二方面的第一种可能, 所述控制单元, 还包括:
第二执行子单元, 用于若至少 3 个扬声器中除所述选择子单元选出的至少 一对扬声器之外还存在剩余扬声器, 控制所述剩余扬声器以使得所述剩余扬声 器静音。
在第三种可能的实现方式中, 结合第二方面的实现方式, 所述控制单元, 包括:
获取子单元, 用于获取空间姿态变化速率;
判断子单元, 用于根据所述获取子单元获取的空间姿态变化速率以及预先 设置的速率阈值判断所述移动终端空间姿态是否变化緩慢;
第三执行子单元, 用于若所述判断子单元判断得到移动终端空间姿态变化 緩慢, 根据所述空间姿态信息以及所述空间姿态变化速率控制所述至少 3 个扬 声器中各个扬声器播放的左声道、 右声道的音量, 以使得当前播放的视频信息 的左右两侧的音场强度在音量变化过程中保持相等。
在第四种可能的实现方式中, 结合第二方面的实现方式或第二方面的第一 种至第三种可能的实现方式中的任意一种可能, 所述移动终端, 还包括: 所述 空间姿态信息包括角度、 角加速度以及角变化速率。
本发明实施例提供的一种播放音频的方法及装置, 由于在移动终端进行屏 幕旋转时, 获取空间姿态信息, 根据所述空间姿态信息控制各个扬声器播放的 音频内容, 以使得位于所述当前播放的视频信息的左侧的所述扬声器播放左声 道, 位于所述当前播放的视频信息的右侧的扬声器播放右声道, 使得所述当前 播放的视频信息与音频内容始终对应; 与现有技术相比, 通过获取所述移动终 端的空间姿态信息控制各个扬声器播放的音频内容, 使得所述移动终端当前播 放的视频信息与音频内容始终对应, 解决了现有技术中存在的移动终端进行屏 幕旋转时所述移动终端当前播放的视频信息与音频内容不匹配的问题。
附图说明
图 1A为本发明实施例提供的一种播放音频的方法的流程图;
图 1B为本发明图 1所示的流程图中步骤 102的流程图;
图 2 为本发明又一实施例提供的一种播放音频的方法的移动终端姿态示意 图一;
图 3为本发明又一实施例提供的一种播放音频的方法的流程图;
图 4 为本发明又一实施例提供的一种播放音频的方法的移动终端姿态示意 图二;
图 5 为本发明又一实施例提供的一种播放音频的方法的移动终端姿态示意 图三;
图 6 为本发明又一实施例提供的一种播放音频的方法的移动终端姿态示意 图四;
图 7为本发明实施例提供的一种播放音频的装置的结构示意图;
图 8为图 7所示的结构示意图中控制单元的结构示意图一;
图 9为图 7所示的结构示意图中控制单元的结构示意图二;
图 10为图 7所示的结构示意图中控制单元的结构示意图三;
图 11为本发明实施例提供的一种移动终端的结构示意图。
具体实施方式 下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。
本发明实施例提供的一种播放音频的方法及装置, 用于解决现有技术中存 在的移动终端进行屏幕旋转时所述移动终端当前播放的视频信息与音频内容不 匹配的问题。 下面结合附图对本发明实施例提供的一种播放音频的方法及装置 进行伴细描述。
如图 1A所示, 本发明实施例提供的一种播放音频的方法, 用于具有空间姿 态传感器的移动终端, 所述移动终端包括至少 3个扬声器, 所述至少 3个扬声 器不处于同一直线上, 包括:
步骤 101、 在移动终端进行屏幕旋转时, 获取空间姿态信息, 所述空间姿态 信息为根据所述空间姿态传感器采集到的移动终端的空间姿态位置信息生成的 信息。
其中, 所述空间姿态信息包括角度、 角加速度以及角变化速率; 所述空间 姿态传感器包括但不限于重力传感器、 磁力传感器等。
步骤 102、根据所述空间姿态信息控制各个扬声器播放的音频内容, 以使得 当前播放的视频信息的左侧的所述扬声器播放左声道, 位于当前播放的视频信 息的右侧的扬声器播放右声道。
其中, 如图 1B所示, 所述步骤 102, 包括:
步骤 1021、 根据所述空间姿态信息从所述至少 3个扬声器中选出至少一对 扬声器。
步骤 1022、 控制所述至少一对扬声器中的第一扬声器播放左声道, 所述至 少一对扬声器中的第二扬声器播放右声道, 其中第一扬声器位于所述当前播放 的视频信息的左侧, 第二扬声器位于所述当前播放的视频信息的右侧。
可选的, 为了防止移动终端空间姿态变化緩慢导致直接切换左右声道也不 能实现视频信息与音频内容匹配, 所述根据所述空间姿态信息控制各个扬声器 播放的音频内容, 还可以包括: 获取空间姿态变化速率, 根据所述空间姿态变 化速率以及预先设置的速率阈值判断所述移动终端空间姿态是否变化緩慢; 若 所述移动终端空间姿态变化緩慢, 根据所述空间姿态信息以及所述空间姿态变 化速率控制所述至少 3个扬声器中各个扬声器播放的左声道、 右声道的音量。
本发明实施例提供的一种播放音频的方法, 由于在移动终端进行屏幕旋转 时, 获取空间姿态信息, 根据所述空间姿态信息控制各个扬声器播放的音频内 容, 以使得位于所述当前播放的视频信息的左侧的所述扬声器播放左声道, 位 于所述当前播放的视频信息的右侧的扬声器播放右声道, 使得所述当前播放的 视频信息与音频内容始终对应; 与现有技术相比, 通过获取所述移动终端的空 间姿态信息控制各个扬声器播放的音频内容, 使得所述移动终端当前播放的视 频信息与音频内容始终对应, 解决了现有技术中存在的移动终端进行屏幕旋转 时所述移动终端当前播放的视频信息与音频内容不匹配的问题。
为了使得本领域技术人员更好的理解本发明实施例提供的技术方案, 现对 本发明又一实施例提供的一种播放音频的方法进行详细的说明。
本发明又一实施例提供的一种播放音频的方法, 用于移动终端, 所述移动 终端包括重力传感器以及 3个扬声器, 3个扬声器分别为扬声器八、 扬声器 B 以及扬声器 C, 其中, 如图 2所示, 在姿态 1的情况下, 扬声器 A位于移动终 端的左下方, 扬声器 B位于移动终端的右下方, 扬声器 C位于移动终端的右上 方。 如图 3所示, 所述播放音频的方法, 包括:
步骤 301、在移动终端进行屏幕旋转时, 获取空间姿态信息以及空间姿态变 化速率。
其中, 所述移动终端的旋转角度大于预设的旋转阈值时, 移动终端上进行 显示的屏幕就会发生旋转, 具体的, 例如
例如, 移动终端以姿态 1为参考姿态, 当移动终端以姿态 1为参考姿态发 生大于 60度旋转时, 移动终端的屏幕显示就会旋转 90度, 如图 4所示, 由姿 态 1顺时针旋转 90度, 移动终端处于姿态 2的状态时, 移动终端的屏幕显示也 会旋转 90度; 当移动终端以姿态 1为参考姿态发生大于 150度旋转时, 移动终 端的屏幕显示就会旋转 180度。 如图 5所示, 由姿态 1顺时针旋转 180度, 移 动终端处于姿态 3的状态时, 移动终端的屏幕显示也会旋转 180度; 当移动终 端以姿态 1为参考姿态发生大于 240度旋转时, 移动终端的屏幕显示就会旋转 270度。 如图 6所示, 由姿态 1顺时针旋转 270度, 移动终端处于姿态 4的状态 时, 移动终端的屏幕显示也会旋转 270度。
其中, 所述空间姿态信息为根据所述重力传感器采集到的所述移动终端的 位置信息生成的信息, 包括角度、 角加速度以及角变化速率。
步骤 302、根据所述空间姿态变化速率以及预先设置的速率阈值判断所述移 动终端空间姿态是否变化緩慢, 若所述移动终端空间姿态变化緩慢, 则执行步 骤 304, 否则执行步骤 303。
步骤 303、根据所述空间姿态信息从所述 3个扬声器中选出一对扬声器,控 制所述一对扬声器中的第一扬声器播放左声道, 所述一对扬声器中的第二扬声 器播放右声道, 除一对扬声器以外的剩余扬声器静音。
其中, 第一扬声器位于所述当前播放的视频信息的左侧, 第二扬声器位于 所述当前播放的视频信息的右侧。
例如, 如图 2和图 4所示, 当移动终端由姿态 1变化为姿态 2时, 才艮据空 间姿态信息得到扬声器 A位于移动终端的左上方, 扬声器 B位于移动终端的左 下方, 扬声器 C位于扬声器的右下方, 从中选出扬声器^ 扬声器 C为一对扬 声器, 此时, 控制扬声器 A静音, 扬声器 B播放左声道、扬声器 C播放右声道。
例如, 如图 2和图 5所示, 当移动终端由姿态 1变化为姿态 3时, 才艮据空 间姿态信息得到扬声器 A位于移动终端的右上方, 扬声器 B位于移动终端的左 上方, 扬声器 C位于扬声器的左下方, 从中选出扬声器八、 扬声器 B为一对扬 声器, 此时, 控制扬声器 C静音, 扬声器 B播放左声道、扬声器 A播放右声道。
例如, 如图 2和图 6所示, 当移动终端由姿态 1变化为姿态 4时, 才艮据空 间姿态信息得到扬声器 A位于移动终端的右下方, 扬声器 B位于移动终端的右 上方, 扬声器 C位于扬声器的左上方, 从中选出扬声器八、 扬声器 C为一对扬 声器, 此时, 控制扬声器 B静音, 扬声器 C播放左声道、扬声器 A播放右声道。
步骤 304、 若所述移动终端空间姿态变化緩慢,根据所述空间姿态信息以及 所述空间姿态变化速率控制各个扬声器播放的左声道、 右声道的音量, 以使得 当前播放的视频信息的左右两侧的音场强度在音量变化过程中保持相等。
值得说明的是, 在移动终端进行屏幕旋转时, 由于移动终端空间姿态变化 緩慢, 在姿态变化的过程中, 控制 3 个扬声器同时播放左声道和右声道, 并根 据空间姿态信息以及空间姿态变化速率控制扬声器播放左、 右声道的音量。
例如, 如图 2和图 4所示, 当移动终端由姿态 1緩曼变化为姿态 2的过程 中, 控制扬声器 A、 扬声器 B以及扬声器 C均播放左右声道, 根据扬声器 A在 移动终端由姿势 1变化为姿势 2的过程中, 控制扬声器 A中播放的左声道右声 道音量都根据空间姿态变化速率匀速减小, 扬声器 B中播放的左声道音量根据 空间姿态变化速率勾速增大、 右声道音量根据空间姿态变化速率勾速减小, 扬 声器 C中播放的左声道音量根据空间姿态变化速率匀速减小、 右声道音量根据 空间姿态变化速率匀速增大, 在音量变化过程中通过控制所述扬声器 A播放的 左右声道音量同所述扬声器 B播放的左右声道音量的叠加音量与所述扬声器 C 播放的左右声道的音量相等, 使得所述当前播放的视频信息的左右两侧的音场 强度在音量变化过程中保持相等, 最终, 当移动终端由姿态 1变化为姿态 2后, 扬声器 A中播放的左声道右声道音量减小为 0, 即扬声器 A处于静音状态, 扬 声器 B中播放的右声道音量减少为 0, 即扬声器 B播放左声道, 扬声器 C中播 放的左声道音量减小为 0, 即扬声器 C播放右声道。
例如, 如图 2和图 5所示, 当移动终端由姿态 1緩曼变化为姿态 3的过程 中, 控制扬声器 A、 扬声器 B以及扬声器 C均播放左右声道, 根据扬声器 A在 移动终端由姿势 1变化为姿势 3的过程中, 控制扬声器 A中播放的左声道音量 根据空间姿态变化速率勾速减小、 右声道音量根据空间姿态变化速率勾速增大, 扬声器 B 中播放的左声道音量根据空间姿态变化速率匀速增大、 右声道音量根 据空间姿态变化速率匀速减小, 扬声器 C中播放的左声道右声道音量都根据空 间姿态变化速率匀速减小, 在音量变化过程中通过控制所述扬声器 B播放的左 右声道音量同所述扬声器 B播放的左右声道音量的叠加音量与所述扬声器 A播 放的左右声道的音量相等, 使得所述当前播放的视频信息的左右两侧的音场强 度在音量变化过程中保持相等, 最终, 当移动终端由姿态 1 变化为姿态 3后, 扬声器 A中播放的左声道音量减小为 0, 即扬声器 A播放右声道, 扬声器 B中 播放的右声道音量减少为 0, 即扬声器 B播放左声道, 扬声器 C中播放的左声 道右声道音量减小为 0, 即扬声器 C处于静音状态。
例如, 如图 2和图 6所示, 当移动终端由姿态 1緩曼变化为姿态 4的过程 中, 控制扬声器 A、 扬声器 B以及扬声器 C均播放左右声道, 根据扬声器 A在 移动终端由姿势 1变化为姿势 4的过程中, 控制扬声器 A中播放的左声道音量 根据空间姿态变化速率勾速减小、 右声道音量根据空间姿态变化速率勾速增大, 扬声器 B 中播放的左声道右声道音量都根据空间姿态变化速率匀速减小, 扬声 器 C中播放的左声道音量根据空间姿态变化速率匀速增大、 右声道音量根据空 间姿态变化速率匀速减小, 在音量变化过程中通过控制所述扬声器 A播放的左 右声道音量同所述扬声器 B播放的左右声道音量的叠加音量与所述扬声器 C播 放的左右声道的音量相等, 使得所述当前播放的视频信息的左右两侧的音场强 度在音量变化过程中保持相等, 最终, 当移动终端由姿态 1 变化为姿态 4后, 扬声器 A中播放的左声道音量减小为 0, 即扬声器 A播放右声道, 扬声器 B中 播放的左声道右声道音量减小为 0, 即扬声器 B处于静音状态, 扬声器 C中播 放的右声道音量减少为 0, 即扬声器 C播放左声道。
本发明实施例提供的一种播放音频的方法, 由于在移动终端进行屏幕旋转 时, 获取空间姿态信息, 根据所述空间姿态信息控制各个扬声器播放的音频内 容, 以使得位于所述当前播放的视频信息的左侧的所述扬声器播放左声道, 位 于所述当前播放的视频信息的右侧的扬声器播放右声道, 使得所述当前播放的 视频信息与音频内容始终对应; 与现有技术相比, 通过获取所述移动终端的空 间姿态信息控制各个扬声器播放的音频内容, 使得所述移动终端当前播放的视 频信息与音频内容始终对应, 解决了现有技术中存在的移动终端进行屏幕旋转 时所述移动终端当前播放的视频信息与音频内容不匹配的问题。
如图 7所示, 本发明实施例提供的一种播放音频的装置, 包括空间姿态传 感器以及至少 3个扬声器, 所述至少 3个扬声器不处于同一直线上, 所述一种 播放音频的装置, 还包括:
获取单元 71 , 在移动终端进行屏幕旋转时, 用于获取空间姿态信息, 所述 空间姿态信息为根据所述空间姿态传感器采集到的移动终端的空间姿态位置信 息生成的信息; 其具体实现方式与图 1所示的步骤 101相同, 此处不再贅述。
其中, 所述空间姿态信息包括角度、 角加速度以及角变化速率; 所述空间 姿态传感器包括但不限于重力传感器、 磁力传感器等。
控制单元 72, 用于根据所述获取单元获取的空间姿态信息控制各个扬声器 播放的音频内容, 以使得位于当前播放的视频信息的左侧的所述扬声器播放左 声道, 位于所当前播放的视频信息的右侧的扬声器播放右声道; 其具体实现方 式与图 1所示的步骤 102相同, 此处不再贅述。
其中, 如图 8所示, 所述控制单元 72, 包括:
选择子单元 81 , 用于根据所述获取单元获取的所述空间姿态信息从所述至 少 3个扬声器中选出至少一对扬声器; 其具体实现方式与图 3所示的步骤 303 相同, 此处不再贅述。
第一执行子单元 82, 控制所述选择子单元选出的至少一对扬声器中的第一 扬声器播放左声道, 所述至少一对扬声器中的第二扬声器播放右声道, 其中所 述第一扬声器位于所述当前播放的视频信息的左侧, 所述第二扬声器位于所述 当前播放的视频信息的右侧; 其具体实现方式与图 3所示的步骤 303相同, 此 处不再赘述。 进一步的, 如图 9所示, 所述控制单元 72, 还包括:
第二执行子单元 91 , 用于若至少 3个扬声器中除所述选择子单元选出的至 少一对扬声器之外还存在的剩余扬声器, 控制所述剩余扬声器以使得所述剩余 扬声器静音; 其具体实现方式与图 3所示的步骤 303相同, 此处不再贅述。
其中, 如图 10所示, 所述控制单元 72, 还包括:
获取子单元 1001 , 用于获取空间姿态变化速率; 其具体实现方式与图 3所 示的步骤 301相同, 此处不再贅述。
判断子单元 1002, 用于根据所述获取子单元获取的空间姿态变化速率以及 预先设置的速率阈值判断所述移动终端空间姿态是否变化緩慢; 其具体实现方 式与图 3所示的步骤 302相同, 此处不再贅述。
其中, 若所述判断子单元判断得到所述移动终端空间姿态变化緩慢则转至 第三执行子单元 1003 , 若所述判断子单元判断得到所述移动终端空间姿态变化 正常则转至选择子单元 81。
第三执行子单元 1003 , 用于若所述判断子单元判断得到移动终端空间姿态 变化緩慢, 根据所述空间姿态信息以及所述空间姿态变化速率控制所述至少 3 个扬声器中各个扬声器播放的左声道、 右声道的音量, 以使得当前播放的视频 信息的左右两侧的音场强度在音量变化过程中保持相等;其具体实现方式与图 3 所示的步骤 304相同, 此处不再贅述。
本发明实施例提供的一种播放音频的装置, 由于在移动终端进行屏幕旋转 时, 获取空间姿态信息, 根据所述空间姿态信息控制各个扬声器播放的音频内 容, 以使得位于所述当前播放的视频信息的左侧的所述扬声器播放左声道, 位 于所述当前播放的视频信息的右侧的扬声器播放右声道, 使得所述当前播放的 视频信息与音频内容始终对应; 与现有技术相比, 通过获取所述移动终端的空 间姿态信息控制各个扬声器播放的音频内容, 使得所述移动终端当前播放的视 频信息与音频内容始终对应, 解决了现有技术中存在的移动终端进行屏幕旋转 时所述移动终端当前播放的视频信息与音频内容不匹配的问题。
如图 11所示, 本发明又一实施例提供移动终端, 包括屏幕 1101、 空间姿态 传感器 1102、 至少 3个扬声器 1103、 处理器 1104。 所述屏幕 1101 , 用于显示所述移动终端播放的视频信息。
所述空间姿态传感器 1102, 用于采集所述移动终端的空间姿态信息。
所述至少 3个扬声器 1103 , 用于输出所述移动终端播放的音频内容。
其中所述至少 3个扬声器 1103 , 包括: 扬声器 1、 扬声器 2、 扬声器 3...... 扬声器 n。
所述处理器 1104, 用于根据所述空间姿态信息控制各个扬声器播放的音频 内容, 以使得位于所述移动终端左侧的所述扬声器播放左声道, 位于所述移动 终端右侧的扬声器播放右声道。
其中所述空间姿态信息为根据所述空间姿态传感器采集到的移动终端的位 置信息生成的信息。
在本实施例中, 所述处理器 1104具体用于根据所述空间姿态变化速率以及 预先设置的速率阈值判断所述移动终端空间姿态是否变化緩慢。 若所述移动终 端空间姿态变化緩慢, 根据所述空间姿态信息以及所述空间姿态变化速率控制 所述至少 3 个扬声器中各个扬声器播放的左声道、 右声道的音量; 否则, 根据 所述空间姿态信息从所述至少 3 个扬声器中选出至少一对扬声器, 控制所述至 少一对扬声器中的第一扬声器播放左声道, 所述至少一对扬声器中的第二扬声 器播放右声道, 其中所述第一扬声器位于所述当前播放的视频信息的左侧, 所 述第二扬声器位于所述当前播放的视频信息的右侧, 以及若所述至少 3 个扬声 器中除所述至少一对扬声器之外还存在剩余扬声器, 控制所述剩余扬声器以使 得所述剩余扬声器静音。
本发明实施例提供的一种移动终端, 由于在移动终端进行屏幕旋转时, 获 取空间姿态信息, 根据所述空间姿态信息控制各个扬声器播放的音频内容, 以 使得位于所述移动终端当前播放的视频信息的左侧的所述扬声器播放左声道, 位于所述移动终端当前播放的视频信息的右侧的扬声器播放右声道, 使得所述 移动终端当前播放的视频信息与音频内容始终对应; 与现有技术相比, 通过获 取所述移动终端的空间姿态信息控制各个扬声器播放的音频内容, 使得所述移 动终端当前播放的视频信息与音频内容始终对应, 解决了现有技术中存在的移 动终端进行屏幕旋转时所述移动终端当前播放的视频信息与音频内容不匹配的 问题。
通过以上的实施方式的描述, 所属领域的技术人员可以清楚地了解到本发 明可以用硬件实现, 或固件实现, 或它们的组合方式来实现。 当使用软件实现 时, 可以将上述功能存储在计算机可读介质中或作为计算机可读介质上的一个 或多个指令或代码进行传输。 计算机可读介质包括计算机存储介质和通信介 质, 其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介 质。 存储介质可以是计算机能够存取的任何可用介质。 以此为例但不限于: 计 算机可读介质可以包括 RAM、 ROM, EEPROM、 CD-ROM或其他光盘存储、 磁盘存储介质或者其他磁存储设备、 或者能够用于携带或存储具有指令或数据 结构形式的期望的程序代码并能够由计算机存取的任何其他介质。 此外。 任何 连接可以适当的成为计算机可读介质。 例如, 如果软件是使用同轴电缆、 光纤 光缆、 双绞线、 数字用户线(DSL )或者诸如红外线、 无线电和微波之类的无线 技术从网站、 服务器或者其他远程源传输的, 那么同轴电缆、 光纤光缆、 双绞 线、 DSL 或者诸如红外线、 无线和微波之类的无线技术包括在所属介质的定影 中。 如本发明所使用的, 盘( Disk )和碟( disc )包括压缩光碟( CD )、 激光碟、 光碟、 数字通用光碟(DVD )、 软盘和蓝光光碟, 其中盘通常磁性的复制数据, 而碟则用激光来光学的复制数据。 上面的组合也应当包括在计算机可读介质的 保护范围之内。
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限于 此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到 变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应 所述以权利要求的保护范围为准。

Claims

权 利 要 求
1、 一种播放音频的方法, 其特征在于, 用于具有空间姿态传感器的移动终 端, 所述移动终端包括至少 3个扬声器, 所述至少 3个扬声器不处于同一直线 上, 该方法, 包括:
在移动终端进行屏幕旋转时, 获取空间姿态信息, 所述空间姿态信息为根 据所述空间姿态传感器采集到的移动终端的空间姿态位置信息生成的信息; 根据所述空间姿态信息控制各个扬声器播放的音频内容, 以使得位于当前 播放的视频信息的左侧的所述扬声器播放左声道, 位于当前播放的视频信息的 端右侧的扬声器播放右声道。
2、 根据权利要求 1所述的方法, 其特征在于, 所述根据所述空间姿态信息 控制各个扬声器播放的音频内容, 包括:
根据所述空间姿态信息从所述至少 3个扬声器中选出至少一对扬声器; 控制所述至少一对扬声器中的第一扬声器播放左声道, 所述至少一对扬声 器中的第二扬声器播放右声道, 其中所述第一扬声器位于所述当前播放的视频 信息的左侧, 所述第二扬声器位于所述当前播放的视频信息的右侧。
3、 根据权利要求 2所述的方法, 其特征在于, 所述根据所述空间姿态信息 控制各个扬声器播放的音频内容, 还包括:
若所述至少 3 个扬声器中除所述至少一对扬声器之外还存在剩余扬声器, 控制所述剩余扬声器以使得所述剩余扬声器静音。
4、 根据权利要求 1所述的方法, 其特征在于, 所述根据所述空间姿态信息 控制各个扬声器播放的音频内容, 包括:
获取空间姿态变化速率, 根据所述空间姿态变化速率以及预先设置的速率 阈值判断所述移动终端空间姿态是否变化緩慢;
若所述移动终端空间姿态变化緩慢, 根据所述空间姿态信息以及所述空间姿 态变化速率控制所述至少 3个扬声器中各个扬声器播放的左声道、右声道的音量, 以使得当前播放的视频信息的左右两侧的音场强度在音量变化过程中保持相等。
5、 根据权利要求 1-4任一项所述的方法, 其特征在于, 所述空间姿态信息 包括角度、 角加速度以及角变化速率。
6、一种移动终端, 其特征在于, 包括空间姿态传感器以及至少 3个扬声器, 所述至少 3个扬声器不处于同一直线上, 所述移动终端还包括:
获取单元, 在移动终端进行屏幕旋转时, 用于获取空间姿态信息, 所述空 间姿态信息为根据所述空间姿态传感器采集到的移动终端的空间姿态位置信息 生成的信息;
控制单元, 用于根据所述获取单元获取的空间姿态信息控制各个扬声器播 放的音频内容, 以使得位于当前播放的视频信息的左侧的所述扬声器播放左声 道, 位于当前播放的视频信息的右侧的扬声器播放右声道。
7、 根据权利要求 6所述的移动终端, 其特征在于, 所述控制单元, 包括: 选择子单元,用于根据所述获取单元获取的所述空间姿态信息从所述至少 3 个扬声器中选出至少一对扬声器;
第一执行子单元, 用于控制所述选择子单元选出的所述至少一对扬声器中 的第一扬声器播放左声道, 所述至少一对扬声器中的第二扬声器播放右声道, 其中所述第一扬声器位于所述当前播放的视频信息的左侧, 所述第二扬声器位 于所述当前播放的视频信息的右侧。
8、根据权利要求 7所述的移动终端, 其特征在于, 所述控制单元, 还包括: 第二执行子单元, 用于若至少 3 个扬声器中除所述选择子单元选出的至少 一对扬声器之外还存在剩余扬声器, 控制所述剩余扬声器以使得所述剩余扬声 器静音。
9、 根据权利要求 6所述的移动终端, 其特征在于, 所述控制单元, 包括: 获取子单元, 用于获取空间姿态变化速率;
判断子单元, 用于根据所述获取子单元获取的空间姿态变化速率以及预先 设置的速率阈值判断所述移动终端空间姿态是否变化緩慢;
第三执行子单元, 用于若所述判断子单元判断得到移动终端空间姿态变化 緩慢, 根据所述空间姿态信息以及所述空间姿态变化速率控制所述至少 3 个扬 声器中各个扬声器播放的左声道、 右声道的音量, 以使得当前播放的视频信息 的左右两侧的音场强度在音量变化过程中保持相等。
10、根据权利要求 6-9任一项所述的移动终端, 其特征在于, 所述空间姿态 信息包括角度、 角加速度以及角变化速率。
PCT/CN2013/088064 2013-05-22 2013-11-28 一种播放音频的方法及装置 WO2014187099A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP13876772.8A EP2827614B1 (en) 2013-05-22 2013-11-28 Audio playing method and device
US14/489,735 US9503831B2 (en) 2013-05-22 2014-09-18 Audio playback method and apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310194267.4A CN103295610B (zh) 2013-05-22 2013-05-22 一种播放音频的方法及装置
CN201310194267.4 2013-05-22

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/489,735 Continuation US9503831B2 (en) 2013-05-22 2014-09-18 Audio playback method and apparatus

Publications (1)

Publication Number Publication Date
WO2014187099A1 true WO2014187099A1 (zh) 2014-11-27

Family

ID=49096348

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/088064 WO2014187099A1 (zh) 2013-05-22 2013-11-28 一种播放音频的方法及装置

Country Status (4)

Country Link
US (1) US9503831B2 (zh)
EP (1) EP2827614B1 (zh)
CN (1) CN103295610B (zh)
WO (1) WO2014187099A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111613201A (zh) * 2020-06-01 2020-09-01 大陆泰密克汽车系统(上海)有限公司 车内声音管理装置及方法

Families Citing this family (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103295610B (zh) 2013-05-22 2016-03-02 华为技术有限公司 一种播放音频的方法及装置
CN109460208A (zh) * 2014-01-16 2019-03-12 华为终端有限公司 控制移动终端音量的方法、终端以及移动终端
CN104898999B (zh) * 2014-03-03 2019-01-15 联想(北京)有限公司 一种信息处理方法及电子设备
CN105204815B (zh) * 2014-06-30 2018-08-31 联想(北京)有限公司 一种电子设备和信息处理方法
CN105282301A (zh) * 2014-06-30 2016-01-27 中兴通讯股份有限公司 基于终端扬声器的声音外放方法及装置、终端
CN104199655A (zh) * 2014-08-27 2014-12-10 深迪半导体(上海)有限公司 一种音频切换方法、微处理器及耳机
CN104507004B (zh) * 2014-11-28 2018-01-30 上海斐讯数据通信技术有限公司 一种播放器控制方法、播放器及耳机
US10225814B2 (en) * 2015-04-05 2019-03-05 Qualcomm Incorporated Conference audio management
CN105163241B (zh) * 2015-09-14 2018-04-13 小米科技有限责任公司 音频播放方法及装置、电子设备
CN105898666A (zh) * 2016-06-23 2016-08-24 乐视控股(北京)有限公司 声道数据匹配方法及装置
CN106170037A (zh) * 2016-06-27 2016-11-30 乐视控股(北京)有限公司 音频播放控制方法及装置
CN106791031A (zh) * 2016-11-30 2017-05-31 努比亚技术有限公司 一种增强移动终端音频播放效果的装置及方法
CN106657617B (zh) * 2016-11-30 2020-06-16 重庆亿优科技有限公司 一种控制扬声器播放的方法及移动终端
CN107124677B (zh) * 2017-06-19 2020-11-03 深圳市泰衡诺科技有限公司上海分公司 声音输出控制系统、装置及方法
KR102482960B1 (ko) * 2018-02-07 2022-12-29 삼성전자주식회사 듀얼 스피커를 이용한 오디오 데이터 재생 방법 및 그의 전자 장치
CN108551608B (zh) * 2018-03-30 2020-05-05 大连之声数码音响工程有限公司 一种智能音箱的控制方法、装置、存储介质及智能音箱
CN110661916A (zh) * 2018-06-29 2020-01-07 中兴通讯股份有限公司 音频播放方法、装置、终端和计算机可读存储介质
US10922047B2 (en) 2019-03-25 2021-02-16 Shenzhen Skyworth-Rgb Electronic Co., Ltd. Method and device for controlling a terminal speaker and computer readable storage medium
CN109862293B (zh) * 2019-03-25 2021-01-12 深圳创维-Rgb电子有限公司 终端喇叭的控制方法、设备及计算机可读存储介质
CN112738706A (zh) * 2019-10-14 2021-04-30 瑞昱半导体股份有限公司 播放系统与方法
TWI724725B (zh) * 2019-12-31 2021-04-11 禾瑞亞科技股份有限公司 偵測元件是否處在導電液體當中的方法、電子裝置與其中央處理器模組
WO2022134169A1 (zh) * 2020-12-21 2022-06-30 安徽鸿程光电有限公司 一种多显示屏系统及其音频控制方法
CN113472951B (zh) * 2021-08-17 2023-03-24 Oppo广东移动通信有限公司 音频播放装置、终端和音频控制方法
CN116055982B (zh) * 2022-08-12 2023-11-17 荣耀终端有限公司 音频输出方法、设备及存储介质

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1979410A (zh) * 2005-12-02 2007-06-13 广达电脑股份有限公司 平板计算机的扬声系统及其喇叭单元定位方法
CN102550047A (zh) * 2010-08-31 2012-07-04 赛普拉斯半导体公司 适配音频信号与设备定向中的变化
CN102595304A (zh) * 2012-03-15 2012-07-18 国光电器股份有限公司 声道自动切换器
CN202711124U (zh) * 2012-06-26 2013-01-30 亚忆电子(深圳)有限公司 高音质双声道平板电脑
DE102011052098B3 (de) * 2011-07-25 2013-01-31 Loewe Opta Gmbh Vorrichtung mit einer Anzeigeeinheit und akustischen Wiedergabeeinheiten
US20130038726A1 (en) * 2011-08-09 2013-02-14 Samsung Electronics Co., Ltd Electronic apparatus and method for providing stereo sound
CN103000179A (zh) * 2011-09-16 2013-03-27 中国科学院声学研究所 一种多通道音频编解码系统及其方法
CN103295610A (zh) * 2013-05-22 2013-09-11 华为技术有限公司 一种播放音频的方法及装置

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI294585B (en) * 2005-10-28 2008-03-11 Quanta Comp Inc Audio system of a tablet personal computer and the speaker orientating method thereof
US20100008523A1 (en) * 2008-07-14 2010-01-14 Sony Ericsson Mobile Communications Ab Handheld Devices Including Selectively Enabled Audio Transducers

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1979410A (zh) * 2005-12-02 2007-06-13 广达电脑股份有限公司 平板计算机的扬声系统及其喇叭单元定位方法
CN102550047A (zh) * 2010-08-31 2012-07-04 赛普拉斯半导体公司 适配音频信号与设备定向中的变化
DE102011052098B3 (de) * 2011-07-25 2013-01-31 Loewe Opta Gmbh Vorrichtung mit einer Anzeigeeinheit und akustischen Wiedergabeeinheiten
US20130038726A1 (en) * 2011-08-09 2013-02-14 Samsung Electronics Co., Ltd Electronic apparatus and method for providing stereo sound
CN103000179A (zh) * 2011-09-16 2013-03-27 中国科学院声学研究所 一种多通道音频编解码系统及其方法
CN102595304A (zh) * 2012-03-15 2012-07-18 国光电器股份有限公司 声道自动切换器
CN202711124U (zh) * 2012-06-26 2013-01-30 亚忆电子(深圳)有限公司 高音质双声道平板电脑
CN103295610A (zh) * 2013-05-22 2013-09-11 华为技术有限公司 一种播放音频的方法及装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2827614A4 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111613201A (zh) * 2020-06-01 2020-09-01 大陆泰密克汽车系统(上海)有限公司 车内声音管理装置及方法

Also Published As

Publication number Publication date
EP2827614A1 (en) 2015-01-21
CN103295610B (zh) 2016-03-02
CN103295610A (zh) 2013-09-11
US9503831B2 (en) 2016-11-22
US20150003647A1 (en) 2015-01-01
EP2827614B1 (en) 2016-09-21
EP2827614A4 (en) 2015-04-15

Similar Documents

Publication Publication Date Title
WO2014187099A1 (zh) 一种播放音频的方法及装置
US12009602B2 (en) Frequency routing based on orientation
US11113022B2 (en) Method, system and interface for controlling a subwoofer in a networked audio system
JP6082808B2 (ja) オーディオコンテンツの試聴
KR102393798B1 (ko) 오디오 신호 처리 방법 및 장치
JP2016523017A (ja) メディア再生システムの再生待ち列の転送
JP2017504902A (ja) ソフトウェアアプリケーション及びゾーン
BR112013004857B1 (pt) Método implementado por computador e sistema para controlar, usando um dispositivo móvel, apresentação de conteúdo de mídia realizado por um cliente de mídia, e método implementado por computador para apresentar conteúdo de mídia a partir de um cliente de mídia em um dispositivo de exibição
JP2010205394A (ja) 音源再生装置及び音源選択再生方法
JP2014519726A (ja) メディアシステムにおけるマルチチャンネルペアリング
US20140223500A1 (en) Method and system for transmitting wirelessly video in portable terminal
JP2012182609A (ja) コンテンツ再生システムおよび携帯機器
WO2023029806A1 (zh) 音乐播放方法及设备
JP2009194893A5 (zh)
JP6677343B2 (ja) 操作装置、コマンド処理装置、及びコンテンツ再生システム
JP6912680B2 (ja) メディアシステムにおけるマルチチャンネルペアリング
KR20120134440A (ko) 시간 동기화된 뮤직 비디오를 제공하는 음원 재생 장치 및 방법
JP2009159307A (ja) 再生装置、設定情報の設定方法、コンピュータプログラムおよび通信システム
JP3145706U (ja) ビデオ−オーディオ娯楽マルチメディア処理装置
JP6186419B2 (ja) メディアシステムにおけるマルチチャンネルペアリング
JP2016118610A (ja) 無線lan機能を備えた再生装置及び共聴システム
TW202127908A (zh) 揚聲器系統及其錄音播放方法
JP2006119875A (ja) プレゼンテーションシステムおよびプレゼンテーションプログラム、並びにプレゼンテーション方法、プロジェクタ
JP2012231497A (ja) コンテンツ受信装置及びコンテンツ再生装置
JP2012009994A (ja) 携帯端末及びコンテンツ再生システム

Legal Events

Date Code Title Description
REEP Request for entry into the european phase

Ref document number: 2013876772

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2013876772

Country of ref document: EP

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

Ref document number: 13876772

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE