WO2016150316A1 - 音频输出控制方法及装置 - Google Patents

音频输出控制方法及装置 Download PDF

Info

Publication number
WO2016150316A1
WO2016150316A1 PCT/CN2016/076373 CN2016076373W WO2016150316A1 WO 2016150316 A1 WO2016150316 A1 WO 2016150316A1 CN 2016076373 W CN2016076373 W CN 2016076373W WO 2016150316 A1 WO2016150316 A1 WO 2016150316A1
Authority
WO
WIPO (PCT)
Prior art keywords
audio
stream
audio stream
voice
call
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2016/076373
Other languages
English (en)
French (fr)
Inventor
晏营
袁英灿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Publication of WO2016150316A1 publication Critical patent/WO2016150316A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Definitions

  • the present application relates to the field of terminal audio processing technologies, and in particular, to an audio output control method and apparatus.
  • a terminal device having a voice call function for example, a smart TV TV, a mobile phone, a tablet pad, a personal computer PC, etc.
  • the audio may be output exclusively in a voice-only manner, that is, when the voice call is started, the game is automatically turned off or paused or the audio and video being played is paused, and the function of making a voice call while playing a game or audio and video is not provided.
  • a mixed output may be used, so that the ongoing game or the sound of the audio and video and the voice of the call are mixed together, resulting in a confusing sound and a very bad user experience.
  • the purpose of the present application is to provide an audio output control method and device, which can realize effective splitting of call voice and background music, so that a user can simultaneously perform a voice call while playing a game or audio and video, and the user experience is good.
  • the application provides an audio output control method, the method comprising:
  • attribute information of the audio stream of the call voice where the attribute information includes a first stream type identifier, where the first stream type identifier is an audio of the call voice, when an audio track is created for the audio stream of the received call voice.
  • the stream type identifier of the stream
  • the audio stream whose attribute information meets the preset condition is output through the first audio output device, and the other audio stream is output through the second audio output device, and the attribute information is in accordance with the preset condition audio.
  • the stream is an audio stream having the first stream type identifier.
  • the application further provides an audio output control device, the device comprising:
  • a receiving unit configured to receive an audio stream of the call voice when in the voice call mode
  • a setting unit configured to set a sound track when an audio stream is generated for an audio stream of the call voice received by the receiving unit
  • the attribute information of the audio stream of the call voice, the attribute information includes a first stream type identifier, and the first stream type identifier is a stream type identifier of the audio stream of the call voice;
  • a splitting unit configured to output, by using the attribute information of the audio stream to be played, the audio stream whose attribute information meets the preset condition is output through the first audio output device, and output the other audio stream to the second audio output device, where the attribute information is consistent
  • the audio stream of the preset condition is an audio stream identified by the first stream type set by the setting unit.
  • the audio output control method and apparatus provided by the embodiment of the present invention can perform the offloading of the voice output by setting the stream type identifier of the audio stream of the call voice, so that the user can perform the game or the audio and video playback effectively.
  • the user experience is good.
  • FIG. 1 is a flowchart of an audio output control method according to an embodiment of the present application
  • FIG. 2 is a flowchart of still another audio output control method according to an embodiment of the present application.
  • FIG. 3 is a schematic diagram of an audio output control apparatus according to an embodiment of the present application.
  • FIG. 4 is a schematic diagram of still another audio output control apparatus according to an embodiment of the present application.
  • the audio output control method and device provided by the embodiments of the present application are applicable to various terminal devices having a voice call function, for example, a smart TV TV, a mobile phone, a tablet pad, a personal computer PC, and a television connected with a game console handle. Wait for the terminal.
  • a voice call function for example, a smart TV TV, a mobile phone, a tablet pad, a personal computer PC, and a television connected with a game console handle. Wait for the terminal.
  • an audio output control method in this embodiment of the present application includes:
  • S101 Receive an audio stream of a call voice in a voice call mode.
  • the voice call mode may include a voice call for a telephone call, a voice call of an instant messaging tool (such as WeChat, qq, etc.), an instant voice call in the game, and the like.
  • an instant messaging tool such as WeChat, qq, etc.
  • the audio stream of the call voice is received from the corresponding communication network or the Internet.
  • the attribute information includes a first stream type identifier, and the first stream type identifier is a stream type identifier of an audio stream of the call voice.
  • the audio stream of the call voice received in S101 needs to be created with an audio track (AudioTrack).
  • the stream type identifier of the call voice is set.
  • the stream type identifier is AudioSystem.STREAM_VOICE_CALL, etc., for identifying Call voice.
  • the audio stream whose attribute information meets the preset condition is an audio stream having the identifier of the first stream type.
  • the audio stream having the first stream type identifier (eg, the stream type identifier is AudioSystem.STREAM_VOICE_CALL) is output through the first audio output device according to the stream type identifier of the audio stream to be played. Accordingly, other audio streams that do not have the first stream type identification are output through the second audio output device.
  • the stream type identifier is AudioSystem.STREAM_VOICE_CALL
  • the first audio output device may be a headset, including a wireless headset such as a wired headset and a Bluetooth headset.
  • the second audio output device includes an audio playback device (a speaker, a speaker or a loudspeaker, etc.) on the terminal, such as a speaker of a television set, a loudspeaker of a mobile phone or a pad, etc., or may be output to other through a connection line.
  • an audio playback device a speaker, a speaker or a loudspeaker, etc.
  • the terminal such as a speaker of a television set, a loudspeaker of a mobile phone or a pad, etc., or may be output to other through a connection line.
  • PA equipment On the terminal's PA equipment.
  • the game controller is connected to the TV through a High Definition Multimedia Interface (HDMI) data line, and the game controller has a sound output port, and the earphone can be inserted. In this output port.
  • HDMI High Definition Multimedia Interface
  • sounds eg, game sounds, movie sounds
  • TV's HDMI the TV's HDMI
  • TV's speakers the sound is output from the headphones.
  • attribute information such as the stream type of the voice (audio stream of the call voice) and the sampling rate of the voice is set as the only audio stream of the call voice.
  • the identification is further divided according to the identifiers, and the call voice and other background sounds are distinguished from the audio stream to be played, the call voice is output from the earphone, and other sounds are output from the HDMI of the TV, and played out by the speaker of the TV, thereby Give users a better product experience, can meet the needs of users while talking on the game, or meet the needs of users while watching video while talking.
  • the attribute information of the audio stream of the call voice set in S102 may further include a first sound sampling rate, where the first sound sampling rate is a sampling rate of the audio stream of the call voice.
  • the sampling rate is how many sound samples are collected by the computer per second. It is the quality standard that describes the sound quality and tone of the sound file and measures the sound card and sound file.
  • the first sound sampling rate may be used for sampling
  • the second sound sampling rate may be used for sampling, wherein the first sound sampling rate and
  • the second sound sampling rate is a different sampling rate, determined by the hardware or software of the terminal (such as TV).
  • the sampling rate of the audio stream of the call voice can also be set to be the first sound sampling rate. Then, in S103, the audio stream whose attribute information meets the preset condition is an audio stream having the first stream type identifier and the first sound sampling rate.
  • the call voice and the background music can be effectively outputted to different port outputs, so that the user can simultaneously play the game or the audio and video.
  • Make a voice call play a game (or watch a video) while making a voice call, and the user experience is good.
  • the audio output control method in this embodiment of the present application includes:
  • S201 Determine whether the first audio output device exists. If yes, go to S202. Otherwise, go to S207.
  • S202 Determine whether a request to enter the voice call mode is received or is in a voice call mode. If yes, go to S203, otherwise, go to S206.
  • S203 Receive an audio stream of the call voice when in the voice call mode.
  • the attribute information includes a first stream type identifier, and the first stream type identifier is a stream type identifier of an audio stream of the call voice.
  • the audio stream whose attribute information meets the preset condition is an audio stream having the identifier of the first stream type.
  • steps S203 to S205 are the same as the steps S101 to S103 in FIG. 1 and will not be described again.
  • S201 may also be set after S202.
  • S202 determines that it is in the non-talk mode, it determines whether there is a first audio output device, and if so, proceeds to S206 to pass the audio stream to be played through the first audio. The device output is output, otherwise the process proceeds to S207, and the audio stream to be played is output through the second audio output device.
  • the S202 determines that the request to enter the voice call mode is received or is in the voice call mode, it is determined whether the first audio output device exists, and if yes, the process proceeds to S206, and the audio stream to be played is output through the first audio output device, otherwise Going to S207, the audio stream to be played is output through the second audio output device.
  • the user can insert the earphone when receiving the voice call request, then when the voice call is connected, the audio stream of the call voice is offloaded from the earphone to the user, and other sounds are output from the original audio playback device.
  • the terminal may pop up a dialog box for selecting, and the user may select to adopt a split output mode or a normal output mode.
  • the method is processed according to the method provided in this embodiment, and the call voice is output by using the earphone, and the background sound is output by using the sound amplification device.
  • the method is processed according to the existing method, and the call voice and the background sound are mixed and outputted in the same output device by using the mixed output mode, or the background sound is paused by using the sound exclusive mode. Only the call voice is output.
  • the user can also set a default option, and when the voice of the call and the other voices are simultaneously present, the output is outputted separately, and then processed according to the method provided by the embodiment of the present application. It can also be set to a splitless output mode, and then processed according to the existing method, and the call voice and the background sound are mixed and outputted in the same output device, or the background sound is paused, and only the call voice is output.
  • the audio output control method provided by the embodiment of the present invention can perform the offloading of the audio output by setting the attribute information such as the stream type identifier of the audio stream of the call voice, so that the user can perform the game or the audio and video effectively. When playing, you can make a voice call at the same time, and the user experience is good.
  • FIG. 3 is a schematic diagram of an audio output control apparatus according to an embodiment of the present disclosure.
  • the audio output control apparatus of the present application includes: a receiving unit 301, a setting unit 302, and a shunting unit 303.
  • the receiving unit 301 is configured to receive an audio stream of the call voice when in the voice call mode.
  • the setting unit 302 is configured to set attribute information of the audio stream of the call voice when the audio track is created for the audio stream of the call voice received by the receiving unit 301.
  • the attribute information includes a first stream type identifier, and the first stream type identifier is a stream type identifier of an audio stream of the call voice.
  • the offloading unit 303 is configured to output the audio stream whose attribute information conforms to the preset condition through the first audio output device 304 according to the attribute information of the audio stream to be played, and output the other audio stream through the second audio output device 305.
  • the audio stream whose attribute information meets the preset condition is an audio stream that has the first stream type identifier set by the setting unit 302.
  • the first audio output device 304 is an earphone
  • the second audio output device 305 is an audio output device of the terminal, such as a speaker of a television, a speaker of a mobile phone or a pad, and the like.
  • the attribute information of the audio stream of the call voice further includes a first sound sampling rate
  • the first sound sampling rate is a sampling rate of the audio stream of the call voice.
  • the setting unit 302 is further configured to set a sampling rate of the audio stream of the call voice when the audio track is created for the audio stream of the received call voice. Then, the audio stream whose attribute information meets the preset condition is an audio stream having the first stream type identifier and the first sound sampling rate.
  • the functions of the above units may correspond to the processing steps of the audio output control method described in detail in FIG. 1, and details are not described herein again.
  • the audio output control apparatus of the present application includes: a device determining unit 401, a call determining unit 402, a receiving unit 403, a setting unit 404, and a shunting unit. 405.
  • the device determining unit 401 is configured to determine whether the first audio output device exists, and if yes, output the audio stream to be played through the first audio output device; otherwise, output the audio stream to be played through the second audio output device.
  • the call determining unit 402 determines whether the voice call mode is in the voice call mode.
  • the call determining unit 402 is configured to determine whether to request to enter the voice call mode or to be in the voice call mode, and if yes, receive the audio stream of the call voice by using the receiving unit 403.
  • the receiving unit 403 is configured to receive an audio stream of the call voice when the call determining unit 402 determines that it is in the voice call mode.
  • the setting unit 404 sets attribute information of the audio stream of the call voice when creating a track of the audio stream of the call voice received by the receiving unit 403.
  • the attribute information includes a first stream type identifier, and the first stream type identifier is a stream type identifier of an audio stream of the call voice.
  • the splitting unit 405 is configured to match the attribute information with the preset condition according to the attribute information of the audio stream to be played.
  • the frequency stream is output through the first audio output device 406, and the other audio streams are output through the second audio output device 407.
  • the audio stream whose attribute information meets the preset condition is an audio stream that has the first stream type identifier set by the setting unit 404.
  • the first audio output device 406 is an earphone
  • the second audio output device 407 is an audio output device of the terminal, such as a speaker of a television, a speaker of a mobile phone or a pad, and the like.
  • the attribute information of the audio stream of the call voice further includes a first sound sampling rate
  • the first sound sampling rate is a sampling rate of the audio stream of the call voice.
  • the setting unit 404 is further configured to set a sampling rate of the audio stream of the call voice when the audio track is created for the audio stream of the received call voice. Then, the audio stream whose attribute information meets the preset condition is an audio stream having the first stream type identifier and the first sound sampling rate.
  • the functions of the above units may correspond to the processing steps of the above audio output control method described in detail in FIG. 2, and details are not described herein again.
  • the audio output control method and device provided by the embodiment of the present invention can perform the offloading of the audio output by setting the stream type identifier of the audio stream of the call voice in the voice call mode, so that the call voice and the background music can be effectively shunted, so that the user When playing games or audio and video playback, you can make a voice call at the same time, and the user experience is good.
  • the steps of a method or algorithm described in connection with the embodiments disclosed herein can be implemented in hardware, a software module executed by a processor, or a combination of both.
  • the software module can be placed in random access memory (RAM), memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or technical field. Any other form of storage medium known.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

