+

CN106354471A - Method and device for audio play control and electronic device - Google Patents

Method and device for audio play control and electronic device Download PDF

Info

Publication number
CN106354471A
CN106354471A CN201610867753.1A CN201610867753A CN106354471A CN 106354471 A CN106354471 A CN 106354471A CN 201610867753 A CN201610867753 A CN 201610867753A CN 106354471 A CN106354471 A CN 106354471A
Authority
CN
China
Prior art keywords
sound effect
applications
audio
preset
played
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610867753.1A
Other languages
Chinese (zh)
Inventor
马宁
杨依珍
王中帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610867753.1A priority Critical patent/CN106354471A/en
Publication of CN106354471A publication Critical patent/CN106354471A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10009Improvement or modification of read or write signals
    • G11B20/10018Improvement or modification of read or write signals analog processing for digital recording or reproduction
    • G11B20/10027Improvement or modification of read or write signals analog processing for digital recording or reproduction adjusting the signal strength during recording or reproduction, e.g. variable gain amplifiers

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (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)

Abstract

The invention relates to a method and device for audio play control and an electronic device. The method comprises the steps of detecting whether two or more application play audios simultaneously; playing the audios simultaneously in response to the detected two or more applications, and correspondingly controlling sound effects of the audios played by each application according to preset sound effect parameters corresponding to each application. Due to the fact that the different sound effect parameters are preset for the applications, the sound effects of the audios played by the multiple applications can be controlled automatically, so as to meet audio playing requirements under various scenarios, improve intelligence level of the electronic device and bring convenience to users.

Description

音频播放控制方法、装置及电子设备Audio play control method, device and electronic equipment

技术领域technical field

本公开涉及电子设备技术领域,尤其涉及音频播放控制方法、装置及电子设备。The present disclosure relates to the technical field of electronic equipment, and in particular to an audio playback control method, device and electronic equipment.

背景技术Background technique

随着电子设备技术的快速发展,电子设备可以安装多种不同功能的应用,使得电子设备的功能越来越丰富。相关技术中,大多数应用都具有音频播放功能,例如音乐播放器可以播放音乐、阅读应用可以播放有声读物、语音导航应用可以实时语音导航或报道路况等。With the rapid development of electronic device technology, electronic devices can be installed with multiple applications with different functions, making the functions of electronic devices more and more abundant. In related technologies, most applications have an audio playback function, for example, a music player can play music, a reading application can play audiobooks, and a voice navigation application can provide real-time voice navigation or report road conditions, etc.

发明内容Contents of the invention

为克服相关技术中存在的问题,本公开提供了音频播放控制方法、装置及电子设备。In order to overcome the problems existing in related technologies, the present disclosure provides an audio playback control method, device and electronic equipment.

根据本公开实施例的第一方面,提供一种音频播放控制方法,所述方法包括:According to a first aspect of an embodiment of the present disclosure, an audio playback control method is provided, the method comprising:

检测是否有两个或两个以上的应用同时播放音频;Detect if two or more applications are playing audio at the same time;

响应于检测到有两个或两个以上的应用同时播放音频,根据各所述应用对应的预设音效参数,对各所述应用所播放的音频的音效进行相应控制。In response to detecting that two or more applications are playing audio at the same time, the sound effects of the audio played by each of the applications are controlled accordingly according to the preset sound effect parameters corresponding to each of the applications.

在一个可选的实现方式中,所述预设音效参数包括音量等级,所述根据各所述应用对应的预设音效参数,对各所述应用所播放的音频的音效进行相应控制,包括:In an optional implementation manner, the preset sound effect parameters include a volume level, and the corresponding control of the sound effects of the audio played by each of the applications according to the preset sound effect parameters corresponding to each of the applications includes:

根据各所述应用对应的音量等级的高低,控制各所述应用所播放的音频的音量大小。According to the volume level corresponding to each of the applications, the volume of the audio played by each of the applications is controlled.

在一个可选的实现方式中,所述预设音效参数预先根据不同应用所播放的音频内容而确定,其中,地图应用的音量等级高于其他应用的音量等级。In an optional implementation manner, the preset sound effect parameters are determined in advance according to audio content played by different applications, wherein the volume level of the map application is higher than that of other applications.

在一个可选的实现方式中,所述预设音效参数包括音效模式,所述根据各所述应用对应的预设音效参数,对各所述应用所播放的音频的音效进行相应控制,包括:In an optional implementation manner, the preset sound effect parameters include a sound effect mode, and the corresponding control of the sound effect of the audio played by each of the applications according to the preset sound effect parameters corresponding to each of the applications includes:

根据各所述应用对应的音效模式,控制各所述应用按照对应的音效模式播放音频。According to the sound effect mode corresponding to each of the applications, each of the applications is controlled to play audio according to the corresponding sound effect mode.

在一个可选的实现方式中,所述方法还包括:In an optional implementation, the method also includes:

响应于预设音效参数设置指令,显示各具有音频播放功能的应用对应的音效参数输入项;In response to the preset sound effect parameter setting instruction, display the sound effect parameter input items corresponding to the applications with audio playback function;

通过所述音效参数输入项接收输入的音效参数,将所述输入的音效参数作为所述预设音效参数。An input sound effect parameter is received through the sound effect parameter input item, and the input sound effect parameter is used as the preset sound effect parameter.

根据本公开实施例的第二方面,提供一种音频播放控制装置,包括:According to a second aspect of an embodiment of the present disclosure, an audio playback control device is provided, including:

检测模块,被配置为检测是否有两个或两个以上的应用同时播放音频;A detection module configured to detect whether two or more applications play audio at the same time;

控制模块,被配置为响应于检测到有两个或两个以上的应用同时播放音频,根据各所述应用对应的预设音效参数,对各所述应用所播放的音频的音效进行相应控制。The control module is configured to control the sound effect of the audio played by each application according to the preset sound effect parameters corresponding to each application in response to detecting that two or more applications play audio at the same time.

在一个可选的实现方式中,所述预设音效参数包括音量等级,所述控制模块,包括:In an optional implementation, the preset sound effect parameters include a volume level, and the control module includes:

音量控制子模块,被配置为根据各所述应用对应的音量等级的高低,控制各所述应用所播放的音频的音量大小。The volume control sub-module is configured to control the volume of the audio played by each of the applications according to the level of the volume corresponding to each of the applications.

在一个可选的实现方式中,所述预设音效参数预先根据不同应用所播放的音频内容而确定,其中,地图应用的音量等级高于其他应用的音量等级。In an optional implementation manner, the preset sound effect parameters are determined in advance according to audio content played by different applications, wherein the volume level of the map application is higher than that of other applications.

在一个可选的实现方式中,所述预设音效参数包括音效模式,所述控制模块,包括:In an optional implementation, the preset sound effect parameters include a sound effect mode, and the control module includes:

音效控制子模块,被配置为根据各所述应用对应的音效模式,控制各所述应用按照对应的音效模式播放音频。The sound effect control sub-module is configured to control each of the applications to play audio according to the corresponding sound effect mode according to the sound effect mode corresponding to each of the applications.

在一个可选的实现方式中,所述装置还包括:In an optional implementation, the device also includes:

显示模块,被配置为响应于预设音效参数设置指令,显示各具有音频播放功能的应用对应的音效参数输入项;The display module is configured to display sound effect parameter input items corresponding to applications with audio playback functions in response to preset sound effect parameter setting instructions;

