WO2016150316A1 - Audio output control method and apparatus - Google Patents

Audio output control method and apparatus 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
Application number
PCT/CN2016/076373
Other languages
French (fr)
Chinese (zh)
Inventor
晏营
袁英灿
Original Assignee
阿里巴巴集团控股有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2016150316A1 publication Critical patent/WO2016150316A1/en

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.

Abstract

The present application relates to an audio output control method and apparatus. The method comprises: receiving an audio stream of a call voice in a voice call mode; when an audio track is created for the received audio stream of the call voice, setting attribute information about the audio stream of the call voice, wherein the attribute information comprises a first stream type identifier, and the first stream type identifier is a stream type identifier of the audio stream of the call voice; and according to the attribute information about the audio stream to be played, outputting the audio stream, the attribute information about which meets a pre-set condition, via a first audio output device, and outputting other audio streams via a second audio output device, wherein the audio stream, the attribute information about which meets a pre-set condition, is the audio stream which has the first stream type identifier. The present application can realize effective offloading between the call voice and background music, so that a user can perform a voice call simultaneously when playing a game or playing audio or video, and user experience is good.

Description

音频输出控制方法及装置Audio output control method and device
本申请要求2015年03月23日递交的申请号为201510128650.9、发明名称为“音频输出控制方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application Serial No. No. No. No. No. No. No. No. No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No
技术领域Technical field
本申请涉及终端音频处理技术领域,尤其涉及一种音频输出控制方法及装置。The present application relates to the field of terminal audio processing technologies, and in particular, to an audio output control method and apparatus.
背景技术Background technique
在现有具有语音通话功能的终端设备(例如智能电视机TV、手机、平板电脑pad、个人计算机PC等)上,在正在进行游戏或者音视频播放时,接收到语音通话或者视频通话请求时,可能会采用声音独占的方式输出音频,即在开始进行语音通话时,自动关闭或暂停游戏或者暂停正在播放的音视频,无法提供一边进行游戏或者音视频播放,一边进行语音通话的功能。或者,也可能会采用混合输出的方式,这样,正在进行的游戏或者音视频的声音和通话的语音混合在一起,导致声音混乱,用户体验非常不好。In a conventional terminal device having a voice call function (for example, a smart TV TV, a mobile phone, a tablet pad, a personal computer PC, etc.), when a game or audio and video playback is being performed, when a voice call or a video call request is received, 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. Alternatively, 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.
发明内容Summary of the invention
本申请的目的是,提供一种音频输出控制方法及装置,可以实现通话语音与背景音乐的有效分流,使得用户在进行游戏或者音视频播放时,可以同时进行语音通话,用户体验好。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:
在语音通话模式时,接收通话语音的音频流;Receiving an audio stream of a call voice in a voice call mode;
在对接收到的通话语音的音频流创建音轨时,设置所述通话语音的音频流的属性信息,所述属性信息包括第一流类型标识,所述第一流类型标识为所述通话语音的音频流的流类型标识;And setting 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;
根据待播放的音频流的属性信息,将属性信息符合预设条件的音频流通过第一音频输出设备输出,将其他音频流通过第二音频输出设备输出,所述属性信息符合预设条件的音频流为具有所述第一流类型标识的音频流。According to 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 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.
又一方面,本申请还提供了一种音频输出控制装置,所述装置包括:In still another aspect, 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. When you can make a voice call at the same time, the user experience is good.
附图说明DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present application. Other drawings may also be obtained from those of ordinary skill in the art in view of the drawings.
图1为本申请实施例提供的一种音频输出控制方法流程图;FIG. 1 is a flowchart of an audio output control method according to an embodiment of the present application;
图2为本申请实施例提供的又一种音频输出控制方法流程图;2 is a flowchart of still another audio output control method according to an embodiment of the present application;
图3为本申请实施例提供的一种音频输出控制装置示意图;FIG. 3 is a schematic diagram of an audio output control apparatus according to an embodiment of the present application;
图4为本申请实施例提供的又一种音频输出控制装置示意图。FIG. 4 is a schematic diagram of still another audio output control apparatus according to an embodiment of the present application.
具体实施方式detailed description
为使得本申请的发明目的、特征、优点能够更加的明显和易懂,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述,显然,所描述的实施例仅仅是本申请一部分实施例,而非全部实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the object, the features and the advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application. It is a part of the embodiments of the present application, and not all of them. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
本申请实施例提供的音频输出控制方法及装置,适用于各类具有语音通话功能的终端设备,例如,智能电视机TV、手机、平板电脑pad、个人计算机PC、连接有游戏机手柄的电视机等终端。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.
图1是本申请实施例提供的音频输出控制方法流程图,如图1所示,本申请实施例的音频输出控制方法包括:1 is a flowchart of an audio output control method according to an embodiment of the present application. As shown in FIG. 1 , an audio output control method in this embodiment of the present application includes:
S101、在语音通话模式时,接收通话语音的音频流。 S101. Receive an audio stream of a call voice in a voice call mode.
语音通话模式可以包括电话呼叫的语音通话、即时通讯工具(如微信、qq等)的语音通话、游戏中的即时语音通话等。当处于语音通话模式时,从对应的通信网络或者互联网中接收通话语音的音频流。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. When in the voice call mode, the audio stream of the call voice is received from the corresponding communication network or the Internet.
S102、在对接收到的通话语音的音频流创建音轨时,设置所述通话语音的音频流的属性信息。S102. Set an attribute information of an audio stream of the call voice when creating a sound track on the audio stream of the received call voice.
所述属性信息包括第一流类型标识,所述第一流类型标识为所述通话语音的音频流的流类型标识。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.
对S101中接收到的通话语音的音频流需要创建音轨(AudioTrack),在创建通话语音的AudioTrack时,设置该通话语音的流类型标识,例如,流类型标识为AudioSystem.STREAM_VOICE_CALL等,用以标识通话语音。The audio stream of the call voice received in S101 needs to be created with an audio track (AudioTrack). When the voice track of the call voice is created, the stream type identifier of the call voice is set. For example, the stream type identifier is AudioSystem.STREAM_VOICE_CALL, etc., for identifying Call voice.
S103、根据待播放的音频流的属性信息,将属性信息符合预设条件的音频流通过第一音频输出设备输出,将其他音频流通过第二音频输出设备输出。S103. Output, according to 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 through the second audio output device.
所述属性信息符合预设条件的音频流为具有所述第一流类型标识的音频流。The audio stream whose attribute information meets the preset condition is an audio stream having the identifier of the first stream type.
根据待播放的音频流的流类型标识,将具有第一流类型标识(如流类型标识为AudioSystem.STREAM_VOICE_CALL)的音频流通过第一音频输出设备输出。相应地,将不具有所述第一流类型标识的其他音频流通过第二音频输出设备输出。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.
其中,第一音频输出设备可以是耳机,包括有线耳机以及蓝牙耳机等无线耳机。第二音频输出设备包括终端上的音频播放设备(喇叭、音箱或扩音器等扩音设备),例如电视机的音箱,手机或pad的扩音器等,也可以是通过连接线输出到其他终端的扩音设备上。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. On the terminal's PA equipment.
举个例子,在具有语音通话的智能TV终端设备上,游戏手柄通过高清晰度多媒体接口(High Definition Multimedia Interface,HDMI)数据线与TV相连接,游戏手柄上带有声音输出端口,耳机可插入在这个输出端口中。For example, on a smart TV terminal device with a voice call, 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.
在非语音通话模式时,声音(例如:游戏声音,影视声音)都从TV的HDMI输出,利用TV的音箱播放出来。当用户连接上游戏手柄,插上耳机时,声音都从耳机里面输出。In the non-voice call mode, sounds (eg, game sounds, movie sounds) are output from the TV's HDMI and played out using the TV's speakers. When the user connects to the gamepad and plugs in the headphones, the sound is output from the headphones.
在语音通话模式时,首先对接收到的通话语音创建声音音轨时,设置该声音(通话语音的音频流)的流类型以及声音的采样率等属性信息,作为该通话语音的音频流的唯一标识,再根据这些标识进行分流,从待播放的音频流中区分通话语音和其他背景声音,通话语音从耳机输出,其他声音从TV的HDMI输出,利用TV的音箱播放出来,从而 给用户更好的产品体验,可以满足用户一边游戏一边通话的需求,或者,满足用户一边观看视频一边通话的需求。In the voice call mode, when a voice track is first created for the received call voice, 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.
可选地,S102中设置的通话语音的音频流的属性信息还可以包括第一声音采样率,所述第一声音采样率为所述通话语音的音频流的采样率。Optionally, 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.
采样率是计算机每秒钟采集多少个声音样本,是描述声音文件的音质、音调,衡量声卡、声音文件的质量标准。对于采用耳机设备输出的音频流可以采用第一声音采样率来进行采样,而对于采用扩音设备输出的其他音频流则可以采用第二声音采样率来进行采样,其中,第一声音采样率和第二声音采样率是不同的采样率,由所在终端(如TV等)的硬件或软件来决定。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. For the audio stream output by the headphone device, the first sound sampling rate may be used for sampling, and for other audio streams output by the sound amplification device, 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).
因此,在对接收到的通话语音的音频流创建音轨时,还可以设置所述通话语音的音频流的采样率为第一声音采样率。则,在S103中,所述属性信息符合预设条件的音频流则为具有所述第一流类型标识和第一声音采样率的音频流。Therefore, when the audio track is created for the audio stream of the received call voice, 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.
这样,通过设置通话语音的音频流的流类型标识等属性信息进行音频输出的分流,可以有效实现将通话语音与背景音乐分流到不同端口输出,使得用户在进行游戏或者音视频播放时,可以同时进行语音通话,一边玩游戏(或者看影视)一边进行语音通话,用户体验好。In this way, by setting the attribute information such as the stream type identifier of the audio stream of the call voice to perform the audio output shunting, 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.
图2是本申请实施例提供的音频输出控制方法流程图,如图2所示,本申请实施例的音频输出控制方法包括:2 is a flowchart of an audio output control method according to an embodiment of the present application. As shown in FIG. 2, the audio output control method in this embodiment of the present application includes:
S201、判断是否有第一音频输出设备存在,若是,则进入S202,否则,进入S207。S201. Determine whether the first audio output device exists. If yes, go to S202. Otherwise, go to S207.
S202、判断是否接收到进入语音通话模式的请求或者处于语音通话模式,若是,则进入S203,否则,进入S206。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、在语音通话模式时,接收通话语音的音频流。S203. Receive an audio stream of the call voice when in the voice call mode.
S204、在对接收到的通话语音的音频流创建音轨时,设置所述通话语音的音频流的属性信息。S204. Set an attribute information of an audio stream of the call voice when creating a track for the audio stream of the received call voice.
所述属性信息包括第一流类型标识,所述第一流类型标识为所述通话语音的音频流的流类型标识。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.
S205、根据待播放播放的音频流的属性信息,将属性信息符合预设条件的音频流通过第一音频输出设备输出,将其他音频流通过第二音频输出设备输出。S205. Output, according to 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 through the second audio output device.
所述属性信息符合预设条件的音频流为具有所述第一流类型标识的音频流。The audio stream whose attribute information meets the preset condition is an audio stream having the identifier of the first stream type.
上述步骤S203~S205与图1中步骤S101~S103对应相同,于此不再赘述。 The above steps S203 to S205 are the same as the steps S101 to S103 in FIG. 1 and will not be described again.
S206、将待播放的音频流通过第一音频输出设备输出。S206. Output the audio stream to be played through the first audio output device.
S207、将待播放的音频流通过第二音频输出设备输出。S207. Output the audio stream to be played through the second audio output device.
值得一提的是,S201也可以设置在S202之后,当S202判断到处于非通话模式时,判断是否有第一音频输出设备存在,若是,则进入S206,将待播放的音频流通过第一音频输出设备输出,否则进入S207,将待播放的音频流通过第二音频输出设备输出。It is worth mentioning that S201 may also be set after S202. When 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.
当S202判断到接收到进入语音通话模式的请求或者处于语音通话模式时,判断是否有第一音频输出设备存在,若是,则进入S206,将待播放的音频流通过第一音频输出设备输出,否则进入S207,将待播放的音频流通过第二音频输出设备输出。用户可以在接到语音通话请求时,插入耳机,那么在语音通话接通时,将通话语音的音频流从耳机中分流输出给用户,其他声音从原有的音频播放设备中输出。When 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.
可选地,在判断到接收到进入语音通话模式的请求时,终端可以弹出用于选择的对话框,用户可以选择采用分流的输出方式或普通的输出方式。当用户选择采用分流的输出方式时,则按照本申请实施例提供的方法进行处理,将通话语音采用耳机输出,而背景音采用扩音设备输出。当用户选择普通的输出方式时,则按照现有的方法进行处理,采用混合输出的方式,将通话语音和背景音在同一输出设备中混合输出,或者,采用声音独占的方式,暂停背景音,只输出通话语音。Optionally, when it is determined that the request to enter the voice call mode is received, 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. When the user chooses to adopt the split 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. When the user selects the normal output mode, 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.
当然,用户还可以设置默认选项,在通话语音和其他语音同时存在时,采用分别输出的方式输出,则按照本申请实施例提供的方法进行处理。也可以设置成不分流的输出方式,则按照现有的方法进行处理,将通话语音和背景音在同一输出设备中混合输出,或者,暂停背景音,只输出通话语音。Of course, 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.
以上是对本申请实施例所提供的音频输出控制方法进行的详细描述,下面对本申请提供的音频输出控制装置进行详细描述。The above is a detailed description of the audio output control method provided by the embodiment of the present application. The audio output control device provided by the present application is described in detail below.
图3是本申请实施例提供的音频输出控制装置示意图,如图3所示,本申请的音频输出控制装置包括:接收单元301、设置单元302和分流单元303。FIG. 3 is a schematic diagram of an audio output control apparatus according to an embodiment of the present disclosure. As shown in FIG. 3, the audio output control apparatus of the present application includes: a receiving unit 301, a setting unit 302, and a shunting unit 303.
接收单元301用于在语音通话模式时,接收通话语音的音频流。The receiving unit 301 is configured to receive an audio stream of the call voice when in the voice call mode.
设置单元302用于在对接收单元301接收到的通话语音的音频流创建音轨时,设置所述通话语音的音频流的属性信息。 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.
分流单元303用于根据待播放的音频流的属性信息,将属性信息符合预设条件的音频流通过第一音频输出设备304输出,将其他音频流通过第二音频输出设备305输出。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.
所述属性信息符合预设条件的音频流为具有设置单元302设置的所述第一流类型标识的音频流。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.
其中,第一音频输出设备304为耳机,第二音频输出设备305为终端的音频输出设备,例如电视机的音箱,手机或pad的扩音器等。The first audio output device 304 is an earphone, and 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.
可选地,所述通话语音的音频流的属性信息还包括第一声音采样率,所述第一声音采样率为所述通话语音的音频流的采样率。设置单元302还用于在对接收到的通话语音的音频流创建音轨时,设置所述通话语音的音频流的采样率。那么,所述属性信息符合预设条件的音频流则为具有所述第一流类型标识和第一声音采样率的音频流。Optionally, the attribute information of the audio stream of the call voice further includes a first sound sampling rate, and 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.
上述各单元的功能可对应于图1详细描述的上述音频输出控制方法的处理步骤,于此不再赘述。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.
图4是本申请实施例提供的音频输出控制装置示意图,如图4所示,本申请的音频输出控制装置包括:设备判断单元401、通话判断单元402、接收单元403、设置单元404和分流单元405。4 is a schematic diagram of an audio output control apparatus according to an embodiment of the present application. As shown in FIG. 4, 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.
设备判断单元401用于判断是否有第一音频输出设备存在,若是,则将待播放的音频流通过第一音频输出设备输出,否则,将待播放的音频流通过第二音频输出设备输出。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.
在设备判断单元401判断到存在第一音频输出设备之后,将待播放的音频流通过第一音频输出设备输出之前,还利用通话判断单元402判断是否处于语音通话模式。After the device determining unit 401 determines that the first audio output device exists, before the audio stream to be played is output through the first audio output device, the call determining unit 402 determines whether the voice call mode is in the voice call mode.
通话判断单元402用于判断是否请求进入语音通话模式或者处于语音通话模式,若是,则利用接收单元403接收通话语音的音频流。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.
接收单元403用于当通话判断单元402判断到处于语音通话模式时,接收通话语音的音频流。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.
设置单元404在对接收单元403接收到的通话语音的音频流创建音轨时,设置所述通话语音的音频流的属性信息。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.
分流单元405用于根据待播放的音频流的属性信息,将属性信息符合预设条件的音 频流通过第一音频输出设备406输出,将其他音频流通过第二音频输出设备407输出。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.
所述属性信息符合预设条件的音频流为具有设置单元404设置的所述第一流类型标识的音频流。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.
其中,第一音频输出设备406为耳机,第二音频输出设备407为终端的音频输出设备,例如电视机的音箱,手机或pad的扩音器等。The first audio output device 406 is an earphone, and 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.
可选地,所述通话语音的音频流的属性信息还包括第一声音采样率,所述第一声音采样率为所述通话语音的音频流的采样率。设置单元404还用于在对接收到的通话语音的音频流创建音轨时,设置所述通话语音的音频流的采样率。那么,所述属性信息符合预设条件的音频流则为具有所述第一流类型标识和第一声音采样率的音频流。Optionally, the attribute information of the audio stream of the call voice further includes a first sound sampling rate, and 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.
上述各单元的功能可对应于图2详细描述的上述音频输出控制方法的处理步骤,于此不再赘述。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.
专业人员应该还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。A person skilled in the art should further appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both, in order to clearly illustrate hardware and software. Interchangeability, the composition and steps of the various examples have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present application.
结合本文中所公开的实施例描述的方法或算法的步骤可以用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。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.
以上所述的具体实施方式,对本申请的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本申请的具体实施方式而已,并不用于限定本申请的保护范围,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。 The specific embodiments of the present invention have been described in detail with reference to the specific embodiments of the present application. It is to be understood that the foregoing description is only The scope of protection, any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this application are intended to be included within the scope of the present application.