本申请涉及一种音频输出控制方法及装置,所述方法包括:在语音通话模式时,接收通话语音的音频流;在对接收到的通话语音的音频流创建音轨时,设置所述通话语音的音频流的属性信息,所述属性信息包括第一流类型标识,所述第一流类型标识为所述通话语音的音频流的流类型标识;根据待播放的音频流的属性信息,将属性信息符合预设条件的音频流通过第一音频输出设备输出,将其他音频流通过第二音频输出设备输出,所述属性信息符合预设条件的音频流为具有所述第一流类型标识的音频流。本申请可以实现通话语音与背景音乐的有效分流,使得用户在进行游戏或者音视频播放时,可以同时进行语音通话,用户体验好。

Description

音频输出控制方法及装置
本申请要求2015年03月23日递交的申请号为201510128650.9、发明名称为“音频输出控制方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端音频处理技术领域,尤其涉及一种音频输出控制方法及装置。
背景技术
在现有具有语音通话功能的终端设备(例如智能电视机TV、手机、平板电脑pad、个人计算机PC等)上,在正在进行游戏或者音视频播放时,接收到语音通话或者视频通话请求时,可能会采用声音独占的方式输出音频,即在开始进行语音通话时,自动关闭或暂停游戏或者暂停正在播放的音视频,无法提供一边进行游戏或者音视频播放,一边进行语音通话的功能。或者,也可能会采用混合输出的方式,这样,正在进行的游戏或者音视频的声音和通话的语音混合在一起,导致声音混乱,用户体验非常不好。
发明内容
本申请的目的是,提供一种音频输出控制方法及装置,可以实现通话语音与背景音乐的有效分流,使得用户在进行游戏或者音视频播放时,可以同时进行语音通话,用户体验好。
本申请提供了一种音频输出控制方法,所述方法包括:
在语音通话模式时,接收通话语音的音频流;
在对接收到的通话语音的音频流创建音轨时,设置所述通话语音的音频流的属性信息,所述属性信息包括第一流类型标识,所述第一流类型标识为所述通话语音的音频流的流类型标识;
根据待播放的音频流的属性信息,将属性信息符合预设条件的音频流通过第一音频输出设备输出,将其他音频流通过第二音频输出设备输出,所述属性信息符合预设条件的音频流为具有所述第一流类型标识的音频流。
又一方面,本申请还提供了一种音频输出控制装置,所述装置包括:
接收单元,用于在语音通话模式时,接收通话语音的音频流;
设置单元,用于在对所述接收单元接收到的通话语音的音频流创建音轨时,设置所 述通话语音的音频流的属性信息,所述属性信息包括第一流类型标识,所述第一流类型标识为所述通话语音的音频流的流类型标识;
分流单元,用于根据待播放的音频流的属性信息,将属性信息符合预设条件的音频流通过第一音频输出设备输出,将其他音频流通过第二音频输出设备输出,所述属性信息符合预设条件的音频流为具有所述设置单元设置的所述第一流类型标识的音频流。
本申请实施例提供的音频输出控制方法及装置,通过设置通话语音的音频流的流类型标识进行音频输出的分流,可以实现通话语音与背景音乐的有效分流,使得用户在进行游戏或者音视频播放时,可以同时进行语音通话,用户体验好。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例提供的一种音频输出控制方法流程图;
图2为本申请实施例提供的又一种音频输出控制方法流程图;
图3为本申请实施例提供的一种音频输出控制装置示意图;
图4为本申请实施例提供的又一种音频输出控制装置示意图。
具体实施方式
为使得本申请的发明目的、特征、优点能够更加的明显和易懂,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述,显然,所描述的实施例仅仅是本申请一部分实施例,而非全部实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请实施例提供的音频输出控制方法及装置,适用于各类具有语音通话功能的终端设备,例如,智能电视机TV、手机、平板电脑pad、个人计算机PC、连接有游戏机手柄的电视机等终端。
图1是本申请实施例提供的音频输出控制方法流程图,如图1所示,本申请实施例的音频输出控制方法包括:
S101、在语音通话模式时,接收通话语音的音频流。
语音通话模式可以包括电话呼叫的语音通话、即时通讯工具(如微信、qq等)的语音通话、游戏中的即时语音通话等。当处于语音通话模式时,从对应的通信网络或者互联网中接收通话语音的音频流。
S102、在对接收到的通话语音的音频流创建音轨时,设置所述通话语音的音频流的属性信息。
所述属性信息包括第一流类型标识,所述第一流类型标识为所述通话语音的音频流的流类型标识。
对S101中接收到的通话语音的音频流需要创建音轨(AudioTrack),在创建通话语音的AudioTrack时,设置该通话语音的流类型标识,例如,流类型标识为AudioSystem.STREAM_VOICE_CALL等,用以标识通话语音。
S103、根据待播放的音频流的属性信息,将属性信息符合预设条件的音频流通过第一音频输出设备输出,将其他音频流通过第二音频输出设备输出。
所述属性信息符合预设条件的音频流为具有所述第一流类型标识的音频流。
根据待播放的音频流的流类型标识,将具有第一流类型标识(如流类型标识为AudioSystem.STREAM_VOICE_CALL)的音频流通过第一音频输出设备输出。相应地,将不具有所述第一流类型标识的其他音频流通过第二音频输出设备输出。
其中,第一音频输出设备可以是耳机,包括有线耳机以及蓝牙耳机等无线耳机。第二音频输出设备包括终端上的音频播放设备(喇叭、音箱或扩音器等扩音设备),例如电视机的音箱,手机或pad的扩音器等,也可以是通过连接线输出到其他终端的扩音设备上。
举个例子,在具有语音通话的智能TV终端设备上,游戏手柄通过高清晰度多媒体接口(High Definition Multimedia Interface,HDMI)数据线与TV相连接,游戏手柄上带有声音输出端口,耳机可插入在这个输出端口中。
在非语音通话模式时,声音(例如:游戏声音,影视声音)都从TV的HDMI输出,利用TV的音箱播放出来。当用户连接上游戏手柄,插上耳机时,声音都从耳机里面输出。
在语音通话模式时,首先对接收到的通话语音创建声音音轨时,设置该声音(通话语音的音频流)的流类型以及声音的采样率等属性信息,作为该通话语音的音频流的唯一标识,再根据这些标识进行分流,从待播放的音频流中区分通话语音和其他背景声音,通话语音从耳机输出,其他声音从TV的HDMI输出,利用TV的音箱播放出来,从而 给用户更好的产品体验,可以满足用户一边游戏一边通话的需求,或者,满足用户一边观看视频一边通话的需求。
可选地,S102中设置的通话语音的音频流的属性信息还可以包括第一声音采样率,所述第一声音采样率为所述通话语音的音频流的采样率。
采样率是计算机每秒钟采集多少个声音样本,是描述声音文件的音质、音调,衡量声卡、声音文件的质量标准。对于采用耳机设备输出的音频流可以采用第一声音采样率来进行采样,而对于采用扩音设备输出的其他音频流则可以采用第二声音采样率来进行采样,其中,第一声音采样率和第二声音采样率是不同的采样率,由所在终端(如TV等)的硬件或软件来决定。
因此,在对接收到的通话语音的音频流创建音轨时,还可以设置所述通话语音的音频流的采样率为第一声音采样率。则,在S103中,所述属性信息符合预设条件的音频流则为具有所述第一流类型标识和第一声音采样率的音频流。
这样,通过设置通话语音的音频流的流类型标识等属性信息进行音频输出的分流,可以有效实现将通话语音与背景音乐分流到不同端口输出,使得用户在进行游戏或者音视频播放时,可以同时进行语音通话,一边玩游戏(或者看影视)一边进行语音通话,用户体验好。
图2是本申请实施例提供的音频输出控制方法流程图,如图2所示,本申请实施例的音频输出控制方法包括:
S201、判断是否有第一音频输出设备存在,若是,则进入S202,否则,进入S207。
S202、判断是否接收到进入语音通话模式的请求或者处于语音通话模式,若是,则进入S203,否则,进入S206。
S203、在语音通话模式时,接收通话语音的音频流。
S204、在对接收到的通话语音的音频流创建音轨时,设置所述通话语音的音频流的属性信息。
所述属性信息包括第一流类型标识,所述第一流类型标识为所述通话语音的音频流的流类型标识。
S205、根据待播放播放的音频流的属性信息,将属性信息符合预设条件的音频流通过第一音频输出设备输出,将其他音频流通过第二音频输出设备输出。
所述属性信息符合预设条件的音频流为具有所述第一流类型标识的音频流。
上述步骤S203~S205与图1中步骤S101~S103对应相同,于此不再赘述。
S206、将待播放的音频流通过第一音频输出设备输出。
S207、将待播放的音频流通过第二音频输出设备输出。
值得一提的是,S201也可以设置在S202之后,当S202判断到处于非通话模式时,判断是否有第一音频输出设备存在,若是,则进入S206,将待播放的音频流通过第一音频输出设备输出,否则进入S207,将待播放的音频流通过第二音频输出设备输出。
当S202判断到接收到进入语音通话模式的请求或者处于语音通话模式时,判断是否有第一音频输出设备存在,若是,则进入S206,将待播放的音频流通过第一音频输出设备输出,否则进入S207,将待播放的音频流通过第二音频输出设备输出。用户可以在接到语音通话请求时,插入耳机,那么在语音通话接通时,将通话语音的音频流从耳机中分流输出给用户,其他声音从原有的音频播放设备中输出。
可选地,在判断到接收到进入语音通话模式的请求时,终端可以弹出用于选择的对话框,用户可以选择采用分流的输出方式或普通的输出方式。当用户选择采用分流的输出方式时,则按照本申请实施例提供的方法进行处理,将通话语音采用耳机输出,而背景音采用扩音设备输出。当用户选择普通的输出方式时,则按照现有的方法进行处理,采用混合输出的方式,将通话语音和背景音在同一输出设备中混合输出,或者,采用声音独占的方式,暂停背景音,只输出通话语音。
当然,用户还可以设置默认选项,在通话语音和其他语音同时存在时,采用分别输出的方式输出,则按照本申请实施例提供的方法进行处理。也可以设置成不分流的输出方式,则按照现有的方法进行处理,将通话语音和背景音在同一输出设备中混合输出,或者,暂停背景音,只输出通话语音。
本申请实施例提供的音频输出控制方法,通过设置通话语音的音频流的流类型标识等属性信息进行音频输出的分流,可以实现通话语音与背景音乐的有效分流,使得用户在进行游戏或者音视频播放时,可以同时进行语音通话,用户体验好。
以上是对本申请实施例所提供的音频输出控制方法进行的详细描述,下面对本申请提供的音频输出控制装置进行详细描述。
图3是本申请实施例提供的音频输出控制装置示意图,如图3所示,本申请的音频输出控制装置包括:接收单元301、设置单元302和分流单元303。
接收单元301用于在语音通话模式时,接收通话语音的音频流。
设置单元302用于在对接收单元301接收到的通话语音的音频流创建音轨时,设置所述通话语音的音频流的属性信息。
所述属性信息包括第一流类型标识,所述第一流类型标识为所述通话语音的音频流的流类型标识。
分流单元303用于根据待播放的音频流的属性信息,将属性信息符合预设条件的音频流通过第一音频输出设备304输出,将其他音频流通过第二音频输出设备305输出。
所述属性信息符合预设条件的音频流为具有设置单元302设置的所述第一流类型标识的音频流。
其中,第一音频输出设备304为耳机,第二音频输出设备305为终端的音频输出设备,例如电视机的音箱,手机或pad的扩音器等。
可选地,所述通话语音的音频流的属性信息还包括第一声音采样率,所述第一声音采样率为所述通话语音的音频流的采样率。设置单元302还用于在对接收到的通话语音的音频流创建音轨时,设置所述通话语音的音频流的采样率。那么,所述属性信息符合预设条件的音频流则为具有所述第一流类型标识和第一声音采样率的音频流。
上述各单元的功能可对应于图1详细描述的上述音频输出控制方法的处理步骤,于此不再赘述。
图4是本申请实施例提供的音频输出控制装置示意图,如图4所示,本申请的音频输出控制装置包括:设备判断单元401、通话判断单元402、接收单元403、设置单元404和分流单元405。
设备判断单元401用于判断是否有第一音频输出设备存在,若是,则将待播放的音频流通过第一音频输出设备输出,否则,将待播放的音频流通过第二音频输出设备输出。
在设备判断单元401判断到存在第一音频输出设备之后,将待播放的音频流通过第一音频输出设备输出之前,还利用通话判断单元402判断是否处于语音通话模式。
通话判断单元402用于判断是否请求进入语音通话模式或者处于语音通话模式,若是,则利用接收单元403接收通话语音的音频流。
接收单元403用于当通话判断单元402判断到处于语音通话模式时,接收通话语音的音频流。
设置单元404在对接收单元403接收到的通话语音的音频流创建音轨时,设置所述通话语音的音频流的属性信息。
所述属性信息包括第一流类型标识,所述第一流类型标识为所述通话语音的音频流的流类型标识。
分流单元405用于根据待播放的音频流的属性信息,将属性信息符合预设条件的音 频流通过第一音频输出设备406输出,将其他音频流通过第二音频输出设备407输出。
所述属性信息符合预设条件的音频流为具有设置单元404设置的所述第一流类型标识的音频流。
其中,第一音频输出设备406为耳机,第二音频输出设备407为终端的音频输出设备,例如电视机的音箱,手机或pad的扩音器等。
可选地,所述通话语音的音频流的属性信息还包括第一声音采样率,所述第一声音采样率为所述通话语音的音频流的采样率。设置单元404还用于在对接收到的通话语音的音频流创建音轨时,设置所述通话语音的音频流的采样率。那么,所述属性信息符合预设条件的音频流则为具有所述第一流类型标识和第一声音采样率的音频流。
上述各单元的功能可对应于图2详细描述的上述音频输出控制方法的处理步骤,于此不再赘述。
本申请实施例提供的音频输出控制方法及装置,在语音通话模式时,通过设置通话语音的音频流的流类型标识进行音频输出的分流,可以实现通话语音与背景音乐的有效分流,使得用户在进行游戏或者音视频播放时,可以同时进行语音通话,用户体验好。
专业人员应该还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
结合本文中所公开的实施例描述的方法或算法的步骤可以用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。
以上所述的具体实施方式,对本申请的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本申请的具体实施方式而已,并不用于限定本申请的保护范围,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。