接收模块,被配置为通过所述音效参数输入项接收输入的音效参数,将所述输入的音效参数作为所述预设音效参数。The receiving module is configured to receive an input sound effect parameter through the sound effect parameter input item, and use the input sound effect parameter as the preset sound effect parameter.

根据本公开实施例的第三方面,提供一种电子设备,包括:According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device, including:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:Wherein, the processor is configured as:

检测是否有两个或两个以上的应用同时播放音频;Detect if two or more applications are playing audio at the same time;

响应于检测到有两个或两个以上的应用同时播放音频,根据各所述应用对应的预设音效参数,对各所述应用所播放的音频的音效进行相应控制。In response to detecting that two or more applications are playing audio at the same time, the sound effects of the audio played by each of the applications are controlled accordingly according to the preset sound effect parameters corresponding to each of the applications.

本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:

本公开中,通过检测是否有两个或两个以上的应用同时播放音频,当检测到有两个或两个以上的应用同时播放音频时,可以根据各所述应用对应的预设音效参数,对各所述应用所播放的音频的音效进行相应控制。本公开实施例由于预先对应用设置不同的音效参数,所以可以自动控制多个应用所播放音频的音效,以满足多种不同场景下的音频播放需求,提高了电子设备的智能化水平,给用户带来了便利。In this disclosure, by detecting whether there are two or more applications playing audio at the same time, when it is detected that two or more applications are playing audio at the same time, according to the preset sound effect parameters corresponding to each of the applications, The sound effect of the audio played by each application is controlled accordingly. In the embodiment of the present disclosure, since different sound effect parameters are set for the application in advance, the sound effect of the audio played by multiple applications can be automatically controlled, so as to meet the audio playback requirements in various scenarios, improve the intelligence level of the electronic device, and provide users with Bring convenience.

本公开中,在两个或两个以上应用同时播放音频的情况下,对于音量的调整的需求较大,本公开实施例的音效参数可以包括音量等级,并利用音量等级控制各应用的音量大小。In this disclosure, when two or more applications play audio at the same time, there is a greater demand for volume adjustment. The sound effect parameters in this embodiment of the disclosure may include volume levels, and use the volume levels to control the volume of each application .

本公开中,可以根据不同的应用所播放的音频内容而确定预设音效参数,并且可以将地图应用的音量等级设置为高于其他应用的音量等级,从而可以使用户在使用时能听清楚地图应用所播放的语音,给用户带来便利。In this disclosure, the preset sound effect parameters can be determined according to the audio content played by different applications, and the volume level of the map application can be set higher than that of other applications, so that the user can hear the map clearly when using it The voice played by the application brings convenience to the user.

本公开中,音效参数还可以包括音效模式,因此可以控制各所述应用按照对应的音效模式播放音频,使得音频播放的效果更好,给用户带来了便利。In the present disclosure, the sound effect parameter may also include a sound effect mode, so each of the applications may be controlled to play audio according to the corresponding sound effect mode, so that the audio playing effect is better, which brings convenience to the user.

本公开中,可以向用户提供音效参数输入项,由用户为各应用设置相应的音效参数,因此可以按照用户用户喜好自动地进行音频播放控制,为用户带来便利。In the present disclosure, the user can be provided with sound effect parameter input items, and the user can set corresponding sound effect parameters for each application, so the audio playback control can be automatically performed according to the user's preference, which brings convenience to the user.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.

图1A是本公开根据一示例性实施例示出的一种音频播放控制方法的流程图。Fig. 1A is a flowchart of an audio playback control method according to an exemplary embodiment of the present disclosure.

图1B是本公开根据一示例性实施例示出的一种电子设备的示意图。Fig. 1B is a schematic diagram of an electronic device according to an exemplary embodiment of the present disclosure.

图1C是本公开根据一示例性实施例示出的一种电子设备提供输入项的示意图。Fig. 1C is a schematic diagram of an electronic device providing input items according to an exemplary embodiment of the present disclosure.

图2是本公开根据一示例性实施例示出的一种音频播放控制装置的框图。Fig. 2 is a block diagram of an audio playback control device according to an exemplary embodiment of the present disclosure.

图3是本公开根据一示例性实施例示出的另一种音频播放控制装置的部分框图。Fig. 3 is a partial block diagram of another audio playback control device according to an exemplary embodiment of the present disclosure.

图4是本公开根据一示例性实施例示出的另一种音频播放控制装置的部分框图。Fig. 4 is a partial block diagram of another audio playback control device according to an exemplary embodiment of the present disclosure.

图5是本公开根据一示例性实施例示出的另一种音频播放控制装置的框图。Fig. 5 is a block diagram of another audio playback control device according to an exemplary embodiment of the present disclosure.

图6是本公开根据一示例性实施例示出的一种用于音频播放控制装置的框图。Fig. 6 is a block diagram of an audio playback control device according to an exemplary embodiment of the present disclosure.

具体实施方式detailed description

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

在本公开使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本公开。在本公开和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in the present disclosure is for the purpose of describing particular embodiments only, and is not intended to limit the present disclosure. As used in this disclosure and the appended claims, the singular forms "a", "the", and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.

应当理解,尽管在本公开可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本公开范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of the present disclosure, first information may also be called second information, and similarly, second information may also be called first information. Depending on the context, the word "if" as used herein may be interpreted as "at" or "when" or "in response to a determination."

电子设备中可以安装有多种不同的具有音频播放功能的应用以获得多种音频播放功能,例如音乐播放器可以播放音乐,阅读应用可以播放有声读物,地图应用可以实时播放语音导航或报道路况等。电子设备可以同时运行多种具有音频播放功能的应用,在同时运行有多种上述应用时,上述应用会同时播放音频。在某些应用场景下,用户需要对不同应用的音效进行相应设置,相关技术通常需要用户打开各个应用的应用界面,利用应用界面中所提供的音效选项进行音频调整,此种音频播放控制方式智能化水平较低,需要用户进行较多繁琐的操作。Various applications with audio playback functions can be installed in electronic devices to obtain various audio playback functions, for example, a music player can play music, a reading application can play audiobooks, a map application can play voice navigation or report road conditions in real time, etc. . The electronic device can simultaneously run multiple applications with audio playing functions, and when multiple applications are running simultaneously, the above applications will play audio at the same time. In some application scenarios, users need to set the sound effects of different applications accordingly. Related technologies usually require users to open the application interface of each application, and use the sound effect options provided in the application interface to adjust the audio. This audio playback control method is intelligent. The level of automation is low, requiring users to perform more tedious operations.

本公开实施例提供了一种便利智能的音频播放控制的方案。本公开实施例可以应用在如智能手机、车载设备、平板电脑、个人计算机、电子书阅读器或多媒体播放器等电子设备中。此类电子设备可以安装有多种具有播放音频功能的应用。The embodiment of the present disclosure provides a solution for convenient and intelligent audio playback control. Embodiments of the present disclosure may be applied in electronic devices such as smart phones, vehicle-mounted devices, tablet computers, personal computers, e-book readers, or multimedia players. Such electronic devices can be installed with various applications that have the function of playing audio.

