WO2019047712A1 - 一种音频播放方法和装置、及终端 - Google Patents

一种音频播放方法和装置、及终端 Download PDF

Info

Publication number
WO2019047712A1
WO2019047712A1 PCT/CN2018/101573 CN2018101573W WO2019047712A1 WO 2019047712 A1 WO2019047712 A1 WO 2019047712A1 CN 2018101573 W CN2018101573 W CN 2018101573W WO 2019047712 A1 WO2019047712 A1 WO 2019047712A1
Authority
WO
WIPO (PCT)
Prior art keywords
code stream
pcm code
pcm
stream
channel
Prior art date
Application number
PCT/CN2018/101573
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 EP18854656.8A priority Critical patent/EP3657821B1/en
Publication of WO2019047712A1 publication Critical patent/WO2019047712A1/zh
Priority to US16/798,185 priority patent/US11120808B2/en

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/008Multichannel audio signal coding or decoding using interchannel correlation to reduce redundancy, e.g. joint-stereo, intensity-coding or matrixing
    • 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
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72433User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for voice messaging, e.g. dictaphones
    • 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
    • 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/162Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S1/00Two-channel systems
    • H04S1/007Two-channel systems in which the audio signals are in digital form
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S3/00Systems employing more than two channels, e.g. quadraphonic
    • H04S3/008Systems employing more than two channels, e.g. quadraphonic in which the audio signals are in digital form, i.e. employing more than two discrete digital channels
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/16Details of telephonic subscriber devices including more than one display unit
    • 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/01Input selection or mixing for amplifiers or loudspeakers
    • 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
    • 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/15Transducers incorporated in visual displaying devices, e.g. televisions, computer displays, laptops

