WO2019080214A1 - 音频播放控制方法、装置和车载系统 - Google Patents

音频播放控制方法、装置和车载系统

Info

Publication number
WO2019080214A1
WO2019080214A1 PCT/CN2017/111389 CN2017111389W WO2019080214A1 WO 2019080214 A1 WO2019080214 A1 WO 2019080214A1 CN 2017111389 W CN2017111389 W CN 2017111389W WO 2019080214 A1 WO2019080214 A1 WO 2019080214A1
Authority
WO
WIPO (PCT)
Prior art keywords
audio
module
play
playing
focus
Prior art date
Application number
PCT/CN2017/111389
Other languages
English (en)
French (fr)
Inventor
黄泽明
王辉耀
方杰
Original Assignee
深圳市沃特沃德股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市沃特沃德股份有限公司 filed Critical 深圳市沃特沃德股份有限公司
Publication of WO2019080214A1 publication Critical patent/WO2019080214A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/167Audio in a user interface, e.g. using voice commands for navigating, audio feedback

Definitions

  • the present invention relates to the field of vehicle technology, and in particular, to an audio playback control method, apparatus, and vehicle system.
  • a primary object of the present invention is to provide an audio playback control method, apparatus, and in-vehicle system that aim to solve the technical problem of audio output conflict.
  • an embodiment of the present invention provides an audio playback control method, where the method includes the following steps:
  • the play module that allows the audio focus to be played plays audio, and the play module that does not acquire the audio focus is prohibited from playing audio.
  • the playing module includes a first playing module and a second playing module, where the playing module that allows the audio focus to play audio is played, and the step of playing the audio by the playing module that does not acquire the audio focus is prohibited.
  • the playing module includes a first playing module and a second playing module, where the playing module that allows the audio focus to play audio is played, and the step of playing the audio by the playing module that does not acquire the audio focus is prohibited.
  • the step of monitoring the transfer change of the audio focus comprises:
  • the step of controlling the second playing module to play audio, the step of the first playing module to pause playing audio further includes:
  • the first play module is controlled to continue playing audio.
  • the method further includes:
  • the first playing module is a local playing application
  • the second playing module is a third-party playing application
  • the first playing module is a third-party playing application
  • the second playing module is Play the app locally.
  • An embodiment of the present invention provides an audio playback control apparatus, where the apparatus includes:
  • a monitoring module configured to monitor a transfer change of an audio focus
  • a control module configured to allow the playing module that acquires the audio focus to play audio, and prohibit the playing module that does not acquire the audio focus from playing audio.
  • the playing module includes a first playing module and a second playing module, where the control module includes a first control unit, where the first control unit is configured to:
  • the monitoring module includes a first monitoring unit, where the first monitoring unit is configured to:
  • control module further includes a second control unit, where the second control unit is configured to:
  • the monitoring unit includes a second monitoring unit, where the second monitoring unit is configured to:
  • Embodiments of the present invention also provide an in-vehicle system including a memory, a processor, and at least one application stored in the memory and configured to be executed by the processor, the application being configured It is used to perform the aforementioned audio playback control method.
  • An audio playback control method provided by an embodiment of the present invention, by monitoring a transfer change of an audio focus, only a playback module that acquires an audio focus is allowed to play audio, and a playback module that does not acquire an audio focus is prohibited from playing audio, thereby implementing Controlling two or more playback modules to output audio in turn, ensuring only one audio output between the same day, avoiding the situation of two or more audio superimposed outputs, solving the technical problem of audio output conflict, enabling the user to Listen to audio content and improve user experience
  • FIG. 1 is a flowchart of a first embodiment of an audio playback control method of the present invention
  • FIG. 2 is a flowchart of a second embodiment of an audio playback control method of the present invention.
  • FIG. 3 is a flowchart of a third embodiment of an audio playback control method of the present invention.
  • FIG. 4 is a block diagram showing an embodiment of an audio playback control apparatus according to the present invention.
  • FIG. 5 is a block diagram of the listening module of FIG. 4;
  • FIG. 6 is a block diagram of the control module of FIG. 4.
  • terminal and terminal device used herein include both a device of a wireless signal receiver, a device having only a wireless signal receiver without a transmitting capability, and a receiving and receiving device.
  • Such a device may comprise: a cellular or other communication device having a single line display or a multi-line display or a cellular or other communication device without a multi-line display; PCS (Persona 1 Communications Service), which may combine voice, Data processing, fax and/or data communication capabilities; PDA (Personal Digital Assistant), which can include radio frequency receivers, pagers, Internet/Intranet access, web browsers, notepads, calendars and/or GPS ( Global Positioning System, receiver; conventional laptop and/or palmtop computer or other device having conventional laptop and/or palm type with and/or including a radio frequency receiver Computer or other device.
  • PCS Personala 1 Communications Service
  • PDA Personal Digital Assistant
  • GPS Global Positioning System, receiver; conventional laptop and/or palmtop computer or other device having conventional laptop and/or palm type with and/or including a radio frequency receiver Computer or other device.
  • terminal may be portable, transportable, installed in a vehicle (aviation, sea and/or land), or adapted and/or configured to operate locally, and/or Run in any other location on the Earth and/or space in a distributed fashion.
  • the "terminal” and “terminal device” used herein may also be a communication terminal, an internet terminal, a music/video playback terminal, and may be, for example, a PDA, a MID (Mobile Internet Device), and/or have a music/video playback.
  • Functional mobile phones can also be smart TVs, set-top boxes and other devices.
  • the audio playback control method of the embodiment of the present invention is mainly applied to an in-vehicle system (such as a car navigation system), and may be applied to a terminal device such as a mobile phone, a tablet, a personal computer, a notebook computer, etc., which is not limited by the present invention.
  • a terminal device such as a mobile phone, a tablet, a personal computer, a notebook computer, etc.
  • the following is a detailed description of the application to the in-vehicle system.
  • FIG. 1 a first embodiment of an audio playback control method according to the present invention is proposed.
  • the method includes the following steps:
  • the playing module that allows the audio focus to be played plays the audio, and the playing module that does not acquire the audio focus is prohibited from playing the audio.
  • step S11 the monitoring audio focus of the on-board system is determined to change between two or more play modules.
  • the playing module includes two playing modules of the first playing module and the second playing module as an example: when the second playing module is monitored, the audio focus is captured when the first playing module is playing audio, and the in-vehicle system is Determining that the audio focus is transferred from the first play module to the second play module; when the second play module is automatically released to release the audio focus after the audio is stopped, the in-vehicle system determines that the audio focus is returned from the second play module to the first play module, That is, the audio focus is transferred from the second play module to the first play module.
  • the second playing module may stop playing the audio according to the user instruction during the playing, or may automatically stop the playing of the audio after the playing of the second playing module ends.
  • the audio focus is returned from the second play module to the first play module.
  • the user may switch from the second play module to the first play module, and the second play module is based on The switching command releases the audio focus so that the audio focus automatically returns to the first playback module.
  • the first play module and the second play module may be local play applications (such as local players) and third parties
  • the first play module is a local play application, and the second play module is a third party play application; or the first play module is a third party play application, and the second play module is a local play application.
  • step S12 the in-vehicle system only allows the playing module that has acquired the audio focus to play the audio, and does not allow or prohibit the playing module that does not acquire the audio focus to play the audio.
  • two or more playing modules are controlled to output audio in turn, ensuring only one audio output between the same day, avoiding two or more types of audio superimposed output, and solving the technical problem of audio output conflict, so that Users can listen to audio content and enhance the user experience.
  • the in-vehicle system controls the second playing module to play the audio, and the first playing module pauses playing the audio.
  • the in-vehicle system controls the first play module to continue playing the audio.
  • the first play module is caused by the user switching from the second play module to the first play module, and the in-vehicle system controls the second play module to stop or pause playing the audio.
  • the method includes the following steps:
  • the in-vehicle system controls the first playing module to play the audio.
  • the first play module of this embodiment may be a local play application or a third party play application.
  • the onboard system calls OnAudioFocusChangeListener, and the actual or fixed listening audio focus changes in the transition between the first play module and the second play module.
  • the second playback module is monitored to preempt the audio focus, and the first playback module loses the audio focus.
  • the second play module After receiving the play command of the user, the second play module calls requestAudioFocus to preempt the audio focus, and the car system monitors the AUDIOFOCUS_GAIN, AUDI0F0CUS _GAIN_TRANSIENT, AUDIOFOCUS_GAIN_TRANSIENT_M AY-DUCK:, AUD IOFOCUS_GAIN_TRANSIENT_EXCLUSIVE information of the second play module, and determines The second play module acquires an audio focus.
  • the peer monitors the AUDI0F0CUS_L0SS, AUDI0F0CUS_L0 SS_TRANSIENT, AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK information of the first play module, The first playback module loses the audio focus.
  • the second playback application when the first playback application is a local playback application, the second playback application is a third-party playback application; when the first playback application is a third-party playback application, the second playback application is locally played. application.
  • the in-vehicle system controls the first play module to pause playing the audio,
  • the second play module plays the audio. This ensures that there is only one audio output between the same day, which solves the problem of audio output conflicts.
  • step S24 the following steps are further included:
  • the in-vehicle system continues to monitor the transition of the audio focus between the first play module and the second play module.
  • the second playing module plays the end of the audio or receives the instruction to stop playing, the audio is stopped, and the audio focus is released by calling abandonAudioFocus, so that the first playing module reacquires the audio focus.
  • the in-vehicle system controls the first play module to continue playing the audio. Therefore, when the inserted audio is played, the original audio continues to be played back, which saves the user's manual return operation and improves the user experience.
  • the embodiment of the present invention discusses in detail the situation in which two playback modules transmit audio in turn, and those skilled in the art can understand that the situation in which multiple playback modules output audio in turn is similar to this, and the present invention will not be described in detail herein. .
  • the audio playback control method of the embodiment of the present invention by monitoring the transfer change of the audio focus, only allows the playback module that has acquired the audio focus to play the audio, and prohibits the playback module that does not acquire the audio focus from playing the sound. Frequency, thus controlling the two or more playback modules to output audio in turn, ensuring only one audio output between the same day, avoiding the situation of two or more audio superimposed outputs, solving the technical problem of audio output conflict , enabling users to listen to audio content and enhance the user experience.
  • the apparatus includes a monitoring module 10 and a control module 20, wherein: the monitoring module 10 is configured to monitor a transfer change of an audio focus; and the control module 20
  • the playback module for allowing the audio focus to be played plays the audio, and the playback module that does not acquire the audio focus is prohibited from playing the audio.
  • the listening module 10 implements or changes the listening audio focus to change between two or more playing modules.
  • the playback module includes the first playback module and the second playback module as an example.
  • the monitoring module 10 includes a first monitoring unit 11, and the first monitoring unit 11 is configured to: When the second playing module is monitored, the audio focus is captured when the first playing module is playing the audio, and the audio focus is determined to be transferred from the first playing module to the second playing module.
  • the monitoring module 10 further includes a second monitoring unit 12, configured to: when the second playing module is monitored, automatically releasing the audio focus after stopping the playing of the audio, determining the audio focus from the second The play module returns to the first play module, that is, the audio focus is transferred from the second play module to the first play module.
  • the second playing module may stop playing the audio according to the user instruction during the playing process, or may automatically stop playing the audio after the second playing module ends playing the audio.
  • the audio focus is returned from the second play module to the first play module.
  • the user may switch from the second play module to the first play module, and the second play module is The switching command releases the audio focus so that the audio focus automatically returns to the first playback module.
  • the first play module and the second play module may be a local play application (such as a local player) and a third party play application, such as: the first play module is a local play application, and the second play module is a third party play application; Alternatively, the first play module is a third party play application, and the second play module is a local play application.
  • the control module 20 only allows the playing module that has acquired the audio focus to play the audio, and does not allow or prohibit the playing module that does not acquire the audio focus to play the audio. Thereby controlling two or more play modules to rotate in turn
  • the audio is output, ensuring only one audio output between the same day, avoiding the situation of two or more audio superimposed outputs, solving the technical problem of audio output conflict, enabling the user to listen to the audio content and improve the user experience.
  • the control module 20 includes a first control unit 21, and the first control unit 21 is configured to: when the audio focus is monitored, shift from the first play module that is playing audio to the second play
  • the module ⁇ controls the second playing module to play the audio, and the first playing module pauses playing the audio.
  • control module 20 further includes a second control unit 22, configured to: when the audio focus is monitored from the second play module, return to the first play module, and control the first play module to continue playing. Audio.
  • the second control unit 22 also controls the second play module to stop or pause playing the audio.
  • the audio playback control device of the embodiment of the present invention by listening to the transfer change of the audio focus, allows only the playback module that has acquired the audio focus to play the audio, and prohibits the playback module that does not acquire the audio focus from playing the audio, thereby achieving control of the two Or multiple playing modules take turns to output audio, ensuring only one audio output between the same day, avoiding two or more types of audio superimposed output, solving the technical problem of audio output conflict, enabling the user to listen to the audio content. , improved user experience.
  • the present invention also provides an in-vehicle system including a memory, a processor, and at least one application stored in the memory and configured to be executed by the processor, the application being configured to perform audio playback control method.
  • the audio playback control method includes the steps of: monitoring a transfer change of an audio focus; allowing a play module that acquires an audio focus to play audio, and prohibiting a play module that does not acquire an audio focus from playing audio.
  • the audio playback control method described in this embodiment is the audio playback control method in the above embodiment of the present invention, and details are not described herein again.
  • the present invention includes apparatus that is directed to performing one or more of the operations described herein.
  • These devices may be specially designed and manufactured for the required purposes, or may also include known devices in a general purpose computer.
  • These devices have computer programs stored therein that are selectively activated or reconfigured.
  • Such computer programs may be stored in a device (eg, computer) readable medium or in any type of medium suitable for storing electronic instructions and respectively coupled to a bus, including but not limited to any Type of disk (including floppy disk, Hard disk, CD, CD-ROM, and magneto-optical disk), ROM (Read-Only Memory), RAM (Random Access Memory), EPROM (Erasable Programmable Read-Only)
  • a readable medium includes any medium that is stored or transmitted by a device (e.g., a computer) in a readable form.
  • each block of the block diagrams and/or block diagrams and/or flow diagrams can be implemented by computer program instructions, and/or in the block diagrams and/or block diagrams and/or flow diagrams The combination of boxes.
  • these computer program instructions can be implemented by a general purpose computer, a professional computer, or a processor of other programmable data processing methods, such that the processor is executed by a computer or other programmable data processing method.
  • the block diagrams and/or block diagrams of the invention and/or the schemes specified in the blocks or blocks of the flow diagram are invented.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Fittings On The Vehicle Exterior For Carrying Loads, And Devices For Holding Or Mounting Articles (AREA)

Abstract

本发明揭示了一种音频播放控制方法,所述方法包括以下步骤:监听音频焦点的转移变化;允许获取所述音频焦点的播放模块播放音频,禁止没有获取所述音频焦点的播放模块播放音频。从而实现了控制两个或多个播放模块轮流输出音频,保证同一时间只有一种音频输出,避免出现两种或两种以上的音频叠加输出的情形,提升了用户体验。

Description

发明名称:音频播放控制方法、 装置和车载系统 技术领域
[0001] 本发明涉及车载技术领域, 特别是涉及到一种音频播放控制方法、 装置和车载 系统。
背景技术
[0002] 随着汽车产业的迅速发展, 汽车的数量越来越多, 车载系统也越来越普及。 目 前的车载系统大部分都是基于安卓 (Android) 平台的车载系统, 以基于安卓系 统的车载导航系统为例, 其集成了导航、 多媒体、 蓝牙等功能, 并且用户可以 根据自己需求下载并安装第三方应用, 也就是说, 车载导航系统本身安装了本 地播放应用, 还可以安装第三方播放应用。
[0003] 由于本地播放应用和第三方播放应用相互独立, 因此二者有可能同吋播放音频 , 出现两种或两种以上的音频叠加输出的情形, 导致用户无法听清音频内容。 因此, 如何避免音频输出冲突, 是当前亟需解决的技术问题。
技术问题
[0004] 本发明的主要目的为提供一种音频播放控制方法、 装置和车载系统, 旨在解决 音频输出冲突的技术问题。
问题的解决方案
技术解决方案
[0005] 为达以上目的, 本发明实施例提出一种音频播放控制方法, 所述方法包括以下 步骤:
[0006] 监听音频焦点的转移变化;
[0007] 允许获取所述音频焦点的播放模块播放音频, 禁止没有获取所述音频焦点的播 放模块播放音频。
[0008] 可选地, 所述播放模块包括第一播放模块和第二播放模块, 所述允许获取所述 音频焦点的播放模块播放音频, 禁止没有获取所述音频焦点的播放模块播放音 频的步骤包括: [0009] 当监听到所述音频焦点从正在播放音频的第一播放模块转移到第二播放模块吋
, 控制所述第二播放模块播放音频, 所述第一播放模块暂停播放音频。
[0010] 可选地, 所述监听音频焦点的转移变化的步骤包括:
[0011] 当监听到所述第二播放模块在所述第一播放模块正在播放音频的吋候抢占了音 频焦点吋, 确定所述音频焦点从所述第一播放模块转移到所述第二播放模块。
[0012] 可选地, 所述控制所述第二播放模块播放音频, 所述第一播放模块暂停播放音 频的步骤之后还包括:
[0013] 当监听到所述音频焦点从所述第二播放模块返回所述第一播放模块吋, 控制所 述第一播放模块继续播放音频。
[0014] 可选地, 所述方法还包括:
[0015] 当监听到所述第二播放模块在停止播放音频后自动释放所述音频焦点吋, 确定 所述音频焦点从所述第二播放模块返回所述第一播放模块。
[0016] 可选地, 所述第一播放模块为本地播放应用, 所述第二播放模块为第三方播放 应用; 或者, 所述第一播放模块为第三方播放应用, 所述第二播放模块为本地 播放应用。
[0017] 本发明实施例同吋提出一种音频播放控制装置, 所述装置包括:
[0018] 监听模块, 用于监听音频焦点的转移变化;
[0019] 控制模块, 用于允许获取所述音频焦点的播放模块播放音频, 禁止没有获取所 述音频焦点的播放模块播放音频。
[0020] 可选地, 所述播放模块包括第一播放模块和第二播放模块, 所述控制模块包括 第一控制单元, 所述第一控制单元用于:
[0021] 当监听到所述音频焦点从正在播放音频的第一播放模块转移到第二播放模块吋
, 控制所述第二播放模块播放音频, 所述第一播放模块暂停播放音频。
[0022] 可选地, 所述监听模块包括第一监听单元, 所述第一监听单元用于:
[0023] 当监听到所述第二播放模块在所述第一播放模块正在播放音频的吋候抢占了音 频焦点吋, 确定所述音频焦点从所述第一播放模块转移到所述第二播放模块。
[0024] 可选地, 所述控制模块还包括第二控制单元, 所述第二控制单元用于:
[0025] 当监听到所述音频焦点从所述第二播放模块返回所述第一播放模块吋, 控制所 述第一播放模块继续播放音频。
[0026] 可选地, 所述监听单元包括第二监听单元, 所述第二监听单元用于:
[0027] 当监听到所述第二播放模块在停止播放音频后自动释放所述音频焦点吋, 确定 所述音频焦点从所述第二播放模块返回所述第一播放模块。
[0028] 本发明实施例还提出一种车载系统, 其包括存储器、 处理器和至少一个被存储 在所述存储器中并被配置为由所述处理器执行的应用程序, 所述应用程序被配 置为用于执行前述音频播放控制方法。
发明的有益效果
有益效果
[0029] 本发明实施例所提供的一种音频播放控制方法, 通过监听音频焦点的转移变化 , 只允许获取了音频焦点的播放模块播放音频, 禁止没有获取音频焦点的播放 模块播放音频, 从而实现了控制两个或多个播放模块轮流输出音频, 保证同一 吋间只有一种音频输出, 避免出现两种或两种以上的音频叠加输出的情形, 解 决了音频输出冲突的技术问题, 使得用户能够听清音频内容, 提升了用户体验
对附图的简要说明
附图说明
[0030] 图 1是本发明的音频播放控制方法第一实施例的流程图;
[0031] 图 2是本发明的音频播放控制方法第二实施例的流程图;
[0032] 图 3是本发明的音频播放控制方法第三实施例的流程图;
[0033] 图 4是本发明的音频播放控制装置一实施例的模块示意图;
[0034] 图 5是图 4中的监听模块的模块示意图;
[0035] 图 6是图 4中的控制模块的模块示意图。
[0036] 本发明目的的实现、 功能特点及优点将结合实施例, 参照附图做进一步说明。
实施该发明的最佳实施例
本发明的最佳实施方式
[0037] 应当理解, 此处所描述的具体实施例仅仅用以解释本发明, 并不用于限定本发 明。
[0038] 下面详细描述本发明的实施例, 所述实施例的示例在附图中示出, 其中自始至 终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。 下 面通过参考附图描述的实施例是示例性的, 仅用于解释本发明, 而不能解释为 对本发明的限制。
[0039] 本技术领域技术人员可以理解, 除非特意声明, 这里使用的单数形式"一"、 " 一个"、 "所述 "和"该"也可包括复数形式。 应该进一步理解的是, 本发明的说明 书中使用的措辞"包括"是指存在所述特征、 整数、 步骤、 操作、 元件和 /或组件 , 但是并不排除存在或添加一个或多个其他特征、 整数、 步骤、 操作、 元件、 组件和 /或它们的组。 应该理解, 当我们称元件被"连接"或"耦接"到另一元件吋 , 它可以直接连接或耦接到其他元件, 或者也可以存在中间元件。 此外, 这里 使用的"连接"或"耦接"可以包括无线连接或无线耦接。 这里使用的措辞 "和 /或"包 括一个或更多个相关联的列出项的全部或任一单元和全部组合。
[0040] 本技术领域技术人员可以理解, 除非另外定义, 这里使用的所有术语 (包括技 术术语和科学术语) , 具有与本发明所属领域中的普通技术人员的一般理解相 同的意义。 还应该理解的是, 诸如通用字典中定义的那些术语, 应该被理解为 具有与现有技术的上下文中的意义一致的意义, 并且除非像这里一样被特定定 义, 否则不会用理想化或过于正式的含义来解释。
[0041] 本技术领域技术人员可以理解, 这里所使用的 "终端"、 "终端设备"既包括无线 信号接收器的设备, 其仅具备无发射能力的无线信号接收器的设备, 又包括接 收和发射硬件的设备, 其具有能够在双向通信链路上, 执行双向通信的接收和 发射硬件的设备。 这种设备可以包括: 蜂窝或其他通信设备, 其具有单线路显 示器或多线路显示器或没有多线路显示器的蜂窝或其他通信设备; PCS (Persona 1 Communications Service, 个人通信系统) , 其可以组合语音、 数据处理、 传真 和 /或数据通信能力; PDA (Personal Digital Assistant, 个人数字助理) , 其可以 包括射频接收器、 寻呼机、 互联网 /内联网访问、 网络浏览器、 记事本、 日历和 / 或 GPS (Global Positioning System, 全球定位系统) 接收器; 常规膝上型和 /或掌 上型计算机或其他设备, 其具有和 /或包括射频接收器的常规膝上型和 /或掌上型 计算机或其他设备。 这里所使用的 "终端"、 "终端设备"可以是便携式、 可运输、 安装在交通工具 (航空、 海运和 /或陆地) 中的, 或者适合于和 /或配置为在本地 运行, 和 /或以分布形式, 运行在地球和 /或空间的任何其他位置运行。 这里所使 用的"终端"、 "终端设备"还可以是通信终端、 上网终端、 音乐 /视频播放终端, 例如可以是 PDA、 MID (Mobile Internet Device, 移动互联网设备) 和 /或具有音 乐 /视频播放功能的移动电话, 也可以是智能电视、 机顶盒等设备。
[0042] 本发明实施例的音频播放控制方法, 主要应用于车载系统 (如车载导航系统) , 当然也可以应用于手机、 平板、 个人电脑、 笔记本电脑等终端设备, 本发明 对此不作限定。 以下以应用于车载系统为例进行详细说明。
[0043] 参照图 1, 提出本发明的音频播放控制方法第一实施例, 所述方法包括以下步 骤:
[0044] Sl l、 监听音频焦点的转移变化。
[0045] S12、 允许获取音频焦点的播放模块播放音频, 禁止没有获取音频焦点的播放 模块播放音频。
[0046] 步骤 S11中, 车载系统实吋或定吋的监听音频焦点在两个或多个播放模块之间 相互转移的变化情况。
[0047] 以播放模块包括第一播放模块和第二播放模块两个播放模块为例: 当监听到第 二播放模块在第一播放模块正在播放音频的吋候抢占了音频焦点吋, 车载系统 则确定音频焦点从第一播放模块转移到第二播放模块; 当监听到第二播放模块 在停止播放音频后自动释放音频焦点吋, 车载系统则确定音频焦点从第二播放 模块返回第一播放模块, 即音频焦点又从第二播放模块转移到第一播放模块。
[0048] 第二播放模块停止播放音频的情形, 可以是第二播放模块在播放过程中根据用 户指令停止播放音频, 也可以是第二播放模块播放音频结束后自动停止播放音 频。
[0049] 音频焦点从第二播放模块返回第一播放模块, 除了第二播放自动释放音频焦点 的情形外, 还可能是用户从第二播放模块切换到第一播放模块, 第二播放模块 则根据切换指令释放音频焦点, 使得音频焦点自动返回第一播放模块。
[0050] 第一播放模块和第二播放模块可以是本地播放应用 (如本地播放器) 和第三方 播放应用, 如: 第一播放模块为本地播放应用, 第二播放模块为第三方播放应 用; 或者, 第一播放模块为第三方播放应用, 第二播放模块为本地播放应用。
[0051] 步骤 S12中, 车载系统只允许获取了音频焦点的播放模块播放音频, 不允许或 禁止没有获取音频焦点的播放模块播放音频。 从而实现了控制两个或多个播放 模块轮流输出音频, 保证同一吋间只有一种音频输出, 避免出现两种或两种以 上的音频叠加输出的情形, 解决了音频输出冲突的技术问题, 使得用户能够听 清音频内容, 提升了用户体验。
[0052] 具体的, 当监听到音频焦点从正在播放音频的第一播放模块转移到第二播放模 块吋, 车载系统则控制第二播放模块播放音频, 第一播放模块暂停播放音频。
[0053] 进一步地, 当监听到音频焦点从第二播放模块返回第一播放模块吋, 车载系统 则控制第一播放模块继续播放音频。 当音频焦点从第二播放模块返回第一播放 模块是用户从第二播放模块切换到第一播放模块导致的, 车载系统还控制第二 播放模块停止或暂停播放音频。
[0054] 参照图 2, 提出本发明的音频播放控制方法第二实施例, 所述方法包括以下步 骤:
[0055] S21、 控制第一播放模块播放音频。
[0056] 当第一播放模块获取音频焦点吋, 车载系统则控制第一播放模块播放音频。 本 实施例的第一播放模块可以是本地播放应用或第三方播放应用。
[0057] S22、 监听音频焦点的转移变化。
[0058] 车载系统调用 OnAudioFocusChangeListener, 实吋或定吋的监听音频焦点在第 一播放模块和第二播放模块的转移变化情况。
[0059] S23、 监听到第二播放模块抢占音频焦点, 第一播放模块失去音频焦点。
[0060] 第二播放模块接收到用户的播放指令吋, 调用 requestAudioFocus抢占音频焦点 , 此吋车载系统则监听到第二播放模块的 AUDIOFOCUS_GAIN、 AUDI0F0CUS _GAIN_TRANSIENT、 AUDIOFOCUS_GAIN_TRANSIENT_M AY—DUCK:、 AUD IOFOCUS_GAIN_TRANSIENT_EXCLUSIVE等信息, 确定第二播放模块获取音 频焦点。 同吋监听到第一播放模块的 AUDI0F0CUS_L0SS、 AUDI0F0CUS_L0 SS_TRANSIENT、 AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK等信息, 确 定第一播放模块失去音频焦点。
[0061] 本实施例中, 当第一播放应用为本地播放应用吋, 则第二播放应用为第三方播 放应用; 当第一播放应用为第三方播放应用吋, 则第二播放应用为本地播放应 用。
[0062] S24、 控制第二播放模块播放音频, 第一播放模块暂停播放音频。
[0063] 当第一播放模块失去音频焦点而第二播放模块获取音频焦点, 即音频焦点从第 一播放模块转移到第二播放模块吋, 车载系统则控制第一播放模块暂停播放音 频, 由第二播放模块播放音频。 从而保证同一吋间只有一种音频输出, 解决了 音频输出冲突的问题。
[0064] 进一步地, 如图 3所示, 在本发明的音频播放控制方法第三实施例中, 步骤 S24 之后还包括以下步骤:
[0065] S25、 继续监听音频焦点的转移变化。
[0066] 当音频焦点从第一播放模块转移到第二播放模块后, 车载系统继续监听音频焦 点在第一播放模块和第二播放模块之间的转移变化情况。
[0067] S26、 监听到第二播放模块停止播放音频并自动释放音频焦点, 第一播放模块 重新获取音频焦点。
[0068] 第二播放模块播放音频结束吋或者接收到停止播放的指令吋, 则停止播放音频 , 并调用 abandonAudioFocus释放音频焦点, 使得第一播放模块重新获取音频焦 点。
[0069] S27、 控制第一播放模块继续播放音频。
[0070] 当音频焦点从第二播放模块返回第一播放模块吋, 车载系统则控制第一播放模 块继续播放音频。 从而实现了当插播的音频播放完毕吋自动返回原来的音频继 续播放, 省去了用户手动返回操作, 提升了用户体验。
[0071] 本发明实施例详细论述了两个播放模块轮流输出音频的情形, 本领域技术人员 可以理解, 多个播放模块轮流输出音频的情形与此类似, 本发明对此不再一一 列举赘述。
[0072] 本发明实施例的音频播放控制方法, 通过监听音频焦点的转移变化, 只允许获 取了音频焦点的播放模块播放音频, 禁止没有获取音频焦点的播放模块播放音 频, 从而实现了控制两个或多个播放模块轮流输出音频, 保证同一吋间只有一 种音频输出, 避免出现两种或两种以上的音频叠加输出的情形, 解决了音频输 出冲突的技术问题, 使得用户能够听清音频内容, 提升了用户体验。
[0073] 参照图 4, 提出本发明的音频播放控制装置一实施例, 所述装置包括监听模块 1 0和控制模块 20, 其中: 监听模块 10, 用于监听音频焦点的转移变化; 控制模块 20, 用于允许获取音频焦点的播放模块播放音频, 禁止没有获取音频焦点的播 放模块播放音频。
[0074] 监听模块 10实吋或定吋的监听音频焦点在两个或多个播放模块之间相互转移的 变化情况。
[0075] 以播放模块包括第一播放模块和第二播放模块两个播放模块为例, 此吋监听模 块 10如图 5所示, 包括第一监听单元 11, 该第一监听单元 11用于: 当监听到第二 播放模块在第一播放模块正在播放音频的吋候抢占了音频焦点吋, 确定音频焦 点从第一播放模块转移到第二播放模块。
[0076] 进一步地, 监听模块 10还包括第二监听单元 12, 该第二监听单元 12用于: 当监 听到第二播放模块在停止播放音频后自动释放音频焦点吋, 确定音频焦点从第 二播放模块返回第一播放模块, 即音频焦点又从第二播放模块转移到第一播放 模块。
[0077] 第二播放模块停止播放音频的情形, 可以是第二播放模块在播放过程中根据用 户指令停止播放音频, 也可以是第二播放模块播放音频结束后自动停止播放音 频。
[0078] 音频焦点从第二播放模块返回第一播放模块, 除了第二播放自动释放音频焦点 的情形外, 还可能是用户从第二播放模块切换到第一播放模块吋, 第二播放模 块根据切换指令释放音频焦点, 使得音频焦点自动返回第一播放模块。
[0079] 第一播放模块和第二播放模块可以是本地播放应用 (如本地播放器) 和第三方 播放应用, 如: 第一播放模块为本地播放应用, 第二播放模块为第三方播放应 用; 或者, 第一播放模块为第三方播放应用, 第二播放模块为本地播放应用。
[0080] 控制模块 20只允许获取了音频焦点的播放模块播放音频, 不允许或禁止没有获 取音频焦点的播放模块播放音频。 从而实现了控制两个或多个播放模块轮流输 出音频, 保证同一吋间只有一种音频输出, 避免出现两种或两种以上的音频叠 加输出的情形, 解决了音频输出冲突的技术问题, 使得用户能够听清音频内容 , 提升了用户体验。
[0081] 具体的, 如图 6所示, 控制模块 20包括第一控制单元 21, 该第一控制单元 21用 于: 当监听到音频焦点从正在播放音频的第一播放模块转移到第二播放模块吋 , 控制第二播放模块播放音频, 第一播放模块暂停播放音频。
[0082] 进一步地, 控制模块 20还包括第二控制单元 22, 该第二控制单元 22用于: 当监 听到音频焦点从第二播放模块返回第一播放模块吋, 控制第一播放模块继续播 放音频。 当音频焦点从第二播放模块返回第一播放模块是用户从第二播放模块 切换到第一播放模块导致的, 第二控制单元 22还控制第二播放模块停止或暂停 播放音频。
[0083] 本发明实施例的音频播放控制装置, 通过监听音频焦点的转移变化, 只允许获 取了音频焦点的播放模块播放音频, 禁止没有获取音频焦点的播放模块播放音 频, 从而实现了控制两个或多个播放模块轮流输出音频, 保证同一吋间只有一 种音频输出, 避免出现两种或两种以上的音频叠加输出的情形, 解决了音频输 出冲突的技术问题, 使得用户能够听清音频内容, 提升了用户体验。
[0084] 本发明同吋提出一种车载系统, 其包括存储器、 处理器和至少一个被存储在存 储器中并被配置为由处理器执行的应用程序, 应用程序被配置为用于执行音频 播放控制方法。 所述音频播放控制方法包括以下步骤: 监听音频焦点的转移变 化; 允许获取音频焦点的播放模块播放音频, 禁止没有获取音频焦点的播放模 块播放音频。 本实施例中所描述的音频播放控制方法为本发明中上述实施例所 涉及的音频播放控制方法, 在此不再赘述。
[0085] 本领域技术人员可以理解, 本发明包括涉及用于执行本申请中所述操作中的一 项或多项的设备。 这些设备可以为所需的目的而专门设计和制造, 或者也可以 包括通用计算机中的已知设备。 这些设备具有存储在其内的计算机程序, 这些 计算机程序选择性地激活或重构。 这样的计算机程序可以被存储在设备 (例如 , 计算机) 可读介质中或者存储在适于存储电子指令并分别耦联到总线的任何 类型的介质中, 所述计算机可读介质包括但不限于任何类型的盘 (包括软盘、 硬盘、 光盘、 CD-ROM、 和磁光盘) 、 ROM (Read-Only Memory , 只读存储器 ) 、 RAM (Random Access Memory , 随机存储器) 、 EPROM (Erasable Programmable Read-Only
Memory , 可擦写可编程只读存储器) 、 EEPROM (Electrically Erasable Programmable Read-Only Memory , 电可擦可编程只读存储器) 、 闪存、 磁性卡 片或光线卡片。 也就是, 可读介质包括由设备 (例如, 计算机) 以能够读的形 式存储或传输信息的任何介质。
[0086] 本技术领域技术人员可以理解, 可以用计算机程序指令来实现这些结构图和 / 或框图和 /或流图中的每个框以及这些结构图和 /或框图和 /或流图中的框的组合。 本技术领域技术人员可以理解, 可以将这些计算机程序指令提供给通用计算机 、 专业计算机或其他可编程数据处理方法的处理器来实现, 从而通过计算机或 其他可编程数据处理方法的处理器来执行本发明公幵的结构图和 /或框图和 /或流 图的框或多个框中指定的方案。
[0087] 本技术领域技术人员可以理解, 本发明中已经讨论过的各种操作、 方法、 流程 中的步骤、 措施、 方案可以被交替、 更改、 组合或刪除。 进一步地, 具有本发 明中已经讨论过的各种操作、 方法、 流程中的其他步骤、 措施、 方案也可以被 交替、 更改、 重排、 分解、 组合或刪除。 进一步地, 现有技术中的具有与本发 明中公幵的各种操作、 方法、 流程中的步骤、 措施、 方案也可以被交替、 更改 、 重排、 分解、 组合或刪除。
[0088] 以上所述仅为本发明的优选实施例, 并非因此限制本发明的专利范围, 凡是利 用本发明说明书及附图内容所作的等效结构或等效流程变换, 或直接或间接运 用在其他相关的技术领域, 均同理包括在本发明的专利保护范围内。

Claims

权利要求书
一种音频播放控制方法, 其特征在于, 包括以下步骤:
监听音频焦点的转移变化;
允许获取所述音频焦点的播放模块播放音频, 禁止没有获取所述音频 焦点的播放模块播放音频。
根据权利要求 1所述的音频播放控制方法, 其特征在于, 所述播放模 块包括第一播放模块和第二播放模块, 所述允许获取所述音频焦点的 播放模块播放音频, 禁止没有获取所述音频焦点的播放模块播放音频 的步骤包括:
当监听到所述音频焦点从正在播放音频的第一播放模块转移到第二播 放模块吋, 控制所述第二播放模块播放音频, 所述第一播放模块暂 停播放音频。
根据权利要求 2所述的音频播放控制方法, 其特征在于, 所述监听音 频焦点的转移变化的步骤包括:
当监听到所述第二播放模块在所述第一播放模块正在播放音频的吋候 抢占了音频焦点吋, 确定所述音频焦点从所述第一播放模块转移到所 述第二播放模块。
根据权利要求 2所述的音频播放控制方法, 其特征在于, 所述控制所 述第二播放模块播放音频, 所述第一播放模块暂停播放音频的步骤之 后还包括:
当监听到所述音频焦点从所述第二播放模块返回所述第一播放模块吋 , 控制所述第一播放模块继续播放音频。
根据权利要求 4所述的音频播放控制方法, 其特征在于, 所述方法还 包括:
当监听到所述第二播放模块在停止播放音频后自动释放所述音频焦点 吋, 确定所述音频焦点从所述第二播放模块返回所述第一播放模块。 根据权利要求 2-5任一项所述的音频播放控制方法, 其特征在于, 所 述第一播放模块为本地播放应用, 所述第二播放模块为第三方播放应 用; 或者, 所述第一播放模块为第三方播放应用, 所述第二播放模块 为本地播放应用。
一种音频播放控制装置, 其特征在于, 包括:
监听模块, 用于监听音频焦点的转移变化;
控制模块, 用于允许获取所述音频焦点的播放模块播放音频, 禁止没 有获取所述音频焦点的播放模块播放音频。
根据权利要求 7所述的音频播放控制装置, 其特征在于, 所述播放模 块包括第一播放模块和第二播放模块, 所述控制模块包括第一控制单 元, 所述第一控制单元用于:
当监听到所述音频焦点从正在播放音频的第一播放模块转移到第二播 放模块吋, 控制所述第二播放模块播放音频, 所述第一播放模块暂 停播放音频。
根据权利要求 8所述的音频播放控制装置, 其特征在于, 所述监听模 块包括第一监听单元, 所述第一监听单元用于:
当监听到所述第二播放模块在所述第一播放模块正在播放音频的吋候 抢占了音频焦点吋, 确定所述音频焦点从所述第一播放模块转移到所 述第二播放模块。
根据权利要求 8所述的音频播放控制装置, 其特征在于, 所述控制模 块还包括第二控制单元, 所述第二控制单元用于:
当监听到所述音频焦点从所述第二播放模块返回所述第一播放模块吋 , 控制所述第一播放模块继续播放音频。
根据权利要求 10所述的音频播放控制装置, 其特征在于, 所述监听单 元包括第二监听单元, 所述第二监听单元用于:
当监听到所述第二播放模块在停止播放音频后自动释放所述音频焦点 吋, 确定所述音频焦点从所述第二播放模块返回所述第一播放模块。 根据权利要求 8-11任一项所述的音频播放控制装置, 其特征在于, 所 述第一播放模块为本地播放应用, 所述第二播放模块为第三方播放应 用; 或者, 所述第一播放模块为第三方播放应用, 所述第二播放模块 为本地播放应用。
[权利要求 13] —种车载系统, 包括存储器、 处理器和至少一个被存储在所述存储器 中并被配置为由所述处理器执行的应用程序, 其特征在于, 所述应用 程序被配置为用于执行权利要求 1至 6任一项所述的音频播放控制方法
PCT/CN2017/111389 2017-10-26 2017-11-16 音频播放控制方法、装置和车载系统 WO2019080214A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711015773.7 2017-10-26
CN201711015773.7A CN107832034A (zh) 2017-10-26 2017-10-26 音频播放控制方法和装置

Publications (1)

Publication Number Publication Date
WO2019080214A1 true WO2019080214A1 (zh) 2019-05-02

Family

ID=61649460

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/111389 WO2019080214A1 (zh) 2017-10-26 2017-11-16 音频播放控制方法、装置和车载系统

Country Status (2)

Country Link
CN (1) CN107832034A (zh)
WO (1) WO2019080214A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112637412A (zh) * 2019-10-09 2021-04-09 上海博泰悦臻电子设备制造有限公司 一种音频管理方法、装置及计算机存储介质

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110032357B (zh) * 2019-04-09 2022-05-10 海信视像科技股份有限公司 应用程序的音频数据的输出方法及显示设备
US11288033B2 (en) 2019-04-09 2022-03-29 Hisense Visual Technology Co., Ltd. Method for outputting audio data of applications and display device
CN110196708B (zh) * 2019-04-25 2023-05-16 深圳市布谷鸟科技有限公司 一种应用于安卓车载多媒体系统的音频管理方法
CN116974508B (zh) * 2023-06-30 2024-07-09 荣耀终端有限公司 音频焦点控制方法及装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102033776A (zh) * 2009-09-29 2011-04-27 联想(北京)有限公司 一种音频播放方法及一种计算设备
CN102768846A (zh) * 2012-07-20 2012-11-07 Tcl集团股份有限公司 一种音频播放方法、装置及终端
US20130067050A1 (en) * 2011-09-11 2013-03-14 Microsoft Corporation Playback manager
CN105183446A (zh) * 2015-07-16 2015-12-23 贵阳语玩科技有限公司 音频管理系统
CN105468380A (zh) * 2015-12-29 2016-04-06 山东大学 一种安卓系统上管理音频焦点的优化方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102033776A (zh) * 2009-09-29 2011-04-27 联想(北京)有限公司 一种音频播放方法及一种计算设备
US20130067050A1 (en) * 2011-09-11 2013-03-14 Microsoft Corporation Playback manager
CN102768846A (zh) * 2012-07-20 2012-11-07 Tcl集团股份有限公司 一种音频播放方法、装置及终端
CN105183446A (zh) * 2015-07-16 2015-12-23 贵阳语玩科技有限公司 音频管理系统
CN105468380A (zh) * 2015-12-29 2016-04-06 山东大学 一种安卓系统上管理音频焦点的优化方法

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112637412A (zh) * 2019-10-09 2021-04-09 上海博泰悦臻电子设备制造有限公司 一种音频管理方法、装置及计算机存储介质

Also Published As

Publication number Publication date
CN107832034A (zh) 2018-03-23

Similar Documents

Publication Publication Date Title
WO2019080214A1 (zh) 音频播放控制方法、装置和车载系统
US8577424B2 (en) Method and apparatus for communication between a vehicle based computing system and a remote application
WO2018223608A1 (zh) 基于导航的音频处理方法和装置
WO2019100556A1 (zh) 音频输出控制方法、装置和车载系统
US20100203830A1 (en) Systems and Methods for Implementing Hands Free Operational Environments
US9369565B2 (en) Electronic device
US8977202B2 (en) Communication apparatus having a unit to determine whether a profile is operating
JP2006352799A (ja) 無線通信装置とその方法、及び携帯型情報処理装置
US20100167821A1 (en) Information processing apparatus
CN105790802A (zh) 一种双机互联模式下音源管理方法
KR20080026876A (ko) 휴대용 단말기 및 그의 응급전화 통화방법
US20110212748A1 (en) Handoff from public to private mode for communications
US8306233B2 (en) Transmission of audio signals
WO2018205433A1 (zh) 网络连接方法、装置和终端设备
JP2015002394A (ja) 情報処理装置及びコンピュータプログラム
US9473093B2 (en) Method and apparatus for ultrasonic triggered audio reduction
CN106445456A (zh) 导航功能的tts音频数据的传输方法及装置
CN116419192A (zh) 音频管理方法及系统、车载终端及存储介质
JP2011101198A (ja) ハンズフリーシステムの通話確認方法
JP4603006B2 (ja) 情報処理装置
KR20040031752A (ko) 엠피쓰리 플레이어의 인터넷 폰 장치 및 그 제어방법
KR100774293B1 (ko) 이동통신 단말기에서 반향제거 및 증폭기능을 이용한 외부스피커 이용장치 및 방법
JP4372180B2 (ja) 情報処理装置
US10764723B1 (en) Digital audio and video data, and information distribution system for cellular smartphones
JP2008312055A (ja) 情報処理装置

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: 17929933

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: 17929933

Country of ref document: EP

Kind code of ref document: A1