在很多场景下,会涉及到利用电子设备同时运行两个或两个以上具有音频播放功能的应用的需求。例如,当用户在开车时,可以利用智能手机或车载设备等电子设备运行地图应用和音乐播放应用,地图应用可以播放用于导航或路况提示的音频,音乐播放应用可以播放音乐。在其他场景下,此处的音乐播放应用还有可能是电台播放应用或具有有声读物播放功能的阅读应用等。在此类场景下,可以理解,地图应用的音量应较大,且应处于清晰的人声播放模式下,而同时播放的其他类音频播放应用的音量应较小,以使得用户可以听清楚地图应用所播放的导航语音或路况提示语音。In many scenarios, it involves the requirement of using an electronic device to simultaneously run two or more applications with audio playback functions. For example, when a user is driving, he or she can run a map application and a music player application on an electronic device such as a smart phone or an in-vehicle device. The map application can play audio for navigation or road condition prompts, and the music player application can play music. In other scenarios, the music playback application here may also be a radio playback application or a reading application with an audiobook playback function. In such scenarios, it is understandable that the volume of the map application should be louder, and should be in a clear human voice playback mode, while the volume of other audio playback applications playing at the same time should be lower, so that users can hear the map clearly The navigation voice or traffic prompt voice played by the app.

在其他应用场景下,还可以是用户利用音乐播放应用播放轻音乐,同时利用阅读应用播放有声读物等。在此类场景下,可以理解,阅读应用的音量应较大,且应处于清晰的人声播放模式下,而同时播放的音乐播放应用的音量应较小,以使得用户可以听清楚有声读物的内容。In other application scenarios, the user may also use the music playing application to play light music, and at the same time use the reading application to play audiobooks and the like. In such scenarios, it is understandable that the volume of the reading application should be louder and in a clear human voice playback mode, while the volume of the music playback application playing at the same time should be lower, so that the user can hear the audiobook clearly. content.

上述电子设备可以应用本公开实施例所提供的方案,通过检测是否有两个或两个以上的应用同时播放音频,当检测到有两个或两个以上的应用同时播放音频时,可以根据各所述应用对应的预设音效参数,对各所述应用所播放的音频的音效进行相应控制。本公开实施例由于预先对应用设置不同的音效参数,所以可以自动控制多个应用所播放音频的音效,以满足多种不同场景下的音频播放需求,提高了电子设备的智能化水平,给用户带来了便利。接下来对本公开实施例进行详细说明。The above-mentioned electronic device can apply the solutions provided by the embodiments of the present disclosure. By detecting whether two or more applications are playing audio at the same time, when it is detected that two or more applications are playing audio at the same time, it can The preset sound effect parameters corresponding to the applications control the sound effects of the audio played by each of the applications accordingly. In the embodiment of the present disclosure, since different sound effect parameters are set for the application in advance, the sound effect of the audio played by multiple applications can be automatically controlled, so as to meet the audio playback requirements in various scenarios, improve the intelligence level of the electronic device, and provide users with Bring convenience. Next, the embodiments of the present disclosure will be described in detail.

如图1A所示,图1A是本公开根据一示例性实施例示出的一种音频播放控制方法的流程图,包括以下步骤101至102:As shown in FIG. 1A, FIG. 1A is a flowchart of an audio playback control method according to an exemplary embodiment of the present disclosure, including the following steps 101 to 102:

在步骤101中,检测是否有两个或两个以上的应用同时播放音频。In step 101, it is detected whether there are two or more applications playing audio at the same time.

本公开实施例中,电子设备可以检测具有音频播放功能的应用是否在运行,同时检测各应用是否在播放音频。对于地图应用,有可能在运行期间,并没有持续地播放语音导航或路况提示音频;对于音乐播放应用,有可能在运行期间,用户设置了暂停,因此,电子设备可以实时检测各正在运行的应用是否在播放音频,此种方式的检测准确率高。在其他可选的实现方式中,也可以是检测到具有音频播放功能的应用在运行时,即认为音频正在播放,此种检测方式可减少电子设备的资源负载,达到占用较少内存的效果。In the embodiment of the present disclosure, the electronic device may detect whether an application having an audio playing function is running, and simultaneously detect whether each application is playing audio. For a map application, it is possible that voice guidance or road condition prompt audio is not played continuously during operation; for a music playback application, it is possible that the user has set a pause during operation, so the electronic device can detect each running application in real time Whether audio is playing, this method has high detection accuracy. In other optional implementation manners, when it is detected that the application with audio playback function is running, it is considered that the audio is playing. This detection method can reduce the resource load of the electronic device and achieve the effect of occupying less memory.

在步骤102中,响应于检测到两个或两个以上的应用同时播放音频,根据各所述应用对应的预设音效参数,对各所述应用所播放的音频的音效进行相应控制。In step 102, in response to detecting that two or more applications play audio at the same time, according to the preset sound effect parameters corresponding to each of the applications, the sound effects of the audio played by each of the applications are controlled accordingly.

本公开实施例中,可以预先设定各应用对应的预设音效参数,因此在检测到有两个或两个以上的应用同时播放音频时,可以自动控制各所述应用所播放的音频的音效,从而达到减少用户操作,提高电子设备的智能化水平的效果。In the embodiment of the present disclosure, the preset sound effect parameters corresponding to each application can be preset, so when it is detected that two or more applications are playing audio at the same time, the sound effect of the audio played by each application can be automatically controlled , so as to achieve the effect of reducing user operations and improving the intelligence level of electronic equipment.

其中,音效参数可以是:音量等级或音效模式等多种自定义的参数。接下来分别对音量等级和音效模式进行说明。Wherein, the sound effect parameter may be various self-defined parameters such as volume level or sound effect mode. Next, the volume level and sound effect mode will be explained respectively.

第一种:本公开实施例的预设音效参数可以包括音量等级,所述根据各所述应用对应的预设音效参数,对各所述应用所播放的音频的音效进行相应控制,可以包括:The first type: the preset sound effect parameters in the embodiments of the present disclosure may include volume levels, and the corresponding control of the sound effects of the audio played by each of the applications according to the preset sound effect parameters corresponding to each of the applications may include:

根据各所述应用对应的音量等级的高低,控制各所述应用所播放的音频的音量大小。According to the volume level corresponding to each of the applications, the volume of the audio played by each of the applications is controlled.

通常在两个或两个以上应用同时播放音频的情况下,对于音量的调整的需求较大,本公开实施例的音效参数可以包括音量等级,可以根据不同的应用所播放的音频内容而确定预设音效参数,音量等级越高,则音量越大。其中,音量等级可以采用数值或字符等表示,例如采用1、2或3等数值表示不同的音量等级,并且还可以设定数值越大表示音量等级越高,也可以设定数值越小表示音量等级越高,在实际应用中可以根据需要而灵活配置,本实施例对此不作限定。Generally, when two or more applications play audio at the same time, there is a greater demand for volume adjustment. The sound effect parameters in the embodiments of the present disclosure may include volume levels, which can be determined according to the audio content played by different applications. Set the sound effect parameters, the higher the volume level, the louder the volume. Among them, the volume level can be represented by numerical values or characters, such as 1, 2 or 3 to indicate different volume levels, and it can also be set that a larger value indicates a higher volume level, or a smaller value can be set to indicate a volume level The higher the level, the flexible configuration can be made according to the actual application, which is not limited in this embodiment.