Claims (10)

  1. 一种音频输出控制方法,其特征在于,所述方法包括:An audio output control method, the method comprising:
    在语音通话模式时,接收通话语音的音频流;Receiving an audio stream of a call voice in a voice call mode;
    在对接收到的通话语音的音频流创建音轨时,设置所述通话语音的音频流的属性信息,所述属性信息包括第一流类型标识,所述第一流类型标识为所述通话语音的音频流的流类型标识;And setting 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;
    根据待播放的音频流的属性信息,将属性信息符合预设条件的音频流通过第一音频输出设备输出,将其他音频流通过第二音频输出设备输出,所述属性信息符合预设条件的音频流为具有所述第一流类型标识的音频流。According to 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 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.
  2. 根据权利要求1所述的方法,其特征在于,所述通话语音的音频流的属性信息还包括第一声音采样率,所述第一声音采样率为所述通话语音的音频流的采样率;The method according to claim 1, wherein the attribute information of the audio stream of the call voice further comprises a first sound sampling rate, and the first sound sampling rate is a sampling rate of the audio stream of the call voice;
    所述方法还包括:The method further includes:
    在对接收到的通话语音的音频流创建音轨时,设置所述通话语音的音频流的采样率;Setting a sampling rate of the audio stream of the call voice when creating a track for the audio stream of the received call voice;
    所述属性信息符合预设条件的音频流为具有所述第一流类型标识和第一声音采样率的音频流。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.
  3. 根据权利要求1所述的方法,其特征在于,所述第一音频输出设备为耳机,所述第二音频输出设备为终端的音频输出设备。The method of claim 1 wherein said first audio output device is a headset and said second audio output device is an audio output device of the terminal.
  4. 根据权利要求1所述的方法,其特征在于,在所述识别通话语音的音频流之前,还包括:The method according to claim 1, wherein before the identifying the audio stream of the call voice, the method further comprises:
    判断是否请求进入语音通话模式或者处于语音通话模式,若是,则执行所述识别通话语音的音频流。Determining whether to request to enter the voice call mode or in the voice call mode, and if so, performing the audio stream identifying the call voice.
  5. 根据权利要求4所述的方法,其特征在于,所述方法还包括:The method of claim 4, wherein the method further comprises:
    判断是否有第一音频输出设备存在,若是,则将待播放的音频流通过第一音频输出设备输出,否则,将待播放的音频流通过第二音频输出设备输出。Determining whether there is a first audio output device, and if so, outputting the audio stream to be played through the first audio output device; otherwise, outputting the audio stream to be played through the second audio output device.
  6. 一种音频输出控制装置,其特征在于,所述装置包括:An audio output control device, characterized in that the device comprises:
    接收单元,用于在语音通话模式时,接收通话语音的音频流;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 attribute information of an audio stream of the call voice when the audio track of the call voice received by the receiving unit is created, where the attribute information includes a first stream type identifier, the first stream The 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.
  7. 根据权利要求6所述的装置,其特征在于,所述通话语音的音频流的属性信息还包括第一声音采样率,所述第一声音采样率为所述通话语音的音频流的采样率;The apparatus according to claim 6, wherein the attribute information of the audio stream of the call voice further comprises a first sound sampling rate, and the first sound sampling rate is a sampling rate of the audio stream of the call voice;
    所述设置单元还用于在对接收到的通话语音的音频流创建音轨时,设置所述通话语音的音频流的采样率;The setting unit is further configured to set a sampling rate of the audio stream of the call voice when creating a sound track on the audio stream of the received call voice;
    所述属性信息符合预设条件的音频流为具有所述第一流类型标识和第一声音采样率的音频流。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.
  8. 根据权利要求7所述的装置,其特征在于,所述第一音频输出设备为耳机,所述第二音频输出设备为终端的音频输出设备。The apparatus according to claim 7, wherein said first audio output device is an earphone and said second audio output device is an audio output device of the terminal.
  9. 根据权利要求6所述的装置,其特征在于,所述装置还包括:The device according to claim 6, wherein the device further comprises:
    通话判断单元,用于在所述接收单元接收通话语音的音频流之前,判断是否请求进入语音通话模式或者处于语音通话模式,若是,则利用所述接收单元接收通话语音的音频流。The call determining unit is configured to determine whether to request to enter the voice call mode or the voice call mode before the receiving unit receives the audio stream of the call voice, and if yes, receive the audio stream of the call voice by using the receiving unit.
  10. 根据权利要求9所述的装置,其特征在于,所述装置还包括:The device according to claim 9, wherein the device further comprises:
    设备判断单元,用于判断是否有第一音频输出设备存在,若是,则将待播放的音频流通过第一音频输出设备输出,否则,将待播放的音频流通过第二音频输出设备输出。 The device determining unit 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.