Claims (10)

  1. 一种音频输出控制方法,其特征在于,所述方法包括:
    在语音通话模式时,接收通话语音的音频流;
    在对接收到的通话语音的音频流创建音轨时,设置所述通话语音的音频流的属性信息,所述属性信息包括第一流类型标识,所述第一流类型标识为所述通话语音的音频流的流类型标识;
    根据待播放的音频流的属性信息,将属性信息符合预设条件的音频流通过第一音频输出设备输出,将其他音频流通过第二音频输出设备输出,所述属性信息符合预设条件的音频流为具有所述第一流类型标识的音频流。
  2. 根据权利要求1所述的方法,其特征在于,所述通话语音的音频流的属性信息还包括第一声音采样率,所述第一声音采样率为所述通话语音的音频流的采样率;
    所述方法还包括:
    在对接收到的通话语音的音频流创建音轨时,设置所述通话语音的音频流的采样率;
    所述属性信息符合预设条件的音频流为具有所述第一流类型标识和第一声音采样率的音频流。
  3. 根据权利要求1所述的方法,其特征在于,所述第一音频输出设备为耳机,所述第二音频输出设备为终端的音频输出设备。
  4. 根据权利要求1所述的方法,其特征在于,在所述识别通话语音的音频流之前,还包括:
    判断是否请求进入语音通话模式或者处于语音通话模式,若是,则执行所述识别通话语音的音频流。
  5. 根据权利要求4所述的方法,其特征在于,所述方法还包括:
    判断是否有第一音频输出设备存在,若是,则将待播放的音频流通过第一音频输出设备输出,否则,将待播放的音频流通过第二音频输出设备输出。
  6. 一种音频输出控制装置,其特征在于,所述装置包括:
    接收单元,用于在语音通话模式时,接收通话语音的音频流;
    设置单元,用于在对所述接收单元接收到的通话语音的音频流创建音轨时,设置所述通话语音的音频流的属性信息,所述属性信息包括第一流类型标识,所述第一流类型标识为所述通话语音的音频流的流类型标识;
    分流单元,用于根据待播放的音频流的属性信息,将属性信息符合预设条件的音频流通过第一音频输出设备输出,将其他音频流通过第二音频输出设备输出,所述属性信息符合预设条件的音频流为具有所述设置单元设置的所述第一流类型标识的音频流。
  7. 根据权利要求6所述的装置,其特征在于,所述通话语音的音频流的属性信息还包括第一声音采样率,所述第一声音采样率为所述通话语音的音频流的采样率;
    所述设置单元还用于在对接收到的通话语音的音频流创建音轨时,设置所述通话语音的音频流的采样率;
    所述属性信息符合预设条件的音频流为具有所述第一流类型标识和第一声音采样率的音频流。
  8. 根据权利要求7所述的装置,其特征在于,所述第一音频输出设备为耳机,所述第二音频输出设备为终端的音频输出设备。
  9. 根据权利要求6所述的装置,其特征在于,所述装置还包括:
    通话判断单元,用于在所述接收单元接收通话语音的音频流之前,判断是否请求进入语音通话模式或者处于语音通话模式,若是,则利用所述接收单元接收通话语音的音频流。
  10. 根据权利要求9所述的装置,其特征在于,所述装置还包括:
    设备判断单元,用于判断是否有第一音频输出设备存在,若是,则将待播放的音频流通过第一音频输出设备输出,否则,将待播放的音频流通过第二音频输出设备输出。