如图1B所示,是本公开根据一示例性实施例示出的一种电子设备的示意图,图1B中电子设备安装了多种具有音频播放功能的应用,包括有地图应用、音乐播放应用、电台(FM)播放应用和阅读应用等。电子设备可以自动为地图应用、阅读应用或音乐播放应用等多种应用配置相应的音量等级。本实施例中,地图应用的音量等级高于其他应用的音量等级,以使地图应用和其他应用在同时播放音频时,地图应用的音量比其他播放应用的音量高,以确保用户能听清楚地图应用所播放的语音。As shown in FIG. 1B , it is a schematic diagram of an electronic device according to an exemplary embodiment of the present disclosure. In FIG. 1B , the electronic device is installed with a variety of applications with audio playback functions, including map applications, music playback applications, and radio stations. (FM) playback applications and reading applications, etc. The electronic device can automatically configure corresponding volume levels for multiple applications such as map applications, reading applications, or music playback applications. In this embodiment, the volume level of the map application is higher than that of other applications, so that when the map application and other applications play audio at the same time, the volume of the map application is higher than that of other playback applications to ensure that the user can hear the map clearly The voice played by the app.

作为一实施例,当用户在开车时,可以利用智能手机或车载设备等电子设备运行地图应用和音乐播放应用,地图应用可以播放用于导航或路况提示的音频,音乐播放应用可以播放音乐。电子设备可以应用本申请实施例所提供的方案,在检测到两个应用在同时播放音频时,根据地图应用所对应的音量等级,以及音乐播放应用所对应的音量等级,自动控制地图应用和音乐播放应用的音量大小。As an example, when the user is driving, he can run a map application and a music player application on an electronic device such as a smart phone or a vehicle-mounted device. The map application can play audio for navigation or road condition prompts, and the music player application can play music. The electronic device can apply the solution provided by the embodiment of the present application, and automatically control the map application and music according to the volume level corresponding to the map application and the volume level corresponding to the music playback application when it detects that two applications are playing audio at the same time. The volume level of the playback application.

作为另一实施例,电子设备也可以将阅读应用的音量等级配置为高于音乐播放应用的音量等级,以使阅读应用和音乐播放应用在同时播放音频时,阅读应用的音量大于音乐播放应用的音量,以确保用户能听清楚阅读应用所播放的有声读物。当用户开启阅读应用播放有声读物,并且开启音乐播放应用播放轻音乐,电子设备可以应用本申请实施例所提供的方案,在检测到两个应用在同时播放音频时,根据阅读应用所对应的音量等级,以及音乐播放应用所对应的音量等级,自动控制阅读应用和音乐播放应用的音量大小。As another example, the electronic device can also configure the volume level of the reading application to be higher than that of the music playing application, so that when the reading application and the music playing application play audio at the same time, the volume of the reading application is greater than that of the music playing application. Volume to ensure users can hear audiobooks played by reading apps clearly. When the user starts the reading application to play audiobooks, and starts the music playing application to play light music, the electronic device can apply the solution provided by the embodiment of this application, and when it detects that two applications are playing audio at the same time, the corresponding volume level , and the volume level corresponding to the music player application, automatically controls the volume of the reading application and the music player application.

上述有关音量等级的实施例只为示例说明,在实际应用中,可以根据不同应用所播放音频的内容,灵活地配置对应的音效参数,本实施例对此不作限定。The above-mentioned embodiment about the volume level is only for illustration. In practical applications, the corresponding sound effect parameters can be flexibly configured according to the content of the audio played by different applications, which is not limited in this embodiment.

第二种:本公开实施例的预设音效参数可以包括音效模式,所述根据各所述应用对应的预设音效参数,对各所述应用所播放的音频的音效进行相应控制,可以包括:The second type: the preset sound effect parameters in the embodiment of the present disclosure may include a sound effect mode, and the corresponding control of the sound effect of the audio played by each of the applications according to the preset sound effect parameters corresponding to each of the applications may include:

根据各所述应用对应的音效模式,控制各所述应用按照对应的音效模式播放音频。According to the sound effect mode corresponding to each of the applications, each of the applications is controlled to play audio according to the corresponding sound effect mode.

常见音效模式可以包括NOMAL(普通模式)、ROCK(摇滚乐模式)、POP(流行音乐模式)、JAZZ(爵士乐模式)、CLASSIC(古典音乐模式)、Vocal(人声模式)、Blues(蓝调模式)、Disco(迪斯科模式)、Hip-Hop(嘻哈模式)等。各音效模式的说明举例如下:Common sound effect modes can include NOMAL (normal mode), ROCK (rock music mode), POP (pop music mode), JAZZ (jazz mode), CLASSIC (classical music mode), Vocal (vocal mode), Blues (blues mode), Disco (disco mode), Hip-Hop (hip-hop mode), etc. An example description of each sound effect mode is as follows:

NORMAL:普通音效,所有频段都没有任何增衰。NORMAL: Normal sound effect, all frequency bands do not have any increase or decrease.

ROCK:摇滚乐,高低两端提升较大,低音让音乐强劲有力,节奏感很强,高音部分清晰甚至刺耳。ROCK: Rock music, the high and low ends are greatly improved, the bass makes the music strong and powerful, the rhythm is strong, and the treble part is clear and even harsh.

POP:流行乐,其曲线与ROCK大致相同,较ROCK稍微削低了低频,增强了高音部分,乐器表现更加出色。POP: Pop music, its curve is roughly the same as ROCK, lowers the low frequency slightly, enhances the treble part, and makes the musical instrument perform better.

JAZZ:爵士乐,提升了低频和3-5kHz部分,增强临场感。JAZZ: Jazz, enhance the low frequency and 3-5kHz part, enhance the sense of presence.

CLASSIC:古典乐,高低两部分提升,主要突出乐器的表现,音场表现更加,适合演绎大场面的古典音乐。CLASSIC: Classical music, the high and low parts are improved, mainly highlighting the performance of instruments, and the sound field performance is better, suitable for performing classical music in large scenes.

Vocal:人声,人的嗓子发出的声音的频率范围比较窄,提升主要集中在中频部分,适合用来听人声音频文件等。Vocal: Human voice, the frequency range of the sound from the human voice is relatively narrow, and the improvement is mainly concentrated in the intermediate frequency part, suitable for listening to human voice audio files, etc.

本公开实施例中,还可以为不同应用配置对应的音效模式,例如地图应用所配置的音效模式可以是Vocal、阅读应用所配置的音效模式也可以是Vocal,音乐播放应用所配置的音效模式可以是NORMAL等,根据预先配置的音效模式,可以控制各所述应用按照对应的音效模式播放音频,使得音频播放的效果更好,给用户带来了便利。In the embodiment of the present disclosure, corresponding sound effect modes can also be configured for different applications. For example, the sound effect mode configured for the map application can be Vocal, the sound effect mode configured for the reading application can also be Vocal, and the sound effect mode configured for the music playing application can be It is NORMAL, etc. According to the pre-configured sound effect mode, each application can be controlled to play audio according to the corresponding sound effect mode, so that the effect of audio playback is better, which brings convenience to the user.

可以理解,上述两种利用音效参数进行音频播放控制的方式可以单独执行,也可以组合使用,在组合使用时,音效参数包括音量等级和音效模式,则电子设备可以同时按照这两种音效参数,对各应用所播放的音频的音效进行相应控制。It can be understood that the above two ways of using sound effect parameters to control audio playback can be performed independently or in combination. When used in combination, the sound effect parameters include volume level and sound effect mode, and the electronic device can simultaneously follow these two sound effect parameters. Control the sound effects of the audio played by each app accordingly.

在一个可选的实现方式中,音效参数可以由用户设置,所述方法还包括:In an optional implementation manner, the sound effect parameters may be set by the user, and the method further includes:

响应于预设音效参数设置指令,显示各具有音频播放功能的应用对应的音效参数输入项。In response to the preset sound effect parameter setting instruction, the sound effect parameter input items corresponding to each application with audio playback function are displayed.

通过所述音效参数输入项接收输入的音效参数,将所述输入的音效参数作为所述预设音效参数。An input sound effect parameter is received through the sound effect parameter input item, and the input sound effect parameter is used as the preset sound effect parameter.

本公开实施例中,电子设备可以提供输入项,利用该输入项,用户可以为各具有音频播放功能的应用设置音效参数,电子设备可以根据用户的输入,将用户输入的音效参数作为所述预设音效参数。所述输入项可以是可输入文字等内容的输入框,也可以是勾选项或点选项等形式,在实际应用中可以灵活选择输入项的展示形式,本实施例对此不作限定。In the embodiment of the present disclosure, the electronic device may provide an input item, and by using the input item, the user may set sound effect parameters for each application having an audio playback function, and the electronic device may use the sound effect parameter input by the user as the preset Set the sound effect parameters. The input item may be an input box for inputting content such as text, or may be in the form of a check box or a click option. In practical applications, the display form of the input item can be flexibly selected, which is not limited in this embodiment.

参考图1C,是本公开实施例中一种电子设备提供输入项的示意图,在图1C中示出了各具有音频播放功能的应用,以及对应的音效参数输入项,其中,音效参数输入项包括有音量等级输入项和音效模式输入项,从而接收用户输入的音效参数并作为预设音效参数。Referring to FIG. 1C , it is a schematic diagram of input items provided by an electronic device in an embodiment of the present disclosure. In FIG. 1C , applications with audio playback functions and corresponding sound effect parameter input items are shown, wherein the sound effect parameter input items include There are volume level input items and sound effect mode input items, so as to receive the sound effect parameters input by the user and use them as preset sound effect parameters.

由上述实施例可见,本实施例可以向用户提供音效参数输入项,由用户为各应用设置相应的音效参数,因此可以按照用户用户喜好自动地进行音频播放控制,为用户带来便利。It can be seen from the above embodiments that this embodiment can provide the user with sound effect parameter input items, and the user can set corresponding sound effect parameters for each application, so the audio playback control can be automatically performed according to the user's preference, which brings convenience to the user.

与前述音频播放控制方法的实施例相对应,本公开还提供了音频播放控制装置及其所应用的电子设备的实施例。Corresponding to the foregoing embodiments of the audio playback control method, the present disclosure also provides embodiments of an audio playback control device and an electronic device to which it is applied.

如图2所示,图2是本公开根据一示例性实施例示出的一种音频播放控制装置的框图,所述装置包括:检测模块21和控制模块22。As shown in FIG. 2 , FIG. 2 is a block diagram of an audio playback control device according to an exemplary embodiment of the present disclosure, and the device includes: a detection module 21 and a control module 22 .

其中,检测模块21,被配置为检测是否有两个或两个以上的应用同时播放音频。Wherein, the detection module 21 is configured to detect whether two or more applications play audio at the same time.

控制模块22,被配置为响应于检测到有两个或两个以上的应用同时播放音频,根据各所述应用对应的预设音效参数,对各所述应用所播放的音频的音效进行相应控制。The control module 22 is configured to control the sound effect of the audio played by each application according to the preset sound effect parameters corresponding to each of the applications in response to detecting that two or more applications are playing audio at the same time .

由上述实施例可见,可以通过检测是否有两个或两个以上的应用同时播放音频,当检测到有两个或两个以上的应用同时播放音频时,可以根据各所述应用对应的预设音效参数,对各所述应用所播放的音频的音效进行相应控制。本公开实施例由于预先对应用设置不同的音效参数,所以可以自动控制多个应用所播放音频的音效,以满足多种不同场景下的音频播放需求,提高了电子设备的智能化水平,给用户带来了便利。It can be seen from the above embodiments that by detecting whether two or more applications play audio at the same time, when it is detected that two or more applications are playing audio at the same time, the preset The sound effect parameter controls the sound effect of the audio played by each application. In the embodiment of the present disclosure, since different sound effect parameters are set for the application in advance, the sound effect of the audio played by multiple applications can be automatically controlled, so as to meet the audio playback requirements in various scenarios, improve the intelligence level of the electronic device, and provide users with Bring convenience.

如图3所示,图3是本公开根据一示例性实施例示出的另一种音频播放控制装置的框图,该实施例在前述图2所示实施例的基础上,所述预设音效参数包括音量等级,所述控制模块22,包括:音量控制子模块221。As shown in FIG. 3, FIG. 3 is a block diagram of another audio playback control device according to an exemplary embodiment of the present disclosure. On the basis of the embodiment shown in FIG. 2, the preset sound effect parameters Including the volume level, the control module 22 includes: a volume control sub-module 221 .

其中,音量控制子模块221,被配置为根据各所述应用对应的音量等级的高低,控制各所述应用所播放的音频的音量大小。Wherein, the volume control sub-module 221 is configured to control the volume of the audio played by each of the applications according to the level of the volume corresponding to each of the applications.

由上述实施例可见,可以在两个或两个以上应用同时播放音频的情况下,对于音量的调整的需求较大,本公开实施例的音效参数可以包括音量等级,并利用音量等级控制各应用的音量大小。It can be seen from the above embodiments that when two or more applications play audio at the same time, there is a greater demand for volume adjustment. The sound effect parameters in the embodiments of the present disclosure may include volume levels, and the volume levels are used to control the volume of each application. volume level.

在一个可选的实现方式中,所述预设音效参数预先根据不同应用所播放的音频内容而确定,其中,地图应用的音量等级高于其他应用的音量等级。In an optional implementation manner, the preset sound effect parameters are determined in advance according to audio content played by different applications, wherein the volume level of the map application is higher than that of other applications.

由上述实施例可见,可以根据不同的应用所播放的音频内容而确定预设音效参数,并且可以将地图应用的音量等级设置为高于其他应用的音量等级,从而可以使用户在使用时能听清楚地图应用所播放的语音,给用户带来便利。It can be seen from the above embodiments that the preset sound effect parameters can be determined according to the audio content played by different applications, and the volume level of the map application can be set higher than that of other applications, so that the user can listen to the map application when using it. Clear the voice played by the map application, which brings convenience to users.

如图4所示,图4是本公开根据一示例性实施例示出的另一种音频播放控制装置的框图,该实施例在前述图2所示实施例的基础上,所述预设音效参数包括音效模式,所述控制模块22,包括:音效控制子模块222。As shown in FIG. 4, FIG. 4 is a block diagram of another audio playback control device according to an exemplary embodiment of the present disclosure. On the basis of the embodiment shown in FIG. 2, the preset sound effect parameters Including the sound effect mode, the control module 22 includes: a sound effect control sub-module 222 .

其中,音效控制子模块222,被配置为根据各所述应用对应的音效模式,控制各所述应用按照对应的音效模式播放音频。Wherein, the sound effect control sub-module 222 is configured to control each of the applications to play audio according to the corresponding sound effect mode according to the sound effect mode corresponding to each of the applications.

由上述实施例可见,音效参数还可以包括音效模式,因此可以控制各所述应用按照对应的音效模式播放音频,使得音频播放的效果更好,给用户带来了便利。It can be seen from the above embodiments that the sound effect parameters may also include sound effect modes, so that each of the applications can be controlled to play audio according to the corresponding sound effect mode, so that the audio playback effect is better, which brings convenience to users.