Definitions

  • the present disclosure relates to the field of intelligent terminal technologies, and in particular, to an audio playing method and apparatus, and a terminal.
  • the dual-screen smartphone has two screens.
  • a typical application scenario is shown in Figure 1.
  • the two screens are placed in the style shown in Figure 1, and then two videos are played simultaneously, so that two people can watch movies on both sides.
  • This new experience mode can be used at home or on a business trip, which is a good dual-screen enhancement to the user experience.
  • the current dual-screen mobile phone has only one audio DAC (Digital to Analog Converter) chip, so when the multimedia content on both sides of the screen has audio information, the current smart device can only play the video on two screens. After the channel is mixed, it is played through all the speakers, which directly causes the users on both sides of the screen to clearly distinguish the accompanying sound of the video, and is interfered by the video of the other party's screen, which greatly affects the user experience.
  • audio DAC Digital to Analog Converter
  • the present disclosure provides an audio playing method and apparatus, and a terminal, which can solve the problem that the user can not clearly hear the accompanying sound of the video when the video is simultaneously played by the dual screen in the prior art, thereby reducing the user experience.
  • an audio playing method comprising:
  • the third PCM code stream is input to the digital-to-analog converter DAC and output to the first speaker and the second speaker through the DAC for playback.
  • the obtaining the synthesized third PCM code stream according to the first PCM code stream and the second PCM code stream comprises:
  • the obtaining the synthesized third PCM code stream according to the first PCM code stream and the second PCM code stream comprises:
  • the obtaining, according to the second PCM code stream, the corresponding second PCM code stream attenuation data comprises: performing 180 degree rotation on a data phase of the second PCM code stream, and multiplying by a preset attenuation coefficient, Thereby obtaining second PCM code stream attenuation data;
  • Obtaining the corresponding first PCM code stream attenuation data according to the first PCM code stream comprises: performing 180 degree rotation on the data phase of the first PCM code stream, and multiplying by a preset attenuation coefficient, thereby obtaining the first PCM code stream Attenuation data.
  • the method before the obtaining the synthesized third PCM code stream according to the first PCM code stream and the second PCM code stream, the method further includes:
  • the first PCM stream and the second PCM stream are synthesized by one channel and second channel.
  • confirming that the first channel corresponding to the first PCM code stream is one of the L/R channels comprises:
  • the channel corresponding to the audio stream is confirmed according to the correspondence between the speaker and the channel.
  • the present disclosure also provides an audio playback device, which is disposed on a terminal, and the device includes:
  • a synthesizing unit configured to modulate the PCM code stream and the second PCM code stream according to the first pulse code to obtain a synthesized third PCM code stream; wherein the information of the first PCM code stream and the second PCM code stream are respectively carried in the In one channel of the third PCM stream;
  • an output unit configured to input the third PCM code stream to the digital-to-analog converter DAC, and output to the first speaker and the second speaker through the DAC for playing.
  • the synthesizing unit obtains the synthesized third PCM code stream according to the first PCM code stream and the second PCM code stream, including:
  • the synthesizing unit obtains the synthesized third PCM code stream according to the first PCM code stream and the second PCM code stream, including:
  • the synthesizing unit acquiring the corresponding second PCM code stream attenuation data according to the second PCM code stream comprises: performing 180 degree rotation on the data phase of the second PCM code stream, and multiplying by a preset attenuation a coefficient to obtain a second PCM code stream attenuation data;
  • Acquiring the corresponding first PCM code stream attenuation data according to the first PCM code stream includes: performing 180 degree rotation on the data phase of the first PCM code stream, and multiplying by a preset attenuation coefficient, thereby obtaining the first PCM The code stream attenuates the data.
  • the synthesizing unit is further configured to: before the obtaining the synthesized third PCM code stream according to the first PCM code stream and the second PCM code stream, confirming that the first PCM code stream corresponds to the first The channel is one of the L/R channels, confirming that the second channel corresponding to the second PCM stream is the other of the L/R channels; thus, according to the confirmed first channel and the second channel pair The first PCM code stream and the second PCM code stream are combined.
  • the synthesizing unit confirms that the first channel corresponding to the first PCM code stream is one of the L/R channels, and includes:
  • the channel corresponding to the audio stream is confirmed according to the correspondence between the speaker and the channel.
  • the present disclosure also proposes a terminal including a memory, a processor, and a computer program stored on the memory and operable on the processor, when the processor executes the computer program
  • a terminal including a memory, a processor, and a computer program stored on the memory and operable on the processor, when the processor executes the computer program
  • the present disclosure also proposes a terminal including any of the above-described audio playback devices.
  • the technical solution provided by the present disclosure includes: obtaining a synthesized third PCM code stream according to the first PCM code stream and the second PCM code stream; wherein, the first PCM code stream and the second PCM code stream The information is carried in one channel of the third PCM code stream respectively; the third PCM code stream is input to the DAC, and output to the first speaker and the second speaker through the DAC for playing.
  • two audio code streams are synthesized into one audio code stream, and information of two audio code streams are respectively carried in one channel of the synthesized audio code stream, and different channels of the synthesized audio code stream are respectively carried.
  • different speaker playback different users can hear the accompanying sound of the video they watch, and provide an audio playback method to improve the user experience, especially the dual-screen mobile phone, without changing the existing hardware structure. Concurrent multimedia user experience.
  • FIG. 1 is a schematic diagram of an application scenario of a dual-screen smart phone in the prior art
  • FIG. 2 is a flowchart of an audio playing method according to an embodiment of the present disclosure
  • 3A and 3B are schematic diagrams of speakers on both sides of a dual screen mobile phone
  • FIG. 4 is a schematic diagram of implementation of an audio playing method according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic diagram of playing two videos after split screen display on a single screen
  • FIG. 6 is a schematic diagram of implementation of an audio playing method in a multi-channel audio channel scenario according to an embodiment of the present disclosure
  • FIG. 7 is a schematic structural diagram of an audio playback device according to an embodiment of the present disclosure.
  • the present disclosure provides an audio playing method, where the method includes:
  • Step 120 Obtain a synthesized third PCM code stream according to a first (pulse code modulation) PCM code stream and a second PCM code stream; wherein, the information of the first PCM code stream and the second PCM code stream are respectively Carrying in one channel of the third PCM code stream;
  • Step 130 Input a third PCM code stream to the DAC, and output to the first speaker and the second speaker through the DAC for playing.
  • the screens on both sides of the dual-screen mobile phone can respectively play video A and video B, wherein each side of the screen has its own speaker, and one channel of the audio stream can be separately played, therefore,
  • the sound A of the video A is played through the speaker on the side of the video A
  • the sound B of the video B is played through the speaker on the side of the video B.
  • the sound A and the sound B are the L channel and the R channel of the synthesized PCM stream, respectively.
  • . 3B is a schematic diagram of the speaker L and the speaker R, in which the speaker L and the speaker R have different sound field ranges so as not to affect the sound propagation of each other.
  • the obtaining the synthesized third PCM code stream according to the first PCM code stream and the second PCM code stream includes:
  • the obtaining the synthesized third PCM code stream according to the first PCM code stream and the second PCM code stream includes:
  • the obtaining the corresponding second PCM stream attenuation data according to the second PCM stream includes: performing a predetermined angular rotation on the data phase of the second PCM stream, and multiplying the preset attenuation coefficient to obtain the second PCM stream. Attenuation data;
  • Acquiring the corresponding first PCM code stream attenuation data according to the first PCM code stream comprises: performing a predetermined angle rotation on the data phase of the first PCM code stream, and multiplying the preset attenuation coefficient to obtain the first PCM code Flow attenuation data.
  • the predetermined angle is 180 degrees.
  • the anti-interference effect can be enhanced, and the opposite phase audio of the other side audio is played on one side to achieve complete noise reduction to completely isolate the influence of the other party's sound.
  • the method before obtaining the synthesized third PCM code stream according to the first PCM code stream and the second PCM code stream in step 120, the method further includes:
  • Step 110 confirming the channel corresponding to the first PCM code stream and the second PCM code stream, that is, confirming that the first channel corresponding to the first PCM code stream is one of the L/R channels, and confirming that the second PCM code stream corresponds to The second channel is the other of the L/R channels; thereby synthesizing the first PCM stream and the second PCM stream according to the confirmed first channel and second channel.
  • step 110 it is required to confirm that the channel corresponding to the PCM code stream is one of the L/R channels, and specifically includes:
  • Step 111 Find the uid of the application according to the audio code stream.
  • Step 112 confirming a corresponding play screen according to the uid of the application
  • Step 113 according to the correspondence between the play screen and the channel, confirm the channel corresponding to the audio stream;
  • step 113 may include
  • Step 1131 according to the correspondence between the playback screen and the speaker, confirm the speaker corresponding to the audio stream
  • Step 1132 confirming the channel corresponding to the audio stream according to the correspondence between the speaker and the channel.
  • the correspondence between the play screen and the channel may also be set in advance, so that the channel corresponding to the audio stream is confirmed according to the correspondence between the play screen and the channel.
  • the first PCM code stream and the second PCM code stream are audio code streams respectively from different applications, or different instances of the same application.
  • both applications may be
  • the video playback application can also be a video application, an audio application, or both audio applications.
  • the two applications can be front and back applications.
  • windowsmanager does not need to make a dual screen judgment. Instead, it is necessary to make a judgment of the front and back. For example, it is possible to realize pure audio such as music/fiction in the background of one channel, and to play the sound of the foreground video in one channel.
  • the android windows manager supports the ability to independently run different applications on two screens, and can be allocated through windowsmanager. Different applications run on a specific screen, and the screen of the application can be switched. Each application launched by the user can operate the screen on which it is located, and the background is configured through windowsmanager.
  • the application has an ID called UID
  • UID is the abbreviation of userid
  • the windowsmanager deployment application is based on UID, so the current technical solution has the screen displayed by the UID deployment application.
  • the video playback control module is implemented in the windowsmanager.
  • the information on which screen the UID is now will be written into the database in Figure 4 in real time.
  • Android's audioflinger is a module responsible for multiple audio synthesis.
  • the audioflinger can receive stream streams from PCM format of all applications.
  • This PCM stream includes stereo data audio data of L/R left and right channels.
  • Android phones generally only have one DAC (digital to analog converter)
  • the audio PCM stream data of multiple applications must be mixed and mixed by the audioflinger to become a PCM digital signal before it can be sent to the DAC for decoding into an analog audio signal. So by default, the audioflinger will mix the left and right channels of all the PCM streams of the application playing the audio into the new L/R left and right channels.
  • Both the audio analysis (2) and the audio processing module (3) of the present disclosure are implemented in an audioflinger.
  • the audio analysis module can obtain the UID information of the audio data through the audioflinger, and then according to the UID information, it is searched on which screen the application corresponding to the UID in the database is displayed.
  • the audio processing module then preprocesses the PCM stream of the audio stream corresponding to the UID on the left (L) side.
  • the preprocessing is mainly to combine the stereo PCM streams into a mono stream and encode as The left channel of the new stereo PCM stream, similarly if the audio stream corresponding to the UID is to be played on the right (R) side, the stereo PCM stream is merged into a mono and placed in the right of the new stereo PCM stream. Channel.
  • the two users can obtain the corresponding application play sounds from both sides of the mobile phone, thereby reducing the interference of the opposite video dubbing.
  • the method of the present disclosure can also be applied to a scene that does not have two speakers on two screens, and the same purpose can be achieved by headphones. After the audioflinger is mixed, the audio of the left and right headphones is one-to-one with the split screen. Assigned, in the scene of the headset, the method of the invention can also be used to not support dual screen, but supports the allocated mobile phone, as shown in FIG. 5, after split screen display on a single screen, a large screen can simultaneously play. Two videos, the sound corresponding to the two videos can be played separately through the left and right headphones.
  • the above audio playing method is applied to a single DAC solution.
  • a scheme to add a set of speaker and DAC schemes which can realize separate playback of two audio streams, but this
  • the solution will increase the cost of the DAC, and also need to change the existing hardware and software architecture, increase the hardware cost, and increase the cost and difficulty of the software design, and the audio playing method provided by the embodiment of the present disclosure can be in the terminal. Playback of two audio streams is achieved in a single DAC scenario. Reduced development and production costs and improved user experience.
  • a single DAC scheme may only support one channel per channel, so the stereo effect will be worse and the headphone solution will be particularly affected. So if you want to achieve high-end products, you can add a set of audio channels on the hardware. As shown in Figure 6, you can have multiple audio channels on the device. You can choose DAC in audioflinger, DAC selection and DAC hardware and which side.
  • the hardware architecture of the playback has a relationship. For example, the corresponding speaker is on the left side, then the pcm stream of the corresponding application on the left side is allocated to the DAC corresponding to the left speaker for decoding, and the right side is the same.
  • an audio playback device which is disposed on a terminal.
  • an audio playback device includes:
  • a synthesizing unit 10 configured to modulate the PCM code stream and the second PCM code stream according to the first pulse code to obtain a synthesized third PCM code stream; wherein the information of the first PCM code stream and the second PCM code stream are carried in the In one channel of the third PCM code stream;
  • the output unit 20 is configured to input the third PCM code stream to the digital-to-analog converter DAC, and output to the first speaker and the second speaker through the DAC for playing.
  • the synthesizing unit 10 obtains the synthesized third PCM code stream according to the first PCM code stream and the second PCM code stream, including:
  • the synthesizing unit 10 obtains the synthesized third PCM code stream according to the first PCM code stream and the second PCM code stream, including:
  • the synthesizing unit 10 acquiring the corresponding second PCM code stream attenuation data according to the second PCM code stream, comprising: performing 180 degree rotation on the data phase of the second PCM code stream, and multiplying by a preset attenuation. a coefficient to obtain a second PCM code stream attenuation data;
  • the obtaining, by the synthesizing unit 10, the corresponding first PCM code stream attenuation data according to the first PCM code stream comprises: performing 180-degree rotation on the data phase of the first PCM code stream, and multiplying by a preset attenuation coefficient, thereby obtaining the first The PCM code stream attenuates the data.
  • the synthesizing unit 10 is further configured to: before the obtaining the synthesized third PCM code stream according to the first PCM code stream and the second PCM code stream, confirming that the first PCM code stream corresponds to the first The channel is one of the L/R channels, confirming that the second channel corresponding to the second PCM stream is the other of the L/R channels; thus, according to the confirmed first channel and the second channel pair The first PCM code stream and the second PCM code stream are combined.
  • the synthesizing unit 10 confirms that the first channel corresponding to the first PCM code stream is one of the L/R channels, and includes:
  • the channel corresponding to the audio stream is confirmed according to the correspondence between the speaker and the channel.
  • an embodiment of the present disclosure further provides a terminal, including a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor.
  • a terminal including a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor.
  • the embodiments of the present disclosure further provide a terminal, where the terminal includes any of the audio playback devices provided by the embodiments of the present disclosure.
  • the present disclosure is applied to the field of smart terminal technology.
  • the technical solution of the present disclosure synthesizes two audio streams into one audio stream, and the information of the two audio streams are respectively carried in one channel of the synthesized audio stream, and the different channels of the synthesized audio stream pass Different speakers are played, so that different users can hear the accompanying sound of the video they are watching.
  • an audio playback method is provided to enhance the user experience, especially the dual-screen mobile phone. Concurrent multimedia user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Acoustics & Sound (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Mathematical Physics (AREA)
  • Computational Linguistics (AREA)
  • Stereophonic System (AREA)

Abstract

本公开提供一种音频播放方法和装置、及终端,该方法包括:根据第一脉冲编码调制PCM码流和第二PCM码流,获得合成的第三PCM码流;其中,第一PCM码流和第二PCM码流的信息分别携带在所述第三PCM码流的一个声道中;将第三PCM码流输入至数模转换器DAC,并通过DAC输出至第一扬声器和第二扬声器进行播放。通过本公开的方案,将两个音频码流合成为一个音频码流,且两个音频码流的信息分别携带在合成的音频码流的一个声道中,合成的音频码流的不同声道通过不同的扬声器播放,使得不同的用户能够听到自己观看的视频的伴音,在不改变现有硬件结构的基础上,提供了一种音频播放方法,提升用户体验,尤其是提升了双屏手机的并发多媒体的用户体验。

Description

一种音频播放方法和装置、及终端 技术领域
本公开涉及智能终端技术领域,尤指一种音频播放方法和装置、及终端。
背景技术
双屏智能手机拥有两个屏幕,一个典型的应用场景如图1所示,两个屏幕按照图1中的样式摆放,然后同时分别播放两个视频,这样可以两个人同事在两边观看电影等带有图像的多媒体内容。这种新的体验模式,可以在家中,也可以在出差旅行的火车上,这是一种很好的双屏对用户体验的增强功能。
但是目前的双屏手机只有一个音频DAC(Digital to analog converter,数模转换器)芯片,所以当屏幕两边的多媒体内容都有音频信息的时候,目前的智能设备只能把两个屏幕播放的视频的声道混音之后通过所有的扬声器播放出来,这样直接导致在屏幕两侧的用户无法清晰辨别自己视频的伴音,并受到对方屏幕的视频的干扰,极大的影响用户体验。
发明内容
为了解决上述问题,本公开提出了一种音频播放方法和装置、及终端,能够解决现有技术中通过双屏同时播放视频时用户无法清晰听到自己视频的伴音而降低用户体验的问题。
为了解决上述技术问题,本公开提出了一种音频播放方法,所述方法包括:
根据第一脉冲编码调制PCM码流和第二PCM码流,获得合成的第三PCM码流;其中,第一PCM码流和第二PCM码流的信息分别携带在所述第三PCM码流的一个声道中;
将第三PCM码流输入至数模转换器DAC,并通过DAC输出至第一扬声器和第二扬声器进行播放。
根据一个示例性实施例,所述根据第一PCM码流和第二PCM码流,获得合成的第三PCM码流包括:
对第一PCM码流的左右声道进行叠加,得到第一单声道数据,将第一单声道数据作为第一待合成PCM码流的第一声道,设置第一待合成PCM码流的第二声道为空;
对第二PCM码流的左右声道进行叠加,得到第二单声道数据,将第二单声道数据作为第二待合成PCM码流的第二声道,设置第二待合成PCM码流的第一声道为空;
合成所述第一待合成PCM码流和第二待合成PCM码流;得到合成的第三PCM码流。
根据一个示例性实施例,所述根据第一PCM码流和第二PCM码流,获得合成的第三PCM码流包括:
对第一PCM码流的左右声道进行叠加,得到第一单声道数据,将第一单声道数据作为第一待合成PCM码流的第一声道,根据第二PCM码流获取对应的第二PCM码流衰减数据,将所述第二PCM码流衰减数据作为第一待合成PCM码流的第二声道;
对第二PCM码流的左右声道进行叠加,得到第二单声道数据,将第二单声道数据作为第二待合成PCM码流的第二声道;根据第一PCM码流获取对应的第一PCM码流衰减数据,将所述第一PCM码流衰减数据作为第二待合成PCM码流的第一声道;
合成所述第一待合成PCM码流和第二待合成PCM码流;得到合成的第三PCM码流。
根据一个示例性实施例,所述根据第二PCM码流获取对应的第二PCM码流衰减数据包括:对第二PCM码流的数据相位进行180度旋转,并乘以预设的衰减系数,从而获得第二PCM码流衰减数据;
所述根据第一PCM码流获取对应的第一PCM码流衰减数据包括:对第一PCM码流的数据相位进行180度旋转,并乘以预设的衰减系数,从而获得第一PCM码流衰减数据。
根据一个示例性实施例,在所述根据第一PCM码流和第二PCM码流,获得合成的第三PCM码流之前,还包括:
确认第一PCM码流对应的第一声道为L/R声道中的一个,确认第二PCM码流对应的第二声道为L/R声道中的另一个;从而根据确认的第一声道和第二声道对所述第一PCM码流和第二PCM码流进行合成。
根据一个示例性实施例,确认第一PCM码流对应的第一声道为L/R声道中的一个包括:
根据音频码流找出所属的应用的uid。
根据应用的uid确认对应的播放屏幕;
根据播放屏幕与扬声器的对应关系,确认音频码流对应的扬声器;
根据扬声器与声道的对应关系,确认音频码流对应的声道。
为了解决上述技术问题,本公开还提出了一种音频播放装置,设置在终端上,所述装置包括:
合成单元,用于根据第一脉冲编码调制PCM码流和第二PCM码流,获得合成的第三PCM码流;其中,第一PCM码流和第二PCM码流的信息分别携带在所述第三 PCM码流的一个声道中;
输出单元,用于将第三PCM码流输入至数模转换器DAC,并通过DAC输出至第一扬声器和第二扬声器进行播放。
根据一个示例性实施例,所述合成单元根据第一PCM码流和第二PCM码流,获得合成的第三PCM码流包括:
对第一PCM码流的左右声道进行叠加,得到第一单声道数据,将第一单声道数据作为第一待合成PCM码流的第一声道,设置第一待合成PCM码流的第二声道为空;
对第二PCM码流的左右声道进行叠加,得到第二单声道数据,将第二单声道数据作为第二待合成PCM码流的第二声道,设置第二待合成PCM码流的第一声道为空;
合成所述第一待合成PCM码流和第二待合成PCM码流;得到合成的第三PCM码流。
根据一个示例性实施例,所述合成单元根据第一PCM码流和第二PCM码流,获得合成的第三PCM码流包括:
对第一PCM码流的左右声道进行叠加,得到第一单声道数据,将第一单声道数据作为第一待合成PCM码流的第一声道,根据第二PCM码流获取对应的第二PCM码流衰减数据,将所述第二PCM码流衰减数据作为第一待合成PCM码流的第二声道;
对第二PCM码流的左右声道进行叠加,得到第二单声道数据,将第二单声道数据作为第二待合成PCM码流的第二声道;根据第一PCM码流获取对应的第一PCM码流衰减数据,将所述第一PCM码流衰减数据作为第二待合成PCM码流的第一声道;
合成所述第一待合成PCM码流和第二待合成PCM码流;得到合成的第三PCM码流。
根据一个示例性实施例,所述合成单元根据第二PCM码流获取对应的第二PCM码流衰减数据包括:对第二PCM码流的数据相位进行180度旋转,并乘以预设的衰减系数,从而获得第二PCM码流衰减数据;
所述合成单元根据第一PCM码流获取对应的第一PCM码流衰减数据包括:对第一PCM码流的数据相位进行180度旋转,并乘以预设的衰减系数,从而获得第一PCM码流衰减数据。
根据一个示例性实施例,所述合成单元还用于在所述根据第一PCM码流和第二PCM码流,获得合成的第三PCM码流之前,确认第一PCM码流对应的第一声道为L/R声道中的一个,确认第二PCM码流对应的第二声道为L/R声道中的另一个;从而根据确认的第一声道和第二声道对所述第一PCM码流和第二PCM码流进行合成。
根据一个示例性实施例,所述合成单元确认第一PCM码流对应的第一声道为L/R声道中的一个包括:
根据音频码流找出所属的应用的uid。
根据应用的uid确认对应的播放屏幕;
根据播放屏幕与扬声器的对应关系,确认音频码流对应的扬声器;
根据扬声器与声道的对应关系,确认音频码流对应的声道。
为了解决上述技术问题,本公开还提出了一种终端,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述任一音频播放方法的处理。
为了解决上述技术问题,本公开还提出了一种终端,所述终端包括上述任一音频播放装置。
与现有技术相比,本公开提供的技术方案包括:根据第一PCM码流和第二PCM码流,获得合成的第三PCM码流;其中,第一PCM码流和第二PCM码流的信息分别携带在所述第三PCM码流的一个声道中;将第三PCM码流输入至DAC,并通过DAC输出至第一扬声器和第二扬声器进行播放。通过本公开的方案,将两个音频码流合成为一个音频码流,且两个音频码流的信息分别携带在合成的音频码流的一个声道中,合成的音频码流的不同声道通过不同的扬声器播放,使得不同的用户能够听到自己观看的视频的伴音,在不改变现有硬件结构的基础上,提供了一种音频播放方法,提升用户体验,尤其是提升了双屏手机的并发多媒体的用户体验。
附图说明
下面对本公开实施例中的附图进行说明,实施例中的附图是用于对本公开的进一步理解,与说明书一起用于解释本公开,并不构成对本公开保护范围的限制。
图1为现有技术中双屏智能手机的应用场景示意图;
图2为本公开实施例提供的音频播放方法的流程图;
图3A和3B为双屏手机两侧的扬声器示意图;
图4为本公开实施例提供的音频播放方法的实现示意图;
图5为单屏进行分屏显示后播放两个视频的示意图;
图6为本公开实施例提供的多路音频通路场景下的音频播放方法的实现示意图;
图7为本公开实施例提供的音频播放装置的结构组成示意图。
具体实施方式
为了便于本领域技术人员的理解,下面结合附图对本公开作进一步的描述,并不能用来限制本公开的保护范围。需要说明的是,在不冲突的情况下,本申请中的实施例及实施 例中的各种方式可以相互组合。
参见图2,本公开提出了一种音频播放方法,所述方法包括:
步骤120、根据第一(pulse code modulation,脉冲编码调制)PCM码流和第二PCM码流,获得合成的第三PCM码流;其中,第一PCM码流和第二PCM码流的信息分别携带在所述第三PCM码流的一个声道中;
步骤130、将第三PCM码流输入至DAC,并通过DAC输出至第一扬声器和第二扬声器进行播放。
如图3A和3B所示,双屏手机两侧的屏幕可以分别播放视频A和视频B,其中,每一侧的屏幕有自己的扬声器,可以分别播放音频码流中的一个声道,因此,通过视频A一侧的扬声器播放视频A的伴音声音A,通过视频B一侧的扬声器播放视频B的伴音声音B,声音A和声音B分别为合成的PCM码流的L声道和R声道。图3B为扬声器L和扬声器R的示意图,其中,扬声器L和扬声器R具有不同的声场范围,从而不影响彼此的声音传播。
其中,步骤120中,所述根据第一PCM码流和第二PCM码流,获得合成的第三PCM码流包括:
对第一PCM码流的左右声道进行叠加,得到第一单声道数据,将第一单声道数据作为第一待合成PCM码流的第一声道,设置第一待合成PCM码流的第二声道为空;
对第二PCM码流的左右声道进行叠加,得到第二单声道数据,将第二单声道数据作为第二待合成PCM码流的第二声道,设置第二待合成PCM码流的第一声道为空;
合成所述第一待合成PCM码流和第二待合成PCM码流;得到合成的第三PCM码流。
其中,步骤120中,所述根据第一PCM码流和第二PCM码流,获得合成的第三PCM码流包括:
对第一PCM码流的左右声道进行叠加,得到第一单声道数据,将第一单声道数据作为第一待合成PCM码流的第一声道,根据第二PCM码流获取对应的第二PCM码流衰减数据,将所述第二PCM码流衰减数据作为第一待合成PCM码流的第二声道;
对第二PCM码流的左右声道进行叠加,得到第二单声道数据,将第二单声道数据作为第二待合成PCM码流的第二声道;根据第一PCM码流获取对应的第一PCM码流衰减数据,将所述第一PCM码流衰减数据作为第二待合成PCM码流的第一声道;
合成所述第一待合成PCM码流和第二待合成PCM码流;得到合成的第三PCM码流。
其中,根据第二PCM码流获取对应的第二PCM码流衰减数据包括:对第二PCM码流的数据相位进行预定角度旋转,并乘以预设的衰减系数,从而获得第二PCM码流衰减数据;
所述根据第一PCM码流获取对应的第一PCM码流衰减数据包括:对第一PCM码流的数据相位进行预定角度的旋转,并乘以预设的衰减系数,从而获得第一PCM码流衰减数据。优选地,预定角度为180度。
上述实施例中,通过使用额外的声场相位干涉技术,可以增强抗干扰的效果,在一侧播放另外一侧音频的反相位的音频,实现彻底降噪,以彻底隔绝对方声音的影响。
本公开实施例中,在步骤120的根据第一PCM码流和第二PCM码流,获得合成的第三PCM码流之前,还包括:
步骤110,确认第一PCM码流和第二PCM码流对应的声道,即确认第一PCM码流对应的第一声道为L/R声道中的一个,确认第二PCM码流对应的第二声道为L/R声道中的另一个;从而根据确认的第一声道和第二声道对所述第一PCM码流和第二PCM码流进行合成。
本公开实施例中,步骤110中,需要确认PCM码流对应的声道为L/R声道中的一个,具体包括:
步骤111,根据音频码流找出所属的应用的uid。
步骤112,根据应用的uid确认对应的播放屏幕;
步骤113,根据播放屏幕与声道的对应关系,确认音频码流对应的声道;
其中,步骤113可以包括
步骤1131,根据播放屏幕与扬声器的对应关系,确认音频码流对应的扬声器;
步骤1132,根据扬声器与声道的对应关系,确认音频码流对应的声道。
此外,步骤113中,也可以预先设置播放屏幕与声道的对应关系,从而根据播放屏幕与声道的对应关系,确认音频码流对应的声道。
本公开实施例中,第一PCM码流和第二PCM码流是分别来自不同应用的音频码流,或者同一个应用的不同实例,在是两种应用的情况下,两个应用可以都是视频播放的应用,也可以一个是视频应用,一个是音频应用,或者两者都是音频应用,此外,两个应用可以是前后台的应用,该场景下,windowsmanager不需要做出双屏的判断,而是要做出前后台的判断,例如,可以实现一个声道播放后台的音乐/小说等纯音频,一个声道播放前台视频的伴音。
下面结合具体的实施场景进行说明。
如图4所示,为本公开实施例提供的音频播放方法的实现示意图,在双屏智能手机上,基于android windowsmanager的支持具备在两个屏幕上独立运行不同应用程序的能力,通过windowsmanager可以分配不同的应用到具体的屏幕上运行,可以进行应用所在屏幕的切换。用户启动的每个应用都可以操作其所在的屏幕,后台均通过windowsmanager进行调配。
在android操作系统上,应用程序都具备一个ID叫做UID,UID是userid的缩写,其中windowsmanager调配应用是以UID为单位的,所以目前的技术方案具备通过UID调配应用所显示的屏幕。
视频播放控制模块就是实现在windowsmanager中,对UID现在在哪块屏幕的信息会实时写入图4中的数据库中。
android的audioflinger是负责多个音频合成的模块,audioflinger可以接收来自于所有应用的PCM格式的stream流,这种PCM码流包括L/R左右声道的立体声数据音频数据。因为安卓手机普遍只具备一个DAC(数字模拟转换器),所以多个应用的音频PCM流数据必须经过audioflinger进行mix混合之后变成一路PCM数字信号,才可以送给DAC进行解码成模拟音频信号。所以默认的,audioflinger会将所有在播放音频的应用的PCM流的左右声道分别进行mix,变成新的L/R左右声道的音频流。
本公开的音频分析(2)和音频处理模块(3)都在audioflinger中实现。
首先音频分析模块可以通过audioflinger得到音频数据的UID信息,然后根据UID信息去查找数据库中UID对应的应用显示在哪块屏幕。
接着音频处理模块将在左(L)侧的UID对应的音频流的PCM码流进行预处理,预处理主要是将立体声的PCM码流合并成一个单声道(mono)的码流并编码为新的立体声PCM码流的左声道,类似的如果UID对应的音频流要在右(R)边播放,就讲立体声PCM码流合并成单声道后放入新的立体声PCM码流的右声道。
预处理全部完成后,多个应用的处理后的码流再合成为一个PCM立体声码流的时候,就一个声道播放A应用的声音,另外一个声道播放B应用的声音。
整个发明方案实施完成后,两个用户可以分别从手机的两侧获得对应的应用播放的声音,减少对面视频配音的干扰。
此外,本公开的方法也可以应用于没有在两个屏幕上拥有两个扬声器的场景,可以通过耳机来达到同样的目的,经过audioflinger混音之后左右耳机的音频是和分屏是一对一进行分配的,在耳机的场景上,此发明的方法也可以用于不支持双屏,但是支持分配的手机,如图5所示,在单屏进行分屏显示后,一个大屏幕上同时可以播放两个视频,这两个视频对应的声音可以分别通过左右耳机播放出来。
上述音频播放方法应用于单DAC方案中,对于双屏手机的音频播放问题,有一种方案时增加一整套speaker和DAC的方案,这种方案可以实现两个音频码流的单独播放,但是这种方案会增加DAC的成本,也需要对现有的硬件和软件架构进行改变,增加硬件成本的同时,也增加了软件设计的成本和难度,而本公开实施例提供的音频播放方法,可以在终端只有单DAC的场景下,实现两个音频码流的播放。降低了开发和生产成本,提高了用户体验。
单DAC方案可能每个声道只支持一个声道,所以立体声效果会变差,耳机方案尤其受到影响。所以如果要实现高端的产品可以在硬件上增加一套音频通路,如图6所示再拥有多路音频通路的设备上,可以在audioflinger做DAC的选择,DAC的选择和DAC硬件和哪一侧的播放的硬件架构有关系,比如对应的喇叭在左侧,那么左侧对应的应用的pcm stream就分配给左侧喇叭对应的DAC进行解码,右侧同理。
基于与上述实施例相同或相似的构思,本公开实施例还提供一种音频播放装置,设置在终端上,参见图7,本公开提出的一种音频播放装置包括:
合成单元10,用于根据第一脉冲编码调制PCM码流和第二PCM码流,获得合成的第三PCM码流;其中,第一PCM码流和第二PCM码流的信息分别携带在所述第三PCM码流的一个声道中;
输出单元20,用于将第三PCM码流输入至数模转换器DAC,并通过DAC输出至第一扬声器和第二扬声器进行播放。
本公开实施例中,所述合成单元10根据第一PCM码流和第二PCM码流,获得合成的第三PCM码流包括:
对第一PCM码流的左右声道进行叠加,得到第一单声道数据,将第一单声道数据作为第一待合成PCM码流的第一声道,设置第一待合成PCM码流的第二声道为空;
对第二PCM码流的左右声道进行叠加,得到第二单声道数据,将第二单声道数据作为第二待合成PCM码流的第二声道,设置第二待合成PCM码流的第一声道为空;
合成所述第一待合成PCM码流和第二待合成PCM码流;得到合成的第三PCM码流。
本公开实施例中,所述合成单元10根据第一PCM码流和第二PCM码流,获得合成的第三PCM码流包括:
对第一PCM码流的左右声道进行叠加,得到第一单声道数据,将第一单声道数据作为第一待合成PCM码流的第一声道,根据第二PCM码流获取对应的第二PCM码流衰减数据,将所述第二PCM码流衰减数据作为第一待合成PCM码流的第二声道;
对第二PCM码流的左右声道进行叠加,得到第二单声道数据,将第二单声道数据作为第二待合成PCM码流的第二声道;根据第一PCM码流获取对应的第一PCM码流衰减数据,将所述第一PCM码流衰减数据作为第二待合成PCM码流的第一声道;
合成所述第一待合成PCM码流和第二待合成PCM码流;得到合成的第三PCM码流。
本公开实施例中,所述合成单元10根据第二PCM码流获取对应的第二PCM码流衰减数据包括:对第二PCM码流的数据相位进行180度旋转,并乘以预设的衰减系数,从而获得第二PCM码流衰减数据;
所述合成单元10根据第一PCM码流获取对应的第一PCM码流衰减数据包括:对第一PCM码流的数据相位进行180度旋转,并乘以预设的衰减系数,从而获得第一PCM码流衰减数据。
本公开实施例中,所述合成单元10还用于在所述根据第一PCM码流和第二PCM码流,获得合成的第三PCM码流之前,确认第一PCM码流对应的第一声道为L/R声道中的一个,确认第二PCM码流对应的第二声道为L/R声道中的另一个;从而根据确认的第一声道和第二声道对所述第一PCM码流和第二PCM码流进行合成。
本公开实施例中,所述合成单元10确认第一PCM码流对应的第一声道为L/R声道中的一个包括:
根据音频码流找出所属的应用的uid。
根据应用的uid确认对应的播放屏幕;
根据播放屏幕与扬声器的对应关系,确认音频码流对应的扬声器;
根据扬声器与声道的对应关系,确认音频码流对应的声道。
基于与上述实施例相同或相似的构思,本公开实施例还提供一种终端,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述任一中音频播放方法的处理。
基于与上述实施例相同或相似的构思,本公开实施例还提供一种终端,所述终端包括本公开实施例提供的任一音频播放装置。
需要说明的是,以上所述的实施例仅是为了便于本领域的技术人员理解而已,并不用于限制本公开的保护范围,在不脱离本公开的发明构思的前提下,本领域技术人员对本公开所做出的任何显而易见的替换和改进等均在本公开的保护范围之内。
工业实用性
本公开应用于智能终端技术领域。本公开的技术方案将两个音频码流合成为一个音频码流,且两个音频码流的信息分别携带在合成的音频码流的一个声道中,合成的音频码流的不同声道通过不同的扬声器播放,使得不同的用户能够听到自己观看的视频的伴音,在不改变现有硬件结构的基础上,提供了一种音频播放方法,提升用户体验,尤其是提升了双屏手机的并发多媒体的用户体验。

Claims (14)

  1. 一种音频播放方法,包括:
    根据第一脉冲编码调制PCM码流和第二PCM码流,获得合成的第三PCM码流;其中,第一PCM码流和第二PCM码流的信息分别携带在所述第三PCM码流的一个声道中;
    将第三PCM码流输入至数模转换器DAC,并通过DAC输出至第一扬声器和第二扬声器进行播放。
  2. 根据权利要求1所述的音频播放方法,其中,所述根据第一PCM码流和第二PCM码流,获得合成的第三PCM码流包括:
    对第一PCM码流的左右声道进行叠加,得到第一单声道数据,将第一单声道数据作为第一待合成PCM码流的第一声道,设置第一待合成PCM码流的第二声道为空;
    对第二PCM码流的左右声道进行叠加,得到第二单声道数据,将第二单声道数据作为第二待合成PCM码流的第二声道,设置第二待合成PCM码流的第一声道为空;
    合成所述第一待合成PCM码流和第二待合成PCM码流;得到合成的第三PCM码流。
  3. 根据权利要求1所述的音频播放方法,其中,所述根据第一PCM码流和第二PCM码流,获得合成的第三PCM码流包括:
    对第一PCM码流的左右声道进行叠加,得到第一单声道数据,将第一单声道数据作为第一待合成PCM码流的第一声道,根据第二PCM码流获取对应的第二PCM码流衰减数据,将所述第二PCM码流衰减数据作为第一待合成PCM码流的第二声道;
    对第二PCM码流的左右声道进行叠加,得到第二单声道数据,将第二单声道数据作为第二待合成PCM码流的第二声道;根据第一PCM码流获取对应的第一PCM码流衰减数据,将所述第一PCM码流衰减数据作为第二待合成PCM码流的第一声道;
    合成所述第一待合成PCM码流和第二待合成PCM码流;得到合成的第三PCM码流。
  4. 根据权利要求3所述的音频播放方法,其中,
    根据第二PCM码流获取对应的第二PCM码流衰减数据包括:对第二PCM码流的数据相位进行180度旋转,并乘以预设的衰减系数,从而获得第二PCM码流衰减数据;
    所述根据第一PCM码流获取对应的第一PCM码流衰减数据包括:对第一PCM码流的数据相位进行180度旋转,并乘以预设的衰减系数,从而获得第一PCM码流 衰减数据。
  5. 根据权利要求3或4所述的音频播放方法,其中,在所述根据第一PCM码流和第二PCM码流,获得合成的第三PCM码流之前,还包括:
    确认第一PCM码流对应的第一声道为L/R声道中的一个,确认第二PCM码流对应的第二声道为L/R声道中的另一个;从而根据确认的第一声道和第二声道对所述第一PCM码流和第二PCM码流进行合成。
  6. 根据权利要求5所述的音频播放方法,其中,确认第一PCM码流对应的第一声道为L/R声道中的一个包括:
    根据音频码流找出所属的应用的uid;
    根据应用的uid确认对应的播放屏幕;
    根据播放屏幕与扬声器的对应关系,确认音频码流对应的扬声器;
    根据扬声器与声道的对应关系,确认音频码流对应的声道。
  7. 一种音频播放装置,设置在终端上,所述装置包括:
    合成单元,设置为根据第一脉冲编码调制PCM码流和第二PCM码流,获得合成的第三PCM码流;其中,第一PCM码流和第二PCM码流的信息分别携带在所述第三PCM码流的一个声道中;
    输出单元,设置为将第三PCM码流输入至数模转换器DAC,并通过DAC输出至第一扬声器和第二扬声器进行播放。
  8. 根据权利要求7所述的音频播放装置,其中,所述合成单元根据第一PCM码流和第二PCM码流,获得合成的第三PCM码流包括:
    对第一PCM码流的左右声道进行叠加,得到第一单声道数据,将第一单声道数据作为第一待合成PCM码流的第一声道,设置第一待合成PCM码流的第二声道为空;
    对第二PCM码流的左右声道进行叠加,得到第二单声道数据,将第二单声道数据作为第二待合成PCM码流的第二声道,设置第二待合成PCM码流的第一声道为空;
    合成所述第一待合成PCM码流和第二待合成PCM码流;得到合成的第三PCM码流。
  9. 根据权利要求7所述的音频播放装置,其中,所述合成单元根据第一PCM码流和第二PCM码流,获得合成的第三PCM码流包括:
    对第一PCM码流的左右声道进行叠加,得到第一单声道数据,将第一单声道数据作为第一待合成PCM码流的第一声道,根据第二PCM码流获取对应的第二PCM码流衰减数据,将所述第二PCM码流衰减数据作为第一待合成PCM码流的第二声道;
    对第二PCM码流的左右声道进行叠加,得到第二单声道数据,将第二单声道数 据作为第二待合成PCM码流的第二声道;根据第一PCM码流获取对应的第一PCM码流衰减数据,将所述第一PCM码流衰减数据作为第二待合成PCM码流的第一声道;
    合成所述第一待合成PCM码流和第二待合成PCM码流;得到合成的第三PCM码流。
  10. 根据权利要求9所述的音频播放装置,其中,所述合成单元根据第二PCM码流获取对应的第二PCM码流衰减数据包括:对第二PCM码流的数据相位进行180度旋转,并乘以预设的衰减系数,从而获得第二PCM码流衰减数据;
    所述合成单元根据第一PCM码流获取对应的第一PCM码流衰减数据包括:对第一PCM码流的数据相位进行180度旋转,并乘以预设的衰减系数,从而获得第一PCM码流衰减数据。
  11. 根据权利要求9或10所述的音频播放装置,其中,所述合成单元还设置为在所述根据第一PCM码流和第二PCM码流,获得合成的第三PCM码流之前,确认第一PCM码流对应的第一声道为L/R声道中的一个,确认第二PCM码流对应的第二声道为L/R声道中的另一个;从而根据确认的第一声道和第二声道对所述第一PCM码流和第二PCM码流进行合成。
  12. 根据权利要求11所述的音频播放装置,其中,所述合成单元确认第一PCM码流对应的第一声道为L/R声道中的一个包括:
    根据音频码流找出所属的应用的uid;
    根据应用的uid确认对应的播放屏幕;
    根据播放屏幕与扬声器的对应关系,确认音频码流对应的扬声器;
    根据扬声器与声道的对应关系,确认音频码流对应的声道。
  13. 一种终端,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现如权利要求1至6中任一权项所述的方法的处理。
  14. 一种终端,包括权利要求7~13中任一项提供的音频播放装置。
PCT/CN2018/101573 2017-09-08 2018-08-21 一种音频播放方法和装置、及终端 WO2019047712A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP18854656.8A EP3657821B1 (en) 2017-09-08 2018-08-21 Method and device for playing back audio, and terminal
US16/798,185 US11120808B2 (en) 2017-09-08 2020-02-21 Audio playing method and apparatus, and terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710806127.6A CN108206886A (zh) 2017-09-08 2017-09-08 一种音频播放方法和装置、及终端
CN201710806127.6 2017-09-08

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/798,185 Continuation US11120808B2 (en) 2017-09-08 2020-02-21 Audio playing method and apparatus, and terminal

Publications (1)

Publication Number Publication Date
WO2019047712A1 true WO2019047712A1 (zh) 2019-03-14

Family

ID=62603964

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/101573 WO2019047712A1 (zh) 2017-09-08 2018-08-21 一种音频播放方法和装置、及终端

Country Status (4)

Country Link
US (1) US11120808B2 (zh)
EP (1) EP3657821B1 (zh)
CN (1) CN108206886A (zh)
WO (1) WO2019047712A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108206886A (zh) * 2017-09-08 2018-06-26 中兴通讯股份有限公司 一种音频播放方法和装置、及终端
CN114296580A (zh) * 2021-04-30 2022-04-08 海信视像科技股份有限公司 显示设备及用户界面的控制方法
CN115794022B (zh) * 2022-12-02 2023-12-19 摩尔线程智能科技(北京)有限责任公司 音频输出方法、装置、设备、存储介质和程序产品

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459717A (zh) * 2007-12-11 2009-06-17 英华达(上海)电子有限公司 无线终端和在其中实现多声道复用的方法
US20100235661A1 (en) * 2009-03-13 2010-09-16 Foxconn Communication Technology Corp. Electronic device and power management method for audio control system thereof
CN105679345A (zh) * 2015-12-28 2016-06-15 联想(北京)有限公司 一种音频处理方法及电子设备
CN107040496A (zh) * 2016-02-03 2017-08-11 中兴通讯股份有限公司 一种音频数据处理方法和装置
CN108206886A (zh) * 2017-09-08 2018-06-26 中兴通讯股份有限公司 一种音频播放方法和装置、及终端

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5946352A (en) * 1997-05-02 1999-08-31 Texas Instruments Incorporated Method and apparatus for downmixing decoded data streams in the frequency domain prior to conversion to the time domain
CN102063908A (zh) * 2010-10-15 2011-05-18 上海华勤通讯技术有限公司 一种pc和手机之间进行音频数据传输的方法
US20140241558A1 (en) * 2013-02-27 2014-08-28 Nokia Corporation Multiple Audio Display Apparatus And Method
WO2014184618A1 (en) * 2013-05-17 2014-11-20 Nokia Corporation Spatial object oriented audio apparatus
CN106131322A (zh) * 2016-06-30 2016-11-16 努比亚技术有限公司 双屏移动终端播放声音的方法及装置
CN106686211A (zh) * 2016-11-30 2017-05-17 努比亚技术有限公司 一种分屏模式下声音播放的处理方法及终端

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459717A (zh) * 2007-12-11 2009-06-17 英华达(上海)电子有限公司 无线终端和在其中实现多声道复用的方法
US20100235661A1 (en) * 2009-03-13 2010-09-16 Foxconn Communication Technology Corp. Electronic device and power management method for audio control system thereof
CN105679345A (zh) * 2015-12-28 2016-06-15 联想(北京)有限公司 一种音频处理方法及电子设备
CN107040496A (zh) * 2016-02-03 2017-08-11 中兴通讯股份有限公司 一种音频数据处理方法和装置
CN108206886A (zh) * 2017-09-08 2018-06-26 中兴通讯股份有限公司 一种音频播放方法和装置、及终端

Non-Patent Citations (1)

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

Also Published As

Publication number Publication date
US11120808B2 (en) 2021-09-14
EP3657821A4 (en) 2021-04-21
US20200194016A1 (en) 2020-06-18
CN108206886A (zh) 2018-06-26
EP3657821B1 (en) 2022-06-01
EP3657821A1 (en) 2020-05-27

Similar Documents

Publication Publication Date Title
US10674262B2 (en) Merging audio signals with spatial metadata
US7555354B2 (en) Method and apparatus for spatial reformatting of multi-channel audio content
US11962993B2 (en) Grouping and transport of audio objects
US10382877B2 (en) Method and apparatus for rendering acoustic signal, and computer-readable recording medium
AU2014295217B2 (en) Audio processor for orientation-dependent processing
US20070296818A1 (en) Audio/visual Apparatus With Ultrasound
WO2020182020A1 (zh) 一种音频信号播放方法及显示设备
US11120808B2 (en) Audio playing method and apparatus, and terminal
US11930348B2 (en) Computer system for realizing customized being-there in association with audio and method thereof
US11930349B2 (en) Computer system for producing audio content for realizing customized being-there and method thereof
EP3836571A1 (en) Audio output apparatus and method of controlling thereof
JP2019537380A (ja) 電子装置及びその制御方法
US6917915B2 (en) Memory sharing scheme in audio post-processing
US11310616B2 (en) Method for outputting audio signal using scene orientation information in an audio decoder, and apparatus for outputting audio signal using the same
CN114915874A (zh) 音频处理方法、装置、设备、介质及程序产品
Tsingos et al. Surround sound with height in games using Dolby Pro Logic Iiz
CN105791937A (zh) 一种音视频处理方法以及相关设备
Chabanne et al. Surround sound with height in games using dolby pro logic iiz
EP4336343A1 (en) Device control
US20210377687A1 (en) Centralized processing of an incoming audio stream
JP2001275195A (ja) エンコード・デコードシステム
Staff Audio for Mobile and Handheld Devices

Legal Events

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

Ref document number: 18854656

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2018854656

Country of ref document: EP

Effective date: 20200220

NENP Non-entry into the national phase

Ref country code: DE