CN109410900B - Sound effect processing method and device and electronic equipment - Google Patents
Sound effect processing method and device and electronic equipment 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
- target application
- 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 219
- 238000003672 processing method Methods 0.000 title claims abstract description 27
- 238000012545 processing Methods 0.000 claims abstract description 165
- 238000000034 method Methods 0.000 claims abstract description 41
- 230000037361 pathway Effects 0.000 claims description 5
- 230000000875 corresponding effect Effects 0.000 description 19
- 230000008569 process Effects 0.000 description 16
- 238000010586 diagram Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 7
- 238000004891 communication Methods 0.000 description 6
- 230000003993 interaction Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000013459 approach Methods 0.000 description 2
- 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
- 238000005516 engineering process Methods 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 230000002596 correlated effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical 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
- 238000006467 substitution reaction 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)
- Physics & Mathematics (AREA)
- Software Systems (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- Health & Medical Sciences (AREA)
- Acoustics & Sound (AREA)
- Information Transfer Between Computers (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the application discloses a sound effect processing method and device and electronic equipment. The method comprises the following steps: when a target application program runs, acquiring a first user account bound by the target application program; acquiring a reference sound effect processing parameter, wherein the reference sound effect processing parameter is a sound effect processing parameter of the electronic equipment where a target application program bound with a second user account is located; and adjusting the sound effect processing parameters of the electronic equipment where the target application program bound with the first user account is located based on the reference sound effect processing parameters. The method enables the sound effect processing parameter of the electronic equipment where the target application program of the first user account is bound to be adjusted according to the sound effect processing parameter of the electronic equipment where the target application program of the second user account is bound to be associated with, and enables the electronic equipment where the target application program of the associated user account is bound to run to have the same or similar sound effect output, so that the flexibility of sound effect adjustment is improved, and the user experience is also improved.
Description
Technical Field
The present application relates to the field of electronic devices, and in particular, to a sound effect processing method and apparatus, and an electronic device.
Background
With the rapid development of terminal technology, electronic devices such as mobile phones and tablet computers have become an indispensable part of people's lives. People can not only use the electronic equipment to make daily calls, send short messages and other functions, but also use the electronic equipment to run various target application programs, such as game target application programs, web browsing target application programs, audio and video broadcasting target application programs and the like. However, flexibility of sound effect adjustment of the output audio of the target application and user experience need to be improved during the running process of the target application.
Disclosure of Invention
In view of the foregoing problems, the present application provides a sound effect processing method, device and electronic device to improve the foregoing problems.
In a first aspect, the present application provides a sound effect processing method applied to an electronic device, the method including: when a target application program runs, acquiring a first user account bound by the target application program; acquiring reference sound effect processing parameters, wherein the reference sound effect processing parameters are sound effect processing parameters of electronic equipment where a target application program bound with a second user account is located, and the second user account is an account associated with the first user account; and adjusting the sound effect processing parameters of the electronic equipment where the target application program bound with the first user account is located based on the reference sound effect processing parameters.
In a second aspect, the present application provides a sound effect processing apparatus, operating on an electronic device, the apparatus comprising: the account acquiring unit is used for acquiring a first user account bound by a target application program when the target application program runs; the device comprises a parameter acquisition unit, a sound processing unit and a sound processing unit, wherein the parameter acquisition unit is used for acquiring a reference sound processing parameter, the reference sound processing parameter is a sound processing parameter of an electronic device where a target application program bound with a second user account is located, and the second user account is an account related to the first user account; and the sound effect processing unit is used for adjusting the sound effect processing parameters of the electronic equipment where the target application program bound with 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 configured to perform the methods described above.
In a fourth aspect, the present application provides a computer-readable storage medium having a program code stored therein, wherein the program code performs the above method when running.
According to the sound effect processing method, the sound effect processing device and the electronic equipment, when a target application program runs, a first user account bound with the target application program is obtained, then a second user account related to the first user account is obtained, sound effect processing parameters of the electronic equipment where the target application program bound with the second user account is located are used as reference sound effect processing parameters, and based on the reference sound effect processing parameters, the sound effect processing parameters of the electronic equipment where the target application program bound with the first user account is located are adjusted. Therefore, the sound effect processing parameters of the electronic equipment where the target application program of the first user account is located can be adjusted according to the sound effect processing parameters of the electronic equipment where the target application program of the second user account associated with the first user account is located, and then the electronic equipment where the target application program of the associated user account is operated can have the same or similar sound effect output, so that the flexibility of sound effect adjustment is improved, and the user experience is also improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 illustrates a schematic diagram of an application environment proposed in the present application;
FIG. 2 is a schematic diagram of another application environment presented herein;
FIG. 3 is a flow chart of an audio processing method proposed in the present application;
FIG. 4 is a flow chart of another sound effect processing method proposed in the present application;
FIG. 5 shows a schematic view of an interface proposed by the present application;
FIG. 6 shows a schematic view of another interface proposed by the present application;
FIG. 7 shows a schematic view of yet another interface proposed by the present application;
FIG. 8 is a flow chart of another sound effect processing method proposed in the present application;
FIG. 9 is a block diagram of an audio processing apparatus according to the present application;
FIG. 10 is a block diagram showing another audio effect processing device proposed in the present application;
FIG. 11 is a block diagram of a sound effect processing apparatus according to still another embodiment of the present invention;
fig. 12 is a block diagram illustrating an electronic device according to the present application;
fig. 13 is a storage unit for storing or carrying program codes for implementing the sound effect processing method according to the embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The sound effect can be a sound which is everywhere in our lives. Sound effects such as footsteps when walking, squeaks when opening doors, opening and closing doors of elevators, etc. permeate every corner of our lives.
Sound effects are also ubiquitous in electronic devices. For example, when the electronic device is started, a start sound effect may be accompanied, when the electronic device is turned off, a turn-off sound effect may be accompanied, and when the power of the electronic device is insufficient, the electronic device may also give an alarm sound effect.
But also for applications running in the electronic device. For example, the application program of game class can generate game sound effect during running. The game sound effect refers to effect music played when a specific action occurs or a specific operation is performed in the electronic game. Such as a sound when a bullet is shot, a cry when a monster dies, a "clickly" sound when a button is clicked, and the like. Formally, the existence of the game sound effect enables the user to have more real experience when playing the game.
It will be appreciated that in addition to the sound effects of the game type application described above, sound effects may be present in other types of applications. For example, the audio and video sound effect of the audio and video playing application program in the process of playing the audio and video, the sound effect of the web browsing application program in the process of loading the web content, and the like.
However, the inventor has found that a plurality of sets of sound-effect adjustment parameters are generally stored in the electronic device, so that the user can select one set of sound-effect adjustment parameters from the plurality of sets of sound-effect adjustment parameters as the sound-effect adjustment parameters for outputting audio by the electronic device when the current application is running. However, the current method for selecting a set of sound effect adjustment parameters from a plurality of sets of sound effect adjustment parameters is not flexible enough, and the user experience is not good enough. Therefore, the inventor provides a sound effect processing method and device and electronic equipment which can improve the flexibility of sound effect adjustment and improve the user experience.
A brief description of the operating environment that may be involved in the present application is provided below.
As shown in fig. 1, the network system shown in fig. 1 includes an electronic device 99, an electronic device 98, and an electronic device 97. The network system also includes a wireless access point 96 and a server 94. The electronic device 99 and the electronic device 98 access the network 95 through the wireless access point 96 and perform data interaction with the server 94 through the network 95, and the electronic device 97 directly accesses the network 95 and then performs data interaction with the server 94 through the network 95.
It should be noted that the structure of the network system described above is only an exemplary structure, and does not limit the present application. For example, as shown in fig. 2, the electronic device 99, the electronic device 98, and the electronic device 97 may all access the network 95 through the wireless access point 96. Electronic device 99, electronic device 98, and electronic device 97 may all be directly connected to network 95.
The above environment will be described below by taking an example of running a game-like application.
If the server 94 is a server of the game-like application a, the application a is simultaneously running in the electronic device 99, the electronic device 98 and the electronic device 97, and the application running in the electronic device 99 is bound to the user account a, the application running in the electronic device 98 is bound to the user account b, and the application running in the electronic device 97 is bound to the user account c. Then, as a way of doing so, user account a, user account b, and user account c are in the same game group.
It will be appreciated that for games of the play class, the game may be configured into a plurality of groups, and users of different groups may play against each other. Then, based on the above, the same game attributes may be assigned to users of the same group as a way. 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 electronic devices respectively corresponding to the same group of users may process the audio outputs of the respective electronic devices based on the same sound effect processing parameters.
For another example, the application program in the audio/video playing class may configure users identified as having common preferences as an interest group, and then the user accounts in the same interest group belong to the correlated accounts. Further, the account set as the user of interest may be set as the associated account. For example, if the user of the electronic device 99 sets the user of the electronic device 98 as the user of interest, the user account bound to the target application in the electronic device 98 is the second user account associated with the first user account bound to the target application in the electronic device 99.
Embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Referring to fig. 3, a sound effect processing method provided by the present application is applied to an electronic device, and the method includes:
step S110: when a target application program runs, acquiring a first user account bound by the target application program.
Optionally, in the embodiment of the present application, the sound effect processing method provided may be executed by the target application itself, or may be executed by a control program independent of the target application. With this manner of execution by the target application itself, the integrity of the application can be improved, and with this manner of execution by a program independent of the target application, the flexibility of sound effect processing can be improved, because the program that performs sound effect processing is independent of the target application, and the program that performs sound effect processing can simultaneously process the sound effects of a plurality of different target applications.
For the above two modes, the following contents of the present application will be described accordingly.
The sound effect processing method performed by the target application itself will be described first.
In the case where the sound effect processing method is executed by the target application itself, it is understood that the application program that can execute the aforementioned sound effect processing method is recognized by the electronic device as the target application. In one way, a specific identifier may be written in the application program during the development stage of the application program or during the packaging stage of the application program, so that the electronic device can recognize whether the application program is the target application program or not through the identifier. Then, when the module in charge of executing the sound effect processing method in the target application program detects that the target application program is in the running stage, the acquisition of the first user account bound to the target application program can be started.
Further, in the case of such a request executed by a control program independent of the target application program. The control program for executing sound effect processing has the authority of inquiring which application programs are currently operated by the electronic equipment. And a data table accessible to the control program is stored in the electronic device, and an application program capable of adjusting output audio is recorded in the data table. Then the application recorded in the data table may be identified as the target application for the control program. Then, when the control program detects that there is an application recorded in the aforementioned data table in the applications currently running in the electronic device, it may recognize that there is a target application running, and then may further start to acquire the first user account bound by the target application.
For the control program independent of the target application program, there are many ways to detect whether the target application program is running. For example, the control program may periodically detect which processes are currently running on the electronic device, and then may acquire the currently running application program according to a package name corresponding to the currently running process. Or, if the operating system of the electronic device is an Android operating system, the control program may obtain a list of all currently running applications by calling a getreporting tasks 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 a certain application program, in order to establish data independent of other users in a server corresponding to the application program, the user can log in through a personal account on the application program, so that the data sent by the application program to the server can all carry the personal account, and correspondingly, when the server stores the data of a certain user, the data and the account of the certain user are also stored correspondingly, so as to distinguish the data of different users. It will be understood that the account bound by an application is the account used by the user when logging on to the application.
As one approach, the application may store the already bound user account locally. Whether the sound effect processing method is executed by the target application program itself or by a control program independent of the target application program, the storage location where the bound user account is stored may be acquired first, and then the user account bound by the target application program may be read from the storage location. For example, if the target application is a game application and a first user account is already bound to the target application, the bound first user account may be obtained when the target application is detected to be running.
Step S120: and acquiring reference sound effect processing parameters, wherein the reference sound effect processing parameters are sound effect processing parameters of electronic equipment where a target application program bound with a second user account is located, and the second user account is an account associated with the first user account.
It can be understood that the sound effect processing parameters for the electronic device in the present application are determined by the account having the relationship with the first user account bound to the target application program operated by the electronic device. Then, as a way, when the target application is in the running state, the sound effect processing parameters of the electronic device where the target application is located may be uploaded to the server. The server is a server corresponding to the target application program. For example, if the target application is a game-like application, the server is a server that processes various game data. For example, all game grouping situations can be recorded in the server.
As a method for acquiring the reference sound effect processing parameter, the sound effect processing parameter can be adjusted according to the sound effect parameters of other electronic equipment belonging to the same local area network with the electronic equipment.
As a mode, the electronic device may send an associated device obtaining request to a server, where the associated device obtaining request is used to trigger the server to obtain a second user account associated with the first user account and obtain a device identifier of an associated device, and the associated device is a device identifier of an electronic device that is in the same local area network as the electronic device that sent the associated device obtaining request, and is in a target application program that is running and bound to the second user account.
It should be noted that, as a manner, after the electronic device starts to run the target application program, data interaction may be started with the server, and then, in the process of data interaction, the server may obtain a source IP address when the electronic device sends data (if communication is performed between the electronic device and the server based on a TCP or UDP protocol), the server may correspondingly store the user account and the obtained source IP address, so that the server may determine the user account corresponding to the same source IP.
If the server establishes a user group, the user accounts belonging to the same group are the accounts with the correlation relationship with each other. The server may determine in advance whether there is a user account in the user packet that has the same source IP, and if so, determine the electronic device in which the user account that has the same source IP is located as the associated device. It can be understood that the electronic device where the user account is located is the electronic device where the target application program bound to the user account is running.
Then, after the associated device acquisition request sent by the electronic device to the server carries the first user account, the server may determine, based on the group, a second user account associated with the first user account. And after the second user account is determined, further determining the associated equipment according to the corresponding source IP address.
It can be understood that, when the 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 a public network IP address of a gateway of the local area network. In this case, in order to facilitate the server to identify different electronic devices in the same lan, the electronic device may upload the IP address of its own lan or the MAC address of its own lan to the server after the server establishes the communication connection, so as to use the IP address or the MAC address as the device identifier of the electronic device.
For example, referring again to fig. 1, if the first user account bound to the target application executed by the electronic device 99, the user account bound to the target application executed by the electronic device 98, and the user account bound to the target application executed by the electronic device 97 are both in the same group established by the server. And the electronic device 99 and the electronic device 98 are in the local area network established based on the wireless access point 96, the source IP addresses of the data sent by the electronic device 99 and the electronic device 98 to the server are both the public network IP of the wireless access device 96. After the electronic device 99 sends the association terminal acquisition request to the server, the server recognizes that the associated device is the device 98, and then returns the device identifier of the electronic device 98 to the electronic device 99.
And receiving the equipment identification returned by the server. And establishing a local area network link with the associated equipment in a local area network based on the equipment identification, and acquiring the sound effect processing parameter of the associated equipment through the local area network link to be used as a reference sound effect processing parameter. Therefore, the electronic equipment is in the same local area network, the same game sound effect can be generated among the users in the same group, the electronic equipment with the user accounts in the same group can adjust the game sound effect of the electronic equipment according to the game sound effect of the other party, and the flexibility of sound effect adjustment is improved. Moreover, because the electronic equipment obtains the sound effect processing parameters through the local area network, the sound effect processing parameters can be mutually transmitted between the electronic equipment more quickly because of the advantage of higher real-time performance of the local area network, so that the sound effect processing speed of the electronic equipment is improved.
It should be noted that, the obtaining of the reference sound effect processing parameter may be performed at the beginning of the running state of the target application program, or may be performed at a preset time period during the running process of the target application program.
Step S130: and adjusting the sound effect processing parameters of the electronic equipment where the target application program bound with the first user account is located based on the reference sound effect processing parameters.
According to the sound effect processing method, the sound effect processing parameters of the electronic equipment 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 equipment where the target application program bound to the second user account associated with the first user account is located, and therefore the electronic equipment where the target application program bound to the associated user account runs can have the same or similar sound effect output, the flexibility of sound effect adjustment is improved, and user experience is also improved.
Referring to fig. 4, a sound effect processing method provided by the present application is applied to an electronic device, and the method includes:
step S210: when a target application program runs, acquiring a first user account bound by the target application program.
Step S220: and sending a parameter acquisition request to a server, wherein the parameter acquisition request is used for triggering the server to acquire a second user account associated with the first user account and acquiring sound effect processing parameters of the electronic equipment where a target application program bound with the second user account is located.
As a mode, after the target application communicates with the server, the server may also send other user accounts belonging to the same group as the first user account bound to the target application. For example, also taking the environment shown in fig. 1 as an example, if the first user account bound to the target application program run by the electronic device 99, the user account bound to the target application program run by the electronic device 98, and the user account bound to the target application program run by the electronic device 97 are both in the same group established by the server, the server may send both the user account bound to the target application program run by the electronic device 98 and the user account bound to the target application program run by the electronic device 97 to the electronic device 99.
As a mode, when there are a plurality of accounts associated with the first user account, the second user account determined from the plurality of accounts associated with the first user account is acquired. Alternatively, the second user account may be selected by a user of the electronic device.
As shown in fig. 5, if the target application is a game-like application, an avatar 92 of a first user account bound to the current target application, an avatar 91 of a user account belonging to an electronic device 98 and an avatar 90 of a user account belonging to an electronic device 97 that are grouped with the first user account may be displayed in an interface 93 displayed during the running of the target application.
Then as a way of example, when the user clicks on some of his avatar, a menu may pop up correspondingly. As shown in fig. 6, a plurality of options including view information, audio effect follow-up, and friend adding are displayed in the menu 89, and if the user clicks the audio effect follow-up, the user account corresponding to the head icon 90 can be determined as the second user account by the target application. In addition, as another mode, sound effect setting parameters following a certain user can be directly selected in the setting interface. Alternatively, a configuration interface 88 may be displayed on the screen, for example, as shown in FIG. 7, when the user toggles the set button. Configuration controls of the sound volume and the sound effect are displayed in the configuration interface 88, and when the user selects the avatar 91, the user account corresponding to the avatar 91 can be used as a second user account.
In addition to determining the second user account from the plurality of user accounts associated with the first user account in a user-selected manner as described above, the second user account may also be determined by the electronic device bound to the first user account according to a preset event. For example, as one mode, the account of the user with the highest game score may be configured as the second user account, so as to increase the interest of the game, and simultaneously, the user may be reminded that the current game score has changed through switching of the sound effect. Furthermore, during the operation of the target application, as a way, the user may be in a state of waiting for revival after death, and in this case, the account number of one user may be determined as the account number of the second user from the users currently in the normal game state.
Then, after determining the second user account, 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 obtaining request is used to trigger the server to obtain a second user account associated with the first user account, and obtain sound effect processing parameters of an electronic device running a target application program bound to the second user account and located in the same local area network as the electronic device sending the parameter obtaining 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 may add an identification field in the request when generating the request, and make the server distinguish different requests by writing different field contents.
Furthermore, it should be noted that, if the step of obtaining the sound effect processing parameters is performed by the target application program itself in the electronic device, the target application program may directly transmit the obtained sound effect processing parameters to the audio module of the electronic device, so that the audio module may perform the adjustment of sound effect output. And if the sound effect processing parameters are acquired by a control program independent of the target application program, the acquired sound effect parameters are directly transmitted to an audio module of the electronic equipment by the control program so as to adjust the audio output of the electronic equipment.
Step S230: and taking the received sound effect processing parameters returned by the server as reference sound effect processing parameters.
Step S240: and adjusting the sound effect processing parameters of the electronic equipment where the target application program bound with the first user account is located based on the reference sound effect processing parameters.
It should be noted that, during the operation of some application programs, the sound effect of the application program corresponds to the currently displayed scene. For example, in a game type application program, the change of the game interface is relatively fast, and the sound effect of the game is also fast changed. For example, in an audio/video playing application program, if the content of the interface played by the audio/video changes frequently, the sound effect corresponding to the interface is also switched frequently. Referring to fig. 1 again, if the sound-effect processing parameters of the electronic device 99 are determined to be changed according to the sound-effect processing parameters of the electronic device 98, the change frequency of the audio processing parameters of the electronic device 99 and the audio processing parameters of the electronic device 98 are kept at the same switching frequency. If the user of the electronic device 98 only tries the sound effect brought by various sound effect processing parameters and continuously switches the sound effect processing parameters of the electronic device 98 manually, the electronic device 99 will synchronously switch the process, thereby causing poor experience to the user of the electronic device 99.
In order to improve the above problem, as a way, for the sound effect processing parameter manually selected by the user, the electronic device configures a manual configuration identifier, so that the electronic device can recognize that the audio processing parameter is manually set by the user. As one way, the environment shown in fig. 1 is also taken as an example. If the electronic device 99 has determined to acquire the sound effect processing parameter of the electronic device 98 as the reference sound effect processing parameter, then after the user of the electronic device 98 switches the sound effect processing parameter of the electronic device in a manual manner, the electronic device 98 stores a sound effect processing parameter configured with a manual operation identifier, and then transmits the sound effect processing parameter configured with the manual operation identifier to the electronic device 99, if the electronic device 99 receives the sound effect processing parameter configured with the manual operation identifier, it can be identified through the manual configuration identifier that the currently acquired sound effect processing parameter is manually selected by the user of the electronic device 98, then the electronic device 99 starts to time the preset time length, if the sound effect processing parameter configured with the manual operation identifier is not acquired again within the preset time length, that is, the acquired sound effect processing parameter configured with the manual operation identifier is taken as the reference sound effect processing parameter, and if the new sound effect processing parameters configured with the manual operation identifiers are acquired within the preset time span, timing from the beginning.
According to the sound effect processing method, the sound effect processing parameters of the electronic equipment where the target application program of the first user account is located can be acquired from the server, the sound effect processing parameters of the electronic equipment where the target application program of the second user account corresponding to the first user account bound with the currently running target application program are located can be adjusted, further, the electronic equipment where the target application program of the associated user account is bound can have the same or similar sound effect output, the flexibility of sound effect adjustment is improved, and user experience is also improved.
Referring to fig. 8, a sound effect processing method provided by the present application is applied to an electronic device, and the method includes:
step S310: when a target application program runs, acquiring a first user account bound by the target application program.
Step S320: and acquiring reference sound effect processing parameters, wherein the reference sound effect processing parameters are sound effect processing parameters of electronic equipment where a target application program bound with a second user account is located, and the second user account is an account associated with the first user account.
Step S330: a target audio pathway determined from the plurality of audio output pathways is obtained.
It will be appreciated that there are a variety of audio outputs that may be required by the target application during its operation. For example, background music, action sound effects have been key sound effects, and the like. And for different output sound effects, the effect of sound effect processing can be enhanced, and an audio channel can be respectively configured for the output sound effects of different types. For example, background music corresponds to an audio channel, action effects configure an audio channel, and key effects also configure an audio channel. In this case, then, the acoustics processing parameters of not all audio channels need to be adjusted according to the acoustics processing parameters of other electronic devices.
Then, as one approach, the target audio pathway may be determined based on the currently displayed interface of the target application. It is understood that the target audio channel is a channel capable of performing sound effect adjustment according to sound effect processing parameters of other electronic devices.
In this case, the electronic device may determine an audio output scene corresponding to the current display interface of the target application program, and then acquire a target audio channel corresponding to the audio output scene. The audio output scene comprises one of a game interface scene, a pure audio output scene and an audio and video playing scene. Optionally, if the target application program run by the electronic device displays a game interface scene, the corresponding target audio channel may be a channel for outputting game sound effects. If the target application program operated by the electronic device displays a pure audio output scene, the corresponding target audio channel may be a channel for outputting background music. If the target application program operated by the electronic device displays an audio and video playing scene, the corresponding target audio channel can be a sound effect output channel and a channel for outputting background music.
It should be noted that the audio output scenario described above is only exemplary and is not limiting to the present application.
And acquiring an audio channel corresponding to the audio output scene as a target audio channel.
Step S340: and adjusting the sound effect processing parameters of the target audio channel in the electronic equipment based on the reference sound effect processing parameters.
According to the sound effect processing method, the sound effect processing parameters of the electronic equipment where the target application program of the first user account is located can be obtained, the sound effect processing parameters of the electronic equipment where the target application program of the second user account is located can be obtained, the electronic equipment is corresponding to the target application program of the first user account, the target application program of the first user account is bound with the currently running target application program, the electronic equipment running the target application program of the associated user account can have the same or similar sound effect output on a certain audio channel, the flexibility of sound effect adjustment is improved, meanwhile, the fine granularity of sound effect adjustment is also improved, and user experience is also improved.
Referring to fig. 9, in an electronic device, an audio processing apparatus 400 provided in the present application runs on the electronic device, the apparatus 400 includes: an account number acquiring unit 410, a parameter acquiring unit 420 and a sound effect processing unit 430.
An account acquiring unit 410, configured to acquire a first user account bound to a target application when the target application runs.
The parameter obtaining unit 420 is configured to obtain a reference sound processing parameter, where the reference sound processing parameter is a sound processing parameter of an electronic device where a target application bound to a second user account is located, and the second user account is an account associated with the first user account.
As one way, the parameter acquiring unit 420 includes:
a data request subunit 421, configured to send an associated device obtaining request to a server, where the associated device obtaining request is used to trigger the server to obtain a second user account associated with the first user account, and obtain a device identifier of an associated device, and the associated device is a device identifier of an electronic device that runs in a target application program bound to the second user account and is in the same local area network as the electronic device that sends the associated device obtaining request.
A data receiving subunit 422, configured to receive the device identifier returned by the server.
A parameter obtaining subunit 423, configured to establish a local area network link with the associated device in a local area network based on the device identifier, and obtain, through the local area network link, a sound effect processing parameter of the associated device, where the sound effect processing parameter is used as a reference sound effect processing parameter.
And the sound effect processing unit 430 is configured to adjust the sound effect processing parameter of the electronic device where the target application program bound to the first user account is located based on the reference sound effect processing parameter.
Referring to fig. 10, in an electronic device, an audio processing apparatus 500 provided in the present application runs on the electronic device, the apparatus 500 includes: an account number acquiring unit 510, a parameter requesting unit 520, a parameter receiving unit 530 and a sound effect processing unit 540.
An account acquiring unit 510, configured to acquire a first user account bound to a target application when the target application runs.
A parameter requesting unit 520, configured to send a parameter obtaining request to a server, where the parameter obtaining request is used to trigger the server to obtain a second user account associated with the first user account, and obtain sound effect processing parameters of an electronic device where a target application program bound to the second user account is located.
As a manner, the parameter requesting unit 520 is further configured to obtain a second user account determined from a plurality of accounts associated with the first user account; and sending a parameter acquisition request carrying the second user account to the server to trigger the server to acquire the second user account from the parameter acquisition request.
The parameter receiving unit 530 takes the received sound effect processing parameters returned by the server as reference sound effect processing parameters.
Optionally, the parameter obtaining request is used to trigger the server to obtain a second user account associated with the first user account, and obtain sound effect processing parameters of an electronic device running a target application program bound to the second user account and located in the same local area network as the electronic device sending the parameter obtaining request.
And the sound effect processing unit 540 is configured to adjust the sound effect processing parameter of the electronic device where the target application program bound to the first user account is located, based on the reference sound effect processing parameter.
Referring to fig. 6, the sound effect processing apparatus 600 provided by the present application is operated on an electronic device, and the apparatus 600 includes: an account number acquiring unit 610, a parameter requesting unit 620, a path acquiring unit 630 and an audio processing unit 640.
The account acquiring unit 610 acquires a first user account bound to a target application when the target application runs.
The parameter obtaining unit 620 obtains a reference sound processing parameter, where the reference sound processing parameter is a sound processing parameter of an electronic device where a target application program bound to a second user account is located, and the second user account is an account associated with the first user account.
A path acquisition unit 630 for acquiring a target audio path determined from the plurality of audio output paths.
And the sound effect processing unit 640 is used for adjusting the sound effect processing parameters of the target audio channel in the electronic equipment based on the reference sound effect processing parameters.
It should be noted that, as will be clear to those skilled in the art, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. In the several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other type of coupling. In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
It should be noted that, in the present application, it is a prior art that can be specifically applied to how to encode audio data according to the audio encoding type, and the present application will not be described in detail.
To sum up, according to the sound effect processing method, the sound effect processing device and the electronic equipment provided by the application, when a target application program runs, a first user account bound with the target application program is obtained, then a second user account associated with the first user account is obtained, sound effect processing parameters of the electronic equipment where the target application program bound with the second user account is located are used as reference sound effect processing parameters, and the sound effect processing parameters of the electronic equipment where the target application program bound with the first user account is located are adjusted based on the reference sound effect processing parameters. Therefore, the sound effect processing parameters of the electronic equipment where the target application program of the first user account is located can be adjusted according to the sound effect processing parameters of the electronic equipment where the target application program of the second user account associated with the first user account is located, and then the electronic equipment where the target application program of the associated user account is operated can have the same or similar sound effect output, so that the flexibility of sound effect adjustment is improved, and the user experience is also improved.
An electronic device provided by the present application will be described with reference to fig. 7.
Referring to fig. 7, based on the sound processing method and apparatus, another electronic device 100 capable of executing the terminal control method is further provided in the embodiment of the present application. Electronic device 100 includes one or more processors 102 (only one shown), memory 104, wireless module 106, and audio module 108 coupled to each other. The memory 104 stores therein a program capable of executing the contents of the foregoing embodiments, and the processor 102 executes the program stored in the memory 104.
The Memory 104 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 104 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 104 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area may also store data created by the terminal 100 in use, such as a phonebook, audio-video data, chat log data, and the like.
The wireless module 106 is configured to receive and transmit electromagnetic waves, and achieve interconversion between the electromagnetic waves and the electrical signals, so as to communicate with a communication network or other devices, for example, an audio playing device. The wireless module 106 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The wireless module 106 may communicate with various networks, such as the internet, an intranet, a wireless network, or other electronic devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The wireless networks described above may use a variety of communication standards, protocols, and technologies, including but not limited to the IEEE 802 protocol and the bluetooth protocol, and may even include those that are not currently being developed.
Further, the audio module 108 may be used to process audio output by applications running on the electronic device 100. For example, the audio module 108 may receive audio processing parameters obtained by the wireless module 106 from other electronic devices and then adjust the audio processing parameters of the audio module 108.
Referring to fig. 8, a block diagram of a computer-readable storage medium provided in an embodiment of the present application is shown. The computer-readable medium 800 has stored therein a program code that can be called by a processor to execute the method described in the above-described method embodiments.
The computer-readable storage medium 800 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 800 includes a non-volatile computer-readable medium. The computer readable storage medium 800 has storage space for program code 810 to perform any of the method steps of the method described above. The program code can be read from and written to one or more computer program products. The program code 810 may be compressed, for example, in a suitable form.
For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.
Claims (8)
1. A sound effect processing method is applied to electronic equipment, and the method comprises the following steps:
when a target application program runs, acquiring a first user account bound by the target application program, wherein a plurality of accounts associated with the first user account are provided, and the first user account and the plurality of associated accounts belong to the same group;
obtaining a second user account determined from a plurality of accounts associated with the first user account;
sending a parameter acquisition request carrying the second user account to a server, wherein the parameter acquisition request is used for triggering the server to acquire the second user account associated with the first user account from the parameter acquisition request and then acquiring sound effect processing parameters of the electronic equipment where a target application program bound with the second user account is located;
if the sound effect processing parameters returned by the server are received and correspond to a manual configuration identifier, starting timing for a preset time length, wherein the manual configuration identifier represents that the sound effect processing parameters returned by the server are manually selected by the user to which the second user account belongs;
if the server does not return the sound effect processing parameters configured with the manual operation identifier within the preset time span, taking the received sound effect processing parameters returned by the server as reference sound effect processing parameters, wherein the reference sound effect processing parameters are sound effect processing parameters of electronic equipment where a target application program bound with a second user account is located, the second user account is an account associated with the first user account, and if new sound effect processing parameters configured with the manual operation identifier are obtained again within the preset time span, timing the preset time span from the new start;
and adjusting the sound effect processing parameters of the electronic equipment where the target application program bound with the first user account is located based on the reference sound effect processing parameters.
2. The method according to claim 1, wherein the parameter obtaining request is used to trigger the server to obtain a second user account associated with the first user account, and obtain sound effect processing parameters of an electronic device running a target application program bound to the second user account, the electronic device being on the same local area network as the electronic device sending the parameter obtaining request.
3. The method of any of claims 1-2, wherein the target application is a predetermined game class application, and the first user account and the second user account belong to the same game group.
4. The method of claim 1, wherein the electronic device has a plurality of audio output channels, each of the audio output channels outputting a different type of audio; the step of adjusting the sound effect processing parameters of the electronic equipment where the target application program is located based on the reference sound effect processing parameters comprises the following steps:
obtaining a target audio channel determined from the plurality of audio output channels;
and adjusting the sound effect processing parameters of the target audio channel in the electronic equipment based on the reference sound effect processing parameters.
5. The method of claim 4, wherein the step of obtaining a target audio pathway determined from the plurality of audio output pathways comprises:
determining an audio output scene corresponding to the current display interface of the target application program, wherein the audio output scene comprises one of a game interface scene, a pure audio output scene and a video playing scene;
and acquiring a target audio channel corresponding to the audio output scene.
6. An audio processing apparatus, operable on an electronic device, the apparatus comprising:
the system comprises an account acquisition unit, a first service unit and a second service unit, wherein the account acquisition unit is used for acquiring a first user account bound by a target application program when the target application program runs, the number of accounts associated with the first user account is multiple, and the first user account and the multiple associated accounts belong to the same group;
a parameter obtaining unit, configured to obtain a second user account determined from multiple accounts associated with the first user account, and send a parameter obtaining request carrying the second user account to a server, where the parameter obtaining request is used to trigger the server to obtain, from the parameter obtaining request, a second user account associated with the first user account, and then obtain sound processing parameters of an electronic device in which a target application program bound to the second user account is located; if the sound effect processing parameters returned by the server are received and correspond to a manual configuration identifier, starting timing for a preset time length, wherein the manual configuration identifier represents that the sound effect processing parameters returned by the server are manually selected by the user to which the second user account belongs; if the server does not return the sound effect processing parameters configured with the manual operation identifier within the preset time span, taking the received sound effect processing parameters returned by the server as reference sound effect processing parameters, wherein the reference sound effect processing parameters are sound effect processing parameters of electronic equipment where a target application program bound with a second user account is located, the second user account is an account associated with the first user account, and if new sound effect processing parameters configured with the manual operation identifier are obtained again within the preset time span, timing the preset time span from the new start;
and the sound effect processing unit is used for adjusting the sound effect processing parameters of the electronic equipment where the target application program bound with the first user account is located based on the reference sound effect processing parameters.
7. An electronic device comprising one or more processors and memory;
one or more programs stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 1-5.
8. A computer-readable storage medium, having program code stored therein, wherein the method of any of claims 1-5 is performed when the program code is run.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811028138.7A CN109410900B (en) | 2018-09-04 | 2018-09-04 | Sound effect processing method and device and electronic equipment |
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 and device and electronic equipment |
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 and device and electronic equipment |
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 | 合众新能源汽车股份有限公司 | Vehicle binding activation vehicle-mounted and mobile phone synchronous interaction mode system and application method thereof |
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 | 广东欧珀移动通信有限公司 | A kind of sound effect control method and apparatus |
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 |
CN105955700A (en) * | 2016-06-16 | 2016-09-21 | 广东欧珀移动通信有限公司 | Sound effect adjusting method and user terminal |
CN106095384B (en) * | 2016-06-16 | 2019-03-15 | Oppo广东移动通信有限公司 | A kind of effect adjusting method and user terminal |
CN106550031B (en) * | 2016-10-25 | 2019-07-23 | Oppo广东移动通信有限公司 | The method and device of data backup |
CN108353019B (en) * | 2016-11-03 | 2021-06-22 | 华为技术有限公司 | Method, terminal and server for associating users |
-
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 and device and electronic equipment | |
CN109107158B (en) | Sound effect processing method and device, electronic equipment and computer readable storage medium | |
CN109445740B (en) | Audio playing method and device, electronic equipment and storage medium | |
CN109151194B (en) | Data transmission method, device, electronic equipment and storage medium | |
CN105049319B (en) | Good friend's adding method and system, client and server | |
CN109151212B (en) | Equipment control method and device and electronic equipment | |
CN107911361B (en) | Voice management method and device supporting multiple sessions, terminal equipment and storage medium | |
CN106454497A (en) | Method and device for screen-mirroring playing of video | |
CN109274407B (en) | Data transmission method, device, electronic equipment and storage medium | |
CN106155458B (en) | Multimedia message playing method and device | |
CN109450851B (en) | Device connection method, electronic device, and computer-readable medium | |
CN104333643B (en) | Add the method for contact person, system and terminal | |
CN109218528B (en) | Sound effect processing method and device and electronic equipment | |
CN109699019B (en) | Broadcast scanning method, device, electronic equipment and storage medium | |
CN111431734A (en) | Network distribution method of intelligent equipment and related device | |
CN111132111A (en) | BLE-based audio sharing method and system and computer-readable storage medium | |
CN109257732B (en) | Equipment control method and device and electronic equipment | |
CN108600887B (en) | Touch control method based on wireless earphone and related product | |
CN111294881A (en) | Network link switching method and device, client and computer readable storage medium | |
CN112040057B (en) | Device control method, device, electronic device, control system and storage medium | |
CN106095132B (en) | Playback equipment keypress function setting method and device | |
CN105704106B (en) | A kind of visualization IVR implementation method and mobile terminal | |
CN115314865A (en) | Audio processing method and device, electronic equipment and computer readable medium | |
CN106060620B (en) | One-key interaction method based on remote controller, first client and system | |
CN109304035B (en) | Game time length obtaining method and device, terminal equipment and 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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20220621 |