如图5所示,图5是本公开根据一示例性实施例示出的另一种音频播放控制装置的框图,该实施例在前述图2所示实施例的基础上,所述装置还包括:显示模块23和接收模块24。As shown in FIG. 5, FIG. 5 is a block diagram of another audio playback control device according to an exemplary embodiment of the present disclosure. On the basis of the embodiment shown in FIG. 2, the device further includes: A display module 23 and a receiving module 24 .

其中,显示模块23,被配置为响应于预设音效参数设置指令,显示各具有音频播放功能的应用对应的音效参数输入项。Wherein, the display module 23 is configured to display sound effect parameter input items corresponding to applications with audio playback functions in response to preset sound effect parameter setting instructions.

接收模块24,被配置为通过所述音效参数输入项接收输入的音效参数,将所述输入的音效参数作为所述预设音效参数。The receiving module 24 is configured to receive an input sound effect parameter through the sound effect parameter input item, and use the input sound effect parameter as the preset sound effect parameter.

由上述实施例可见,可以向用户提供音效参数输入项,由用户为各应用设置相应的音效参数,因此可以按照用户用户喜好自动地进行音频播放控制,为用户带来便利。It can be seen from the above embodiments that the user can be provided with sound effect parameter input items, and the user can set corresponding sound effect parameters for each application, so the audio playback control can be automatically performed according to the user's preference, which brings convenience to the user.

相应的,本公开还提供一种电子设备,所述电子设备包括有处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为:Correspondingly, the present disclosure also provides an electronic device, the electronic device includes a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to:

检测是否有两个或两个以上的应用同时播放音频。Detect if two or more apps are playing audio at the same time.

响应于检测到有两个或两个以上的应用同时播放音频,根据各所述应用对应的预设音效参数,对各所述应用所播放的音频的音效进行相应控制。In response to detecting that two or more applications are playing audio at the same time, the sound effects of the audio played by each of the applications are controlled accordingly according to the preset sound effect parameters corresponding to each of the applications.

上述装置中各个模块的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,在此不再赘述。For the implementation process of the functions and effects of each module in the above-mentioned device, please refer to the implementation process of the corresponding steps in the above-mentioned method for details, and details will not be repeated here.

对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本公开方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。As for the device embodiment, since it basically corresponds to the method embodiment, for related parts, please refer to the part description of the method embodiment. The device embodiments described above are only illustrative, and the modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in One place, or it can be distributed to multiple network modules. Part or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. It can be understood and implemented by those skilled in the art without creative effort.

图6是根据一示例性实施例示出的一种音频播放控制装置的结构示意图。Fig. 6 is a schematic structural diagram of an audio playback control device according to an exemplary embodiment.

如图6所示,根据一示例性实施例示出的一种音频播放控制装置600,该装置600可以是计算机,车载设备,多媒体阅读器,移动电话,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等终端。As shown in Figure 6, an audio playback control device 600 is shown according to an exemplary embodiment, and the device 600 can be a computer, a vehicle-mounted device, a multimedia reader, a mobile phone, a digital broadcast terminal, a messaging device, a game console , tablet devices, medical equipment, fitness equipment, personal digital assistants and other terminals.

参照图6,装置600可以包括以下一个或多个组件:处理组件601,存储器602,电源组件603,多媒体组件604,音频组件605,输入/输出(I/O)的接口606,传感器组件607,以及通信组件608。6, device 600 may include one or more of the following components: processing component 601, memory 602, power supply component 603, multimedia component 604, audio component 605, input/output (I/O) interface 606, sensor component 607, and a communication component 608 .

处理组件601通常控制装置600的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件601可以包括一个或多个处理器609来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件601可以包括一个或多个模块,便于处理组件601和其它组件之间的交互。例如,处理部件601可以包括多媒体模块,以方便多媒体组件604和处理组件601之间的交互。The processing component 601 generally controls the overall operations of the device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 601 may include one or more processors 609 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 601 may include one or more modules to facilitate interaction between processing component 601 and other components. For example, the processing component 601 may include a multimedia module to facilitate the interaction between the multimedia component 604 and the processing component 601 .

存储器602被配置为存储各种类型的数据以支持在装置600的操作。这些数据的示例包括用于在装置600上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器602可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 602 is configured to store various types of data to support operations at the device 600 . Examples of such data include instructions for any application or method operating on device 600, contact data, phonebook data, messages, pictures, videos, and the like. The memory 602 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

电源组件603为装置600的各种组件提供电力。电源组件603可以包括电源管理系统,一个或多个电源,及其它与为装置600生成、管理和分配电力相关联的组件。The power supply component 603 provides power to various components of the device 600 . Power components 603 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 600 .

多媒体组件604包括在所述装置600和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件604包括一个前置摄像头和/或后置摄像头。当装置600处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 604 includes a screen that provides an output interface between the device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 604 includes a front camera and/or a rear camera. When the device 600 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件605被配置为输出和/或输入音频信号。例如,音频组件605包括一个麦克风(MIC),当装置600处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器602或经由通信组件608发送。在一些实施例中,音频组件605还包括一个扬声器,用于输出音频信号。The audio component 605 is configured to output and/or input audio signals. For example, the audio component 605 includes a microphone (MIC) configured to receive external audio signals when the device 600 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 602 or sent via communication component 608 . In some embodiments, the audio component 605 also includes a speaker for outputting audio signals.

I/O接口602为处理组件601和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 602 provides an interface between the processing component 601 and a peripheral interface module. The peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.

传感器组件607包括一个或多个传感器,用于为装置600提供各个方面的状态评估。例如,传感器组件607可以检测到装置600的打开/关闭状态,组件的相对定位,例如所述组件为装置600的显示器和小键盘,传感器组件607还可以检测装置600或装置600一个组件的位置改变,用户与装置600接触的存在或不存在,装置600方位或加速/减速和装置600的温度变化。传感器组件607可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件607还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件607还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 607 includes one or more sensors for providing status assessments of various aspects of device 600 . For example, the sensor component 607 can detect the open/closed state of the device 600, the relative positioning of components, such as the display and keypad of the device 600, and the sensor component 607 can also detect a change in the position of the device 600 or a component of the device 600 , the presence or absence of user contact with the device 600 , the device 600 orientation or acceleration/deceleration and the temperature change of the device 600 . The sensor assembly 607 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 607 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 607 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

通信组件608被配置为便于装置600和其它设备之间有线或无线方式的通信。装置600可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件608经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件608还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其它技术来实现。The communication component 608 is configured to facilitate wired or wireless communication between the apparatus 600 and other devices. The device 600 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 608 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 608 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,装置600可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其它电子元件实现,用于执行上述音频播放控制方法,该方法包括:In an exemplary embodiment, apparatus 600 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable Realized by a gate array (FPGA), a controller, a microcontroller, a microprocessor or other electronic components, it is used to implement the above-mentioned audio playback control method, and the method includes:

检测是否有两个或两个以上的应用同时播放音频。Detect if two or more apps are playing audio at the same time.

响应于检测到有两个或两个以上的应用同时播放音频,根据各所述应用对应的预设音效参数,对各所述应用所播放的音频的音效进行相应控制。In response to detecting that two or more applications are playing audio at the same time, the sound effects of the audio played by each of the applications are controlled accordingly according to the preset sound effect parameters corresponding to each of the applications.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器602,上述指令可由装置600的处理器609执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 602 including instructions, which can be executed by the processor 609 of the device 600 to complete the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

