CN109410900B - Sound effect processing method, device and electronic device - Google Patents
Sound effect processing method, device and electronic device Download PDFInfo
- Publication number
- CN109410900B CN109410900B CN201811028138.7A CN201811028138A CN109410900B CN 109410900 B CN109410900 B CN 109410900B CN 201811028138 A CN201811028138 A CN 201811028138A CN 109410900 B CN109410900 B CN 109410900B
- Authority
- CN
- China
- Prior art keywords
- sound effect
- user account
- effect processing
- processing parameters
- electronic device
- 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.)
- Expired - Fee Related
Links
- 230000000694 effects Effects 0.000 title claims abstract description 228
- 238000003672 processing method Methods 0.000 title claims abstract description 27
- 238000012545 processing Methods 0.000 claims abstract description 162
- 238000000034 method Methods 0.000 claims abstract description 47
- 230000037361 pathway Effects 0.000 claims 2
- 230000008569 process Effects 0.000 description 17
- 238000010586 diagram Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 7
- 238000004891 communication Methods 0.000 description 6
- 230000009471 action Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 239000012466 permeate Substances 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10H—ELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
- G10H1/00—Details of electrophonic musical instruments
- G10H1/02—Means for controlling the tone frequencies, e.g. attack or decay; Means for producing special musical effects, e.g. vibratos or glissandos
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/16—Sound input; Sound output
- G06F3/167—Audio in a user interface, e.g. using voice commands for navigating, audio feedback
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- Multimedia (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- Stored Programmes (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本申请实施例公开了一种音效处理方法、装置以及电子设备。所述方法包括:当目标应用程序运行时,获取目标应用程序所绑定的第一用户帐号;获取参考音效处理参数,参考音效处理参数为绑定第二用户帐号的目标应用程序所在电子设备的音效处理参数;基于参考音效处理参数,调节绑定所述第一用户帐号的目标应用程序所在电子设备的音效处理参数。本方法使得绑定第一用户帐号的目标应用程序所在的电子设备的音效处理参数,可以根据绑定与关联的第二用户帐号的目标应用程序所在的电子设备的音效处理参数进行调节,也使得绑定相关联的用户帐号的目标应用程序所运行的电子设备可以有相同或者相似的音效输出,提升了音效调节的灵活性,也提升了用户体验。
Embodiments of the present application disclose a sound effect processing method, device, and electronic device. The method includes: when the target application is running, obtaining a first user account bound to the target application; obtaining reference sound effect processing parameters, where the reference sound effect processing parameters are the electronic device of the electronic device where the target application bound to the second user account is located. Sound effect processing parameters; based on the reference sound effect processing parameters, adjust the sound effect processing parameters of the electronic device where the target application program bound to the first user account is located. This method enables the sound effect processing parameters of the electronic device where the target application program bound to the first user account is located can be adjusted according to the sound effect processing parameters of the electronic device where the target application program bound and associated with the second user account is located. The electronic devices run by the target application bound to the associated user account can have the same or similar sound effect output, which improves the flexibility of sound effect adjustment and also improves the user experience.
Description
技术领域technical field
本申请涉及电子设备技术领域,更具体地,涉及一种音效处理方法、装置以及电子设备。The present application relates to the technical field of electronic equipment, and more particularly, to a sound effect processing method, apparatus, and electronic equipment.
背景技术Background technique
随着终端技术的迅速发展,诸如手机、平板等电子设备已成为人们生活不可或缺的组成部分。人们不仅可以利用电子设备进行日常的打电话、发短信等功能,还可以利用电子设备运行各类的目标应用程序,如游戏类的目标应用程序、网页浏览类的目标应用程序、音视频播类的目标应用程序等等。但是在目标应用程序的运行过程中,对于目标应用程序输出音频的音效调节的灵活性以及用户体验方面还有待提升。With the rapid development of terminal technology, electronic devices such as mobile phones and tablets have become an indispensable part of people's lives. People can not only use electronic devices to make daily calls, send text messages, etc., but also use electronic devices to run various target applications, such as game target applications, web browsing target applications, audio and video broadcasts. target application, etc. However, during the running process of the target application, the flexibility of sound effect adjustment for the output audio of the target application and the user experience still need to be improved.
发明内容SUMMARY OF THE INVENTION
鉴于上述问题,本申请提出了一种音效处理方法、装置以及电子设备,以实现改善上述问题。In view of the above problems, the present application proposes a sound effect processing method, apparatus and electronic device to improve the above problems.
第一方面,本申请提供了一种音效处理方法,应用于电子设备,所述方法包括:当目标应用程序运行时,获取所述目标应用程序所绑定的第一用户帐号;获取参考音效处理参数,所述参考音效处理参数为绑定第二用户帐号的目标应用程序所在电子设备的音效处理参数,所述第二用户帐号为与所述第一用户帐号相关联的帐号;基于所述参考音效处理参数,调节绑定所述第一用户帐号的目标应用程序所在电子设备的音效处理参数。In a first aspect, the present application provides a sound effect processing method, which is applied to an electronic device. The method includes: when a target application is running, obtaining a first user account bound to the target application; obtaining a reference sound effect processing parameter, the reference sound effect processing parameter is the sound effect processing parameter of the electronic device where the target application bound to the second user account is located, and the second user account is an account associated with the first user account; based on the reference The sound effect processing parameters are used to adjust the sound effect processing parameters of the electronic device where the target application program bound to the first user account is located.
第二方面,本申请提供了一种音效处理装置,运行于电子设备,所述装置包括:帐号获取单元,用于当目标应用程序运行时,获取所述目标应用程序所绑定的第一用户帐号;参数获取单元,用于获取参考音效处理参数,所述参考音效处理参数为绑定第二用户帐号的目标应用程序所在电子设备的音效处理参数,所述第二用户帐号为与所述第一用户帐号相关联的帐号;音效处理单元,用于基于所述参考音效处理参数,调节绑定所述第一用户帐号的目标应用程序所在电子设备的音效处理参数。In a second aspect, the present application provides a sound effect processing apparatus, which runs on an electronic device, and the apparatus includes: an account acquisition unit, configured to acquire a first user bound to the target application when the target application is running account; a parameter acquisition unit for acquiring reference sound effect processing parameters, the reference sound effect processing parameters being the sound effect processing parameters of the electronic device where the target application bound to the second user account is located, and the second user account is the same as the second user account. An account associated with a user account; a sound effect processing unit, configured to adjust sound effect processing parameters of the electronic device where the target application bound to the first user account is located based on the reference sound effect processing parameters.
第三方面,本申请提供了一种电子设备,包括一个或多个处理器以及存储器;一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述的方法。In a third aspect, the present application provides an electronic device comprising one or more processors and a memory; one or more programs are stored in the memory and configured to be executed by the one or more processors, The one or more programs are configured to perform the methods described above.
第四方面,本申请提供的一种计算机可读存储介质,所述计算机可读存储介质中存储有程序代码,其中,在所述程序代码运行时执行上述的方法。In a fourth aspect, the present application provides a computer-readable storage medium, where a program code is stored in the computer-readable storage medium, wherein the above-mentioned method is executed when the program code is executed.
本申请提供的一种音效处理方法、装置以及电子设备,在当目标应用程序运行时,获取所述目标应用程序所绑定的第一用户帐号,然后获取与该第一用户帐号关联的第二用户帐号,将绑定第二用户帐号的目标应用程序所在电子设备的音效处理参数作为参考音效处理参数,基于所述参考音效处理参数,调节绑定所述第一用户帐号的目标应用程序所在电子设备的音效处理参数。从而使得绑定第一用户帐号的目标应用程序所在的电子设备的音效处理参数,可以根据绑定与第一用户帐号相关联的第二用户帐号的目标应用程序所在的电子设备的音效处理参数进行调节,进而可以使得绑定相关联的用户帐号的目标应用程序所运行的电子设备可以有相同或者相似的音效输出,提升了音效调节的灵活性,也提升了用户体验。In a sound effect processing method, device and electronic device provided by the present application, when a target application is running, a first user account bound to the target application is obtained, and then a second user account associated with the first user account is obtained. User account, take the sound effect processing parameters of the electronic device where the target application bound to the second user account is located as the reference sound effect processing parameters, and adjust the electronic device where the target application bound to the first user account is located based on the reference sound effect processing parameters. The sound processing parameters of the device. Thereby, the sound effect processing parameters of the electronic device where the target application program bound to the first user account is located can be processed according to the sound effect processing parameters of the electronic device where the target application program of the second user account associated with the first user account is located. Adjustment, so that the electronic device running by the target application bound to the associated user account can have the same or similar sound effect output, which improves the flexibility of sound effect adjustment and improves the user experience.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained from these drawings without creative effort.
图1示出了本申请提出的一种应用环境的示意图;FIG. 1 shows a schematic diagram of an application environment proposed by the present application;
图2示出了本申请提出的另一种应用环境的示意图;FIG. 2 shows a schematic diagram of another application environment proposed by the present application;
图3示出了本申请提出的一种音效处理方法的流程图;FIG. 3 shows a flowchart of a sound effect processing method proposed by the present application;
图4示出了本申请提出的另一种音效处理方法的流程图;FIG. 4 shows a flowchart of another sound effect processing method proposed by the present application;
图5示出了本申请提出的一种界面的示意图;FIG. 5 shows a schematic diagram of an interface proposed by the present application;
图6示出了本申请提出的另一种界面的示意图;6 shows a schematic diagram of another interface proposed by the present application;
图7示出了本申请提出的再一种界面的示意图;7 shows a schematic diagram of yet another interface proposed by the present application;
图8示出了本申请提出的再一种音效处理方法的流程图;FIG. 8 shows a flowchart of still another sound effect processing method proposed by the present application;
图9示出了本申请提出的一种音效处理装置的结构框图;FIG. 9 shows a structural block diagram of a sound effect processing apparatus proposed by the present application;
图10示出了本申请提出的另一种音效处理装置的结构框图;FIG. 10 shows a structural block diagram of another sound effect processing apparatus proposed by the present application;
图11示出了本申请提出的再一种音效处理装置的结构框图;FIG. 11 shows a structural block diagram of still another sound effect processing apparatus proposed by the present application;
图12示出了本申请提出的一种电子设备的结构框图;FIG. 12 shows a structural block diagram of an electronic device proposed by the present application;
图13是本申请实施例的用于保存或者携带实现根据本申请实施例的音效处理方法的程序代码的存储单元。FIG. 13 is a storage unit for storing or carrying a program code for implementing the sound effect processing method according to the embodiment of the present application according to the embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
音效可以是我们生活中无处不在的一种声音。比如走路时的脚步声、开门时的吱吱声、电梯的开关门等音效渗透在我们生活的每个角落。Sound can be a sound that is ubiquitous in our lives. For example, the sound of footsteps when walking, the squeak when opening the door, the opening and closing of elevator doors and other sound effects permeate every corner of our lives.
而在电子设备中音效也是无处不在。例如,当电子设备启动时,可以伴随有启动音效,而当电子设备关闭时,会伴随有关闭音效,而当电子设备的电量不足时,电子设备也会发出报警音效等。And sound effects are ubiquitous in electronic devices. For example, when the electronic device is turned on, it may be accompanied by a startup sound, and when the electronic device is turned off, it will be accompanied by a shutdown sound, and when the power of the electronic device is insufficient, the electronic device will also emit an alarm sound.
而对于电子设备中所运行的应用程序也是如此。例如,对于游戏类的应用程序在运行过程中就可以产生游戏音效。游戏音效指的是电子游戏中发生特定行为或进行特定操作时播放的效果音乐。如子弹发射时的声音、怪物死亡时的惨叫、点击按钮时的“咔嚓”声音等。正式因为游戏音效的存在使得用户在玩游戏时,可以有更加真实的体验。The same is true for applications running in electronic devices. For example, a game-like application can generate game sound effects during the running process. Game sound effects refer to the effect music that plays when certain actions or actions are performed in video games. Such as the sound of bullets being fired, the screams of monsters when they die, and the "click" sound when a button is clicked. Officially, because of the existence of game sound effects, users can have a more realistic experience when playing games.
可以理解的是,除了前述的游戏类型的应用程序存在音效外,其他类型的应用程序也存在音效。例如,音视频播放类的应用程序在播放音视频过程中的音视频音效,以及网页浏览类的的应用程序在加载网页内容的过程中的音效等。It can be understood that, in addition to the aforementioned game type applications having sound effects, other types of applications also have sound effects. For example, audio and video sound effects in the process of playing audio and video by an application program of audio and video playback, and sound effects in the process of loading web page content by an application program in the web browsing category.
但是,发明人发现,电子设备中通常会存储有多套的音效调节参数以便用户可以在多套音效调节参数中选择一套作为运行当前的应用程序时电子设备输出音频的音效调节参数。但是,目前从多套音效调节参数选择一套音效调节参数的方式还不够灵活,且用户体验也欠佳。因此,发明人提出了本申请中可以提升音效调节的灵活性,并且提升用户体验的音效处理方法、装置以及电子设备。However, the inventor found that the electronic device usually stores multiple sets of sound effect adjustment parameters so that the user can select one set of the multiple sets of sound effect adjustment parameters as the sound effect adjustment parameters for the audio output by the electronic device when running the current application program. However, the current method of selecting a set of sound effect adjustment parameters from multiple sets of sound effect adjustment parameters is not flexible enough, and the user experience is also poor. Therefore, the inventor proposes a sound effect processing method, apparatus and electronic device that can improve the flexibility of sound effect adjustment and improve user experience in the present application.
下面先对本申请所可能涉及的运行环境进行简要的介绍。The following briefly introduces the possible operating environment involved in this application.
如图1所示,在图1所示的网络系统中包括电子设备99、电子设备98以及电子设备97。此外,该网络系统还包括无线接入点96以及服务器94。其中,电子设备99和电子设备98通过无线接入点96接入到网络95,并通过网络95与服务器94进行数据交互,而电子设备97则直接接入到网络95中,然后通过网络95与服务器94进行数据交互。As shown in FIG. 1 , the network system shown in FIG. 1 includes an
需要说明的是,上述的网络系统的结构只是一个示例性的结构,并不对本申请作出限定。例如,如图2所示,也可以是电子设备99、电子设备98以及电子设备97均通过无线接入点96接入到网络95。也可以电子设备99、电子设备98以及电子设备97均直接接入到网络95。It should be noted that the structure of the above-mentioned network system is only an exemplary structure, and does not limit the present application. For example, as shown in FIG. 2 , the
下面再以运行游戏类的应用程序为例对上述环境进行介绍。In the following, the above environment will be introduced by taking the application of running games as an example.
若服务器94为游戏类的应用程序A的服务器,而电子设备99、电子设备98以及电子设备97中同时运行有应用程序A,且电子设备99中运行的应用程序绑定用户帐号a,电子设备98中运行的应用程序绑定用户帐号b,电子设备97中运行的应用程序绑定用户帐号c。那么作为一种方式,用户帐号a、用户帐号b以及用户帐号c处于同一个游戏分组中。If the
可以理解的是,对于对抗类的游戏中,游戏会配置多个分组,不同分组的用户可以互相对抗。那么基于上述情况,作为一种方式,可以给同一分组的用户分配相同的游戏属性。该游戏属性包括相同的游戏皮肤、相同的游戏背景音乐或者其他相同的游戏音效。例如,在给同一组用户分配了相同的游戏音效的情况下,同一组用户各自对应的电子设备可以基于相同的音效处理参数来处理各自电子设备的音频输出。It can be understood that, for a confrontation game, the game will be configured with multiple groups, and users in different groups can compete with each other. Then, based on the above situation, as a way, users in the same group can be assigned the same game attributes. The game attributes include the same game skin, the same game background music or other same game sound effects. For example, in the case where the same game sound effects are assigned to the same group of users, the respective electronic devices corresponding to the same group of users may process the audio output of the respective electronic devices based on the same sound effect processing parameters.
再例如,音视频播放类的应用程序,可以将识别具有共同喜好的用户配置为一个兴趣分组,那么同一个兴趣分组内用户帐号属于相互关联的帐号。再者,也可以是将设置为关注用户的帐号设置为关联帐号。例如,若电子设备99的用户将电子设备98的用户设置为关注用户,那么电子设备98中的目标应用程序所绑定的用户帐号为与所述电子设备99中目标应用程序所绑定的第一用户帐号关联的第二用户帐号。For another example, in an audio and video playback application program, identifying users with common preferences may be configured as an interest group, and user accounts in the same interest group belong to interrelated accounts. Furthermore, the account set to follow the user may also be set as a linked account. For example, if the user of the
下面将结合附图具体描述本申请的各实施例。The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
请参阅图3,本申请提供的一种音效处理方法,应用于电子设备,所述方法包括:Please refer to FIG. 3 , a sound effect processing method provided by the present application is applied to an electronic device, and the method includes:
步骤S110:当目标应用程序运行时,获取所述目标应用程序所绑定的第一用户帐号。Step S110: When the target application is running, acquire the first user account bound to the target application.
可选的,在本申请实施例中,所提供的音效处理方法可以由目标应用程序自身来执行,也可以由独立于目标应用程序以外的控制程序来执行。对于由目标应用程序自身来执行的这种方式,可以提升应用程序的整体性,而对于由独立于目标应用程序以外的一个程序来执行的这种方式,可以提升音效处理的灵活性,因为执行音效处理的程序是独立于目标应用程序的,那么该执行音效处理的程序可以同时处理多个不同的目标应用程序的音效。Optionally, in this embodiment of the present application, the provided sound effect processing method may be executed by the target application program itself, or may be executed by a control program independent of the target application program. For this way of execution by the target application itself, the integrity of the application can be improved, and for this way to be executed by a program independent of the target application, it can improve the flexibility of sound processing, because the execution The sound effect processing program is independent of the target application program, so the sound effect processing program can process the sound effects of multiple different target application programs at the same time.
对于上述两种方式,本申请中在后续的内容都会进行相应的描述。For the above two manners, corresponding descriptions will be made in the subsequent contents of this application.
下面先对由目标应用程序自身来执行音效处理方法进行介绍。The following first introduces the sound effect processing method performed by the target application program itself.
对于由目标应用程序自身来执行音效处理方法的情况下,可以理解的是,可以执行前述音效处理方法的应用程序被电子设备识别为目标应用程序。作为一种方式,可以在应用程序的开发阶段或者是在应用程序的封装阶段在应用程序中写入特定的标识,以便电子设备可以通过该标识来识别该应用程序是否为目标应用程序。那么当目标应用程序中负责执行音效处理方法的模块检测到该目标应用程序处于运行阶段时,则可以开始获取目标应用程序所绑定的第一用户帐号。In the case where the target application program itself executes the sound effect processing method, it can be understood that the application program that can execute the aforementioned sound effect processing method is recognized by the electronic device as the target application program. As a way, a specific identifier can be written in the application program in the development phase of the application program or in the packaging phase of the application program, so that the electronic device can identify whether the application program is a target application program through the identifier. Then, when the module responsible for executing the sound effect processing method in the target application detects that the target application is in the running phase, it can start to obtain the first user account bound to the target application.
此外,对于由独立于目标应用程序以外的控制程序来执行的这种请情况下。执行音效处理的控制程序具备查询电子设备当前有哪些应用程序在运行的权限。并且在电子设备中存储有一个该控制程序可以访问的数据表,在该数据表中记录有可以进行输出音频调节的应用程序。那么对于该控制程序而言,可以将该数据表中记录的应用程序识别为目标应用程序。那么当该控制程序检测到电子设备当前正在运行的应用程序中有前述数据表中记录的应用程序的情况下,可以识别有有目标应用程序在运行,然后可以进一步的开始获取所述目标应用程序所绑定的第一用户帐号。Also, for this case executed by a control program independent of the target application. The control program that executes the sound effect processing has the authority to inquire which application programs are currently running on the electronic device. And a data table that can be accessed by the control program is stored in the electronic device, and an application program that can adjust the output audio is recorded in the data table. Then, for the control program, the application program recorded in the data table can be identified as the target application program. Then, when the control program detects that there is an application program recorded in the aforementioned data table in the application program currently running on the electronic device, it can identify that there is a target application program running, and then can further start to acquire the target application program The bound first user account.
而对于上述独立于目标应用程序以外的控制程序,可以有多种方式来检测是否有目标应用程序在运行。例如,该控制程序可以定期检测当前电子设备运行有哪些进程,然后根据当前正在运行的进程对应的包名即可获取到当前正在运行的应用程序。或者,若电子设备的操作系统为Android操作系统,那么控制程序可以通过调用ActivityManager对象的getRunningTasks方法来获取当前所有正在运行的应用程序列表,然后从该列表中识别出是否有目标应用程序。For the above-mentioned control program independent of the target application program, there may be various ways to detect whether there is a target application program running. For example, the control program can periodically detect which processes are running on the current electronic device, and then obtain the currently running application program according to the package name corresponding to the currently running process. Alternatively, if the operating system of the electronic device is the Android operating system, the control program can obtain a list of all currently running applications by calling the getRunningTasks method of the ActivityManager object, and then identify whether there is a target application from the list.
需要说明的是,当用户使用某个应用程序时,为了在该应用程序对应的服务器中建立独立于其他用户的数据,可以通过在应用程序上利用个人帐号进行登录,从而使得让应用程序发送给服务器的数据可以都携带有个人帐号,而对应的,服务器在存储某个用户的数据时,也会将数据和某个用户的帐号对应存储,以便区别不同用户的数据。那么,可以理解的是,应用程序所绑定的帐号是用户在该应用程序上进行登录时所使用的帐号。It should be noted that when a user uses an application, in order to establish data independent of other users in the server corresponding to the application, the user can log in with a personal account on the application, so that the application can send data to The data of the server may all carry personal accounts, and correspondingly, when the server stores the data of a certain user, it will also store the data corresponding to the account of a certain user, so as to distinguish the data of different users. Then, it can be understood that the account bound to the application is the account used by the user to log in on the application.
而作为一种方式,应用程序可以将已经绑定的用户帐号存储在本地。那么不论是目标应用程序本身来执行音效处理方法,还是由独立于目标应用程序以外的控制程序来执行音效处理方法,都可以先获取到存储所绑定的用户帐号的存储位置,然后从该存储位置中读取出目标应用程序所绑定的用户帐号。例如,若目标应用程序为游戏类应用程序,且已经绑定有第一用户帐号,那么即可以在检测到该目标应用程序运行时,获取去所绑定的第一用户帐号。As a way, the application can store the bound user account locally. Then whether the target application itself executes the sound effect processing method, or a control program independent of the target application executes the sound effect processing method, the storage location of the user account bound to the storage can be obtained first, and then the storage location of the user account bound to the storage can be obtained. The user account bound to the target application is read from the location. For example, if the target application is a game application and has been bound with the first user account, then the bound first user account can be acquired when it is detected that the target application is running.
步骤S120:获取参考音效处理参数,所述参考音效处理参数为绑定第二用户帐号的目标应用程序所在电子设备的音效处理参数,所述第二用户帐号为与所述第一用户帐号相关联的帐号。Step S120: Obtain reference sound effect processing parameters, where the reference sound effect processing parameters are sound effect processing parameters of the electronic device where the target application bound to the second user account is located, and the second user account is associated with the first user account account.
可以理解的是,本申请中对于电子设备的音效处理参数为通过与电子设备运行的目标应用程序所绑定的第一用户帐号有关联关系的帐号来确定的。那么作为一种方式,当目标应用程序处于运行状态时,可以将目标应用程序所在电子设备的音效处理参数上传给服务器。该服务器为与目标应用程序对应的服务器。例如,若目标应用程序为游戏类的应用程序,那么该服务器为处理各种游戏数据的服务器。例如,服务器中可以记录所有的游戏分组情况。It can be understood that the sound effect processing parameters for the electronic device in the present application are determined by the account that is associated with the first user account bound to the target application program running on the electronic device. Then, as a method, when the target application program is running, the sound effect processing parameters of the electronic device where the target application program is located can be uploaded to the server. The server is the server corresponding to the target application. For example, if the target application is a game-type application, the server is a server that processes various game data. For example, all game groupings can be recorded in the server.
作为一种获取参考音效处理参数方式,可以通过根据与电子设备属于同一个局域网的其他的电子设备的音效参数来调节音效处理参数。As a way of obtaining the reference sound effect processing parameters, the sound effect processing parameters can be adjusted according to the sound effect parameters of other electronic devices belonging to the same local area network as the electronic device.
作为一种方式,该电子设备可以向服务器发送关联设备获取请求,所述关联设备获取请求用于触发所述服务器获取与所述第一用户帐号关联的第二用户帐号,并获取关联设备的设备标识,所述关联设备为运行有绑定所述第二用户帐号的目标应用程序中,与发送所述关联设备获取请求的电子设备处于同一局域网的电子设备的设备标识。In one way, the electronic device may send an associated device acquisition request to the server, where the associated device acquisition request is used to trigger the server to acquire a second user account associated with the first user account, and to acquire a device associated with the device The associated device is the device identifier of the electronic device in the same local area network as the electronic device that sends the associated device acquisition request in the target application program bound to the second user account.
需要说明的是,作为一种方式,当电子设备开始运行目标应用程序后,会开始与服务器进行数据交互,那么在数据交互的过程中,服务器可以获取到电子设备发送数据时的源IP地址(若电子设备和服务器之间基于TCP或者UDP协议进行通信的情况下),那么服务器可以对应的将用户帐号和获取的源IP地址进行对应存储,以便服务器可以判断对应源IP相同的用户帐号。It should be noted that, as a method, when the electronic device starts to run the target application, it will start data interaction with the server, then in the process of data interaction, the server can obtain the source IP address ( If the communication between the electronic device and the server is based on the TCP or UDP protocol), then the server can correspondingly store the user account and the obtained source IP address, so that the server can determine the user account with the same source IP.
若服务器在建立一个用户分组后,属于同一个分组的用户帐号为互相之间有关联关系的帐号。而服务器可以预先判断该用户分组里面是否有对应的源IP相同的用户帐号,若有则将源IP相同的用户帐号各自所在的电子设备判定为关联设备。可以理解的是,用户帐号所在的电子设备为绑定该用户帐号的目标应用程序所运行于的电子设备。If the server establishes a user group, the user accounts belonging to the same group are accounts that are related to each other. The server can pre-determine whether there is a corresponding user account with the same source IP in the user group, and if so, determine the electronic device where the user account with the same source IP is located as an associated device. It can be understood that the electronic device where the user account is located is the electronic device on which the target application bound to the user account runs.
那么当电子设备向服务器发送的关联设备获取请求中携带有上述第一用户帐号后,服务器可以基于前述的分组判断与第一用户帐号相关联的第二用户帐号。在确定第二用户帐号后,再进一步的根据对应的源IP地址来确定关联设备。Then, after the first user account is carried in the associated device acquisition request sent by the electronic device to the server, the server may determine the second user account associated with the first user account based on the foregoing grouping. After the second user account is determined, the associated device is further determined according to the corresponding source IP address.
可以理解的是,处于同一局域网络中的电子设备与服务器进行通信时,服务器获取到的源IP地址为同一个IP地址,即该同一个IP地址实际为局域网的网关的公网IP地址。那么在这种情况下,为了便于服务器识别处于同一局域网内的不同的电子设备,电子设备可以在于服务器建立通信连接后,可以将自己的局域网IP地址或者自己得MAC地址也上传给服务器,以便作为电子设备的设备标识。It can be understood that when an electronic device in the same local area network communicates with the server, the source IP address obtained by the server is the same IP address, that is, the same IP address is actually the public network IP address of the gateway of the local area network. In this case, in order to facilitate the server to identify different electronic devices in the same local area network, the electronic device can upload its own local area network IP address or its own MAC address to the server after establishing a communication connection with the server, so that it can be used as a Device identification for electronic equipment.
例如,请再次参阅图1,若电子设备99运行的目标应用程序所绑定的第一用户帐号和电子设备98运行的目标应用程序所绑定的用户帐号,以及电子设备97运行的目标应用程序所绑定的用户帐号均处于服务器建立的同一个分组中。而电子设备99和电子设备98处于基于无线接入点96建立的局域网络中,那么电子设备99和电子设备98向服务器发送的数据的源IP地址均为无线接入设备96的公网IP。在电子设备99向服务器发送关联终端获取请求后,服务器会识别出关联的设备为设备98,进而会将电子设备98的设备标识返回给电子设备99。For example, referring to FIG. 1 again, if the first user account bound to the target application running on the
接收所述服务器返回的设备标识。基于所述设备标识在局域网内与所述关联设备建立局域网链路,并通过所述局域网链路获取所述关联设备的音效处理参数,作为参考音效处理参数。这样使得处于同一个局域网络,且分组相同的用户之间可以有相同的游戏音效,进而使得相同分组的用户帐号所属的电子设备可以相互根据对方的游戏音效来调整自己的游戏音效,提升了音效调节的灵活性。再者,因为电子设备是通过局域网来获取的音效处理参数,那么因为局域网络的实时性较高的优点,电子设备之间可以更加快速的互相传递音效处理参数,以提升电子设备的音效处理速度。Receive the device identifier returned by the server. Based on the device identification, a local area network link is established with the associated device in the local area network, and sound effect processing parameters of the associated device are acquired through the local area network link as reference sound effect processing parameters. In this way, users in the same local area network and in the same group can have the same game sound effects, so that the electronic devices belonging to the user accounts in the same group can adjust their own game sound effects according to each other's game sound effects, which improves the sound effects. Adjustment flexibility. Furthermore, because the electronic devices obtain the sound effect processing parameters through the local area network, because of the advantages of the high real-time performance of the local area network, the electronic devices can transfer the sound effect processing parameters to each other more quickly, so as to improve the sound effect processing speed of the electronic equipment. .
需要说明的是,前述的获取参考音效处理参数可以为目标应用程序处于运行状态一开始即执行,也可以是在目标应用程序运行过程中每间隔预设的时间周期执行。It should be noted that, the aforementioned acquisition of the reference sound effect processing parameters may be executed as soon as the target application is in the running state, or may be executed at every preset time period during the running of the target application.
步骤S130:基于所述参考音效处理参数,调节绑定所述第一用户帐号的目标应用程序所在电子设备的音效处理参数。Step S130: Based on the reference sound effect processing parameters, adjust the sound effect processing parameters of the electronic device where the target application bound to the first user account is located.
本申请提供的一种音效处理方法,使得绑定第一用户帐号的目标应用程序所在的电子设备的音效处理参数,可以根据绑定与第一用户帐号相关联的第二用户帐号的目标应用程序所在的电子设备的音效处理参数进行调节,进而可以使得绑定相关联的用户帐号的目标应用程序所运行的电子设备可以有相同或者相似的音效输出,提升了音效调节的灵活性,也提升了用户体验。The present application provides a sound effect processing method, so that the sound effect processing parameters of the electronic device where the target application program bound to the first user account is located can be based on the target application program bound to the second user account associated with the first user account. The sound effect processing parameters of the electronic device where it is located can be adjusted, so that the electronic device running by the target application bound to the associated user account can have the same or similar sound effect output, which improves the flexibility of sound effect adjustment, and also improves the user experience.
请参阅图4,本申请提供的一种音效处理方法,应用于电子设备,所述方法包括:Please refer to FIG. 4 , a sound effect processing method provided by the present application is applied to an electronic device, and the method includes:
步骤S210:当目标应用程序运行时,获取所述目标应用程序所绑定的第一用户帐号。Step S210: When the target application is running, acquire the first user account bound to the target application.
步骤S220:向服务器发送参数获取请求,所述参数获取请求用于触发所述服务器获取与所述第一用户帐号相关联的第二用户帐号后,并获取绑定所述第二用户帐号的目标应用程序所在电子设备的音效处理参数。Step S220: Send a parameter acquisition request to the server, where the parameter acquisition request is used to trigger the server to acquire a second user account associated with the first user account and acquire a target bound to the second user account The sound processing parameters of the electronic device where the application is located.
作为一种方式,目标应用程序在与服务器通信后,服务器也可以将与目标应用程序绑定的第一用户帐号属于同一个分组的其他用户帐号发送给目标应用程序。例如,还是以图1所示的环境为例,若电子设备99运行的目标应用程序所绑定的第一用户帐号和电子设备98运行的目标应用程序所绑定的用户帐号,以及电子设备97运行的目标应用程序所绑定的用户帐号均处于服务器建立的同一个分组中,服务器可以将电子设备98运行的目标应用程序绑定的用户帐号以及电子设备97运行的目标应用程序绑定的用户帐号均发送给电子设备99。As a method, after the target application communicates with the server, the server may also send other user accounts belonging to the same group of the first user account bound with the target application to the target application. For example, taking the environment shown in FIG. 1 as an example, if the first user account bound to the target application running on the
作为一种方式,与所述第一用户帐号关联的帐号有多个的情况下,获取从多个与所述第一用户帐号关联的帐号中确定的第二用户帐号。可选的,可以电子设备的用户来选择第二用户帐号。As one way, in the case that there are multiple accounts associated with the first user account, a second user account determined from the multiple accounts associated with the first user account is acquired. Optionally, the user of the electronic device may select the second user account.
如图5所示,若目标应用程序为游戏类的应用程序,那么在目标应用程序运行时显示的界面93中可以显示有当前目标应用程序绑定的第一用户帐号的头像92,以及与该第一用户帐号分在同一个分组的电子设备98所属的用户帐号的头像91和电子设备97所属用户在帐号的头像90。As shown in FIG. 5 , if the target application is a game-type application, the
那么作为一种方式,当用户点击其某个头像像后,可以对应弹出一菜单。如图6所示,在菜单89中显示有多个选项,包括查看信息、音效跟随以及加好友等,如果用户点击了音效跟随,那么目标应用程序即可将头像90对应的用户帐号确定为第二用户帐号。此外,作为另外一种方式,还可以在设置界面中直接选择跟随某个用户的音效设置参数。例如,如图7所示,作为另外一种方式,当用户触发设置按钮后,可以在屏幕上显示一配置界面88。在配置界面88中显示有音量以及音效的配置控件,当用户选择了头像91时,则可以将头像91对应的用户帐号作为第二用户帐号。Then, as a method, when the user clicks on one of his avatars, a corresponding menu can be popped up. As shown in FIG. 6, there are multiple options displayed in the
除了前述通过用户选择的方式从多个和第一用户帐号关联的用户帐号从确定第二用户帐号外,还可以由绑定第一用户帐号的电子设备根据预设的事件来确定第二用户帐号。例如,作为一种方式,可以配置将当前游戏分数最高的用户的帐号作为第二用户帐号,以便可以增加游戏的趣味性,同时也可以通过音效的切换来提醒用户当前的游戏分数有了变化。再者,目标应用程序的运行过程中,作为一种方式,用户可能会处于死亡后的等待复活的状态,那么在这种情况下,可以从当前处于正常游戏状态的用户中确定一个用户的帐号作为第二用户帐号。In addition to the aforementioned determination of the second user account from multiple user accounts associated with the first user account in the manner selected by the user, the second user account can also be determined by the electronic device bound to the first user account according to a preset event . For example, as a method, the account of the user with the highest current game score can be configured as the second user account, so as to increase the fun of the game, and at the same time, the user can be reminded that the current game score has changed by switching the sound effect. Furthermore, during the running of the target application, as a way, the user may be in a state of waiting for resurrection after death, in this case, a user's account can be determined from the users currently in the normal game state. as a second user account.
那么在确定后第二用户账号后,可以向所述服务器发送携带有所述第二用户帐号的参数获取请求,以触发所述服务器从所述参数获取请求中获取第二用户帐号。Then, after the second user account is determined, a parameter acquisition request carrying the second user account may be sent to the server, so as to trigger the server to acquire the second user account from the parameter acquisition request.
可选的,所述参数获取请求用于触发所述服务器获取与所述第一用户帐号相关联的第二用户帐号后,并获取运行有绑定所述第二用户帐号的目标应用程序的电子设备中,与发送所述参数获取请求的电子设备处于同一局域网的电子设备的音效处理参数。Optionally, the parameter acquisition request is used to trigger the server to acquire the second user account associated with the first user account, and acquire the electronic device running the target application bound to the second user account. In the device, the sound effect processing parameters of the electronic device in the same local area network as the electronic device sending the parameter acquisition request.
需要说明的是,为了便于服务器区别电子设备所发送的请求类型,电子设备在生成请求是可以在该请求中加入标识字段,并通过写入不同的字段内容来使服务器区分不同的请求。It should be noted that, in order to facilitate the server to distinguish the types of requests sent by the electronic device, the electronic device can add an identification field to the request when generating a request, and write different field contents to enable the server to distinguish different requests.
再者,需要说明的是,如果是由电子设备中的目标应用程序自己来执行前述的获取音效处理参数的步骤,那么目标应用程序在获取到音效处理参数后会直接传输给电子设备的音频模块,以便音频模块进行音效输出的调节。而如果是由独立于目标应用程序以外的控制程序来获取的音效处理参数,那么就由该控制程序直接将获取到的音效参数传输给电子设备的音频模块,以便调节电子设备的音频输出。Furthermore, it should be noted that if the target application program in the electronic device executes the aforementioned steps of acquiring the sound effect processing parameters, the target application program will directly transmit the sound effect processing parameters to the audio module of the electronic device after obtaining the sound effect processing parameters. , so that the audio module can adjust the sound effect output. However, if the sound effect processing parameters are obtained by a control program independent of the target application, the control program directly transmits the obtained sound effect parameters to the audio module of the electronic device, so as to adjust the audio output of the electronic device.
步骤S230:将接收到的所述服务器返回的音效处理参数作为参考音效处理参数。Step S230: Use the received sound effect processing parameters returned by the server as reference sound effect processing parameters.
步骤S240:基于所述参考音效处理参数,调节绑定所述第一用户帐号的目标应用程序所在电子设备的音效处理参数。Step S240: Based on the reference sound effect processing parameters, adjust the sound effect processing parameters of the electronic device where the target application program bound to the first user account is located.
需要说明的是,在一些应用程序的运行过程中,应用程序的音效是和当前所显示的场景对应的。例如,对于游戏类型的应用程序中,游戏界面的变化是比较快速的,而游戏的音效也会随之快速的变化。再例如在音视频播放类的应用程序中,如果该音视频所播放的界面内容变化较为频发,那么与界面对应的音效也会较为频繁的切换。请再参阅图1,若电子设备99的音效处理参数已经确定是根据电子设备98的音效处理参数进行变化,那么电子设备99的音频处理参数的变化频率会和电子设备98的音频处理参数保持相同的切换频率。那么若电子设备98的用户只是在尝试各种不同的音效处理参数所带来的音效效果的情况而不断手动切换电子设备98的音效处理参数的情况下,电子设备99也会同步切换过程,从而给电子设备99的用户造成不佳的体验。It should be noted that, in the running process of some applications, the sound effects of the applications correspond to the currently displayed scene. For example, in a game-type application, the game interface changes rapidly, and the sound effects of the game also change rapidly. For another example, in an audio and video playback application, if the content of the interface played by the audio and video changes frequently, the sound effects corresponding to the interface are also frequently switched. Referring again to FIG. 1 , if the sound effect processing parameters of the
为了改善上述问题,作为一种方式,对于用户手动选择的音效处理参数,电子设备会配置一手动配置标识,以便电子设备可以识别出该音频处理参数是用户手动设置的。作为一种方式,还是以图1所示环境为例。若电子设备99已经确定了获取电子设备98的音效处理参数作为参考音效处理参数,那么当电子设备98的用户通过手动的方式切换了电子设备的音效处理参数后,电子设备98会存储一条配置有手动操作标识的音效处理参数,然后将该配置有手动操作标识的音效处理参数传输给电子设备99,若电子设备99在接收到配置有手动操作标识的音效处理参数后,可以通过手动配置标识识别出当前获取的这个音效处理参数是电子设备98的用户手动选择的,那么电子设备99开始计时预设的时间长度,若在预设的时间长度内,没有再次获取到配置有手动操作标识的音效处理参数后,即将已经获取得到的配置有手动操作标识的音效处理参数作为参考音效处理参数,若在预设的时间长度内获取到新的配置有手动操作标识的音效处理参数后,则从新开始计时。In order to improve the above problem, as a way, for the audio processing parameters manually selected by the user, the electronic device will configure a manual configuration identifier, so that the electronic device can recognize that the audio processing parameters are manually set by the user. As a way, the environment shown in FIG. 1 is taken as an example. If the
本申请提供的一种音效处理方法,使得绑定第一用户帐号的目标应用程序所在的电子设备的音效处理参数,可以从服务器获取到与当前运行的目标应用程序所绑定的第一用户帐号对应的第二用户帐号的目标应用程序所在的电子设备的音效处理参数进行调节,进而可以使得绑定相关联的用户帐号的目标应用程序所运行的电子设备可以有相同或者相似的音效输出,提升了音效调节的灵活性,也提升了用户体验。The present application provides a sound effect processing method, so that the sound effect processing parameters of the electronic device where the target application program bound to the first user account is located can obtain the first user account bound with the currently running target application program from the server The sound effect processing parameters of the electronic device where the target application program of the corresponding second user account is located can be adjusted, so that the electronic device running by the target application program bound to the associated user account can have the same or similar sound effect output, improving the It improves the flexibility of sound effect adjustment and improves the user experience.
请参阅图8,本申请提供的一种音效处理方法,应用于电子设备,所述方法包括:Please refer to FIG. 8 , a sound effect processing method provided by the present application is applied to an electronic device, and the method includes:
步骤S310:当目标应用程序运行时,获取所述目标应用程序所绑定的第一用户帐号。Step S310: When the target application is running, acquire the first user account bound to the target application.
步骤S320:获取参考音效处理参数,所述参考音效处理参数为绑定第二用户帐号的目标应用程序所在电子设备的音效处理参数,所述第二用户帐号为与所述第一用户帐号相关联的帐号。Step S320: Obtain reference sound effect processing parameters, where the reference sound effect processing parameters are sound effect processing parameters of the electronic device where the target application bound to the second user account is located, and the second user account is associated with the first user account account.
步骤S330:获取从所述多个音频输出通路中确定的目标音频通路。Step S330: Obtain the target audio channel determined from the plurality of audio output channels.
可以理解的是,目标应用程序在运行过程中,会有多种音频需要进行输出。例如,背景音乐、动作音效已经按键音效等。而对于不同的输出音效,可以增强音效处理的效果,可以给不同类型的输出音效各自配置一个音频通路。例如,背景音乐对应一个音频通路,动作音效配置一个音频通路,而对于按键音效也配置一个音频通路。那么在这种情况下,比并不是所有的音频通路的音效处理参数都需要根据其他电子设配的音效处理参数来进行调节。It is understandable that during the running process of the target application, there will be various audios that need to be output. For example, background music, action sound effects, button sound effects, etc. For different output sound effects, the effect of sound effect processing can be enhanced, and an audio channel can be configured for each type of output sound effect. For example, background music corresponds to an audio channel, action sound effects are configured with an audio channel, and button sound effects are also configured with an audio channel. In this case, not all the sound effect processing parameters of the audio channel need to be adjusted according to the sound effect processing parameters of other electronic devices.
那么作为一种方式,可以根据目标应用程序的当前所显示界面来确定目标音频通路。可以理解的是,该目标音频通路为可以根据其他电子设备的音效处理参数进行音效调节的通路。Then, as a way, the target audio path can be determined according to the currently displayed interface of the target application. It can be understood that the target audio channel is a channel that can perform sound effect adjustment according to sound effect processing parameters of other electronic devices.
那么在这种情况下,电子设备可以确定所述目标应用程序当前的显示界面对应的音频输出场景,然后获取与所述音频输出场景对应的目标音频通路。其中,所述音频输出场景包括游戏界面场景、纯音频输出场景以及音视频播放场景中的一个。可选的,若电子设备运行的目标应用程序显示的为游戏界面场景,那么对应的目标音频通路可以为输出游戏音效的通路。而若电子设备运行的目标应用程序显示的为纯音频输出场景,那么对应的目标音频通路可以为输出背景音乐的通路。若电子设备运行的目标应用程序显示的为音视频播放场景,那么对应的目标音频通路可以为音效输出通路以及输出背景音乐的通路。In this case, the electronic device may determine the audio output scene corresponding to the current display interface of the target application, and then acquire the target audio path corresponding to the audio output scene. Wherein, the audio output scene includes one of a game interface scene, a pure audio output scene, and an audio and video playback scene. Optionally, if the target application running on the electronic device displays a game interface scene, the corresponding target audio path may be a path for outputting game sound effects. However, if the target application running on the electronic device displays a pure audio output scene, then the corresponding target audio path may be a path for outputting background music. If the target application program running on the electronic device displays an audio and video playback scene, then the corresponding target audio path may be a sound effect output path and a path for outputting background music.
需要说明的是,上述的音频输出场景只是示例性的,不对本申请作出限定。It should be noted that the above audio output scenarios are only exemplary and do not limit the present application.
获取与所述音频输出场景对应音频通路作为目标音频通路。Acquire an audio channel corresponding to the audio output scene as a target audio channel.
步骤S340:基于所述参考音效处理参数,调节所述电子设备中所述目标音频通路的音效处理参数。Step S340: Based on the reference sound effect processing parameters, adjust the sound effect processing parameters of the target audio channel in the electronic device.
本申请提供的一种音效处理方法,使得绑定第一用户帐号的目标应用程序所在的电子设备的音效处理参数,可以获取到与当前运行的目标应用程序所绑定的第一用户帐号对应的第二用户帐号的目标应用程序所在的电子设备的音效处理参数进行调节,进而可以使得绑定相关联的用户帐号的目标应用程序所运行的电子设备在某一音频通道上可以有相同或者相似的音效输出,提升了音效调节的灵活性,同时也提升了音效调节的细粒度,再者也提升了用户体验。The present application provides a sound effect processing method, so that the sound effect processing parameters of the electronic device where the target application bound to the first user account is located can obtain the sound effect corresponding to the first user account bound to the currently running target application. The sound effect processing parameters of the electronic device where the target application program of the second user account is located can be adjusted, so that the electronic device running the target application program bound to the associated user account can have the same or similar audio channels on a certain audio channel. The sound effect output improves the flexibility of sound effect adjustment, and also improves the fine-grained sound effect adjustment, and also improves the user experience.
请参阅图9,本申请提供的一种音效处理装置400,运行于电子设备,所述装置400包括:帐号获取单元410、参数获取单元420以及音效处理单元430。Referring to FIG. 9 , a sound effect processing apparatus 400 provided by the present application operates on an electronic device. The apparatus 400 includes an
帐号获取单元410,用于当目标应用程序运行时,获取所述目标应用程序所绑定的第一用户帐号。The
参数获取单元420,用于获取参考音效处理参数,所述参考音效处理参数为绑定第二用户帐号的目标应用程序所在电子设备的音效处理参数,所述第二用户帐号为与所述第一用户帐号相关联的帐号。The
作为一种方式,参数获取单元420包括:As one way, the
数据请求子单元421,用于向服务器发送关联设备获取请求,所述关联设备获取请求用于触发所述服务器获取与所述第一用户帐号关联的第二用户帐号,并获取关联设备的设备标识,所述关联设备为运行有绑定所述第二用户帐号的目标应用程序中,与发送所述关联设备获取请求的电子设备处于同一局域网的电子设备的设备标识。The
数据接收子单元422,用于接收所述服务器返回的设备标识。The
参数获取子单元423,用于基于所述设备标识在局域网内与所述关联设备建立局域网链路,并通过所述局域网链路获取所述关联设备的音效处理参数,作为参考音效处理参数。The
音效处理单元430,用于基于所述参考音效处理参数,调节绑定所述第一用户帐号的目标应用程序所在电子设备的音效处理参数。The sound
请参阅图10,本申请提供的一种音效处理装置500,运行于电子设备,所述装置500包括:帐号获取单元510、参数请求单元520、参数接收单元530以及音效处理单元540。Referring to FIG. 10 , a sound effect processing apparatus 500 provided by the present application operates on an electronic device. The apparatus 500 includes an
帐号获取单元510,用于当目标应用程序运行时,获取所述目标应用程序所绑定的第一用户帐号。The
参数请求单元520,用于向服务器发送参数获取请求,所述参数获取请求用于触发所述服务器获取与所述第一用户帐号相关联的第二用户帐号后,并获取绑定所述第二用户帐号的目标应用程序所在电子设备的音效处理参数。The
作为一种方式,参数请求单元520,还用于获取从多个与所述第一用户帐号关联的帐号中确定的第二用户帐号;向所述服务器发送携带有所述第二用户帐号的参数获取请求,以触发所述服务器从所述参数获取请求中获取第二用户帐号。In one way, the
参数接收单元530,将接收到的所述服务器返回的音效处理参数作为参考音效处理参数。The
可选的,所述参数获取请求用于触发所述服务器获取与所述第一用户帐号相关联的第二用户帐号后,并获取运行有绑定所述第二用户帐号的目标应用程序的电子设备中,与发送所述参数获取请求的电子设备处于同一局域网的电子设备的音效处理参数。Optionally, the parameter acquisition request is used to trigger the server to acquire the second user account associated with the first user account, and acquire the electronic device running the target application bound to the second user account. In the device, the sound effect processing parameters of the electronic device in the same local area network as the electronic device sending the parameter acquisition request.
音效处理单元540,用于基于所述参考音效处理参数,调节绑定所述第一用户帐号的目标应用程序所在电子设备的音效处理参数。The sound
请参阅图6,本申请提供的一种音效处理装置600,运行于电子设备,所述装置600包括:帐号获取单元610、参数请求单元620、通路获取单元630以及音效处理单元640。Referring to FIG. 6 , a sound effect processing apparatus 600 provided by the present application operates on an electronic device. The apparatus 600 includes an
帐号获取单元610、当目标应用程序运行时,获取所述目标应用程序所绑定的第一用户帐号。The
参数获取单元620、获取参考音效处理参数,所述参考音效处理参数为绑定第二用户帐号的目标应用程序所在电子设备的音效处理参数,所述第二用户帐号为与所述第一用户帐号相关联的帐号。The
通路获取单元630,用于获取从所述多个音频输出通路中确定的目标音频通路。The
音效处理单元640,用于基于所述参考音效处理参数,调节所述电子设备中所述目标音频通路的音效处理参数。The sound
需要说明的是,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the above-described devices and units, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here. . In several embodiments provided in this application, the coupling between the modules may be electrical, mechanical or other forms of coupling. In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically alone, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules.
需要说明的是,本申请中具体如何根据音频编码类型对音频数据进行编码是可以采用现有的技术,本申请就不再细述。It should be noted that, in this application, how to encode the audio data according to the audio encoding type can adopt the existing technology, which will not be described in detail in this application.
综上所述,本申请提供的一种音效处理方法、装置以及电子设备,在当目标应用程序运行时,获取所述目标应用程序所绑定的第一用户帐号,然后获取与该第一用户帐号关联的第二用户帐号,将绑定第二用户帐号的目标应用程序所在电子设备的音效处理参数作为参考音效处理参数,基于所述参考音效处理参数,调节绑定所述第一用户帐号的目标应用程序所在电子设备的音效处理参数。从而使得绑定第一用户帐号的目标应用程序所在的电子设备的音效处理参数,可以根据绑定与第一用户帐号相关联的第二用户帐号的目标应用程序所在的电子设备的音效处理参数进行调节,进而可以使得绑定相关联的用户帐号的目标应用程序所运行的电子设备可以有相同或者相似的音效输出,提升了音效调节的灵活性,也提升了用户体验。To sum up, the present application provides a sound effect processing method, device and electronic device. When a target application is running, the first user account bound to the target application is obtained, and then the first user account associated with the first user is obtained. The second user account associated with the account uses the sound effect processing parameters of the electronic device where the target application program bound to the second user account is located as the reference sound effect processing parameters, and adjusts the sound effect processing parameters bound to the first user account based on the reference sound effect processing parameters. The sound processing parameters of the electronic device where the target application is located. Thereby, the sound effect processing parameters of the electronic device where the target application program bound to the first user account is located can be processed according to the sound effect processing parameters of the electronic device where the target application program of the second user account associated with the first user account is located. Adjustment, so that the electronic device running by the target application bound to the associated user account can have the same or similar sound effect output, which improves the flexibility of sound effect adjustment and improves the user experience.
下面将结合图7对本申请提供的一种电子设备进行说明。An electronic device provided by the present application will be described below with reference to FIG. 7 .
请参阅图7,基于上述的音效处理方法、装置,本申请实施例还提供的另一种可以执行前述终端控制方法的电子设备100。电子设备100包括相互耦合的一个或多个(图中仅示出一个)处理器102、存储器104、无线模块106以及音频模块108。其中,该存储器104中存储有可以执行前述实施例中内容的程序,而处理器102可以执行该存储器104中存储的程序。Referring to FIG. 7 , based on the above-mentioned sound effect processing method and apparatus, an embodiment of the present application further provides another
其中,处理器102可以包括一个或者多个处理核。处理器102利用各种接口和线路连接整个电子设备100内的各个部分,通过运行或执行存储在存储器104内的指令、程序、代码集或指令集,以及调用存储在存储器104内的数据,执行电子设备100的各种功能和处理数据。可选地,处理器102可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable GateArray,FPGA)、可编程逻辑阵列(ProgrammableLogic Array,PLA)中的至少一种硬件形式来实现。处理器102可集成中央处理器(CentralProcessing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和目标应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器102中,单独通过一块通信芯片进行实现。The
存储器104可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器104可用于存储指令、程序、代码、代码集或指令集。存储器104可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储终端100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The
所述无线模块106用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯,例如和音频播放设备进行通讯。所述无线模块106可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。所述无线模块106可与各种网络如互联网、企业内部网、无线网络进行通讯或者通过无线网络与其他电子设备进行通讯。上述的无线网络可包括蜂窝式电话网、无线局域网或者城域网。上述的无线网络可以使用各种通信标准、协议及技术,包括但并不限于IEEE 802协议以及蓝牙协议,甚至可包括那些当前仍未被开发出来的协议。The
再者,该音频模块108可以用于处理电子设备100中所运行的应用程序输出的音频。例如,该音频模块108可以接收无线模块106从其他电子设备获取的音频处理参数,然后调节音频模块108的音频处理参数。Furthermore, the
请参考图8,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质800中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 8 , which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. The computer-readable medium 800 stores program codes, and the program codes can be invoked by the processor to execute the methods described in the above method embodiments.
计算机可读存储介质800可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质800包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质800具有执行上述方法中的任何方法步骤的程序代码810的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码810可以例如以适当形式进行压缩。The computer readable storage medium 800 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium. Computer readable storage medium 800 has storage space for
就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子设备),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport the program for use by or in connection with an instruction execution system, apparatus, or apparatus. More specific examples (non-exhaustive list) of computer readable media include the following: electrical connections with one or more wiring (electronic devices), portable computer disk cartridges (magnetic devices), random access memory (RAM), Read Only Memory (ROM), Erasable Editable Read Only Memory (EPROM or Flash Memory), Fiber Optic Devices, and Portable Compact Disc Read Only Memory (CDROM). In addition, the computer readable medium may even be paper or other suitable medium on which the program may be printed, as the paper or other medium may be optically scanned, for example, followed by editing, interpretation, or other suitable medium as necessary process to obtain the program electronically and then store it in computer memory.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or some technical features thereof are equivalently replaced; and these modifications or replacements do not drive the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811028138.7A CN109410900B (en) | 2018-09-04 | 2018-09-04 | Sound effect processing method, device and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811028138.7A CN109410900B (en) | 2018-09-04 | 2018-09-04 | Sound effect processing method, device and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109410900A CN109410900A (en) | 2019-03-01 |
CN109410900B true CN109410900B (en) | 2022-06-21 |
Family
ID=65463832
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811028138.7A Expired - Fee Related CN109410900B (en) | 2018-09-04 | 2018-09-04 | Sound effect processing method, device and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109410900B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110797056A (en) * | 2019-10-30 | 2020-02-14 | 维沃移动通信有限公司 | Sound effect migration method and electronic equipment |
CN112188342B (en) * | 2020-09-25 | 2024-08-13 | 江苏紫米电子技术有限公司 | Equalization parameter determining method, apparatus, electronic device and storage medium |
CN112738770B (en) * | 2020-12-07 | 2023-04-14 | 合众新能源汽车股份有限公司 | System and application method for activating vehicle-mounted and mobile phone synchronous interaction modes by binding a car |
US11882166B2 (en) * | 2021-11-17 | 2024-01-23 | Lemon Inc. | Methods, systems and storage media for generating an effect configured by one or more network connected devices |
Family Cites Families (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030177893A1 (en) * | 2002-03-07 | 2003-09-25 | Toshinobu Takeuchi | Audio parameter managing method for application software, application software program thereof and audio reproduction apparatus thereof |
US20150119130A1 (en) * | 2013-10-31 | 2015-04-30 | Microsoft Corporation | Variable audio parameter setting |
KR102348942B1 (en) * | 2014-02-28 | 2022-01-11 | 삼성전자 주식회사 | Displaying Method Of Health Information And Electronic Device Supporting The Same |
CN104810035B (en) * | 2015-04-01 | 2017-11-17 | 广东欧珀移动通信有限公司 | Sound effect control method and equipment |
CN105242900B (en) * | 2015-08-04 | 2018-11-09 | 美国掌赢信息科技有限公司 | A kind of the audio frequency parameter adjusting method and equipment of mobile device |
CN105516282B (en) * | 2015-12-01 | 2019-06-11 | 深圳市元征科技股份有限公司 | A kind of method and wearable device of data synchronization processing |
CN105553984A (en) * | 2015-12-18 | 2016-05-04 | 北京金山安全软件有限公司 | User account login management method and device and electronic equipment |
CN105897726A (en) * | 2016-05-09 | 2016-08-24 | 深圳市永兴元科技有限公司 | Associated account data sharing method and device |
CN106095384B (en) * | 2016-06-16 | 2019-03-15 | Oppo广东移动通信有限公司 | Sound effect adjusting method and user terminal |
CN105955700A (en) * | 2016-06-16 | 2016-09-21 | 广东欧珀移动通信有限公司 | Sound effect adjusting method and user terminal |
CN106550031B (en) * | 2016-10-25 | 2019-07-23 | Oppo广东移动通信有限公司 | The method and device of data backup |
US20190354562A1 (en) * | 2016-11-03 | 2019-11-21 | Huawei Technologies Co., Ltd. | User Association Method, Terminal, and Server |
-
2018
- 2018-09-04 CN CN201811028138.7A patent/CN109410900B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN109410900A (en) | 2019-03-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109410900B (en) | Sound effect processing method, device and electronic device | |
CN109445740B (en) | Audio playback method, device, electronic device and storage medium | |
CN109388367B (en) | Sound effect adjustment method, device, electronic device and storage medium | |
CN108924464B (en) | Video file generation method and device and storage medium | |
CN109568947A (en) | Cloud game control method, device, equipment and computer storage medium | |
CN113766477A (en) | Device connection method, device, electronic device and computer readable medium | |
KR102788919B1 (en) | Audio data processing method, server, and storage medium | |
WO2020048209A1 (en) | Sound effect processing method and apparatus, and electronic device and storage medium | |
CN106155458B (en) | Multimedia message playing method and device | |
JP7500574B2 (en) | Method, apparatus, device and computer program for executing a stand-alone program | |
CN103797761A (en) | Communication method, client, and terminal | |
CN106095387A (en) | A terminal sound effect setting method and terminal | |
JP7311707B2 (en) | Human-machine interaction processing method | |
CN112040057B (en) | Device control method, device, electronic device, control system and storage medium | |
CN107832142A (en) | The resource allocation method and equipment of application program | |
WO2020048175A1 (en) | Sound effect processing method, device, electronic device and storage medium | |
CN106095132B (en) | Method and device for setting key function of playing equipment | |
CN108337306A (en) | Equipment searching method, device, system, terminal and storage medium | |
CN114566173A (en) | Audio mixing method, device, equipment and storage medium | |
CN109304035B (en) | Game time length obtaining method and device, terminal equipment and storage medium | |
CN107786557A (en) | One kind is formed a team accelerated method and the Related product of playing | |
CN106302131B (en) | A kind of synchronous method and device of chat message difference | |
CN113556716B (en) | Image content sharing method, device and head-mounted display device | |
CN114257631A (en) | Data interaction method, device, equipment and storage medium | |
CN107766718A (en) | Touch screen anti-counterfeiting method, device, mobile terminal and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20220621 |
|
CF01 | Termination of patent right due to non-payment of annual fee |