PCT/CN2016/076373 2015-03-23 2016-03-15 音频输出控制方法及装置 Ceased WO2016150316A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510128650.9A CN106161724A (zh) 2015-03-23 2015-03-23 音频输出控制方法及装置
CN201510128650.9 2015-03-23

Publications (1)

Publication Number Publication Date
WO2016150316A1 true WO2016150316A1 (zh) 2016-09-29

Family

ID=56977842

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/076373 Ceased WO2016150316A1 (zh) 2015-03-23 2016-03-15 音频输出控制方法及装置

Country Status (2)

Country Link
CN (1) CN106161724A (zh)
WO (1) WO2016150316A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113170015A (zh) * 2018-11-20 2021-07-23 深圳市欢太科技有限公司 通话处理方法、计算机可读存储介质和电子设备
CN113559511A (zh) * 2021-07-26 2021-10-29 歌尔科技有限公司 控制方法、游戏装置、计算机程序产品及可读存储介质

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106886387A (zh) * 2017-02-14 2017-06-23 深圳市金立通信设备有限公司 一种音频数据处理方法及其设备
CN107087072A (zh) * 2017-04-25 2017-08-22 维沃移动通信有限公司 一种音频播放方法和移动终端
WO2018227637A1 (zh) * 2017-06-16 2018-12-20 华为技术有限公司 音频播放方法及电子设备
CN108184164B (zh) * 2017-12-28 2021-06-11 深圳Tcl新技术有限公司 音频播放方法、智能电视及计算机可读存储介质
CN108769431A (zh) * 2018-07-03 2018-11-06 Oppo(重庆)智能科技有限公司 音频播放控制方法、装置、存储介质及移动终端
CN108924361B (zh) * 2018-07-10 2021-02-19 南昌黑鲨科技有限公司 音频播放和采集控制方法、系统及计算机可读存储介质
CN109413268A (zh) * 2018-10-10 2019-03-01 深圳市领芯者科技有限公司 一种协助导航软件播放语音的方法、装置和系统
CN110278402B (zh) * 2019-06-24 2022-05-17 烟台思卓实业有限责任公司 一种双声道音频处理方法、设备及计算机可读存储介质
CN111491058A (zh) * 2020-03-31 2020-08-04 维沃移动通信有限公司 工作模式的控制方法、电子设备和存储介质
CN112073576A (zh) * 2020-07-31 2020-12-11 深圳市修远文化创意有限公司 一种即时消息处理方法及相关设备
CN115221293A (zh) * 2021-04-19 2022-10-21 腾讯科技(深圳)有限公司 语音交互方法、装置、计算机设备和存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1738461A (zh) * 2004-08-20 2006-02-22 乐金电子(中国)研究开发中心有限公司 一种移动通信终端的音频输出装置
CN1894938A (zh) * 2003-03-17 2007-01-10 三洋电机株式会社 具有广播接收功能以及电话通信功能的便携机器
CN102594975A (zh) * 2011-01-08 2012-07-18 深圳富泰宏精密工业有限公司 通话控制系统及方法
CN102821195A (zh) * 2012-07-23 2012-12-12 宇龙计算机通信科技(深圳)有限公司 一种终端及多音频输出方法
CN103856625A (zh) * 2012-12-07 2014-06-11 广州三星通信技术研究有限公司 控制双路输出音频的装置以及无线通信终端
US20140301573A1 (en) * 2013-04-09 2014-10-09 Score Music Interactive Limited System and method for generating an audio file

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459717B (zh) * 2007-12-11 2013-03-27 英华达(上海)电子有限公司 无线终端和在其中实现多声道复用的方法
CN102055683A (zh) * 2009-10-30 2011-05-11 腾讯科技(深圳)有限公司 一种分享音乐数据的方法、装置和系统
CN102568513B (zh) * 2011-12-28 2015-05-20 北京三星通信技术研究有限公司 一种音频数据处理方法和交互方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1894938A (zh) * 2003-03-17 2007-01-10 三洋电机株式会社 具有广播接收功能以及电话通信功能的便携机器
CN1738461A (zh) * 2004-08-20 2006-02-22 乐金电子(中国)研究开发中心有限公司 一种移动通信终端的音频输出装置
CN102594975A (zh) * 2011-01-08 2012-07-18 深圳富泰宏精密工业有限公司 通话控制系统及方法
CN102821195A (zh) * 2012-07-23 2012-12-12 宇龙计算机通信科技(深圳)有限公司 一种终端及多音频输出方法
CN103856625A (zh) * 2012-12-07 2014-06-11 广州三星通信技术研究有限公司 控制双路输出音频的装置以及无线通信终端
US20140301573A1 (en) * 2013-04-09 2014-10-09 Score Music Interactive Limited System and method for generating an audio file

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113170015A (zh) * 2018-11-20 2021-07-23 深圳市欢太科技有限公司 通话处理方法、计算机可读存储介质和电子设备
CN113170015B (zh) * 2018-11-20 2022-07-12 深圳市欢太科技有限公司 通话处理方法、通话处理装置、计算机可读存储介质和电子设备
CN113559511A (zh) * 2021-07-26 2021-10-29 歌尔科技有限公司 控制方法、游戏装置、计算机程序产品及可读存储介质