其中,当所述存储介质中的指令由所述处理器执行时,使得装置600能够执行一种音频播放控制方法,包括:Wherein, when the instructions in the storage medium are executed by the processor, the device 600 is enabled to execute an audio playback control method, including:

检测是否有两个或两个以上的应用同时播放音频。Detect if two or more apps are playing audio at the same time.

响应于检测到两个或两个以上的应用同时播放音频,根据各所述应用对应的预设音效参数,对各所述应用所播放的音频的音效进行相应控制。In response to detecting that two or more applications play audio at the same time, the sound effects of the audio played by each of the applications are controlled accordingly according to the preset sound effect parameters corresponding to each of the applications.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. The present disclosure is intended to cover any modification, use or adaptation of the present disclosure. These modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure. . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

以上所述仅为本公开的较佳实施例而已,并不用以限制本公开,凡在本公开的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本公开保护的范围之内。The above descriptions are only preferred embodiments of the present disclosure, and are not intended to limit the present disclosure. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the present disclosure within the scope of protection.

Claims (11)

1.一种音频播放控制方法,其特征在于,所述方法包括:1. An audio playback control method, characterized in that the method comprises: 检测是否有两个或两个以上的应用同时播放音频;Detect if two or more applications are playing audio at the same time; 响应于检测到两个或两个以上的应用同时播放音频,根据各所述应用对应的预设音效参数,对各所述应用所播放的音频的音效进行相应控制。In response to detecting that two or more applications play audio at the same time, the sound effects of the audio played by each of the applications are controlled accordingly according to the preset sound effect parameters corresponding to each of the applications. 2.根据权利要求1所述的方法,其特征在于,所述预设音效参数包括音量等级,所述根据各所述应用对应的预设音效参数,对各所述应用所播放的音频的音效进行相应控制,包括:2. The method according to claim 1, wherein the preset sound effect parameters include a volume level, and the sound effect of the audio played by each of the applications is adjusted according to the preset sound effect parameters corresponding to each of the applications. Control accordingly, including: 根据各所述应用对应的音量等级的高低,控制各所述应用所播放的音频的音量大小。According to the volume level corresponding to each of the applications, the volume of the audio played by each of the applications is controlled. 3.根据权利要求2所述的方法,其特征在于,所述预设音效参数预先根据不同应用所播放的音频内容而确定,其中,地图应用的音量等级高于其他应用的音量等级。3. The method according to claim 2, wherein the preset sound effect parameters are determined in advance according to audio content played by different applications, wherein the volume level of the map application is higher than that of other applications. 4.根据权利要求1所述的方法,其特征在于,所述预设音效参数包括音效模式,所述根据各所述应用对应的预设音效参数,对各所述应用所播放的音频的音效进行相应控制,包括:4. The method according to claim 1, wherein the preset sound effect parameters include a sound effect mode, and according to the preset sound effect parameters corresponding to each of the applications, the sound effect of the audio played by each of the applications Control accordingly, including: 根据各所述应用对应的音效模式,控制各所述应用按照对应的音效模式播放音频。According to the sound effect mode corresponding to each of the applications, each of the applications is controlled to play audio according to the corresponding sound effect mode. 5.根据权利要求1所述的方法,其特征在于,所述方法还包括:5. The method according to claim 1, wherein the method further comprises: 响应于预设音效参数设置指令,显示各具有音频播放功能的应用对应的音效参数输入项;In response to the preset sound effect parameter setting instruction, display the sound effect parameter input items corresponding to the applications with audio playback function; 通过所述音效参数输入项接收输入的音效参数,将所述输入的音效参数作为所述预设音效参数。An input sound effect parameter is received through the sound effect parameter input item, and the input sound effect parameter is used as the preset sound effect parameter. 6.一种音频播放控制装置,其特征在于,所述方法包括:6. An audio playback control device, characterized in that the method comprises: 检测模块,被配置为检测是否有两个或两个以上的应用同时播放音频;A detection module configured to detect whether two or more applications play audio at the same time; 控制模块,被配置为响应于检测到有两个或两个以上的应用同时播放音频,根据各所述应用对应的预设音效参数,对各所述应用所播放的音频的音效进行相应控制。The control module is configured to control the sound effect of the audio played by each application according to the preset sound effect parameters corresponding to each application in response to detecting that two or more applications play audio at the same time. 7.根据权利要求6所述的装置,其特征在于,所述预设音效参数包括音量等级,所述控制模块,包括:7. The device according to claim 6, wherein the preset sound effect parameters include a volume level, and the control module includes: 音量控制子模块,被配置为根据各所述应用对应的音量等级的高低,控制各所述应用所播放的音频的音量大小。The volume control sub-module is configured to control the volume of the audio played by each of the applications according to the level of the volume corresponding to each of the applications. 8.根据权利要求7所述的装置,其特征在于,所述预设音效参数预先根据不同应用所播放的音频内容而确定,其中,地图应用的音量等级高于其他应用的音量等级。8. The device according to claim 7, wherein the preset sound effect parameters are determined in advance according to audio content played by different applications, wherein the volume level of the map application is higher than that of other applications. 9.根据权利要求6所述的装置,其特征在于,所述预设音效参数包括音效模式,所述控制模块,包括:9. The device according to claim 6, wherein the preset sound effect parameters include a sound effect mode, and the control module includes: 音效控制子模块,被配置为根据各所述应用对应的音效模式,控制各所述应用按照对应的音效模式播放音频。The sound effect control sub-module is configured to control each of the applications to play audio according to the corresponding sound effect mode according to the sound effect mode corresponding to each of the applications. 10.根据权利要求6所述的装置,其特征在于,所述装置还包括:10. The device according to claim 6, further comprising: 显示模块,被配置为响应于预设音效参数设置指令,显示各具有音频播放功能的应用对应的音效参数输入项;The display module is configured to display sound effect parameter input items corresponding to applications with audio playback functions in response to preset sound effect parameter setting instructions; 接收模块,被配置为通过所述音效参数输入项接收输入的音效参数,将所述输入的音效参数作为所述预设音效参数。The receiving module is configured to receive an input sound effect parameter through the sound effect parameter input item, and use the input sound effect parameter as the preset sound effect parameter. 11.一种电子设备,其特征在于,包括:11. An electronic device, characterized in that it comprises: 处理器;processor; 用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions; 其中,所述处理器被配置为:Wherein, the processor is configured as: 检测是否有两个或两个以上的应用同时播放音频;Detect if two or more applications are playing audio at the same time; 响应于检测到有两个或两个以上的应用同时播放音频,根据各所述应用对应的预设音效参数,对各所述应用所播放的音频的音效进行相应控制。In response to detecting that two or more applications are playing audio at the same time, the sound effects of the audio played by each of the applications are controlled accordingly according to the preset sound effect parameters corresponding to each of the applications.
CN201610867753.1A 2016-09-29 2016-09-29 Method and device for audio play control and electronic device Pending CN106354471A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610867753.1A CN106354471A (en) 2016-09-29 2016-09-29 Method and device for audio play control and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610867753.1A CN106354471A (en) 2016-09-29 2016-09-29 Method and device for audio play control and electronic device

Publications (1)