PCT/CN2016/076373 2015-03-23 2016-03-15 Audio output control method and apparatus WO2016150316A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510128650.9A CN106161724A (en) 2015-03-23 2015-03-23 Audio output control method and device
CN201510128650.9 2015-03-23

Publications (1)

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

Family

ID=56977842

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/076373 WO2016150316A1 (en) 2015-03-23 2016-03-15 Audio output control method and apparatus

Country Status (2)

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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113170015A (en) * 2018-11-20 2021-07-23 深圳市欢太科技有限公司 Call processing method, computer-readable storage medium and electronic device
CN113559511A (en) * 2021-07-26 2021-10-29 歌尔科技有限公司 Control method, game device, computer program product, and readable storage medium

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106886387A (en) * 2017-02-14 2017-06-23 深圳市金立通信设备有限公司 A kind of audio data processing method and its equipment
CN107087072A (en) * 2017-04-25 2017-08-22 维沃移动通信有限公司 A kind of audio frequency playing method and mobile terminal
WO2018227637A1 (en) * 2017-06-16 2018-12-20 华为技术有限公司 Audio playing method and electronic device
CN108184164B (en) * 2017-12-28 2021-06-11 深圳Tcl新技术有限公司 Audio playing method, smart television and computer readable storage medium
CN108769431A (en) * 2018-07-03 2018-11-06 Oppo(重庆)智能科技有限公司 Audio play control method, device, storage medium and mobile terminal
CN108924361B (en) * 2018-07-10 2021-02-19 南昌黑鲨科技有限公司 Audio playing and acquisition control method, system and computer readable storage medium
CN109413268A (en) * 2018-10-10 2019-03-01 深圳市领芯者科技有限公司 A kind of assisting navigation software plays the methods, devices and systems of voice
CN110278402B (en) * 2019-06-24 2022-05-17 烟台思卓实业有限责任公司 Dual-channel audio processing method and device and computer readable storage medium
CN111491058A (en) * 2020-03-31 2020-08-04 维沃移动通信有限公司 Method for controlling operation mode, electronic device, and storage medium
CN112073576A (en) * 2020-07-31 2020-12-11 深圳市修远文化创意有限公司 Instant message processing method and related equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1738461A (en) * 2004-08-20 2006-02-22 乐金电子(中国)研究开发中心有限公司 Audio output apparatus of mobile communication terminal
CN1894938A (en) * 2003-03-17 2007-01-10 三洋电机株式会社 Mobile device having broadcast receiving function and telephone communication function
CN102594975A (en) * 2011-01-08 2012-07-18 深圳富泰宏精密工业有限公司 Call control system and method
CN102821195A (en) * 2012-07-23 2012-12-12 宇龙计算机通信科技(深圳)有限公司 Terminal and multi-audio-frequency output method
CN103856625A (en) * 2012-12-07 2014-06-11 广州三星通信技术研究有限公司 Device for controlling two-channel audio output and wireless communication terminal
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 (en) * 2007-12-11 2013-03-27 英华达(上海)电子有限公司 Wireless terminal and method for implementing multi-channel multiplexing
CN102055683A (en) * 2009-10-30 2011-05-11 腾讯科技(深圳)有限公司 Method, device and system for sharing music data
CN102568513B (en) * 2011-12-28 2015-05-20 北京三星通信技术研究有限公司 Audio data processing method and interacting method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1894938A (en) * 2003-03-17 2007-01-10 三洋电机株式会社 Mobile device having broadcast receiving function and telephone communication function
CN1738461A (en) * 2004-08-20 2006-02-22 乐金电子(中国)研究开发中心有限公司 Audio output apparatus of mobile communication terminal
CN102594975A (en) * 2011-01-08 2012-07-18 深圳富泰宏精密工业有限公司 Call control system and method
CN102821195A (en) * 2012-07-23 2012-12-12 宇龙计算机通信科技(深圳)有限公司 Terminal and multi-audio-frequency output method
CN103856625A (en) * 2012-12-07 2014-06-11 广州三星通信技术研究有限公司 Device for controlling two-channel audio output and wireless communication terminal
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 (en) * 2018-11-20 2021-07-23 深圳市欢太科技有限公司 Call processing method, computer-readable storage medium and electronic device
CN113170015B (en) * 2018-11-20 2022-07-12 深圳市欢太科技有限公司 Call processing method, call processing device, computer-readable storage medium, and electronic apparatus
CN113559511A (en) * 2021-07-26 2021-10-29 歌尔科技有限公司 Control method, game device, computer program product, and readable storage medium