Also Published As

Publication number Publication date
CN106161724A (zh) 2016-11-23

Similar Documents

Publication Publication Date Title
WO2016150316A1 (zh) 音频输出控制方法及装置
CN109445740B (zh) 音频播放方法、装置、电子设备及存储介质
CN113516991B (zh) 基于群组会话的音频播放、设备管理方法及装置
JP6400739B2 (ja) ダッキング制御のためのメタデータ
US10834503B2 (en) Recording method, recording play method, apparatuses, and terminals
US9756439B2 (en) Method and devices for outputting an audio file
CN106302997B (zh) 一种输出控制方法、电子设备及系统
CN108494954B (zh) 语音通话数据检测方法、装置、存储介质及移动终端
CN103297824A (zh) 视频处理方法、电视棒、控制终端和系统
US9704497B2 (en) Method and system of audio power reduction and thermal mitigation using psychoacoustic techniques
US20170195817A1 (en) Simultaneous Binaural Presentation of Multiple Audio Streams
CN106550294A (zh) 基于耳机的监听方法及装置
CN103456334B (zh) 音频文件播放方法及播放装置
CN108132769A (zh) 一种音频数据播放方法和双屏移动终端
CN104157292A (zh) 抗啸叫音频信号处理方法和装置
US9053710B1 (en) Audio content presentation using a presentation profile in a content header
CN107621933A (zh) 一种音频播放方法和装置和相关介质产品
US20150049879A1 (en) Method of audio processing and audio-playing device
CN105741863B (zh) 一种移动终端音频播放的方法和装置及移动终端
JP2016005268A (ja) 情報伝送システム、情報伝送方法、及びプログラム
CN104506588B (zh) 一种实现乐队的移动排练的方法及装置
CN108449505B (zh) 语音通话数据检测方法、装置、存储介质及移动终端
CN107205092B (zh) 存储设备、移动终端及其语音保密播放方法
GB2629412A (en) Audio output method and system
CN103578512B (zh) 录音快速回放的方法及其装置

Legal Events

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

Ref document number: 16767693

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16767693

Country of ref document: EP

Kind code of ref document: A1