Publication Number Publication Date
CN106354471A true CN106354471A (en) 2017-01-25

Family

ID=57865724

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610867753.1A Pending CN106354471A (en) 2016-09-29 2016-09-29 Method and device for audio play control and electronic device

Country Status (1)

Country Link
CN (1) CN106354471A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106658300A (en) * 2017-03-01 2017-05-10 深圳市麦思美汽车电子有限公司 Sound effect control method for vehicle-mounted audio/video system
CN107105365A (en) * 2017-06-02 2017-08-29 惠州市德赛西威汽车电子股份有限公司 A kind of method and system of the in-car sound field of adjust automatically
CN107870759A (en) * 2016-09-26 2018-04-03 中兴通讯股份有限公司 A kind of audio control method and device
CN107977185A (en) * 2017-11-22 2018-05-01 深圳市沃特沃德股份有限公司 Audio output control method and device
CN108401065A (en) * 2017-02-08 2018-08-14 厦门雅迅网络股份有限公司 A kind of audio data transmission method and system
WO2018223608A1 (en) * 2017-06-06 2018-12-13 深圳市沃特沃德股份有限公司 Navigation-based audio processing method and device
CN109271129A (en) * 2018-09-04 2019-01-25 Oppo广东移动通信有限公司 Sound effect adjusting method and device, electronic equipment and storage medium
CN111381801A (en) * 2020-03-17 2020-07-07 海信电子科技(深圳)有限公司 Audio playing method based on double-screen terminal and communication terminal
CN111741156A (en) * 2019-03-25 2020-10-02 奇酷互联网络科技(深圳)有限公司 Audio output method, mobile terminal and wearable device
CN113407149A (en) * 2021-06-18 2021-09-17 维沃移动通信有限公司 Volume adjustment method and electronic equipment
CN113611317A (en) * 2021-08-03 2021-11-05 广州小鹏汽车科技有限公司 Sound effect processing method and device, vehicle-mounted entertainment system and automobile
CN114489556A (en) * 2021-05-21 2022-05-13 荣耀终端有限公司 Method and equipment for playing sound
WO2022135201A1 (en) * 2020-12-23 2022-06-30 华为技术有限公司 Sound effect adjustment method and electronic device
CN115134675A (en) * 2021-03-26 2022-09-30 北京小米移动软件有限公司 Sound output method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104023305A (en) * 2014-05-30 2014-09-03 爱培科科技开发(深圳)有限公司 Audio mixing control method and apparatus for Wince vehicle-mounted multimedia
US20150373175A1 (en) * 2013-02-07 2015-12-24 Ford Global Technologies, Llc System and Method of Arbitrating Audio Source Streamed by Mobile Applications
CN105959483A (en) * 2016-06-16 2016-09-21 广东欧珀移动通信有限公司 Audio stream processing method and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150373175A1 (en) * 2013-02-07 2015-12-24 Ford Global Technologies, Llc System and Method of Arbitrating Audio Source Streamed by Mobile Applications
CN104023305A (en) * 2014-05-30 2014-09-03 爱培科科技开发(深圳)有限公司 Audio mixing control method and apparatus for Wince vehicle-mounted multimedia
CN105959483A (en) * 2016-06-16 2016-09-21 广东欧珀移动通信有限公司 Audio stream processing method and mobile terminal

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107870759A (en) * 2016-09-26 2018-04-03 中兴通讯股份有限公司 A kind of audio control method and device
CN108401065A (en) * 2017-02-08 2018-08-14 厦门雅迅网络股份有限公司 A kind of audio data transmission method and system
CN106658300A (en) * 2017-03-01 2017-05-10 深圳市麦思美汽车电子有限公司 Sound effect control method for vehicle-mounted audio/video system
CN107105365A (en) * 2017-06-02 2017-08-29 惠州市德赛西威汽车电子股份有限公司 A kind of method and system of the in-car sound field of adjust automatically
WO2018223608A1 (en) * 2017-06-06 2018-12-13 深圳市沃特沃德股份有限公司 Navigation-based audio processing method and device
CN107977185A (en) * 2017-11-22 2018-05-01 深圳市沃特沃德股份有限公司 Audio output control method and device
WO2019100556A1 (en) * 2017-11-22 2019-05-31 深圳市沃特沃德股份有限公司 Audio output control method, device and vehicle mounted system
CN109271129A (en) * 2018-09-04 2019-01-25 Oppo广东移动通信有限公司 Sound effect adjusting method and device, electronic equipment and storage medium
CN111741156A (en) * 2019-03-25 2020-10-02 奇酷互联网络科技(深圳)有限公司 Audio output method, mobile terminal and wearable device
CN111381801A (en) * 2020-03-17 2020-07-07 海信电子科技(深圳)有限公司 Audio playing method based on double-screen terminal and communication terminal
CN111381801B (en) * 2020-03-17 2023-10-31 青岛海信移动通信技术有限公司 Audio playing method based on double-screen terminal and communication terminal
WO2022135201A1 (en) * 2020-12-23 2022-06-30 华为技术有限公司 Sound effect adjustment method and electronic device
CN115134675A (en) * 2021-03-26 2022-09-30 北京小米移动软件有限公司 Sound output method and device, electronic equipment and storage medium
CN114489556A (en) * 2021-05-21 2022-05-13 荣耀终端有限公司 Method and equipment for playing sound
US12299348B2 (en) 2021-05-21 2025-05-13 Honor Device Co., Ltd. Sound playing method and device
CN113407149A (en) * 2021-06-18 2021-09-17 维沃移动通信有限公司 Volume adjustment method and electronic equipment
CN113611317A (en) * 2021-08-03 2021-11-05 广州小鹏汽车科技有限公司 Sound effect processing method and device, vehicle-mounted entertainment system and automobile
CN113611317B (en) * 2021-08-03 2024-03-12 广州小鹏汽车科技有限公司 Sound effect processing method and device, vehicle-mounted entertainment system and automobile

Similar Documents

Publication Publication Date Title
CN106354471A (en) Method and device for audio play control and electronic device
US10324682B2 (en) Method, apparatus, and storage medium for controlling audio playing based on playing environment
CN107122158A (en) The method and device of broadcast information prompting audio, electronic equipment
CN106024033B (en) Control method for playing back and device
CN106331338A (en) Volume adjustment method and device
US20170034336A1 (en) Event prompting method and device
CN106060261B (en) Audio playing device and method
CN105653236A (en) Sound volume control method and device and mobile terminal
CN110221739A (en) A kind of data processing method, device and electronic equipment
CN105139874A (en) Navigation prompt method and apparatus
CN105959823A (en) Message presentation method and device for video direct broadcast application
CN106357883A (en) Audio playing method and device thereof as well as playing system
CN107205095A (en) Voice information playback method, device and terminal
CN104682908A (en) Method and device for controlling volume
CN106937162A (en) Audio and video playing control method and device
CN106375846A (en) Live audio processing method and device
CN114416015A (en) Audio adjustment method, device, electronic device and readable storage medium
CN106792112A (en) Video broadcasting method and device
CN107958038A (en) Speaker control method and device
WO2018058331A1 (en) Method and apparatus for controlling volume
CN106789943B (en) Playing method and device of Bluetooth equipment
CN106060253B (en) Information presentation method and device
CN108735212A (en) Sound control method and device
CN106936972B (en) Method, device and system for controlling audio channel
CN107124512A (en) The switching method and apparatus of audio-frequency play mode

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170125

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载