Also Published As

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

Similar Documents

Publication Publication Date Title
WO2016150316A1 (en) Audio output control method and apparatus
CN109445740B (en) Audio playing method and device, electronic equipment and storage medium
JP6400739B2 (en) Metadata for ducking control
CN104967960B (en) Voice data processing method and system during voice data processing method, game are live
US9756439B2 (en) Method and devices for outputting an audio file
US20200213727A1 (en) Recording Method, Recording Play Method, Apparatuses, and Terminals
US20140105411A1 (en) Methods and systems for karaoke on a mobile device
CN106302997B (en) Output control method, electronic equipment and system
US9704497B2 (en) Method and system of audio power reduction and thermal mitigation using psychoacoustic techniques
JP2017527148A (en) Method and headset for improving sound quality
WO2017045453A1 (en) Monitoring method and device based on earphone
WO2014061578A1 (en) Electronic device and acoustic reproduction method
US20170195817A1 (en) Simultaneous Binaural Presentation of Multiple Audio Streams
US11956497B2 (en) Audio processing method and electronic device
US20160267925A1 (en) Audio processing apparatus that outputs, among sounds surrounding user, sound to be provided to user
US9053710B1 (en) Audio content presentation using a presentation profile in a content header
CN103324459A (en) Method and system for implementing USB (universal serial bus) headset devices
US20150049879A1 (en) Method of audio processing and audio-playing device
US10405114B2 (en) Automated detection of an active audio output
JP2016005268A (en) Information transmission system, information transmission method, and program
WO2017101300A1 (en) Calling method and device, and terminal
WO2020022154A1 (en) Call terminal, call system, call terminal control method, call program, and recording medium
CN112883222B (en) Song recommendation playing method, electronic equipment and computer readable storage medium
CN106293607B (en) Method and system for automatically switching audio output modes
CN105791937A (en) Audio/video processing method and related equipment

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