CN105094808B - A kind of control device and method - Google Patents
A kind of control device and method Download PDFInfo
- Publication number
- CN105094808B CN105094808B CN201510362410.5A CN201510362410A CN105094808B CN 105094808 B CN105094808 B CN 105094808B CN 201510362410 A CN201510362410 A CN 201510362410A CN 105094808 B CN105094808 B CN 105094808B
- Authority
- CN
- China
- Prior art keywords
- application
- recording effect
- effect parameter
- recording
- audio data
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 54
- 230000000694 effects Effects 0.000 claims abstract description 159
- 238000012545 processing Methods 0.000 claims abstract description 50
- 238000001514 detection method Methods 0.000 claims abstract description 4
- 238000012544 monitoring process Methods 0.000 claims description 14
- 230000006870 function Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 8
- 238000004891 communication Methods 0.000 description 1
- 235000019800 disodium phosphate Nutrition 0.000 description 1
- 238000005516 engineering process Methods 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
Landscapes
- Reverberation, Karaoke And Other Acoustics (AREA)
Abstract
The invention discloses a kind of control device, described device includes:Acquiring unit, for obtaining the mark of the first application;Detection unit, for detecting whether first application calls recording access;Determining unit, for when recording access described in first application call, determining to apply the recording effect parameter matched with described first according to the mark of the described first application;Processing unit, for being handled based on the recording effect parameter the voice data gathered.The present invention further simultaneously discloses a kind of control method and electronic equipment.Using technical scheme, the usage experience of user in real time according to the type automatic switchover recording effect of the application of front stage operation, can be improved.
Description
Technical Field
The present invention relates to audio processing technologies, and in particular, to a control device and method.
Background
At present, some electronic devices can support multiple audio input applications, such as call, QQ, WeChat, recorder, video, karaoke, etc., and these audio input applications have different processing requirements on input sound, for example, applications such as call, QQ, WeChat, etc., which mainly aim at communication, require highlighting human voice of a target user, and suppress or eliminate steady-state and unsteady-state noise existing in the environment; for applications such as recorders and video recorders mainly based on recording, high fidelity and restoration are required, and sound details in the field environment are kept as much as possible; for karaoke applications, it is desirable to create a virtual studio reverberation effect to create an immersive auditory effect for the user. Along with the functions of the user executed by using the electronic equipment are more and more, the requirement of the user on the recording effect is higher and higher, however, the prior art does not support the recording effect matched with the foreground running application through automatic switching, and even some electronic equipment does not support manual switching, is not humanized enough, and cannot meet the increasing requirements of the user.
Disclosure of Invention
In view of the above, the main objective of the present invention is to provide a control device and method, which can automatically switch the recording effect according to the type of the application running in the foreground in real time, so as to improve the user experience.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the present invention provides a control device, the device comprising:
an acquisition unit, configured to acquire an identifier of a first application;
the detection unit is used for detecting whether the first application calls a recording interface or not;
the determining unit is used for determining a sound recording effect parameter matched with the first application according to the identifier of the first application when the first application calls the sound recording interface;
and the processing unit is used for processing the acquired audio data based on the recording effect parameters.
In the foregoing solution, preferably, the apparatus further includes:
the setting unit is used for presetting a recording effect parameter library;
the recording effect parameter base stores the identifiers of the applications and the recording effect parameters corresponding to the identifiers.
In the foregoing solution, preferably, the obtaining unit is further configured to:
monitoring the application running in the foreground in real time;
when the application running in the foreground is switched, acquiring an identifier of a first application; wherein the first application is a switched application.
In the foregoing solution, preferably, the determining unit is further configured to:
inquiring the recording effect parameter corresponding to the identifier of the first application from a recording effect parameter library;
and determining the sound recording effect parameter corresponding to the identifier of the first application as the sound recording effect parameter matched with the first application.
In the foregoing solution, preferably, the processing unit is further configured to:
acquiring audio data collected by a sensor;
and processing the audio data based on the recording effect parameters to obtain processed audio data.
In the foregoing solution, preferably, the apparatus further includes:
the encoding unit is used for encoding the processed audio data according to a preset rule;
and the storage unit is used for storing the coded audio data.
The invention also provides a control method, which comprises the following steps:
acquiring an identifier of a first application;
detecting whether the first application calls a recording interface;
when the first application calls the recording interface, determining a recording effect parameter matched with the first application according to the identifier of the first application;
and processing the collected audio data based on the recording effect parameters.
In the foregoing solution, preferably, the method further includes:
presetting a recording effect parameter library;
the recording effect parameter base stores the identifiers of the applications and the recording effect parameters corresponding to the identifiers.
In the foregoing solution, preferably, the acquiring the identifier of the first application includes:
monitoring the application running in the foreground in real time;
when the application running in the foreground is switched, acquiring an identifier of a first application; wherein the first application is a switched application.
In the foregoing solution, preferably, the determining, according to the identifier of the first application, the sound recording effect parameter matched with the first application includes:
inquiring the recording effect parameter corresponding to the identifier of the first application from a recording effect parameter library;
and determining the sound recording effect parameter corresponding to the identifier of the first application as the sound recording effect parameter matched with the first application.
In the foregoing solution, preferably, the processing the acquired audio data based on the recording effect parameter includes:
acquiring audio data collected by a sensor;
and processing the audio data based on the recording effect parameters to obtain processed audio data.
In the foregoing solution, preferably, after processing the acquired audio data based on the recording effect parameter, the method further includes:
and coding the processed audio data according to a preset rule, and storing the coded audio data.
The invention also provides electronic equipment which comprises the control device.
The control device and the method provided by the invention obtain the identifier of the first application; detecting whether the first application calls a recording interface; when the first application calls the recording interface, determining a recording effect parameter matched with the first application according to the identifier of the first application; and processing the collected audio data based on the recording effect parameters. Therefore, the recording effect can be automatically switched according to the type of the application running on the foreground in real time, and the use experience of a user is improved.
Drawings
Fig. 1 is a first schematic flow chart illustrating an implementation process of a control method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an implementation flow of the control method according to the embodiment of the present invention;
fig. 3 is a schematic flow chart illustrating an implementation process of the control method according to the embodiment of the present invention;
fig. 4 is a schematic flow chart illustrating an implementation process of the control method according to the embodiment of the present invention;
fig. 5 is a first schematic structural diagram of a control device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a control device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a control device according to an embodiment of the present invention.
Detailed Description
So that the manner in which the features and aspects of the present invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings.
Example one
Fig. 1 is a schematic flow chart illustrating an implementation process of a control method according to an embodiment of the present invention, where the control method in the embodiment is applicable to an electronic device, as shown in fig. 1, the control method mainly includes the following steps:
step 101: an identification of a first application is obtained.
Here, the identification may refer to information capable of uniquely identifying the first application, such as an application name.
Preferably, the obtaining the identifier of the first application may include:
monitoring the application running in the foreground in real time;
when the application running in the foreground is switched, acquiring an identifier of a first application; wherein the first application is a switched application.
Specifically, when the application running in the foreground is switched, the system issues a broadcast notification; wherein, the broadcast notification carries an identifier of the first application.
Here, the system may be an Android (Android) system.
That is, the identifier of the first application may be obtained from a broadcast notification issued by the system.
In this embodiment, the first application may be an application carried by the electronic device system, for example, a clock application, an address book application, or the like, or may also be a third-party application installed on the electronic device, for example, a game application, an instant chat application, a mail application, or the like.
Preferably, the first application is an application supporting audio entry, such as a call application, a QQ application, a WeChat application, a recorder application, a video recording application, a karaoke application, and the like.
Step 102: and detecting whether the first application calls a recording interface.
Here, the recording interface may be a recording interface provided by a system of the electronic device. Specifically, whether the first Application calls a sound recording Interface may be determined by detecting whether an Application Programming Interface (API) is called.
That is, the real-time monitoring recording interface is called, and if so, step 103 is executed.
Step 103: and when the first application calls the recording interface, determining the recording effect parameter matched with the first application according to the identifier of the first application.
That is to say, only when the identifier of the first application is obtained and the first application calls the recording interface, the recording effect parameter matched with the first application is determined according to the identifier of the first application.
Preferably, the method may further comprise:
presetting a recording effect parameter library;
the recording effect parameter base stores the identifiers of the applications and the recording effect parameters corresponding to the identifiers.
Specifically, in the sound recording effect parameter library, the identifiers of the applications and the sound recording effect parameters corresponding to the identifiers may be stored in a list form.
It should be noted that the recording effect parameter library may be stored in the electronic device, for example, in a memory of the electronic device; may also be stored in the second device; wherein the second device is a device capable of connecting with the electronic device, for example, the second device may be a server.
Preferably, the determining, according to the identifier of the first application, a sound recording effect parameter matching with the first application may include:
inquiring the recording effect parameter corresponding to the identifier of the first application from a recording effect parameter library;
and determining the sound recording effect parameter corresponding to the identifier of the first application as the sound recording effect parameter matched with the first application.
Step 104: and processing the collected audio data based on the recording effect parameters.
Preferably, the processing the acquired audio data based on the recording effect parameter may include:
acquiring audio data collected by a sensor;
and processing the audio data based on the recording effect parameters to obtain processed audio data.
Specifically, when the first application calls a recording interface, the audio data may be collected through a sensor, for example, the sensor may be an acquisition card capable of acquiring sound data, or an input device such as a microphone.
Preferably, after the processing the collected audio data based on the recording effect parameter, the method further includes:
and coding the processed audio data according to a preset rule, and storing the coded audio data.
Here, how to perform encoding specifically is the prior art, and is not described herein again.
Specifically, the preset rule may be a default encoding format of the electronic device, or may be an encoding format specified by a user.
Specifically, the UI interface of the electronic device may be provided with an audio encoding format dialog box in which the audio encoding format supported by the electronic device is presented for selection by the user according to his preference or habit.
In particular, when the electronic device has a touch screen (i.e., supports touch input), the user may select the audio encoding format by touching with a finger, a stylus, or the like. When the electronic device does not support touch input, the audio encoding format may be selected through the associated key.
Specifically, after recording the audio encoding format selected by the user for the first time, the audio encoding format set by the user for the first time may also be set as the default audio encoding format until the user actively modifies the audio encoding format again.
In this embodiment, the audio encoding format that can be selected by the user may be various, such as: CD. WAVE, AIFF, AU, MPEG, MP3, MIDI, WMA, VQF, AMR, etc.
In this embodiment, the electronic device is at least configured with:
sensors for collecting audio data, such as microphones;
and processors for calculating and processing the sound recording effect, such as a Central Processing Unit (CPU), a Digital Signal Processor (DSP).
The electronic device is taken as a mobile phone for explanation. Assuming that the application running on the foreground of the mobile phone is a game application, when a user selects a WeChat application, the application of the foreground is switched, namely the game application is changed into the WeChat application, and at the moment, the system informs the application of the foreground of the mobile phone of the change and informs the switched application (namely the identification of the WeChat application); when a user selects a voice call or a video call in a WeChat application interface, the WeChat application calls a recording interface, when the mobile phone detects that the WeChat application calls the recording interface, a recording effect parameter corresponding to the WeChat application is inquired from a recording effect parameter library, audio data collected by a microphone is obtained, and the audio data is processed based on the recording effect parameter to obtain the processed audio data.
In the embodiment of the invention, the identifier of a first application is obtained; detecting whether the first application calls a recording interface; when the first application calls the recording interface, determining a recording effect parameter matched with the first application according to the identifier of the first application; and processing the collected audio data based on the recording effect parameters. Therefore, the recording effect can be automatically switched according to the type of the application running on the foreground in real time, and the use experience of a user is improved.
Example two
Fig. 2 is a schematic view of an implementation flow of a control method according to an embodiment of the present invention, where the control method in the embodiment is applicable to an electronic device, as shown in fig. 2, the control method mainly includes the following steps:
step 201: and presetting a recording effect parameter library.
The recording effect parameter base stores the identifiers of the applications and the recording effect parameters corresponding to the identifiers.
It should be noted that the recording effect parameter library may be stored in the electronic device, for example, in a memory of the electronic device; may also be stored in the second device; wherein the second device is a device capable of connecting with the electronic device, for example, the second device may be a server.
Step 202: an identification of a first application is obtained.
Here, the identification may refer to information capable of uniquely identifying the first application, such as an application name.
Preferably, the obtaining the identifier of the first application may include:
monitoring the application running in the foreground in real time;
when the application running in the foreground is switched, acquiring an identifier of a first application; wherein the first application is a switched application.
Specifically, when the application running in the foreground is switched, the system issues a broadcast notification; wherein, the broadcast notification carries an identifier of the first application. That is, the identifier of the first application may be obtained from a broadcast notification issued by the system.
Preferably, the first application is an application supporting audio entry, such as a call application, a QQ application, a WeChat application, a recorder application, a video recording application, a karaoke application, and the like.
Step 203: and detecting whether the first application calls a recording interface.
Here, the recording interface may be a recording interface provided by a system of the electronic device.
Specifically, whether the first application calls a recording interface may be determined by detecting whether an API is called.
Step 204: and when the first application calls the recording interface, determining the recording effect parameter matched with the first application according to the identifier of the first application.
That is to say, only when the identifier of the first application is obtained and the first application calls the recording interface, the recording effect parameter matched with the first application is determined according to the identifier of the first application.
Step 205: and processing the collected audio data based on the recording effect parameters.
Preferably, the processing the acquired audio data based on the recording effect parameter may include:
acquiring audio data collected by a sensor;
and processing the audio data based on the recording effect parameters to obtain processed audio data.
Therefore, the recording effect can be automatically switched according to the change of foreground application, and the requirements of users on the recording effect under different applications are met.
Specifically, when the first application calls a recording interface, the audio data may be collected through a sensor, for example, the sensor may be an acquisition card capable of acquiring sound data, or an input device such as a microphone.
In this embodiment, the electronic device is at least configured with:
sensors for collecting audio data, such as microphones;
and processors, such as CPUs, DSPs, for computing and processing the recording effect.
The electronic device is still taken as a mobile phone for explanation. Supposing that the application running on the foreground of the mobile phone is a WeChat application, when a user selects a voice call or a video call in a WeChat application interface, the WeChat application calls a recording interface, the mobile phone acquires an optimal recording effect parameter corresponding to the WeChat application, and under the optimal recording effect parameter, steady-state and unsteady-state noises existing in the environment are inhibited or eliminated, so that the voice quality of the voice call or the video call under the WeChat application is in an optimal state; when the user closes the voice call or the video call, the WeChat application quits the call of the recording interface; the mobile phone continues to monitor whether the application of the foreground is switched, when the user starts the recorder application, the mobile phone acquires an optimal recording effect parameter corresponding to the recorder application, and steady-state and unsteady-state noises existing in the environment are not inhibited or eliminated under the optimal recording effect parameter, so that the recorder application can record various sounds in the current environment. Therefore, the recording effect can be automatically switched according to the change of foreground application, and the requirements of users on the recording effect under different applications are met.
In the embodiment of the invention, a recording effect parameter library is preset; acquiring an identifier of a first application; detecting whether the first application calls a recording interface; when the first application calls the recording interface, determining a recording effect parameter matched with the first application according to the identifier of the first application; and processing the collected audio data based on the recording effect parameters. Therefore, the optimal recording effect parameter corresponding to the application supporting the audio input is stored in the recording effect parameter library, when the application of the foreground is switched, the optimal recording effect parameter corresponding to the switched application can be acquired, the collected sound data is processed based on the optimal recording effect parameter, and the hearing experience of a user can be greatly improved.
EXAMPLE III
Fig. 3 is a schematic flow chart illustrating an implementation process of a control method according to an embodiment of the present invention, where the control method in the embodiment is applicable to an electronic device, as shown in fig. 3, the control method mainly includes the following steps:
step 301: and presetting a recording effect parameter library.
The recording effect parameter base stores the identifiers of the applications and the recording effect parameters corresponding to the identifiers.
It should be noted that the recording effect parameter library may be stored in the electronic device, for example, in a memory of the electronic device; may also be stored in the second device; wherein the second device is a device capable of connecting with the electronic device, for example, the second device may be a server.
Step 302: an identification of a first application is obtained.
Here, the identification may refer to information capable of uniquely identifying the first application, such as an application name.
Preferably, the obtaining the identifier of the first application may include:
monitoring the application running in the foreground in real time;
when the application running in the foreground is switched, acquiring an identifier of a first application; wherein the first application is a switched application.
Specifically, when the application running in the foreground is switched, the system issues a broadcast notification; wherein, the broadcast notification carries an identifier of the first application. That is, the identifier of the first application may be obtained from a broadcast notification issued by the system.
Preferably, the first application is an application supporting audio entry, such as a call application, a QQ application, a WeChat application, a recorder application, a video recording application, a karaoke application, and the like.
Step 303: and detecting whether the first application calls a recording interface.
Here, the recording interface may be a recording interface provided by a system of the electronic device.
Specifically, whether the first application calls a recording interface may be determined by detecting whether an API is called.
Step 304: and when the first application calls the recording interface, determining the recording effect parameter matched with the first application according to the identifier of the first application.
That is to say, only when the identifier of the first application is obtained and the first application calls the recording interface, the recording effect parameter matched with the first application is determined according to the identifier of the first application.
Step 305: and processing the collected audio data based on the recording effect parameters.
Preferably, the processing the acquired audio data based on the recording effect parameter may include:
acquiring audio data collected by a sensor;
and processing the audio data based on the recording effect parameters to obtain processed audio data.
Specifically, when the first application calls a recording interface, the audio data may be collected through a sensor, for example, the sensor may be an acquisition card capable of acquiring sound data, or an input device such as a microphone.
Step 306: and coding the processed audio data according to a preset rule, and storing the coded audio data.
Here, how to perform encoding specifically is the prior art, and is not described herein again.
Specifically, the preset rule may be a default encoding format of the electronic device, or may be an encoding format specified by a user.
Specifically, the UI interface of the electronic device may be provided with an audio encoding format dialog box in which the audio encoding format supported by the electronic device is presented for selection by the user according to his preference or habit.
In particular, when the electronic device has a touch screen (i.e., supports touch input), the user may select the audio encoding format by touching with a finger, a stylus, or the like. When the electronic device does not support touch input, the audio encoding format may be selected through the associated key.
Specifically, after recording the audio encoding format selected by the user for the first time, the audio encoding format set by the user for the first time may also be set as the default audio encoding format until the user actively modifies the audio encoding format again.
In this embodiment, the audio encoding format that can be selected by the user may be various, such as: CD. WAVE, AIFF, AU, MPEG, MP3, MIDI, WMA, VQF, AMR, etc.
In this embodiment, the electronic device is at least configured with:
sensors for collecting audio data, such as microphones;
and a processor, such as a CPU or DSP, for computing and processing the recording effect.
In the embodiment of the invention, a recording effect parameter library is preset; acquiring an identifier of a first application; detecting whether the first application calls a recording interface; when the first application calls the recording interface, determining a recording effect parameter matched with the first application according to the identifier of the first application; processing the collected audio data based on the recording effect parameters; and coding the processed audio data according to a preset rule, and storing the coded audio data. Therefore, the collected sound data are processed based on the optimal recording effect parameters, the processed audio data are encoded according to the preset rule, the encoded audio data are stored, and the use experience of a user can be improved.
Example four
Fig. 4 is a schematic view of an implementation flow of a control method according to an embodiment of the present invention, where the control method in the embodiment may be applied to an electronic device, as shown in fig. 4, the control method mainly includes the following steps:
step 401: and monitoring the application running in the foreground.
Step 402: when the application running in the foreground is switched, the identification of the first application is obtained.
Wherein the first application is a switched application.
Here, the identification may refer to information capable of uniquely identifying the first application, such as an application name.
Specifically, when the application running in the foreground is switched, the system issues a broadcast notification; wherein, the broadcast notification carries an identifier of the first application. That is, the identifier of the first application may be obtained from a broadcast notification issued by the system.
Preferably, the first application is an application supporting audio entry, such as a call application, a QQ application, a WeChat application, a recorder application, a video recording application, a karaoke application, and the like.
Step 403: and judging whether the first application calls a recording interface, if so, executing a step 404, and otherwise, continuously monitoring the application running in the foreground currently.
Here, the recording interface may be a recording interface provided by a system of the electronic device.
Specifically, whether the first application calls a recording interface may be determined by detecting whether an API is called.
Step 404: and determining the sound recording effect parameters matched with the first application according to the identifier of the first application.
Preferably, the determining, according to the identifier of the first application, a sound recording effect parameter matching with the first application may include:
inquiring the recording effect parameter corresponding to the identifier of the first application from a recording effect parameter library;
and determining the sound recording effect parameter corresponding to the identifier of the first application as the sound recording effect parameter matched with the first application.
Step 405: and processing the collected audio data based on the recording effect parameters.
Preferably, the processing the acquired audio data based on the recording effect parameter may include:
acquiring audio data collected by a sensor;
and processing the audio data based on the recording effect parameters to obtain processed audio data.
Specifically, when the first application calls a recording interface, the audio data may be collected through a sensor, for example, the sensor may be an acquisition card capable of acquiring sound data, or an input device such as a microphone.
Step 406: coding the processed audio data according to a preset rule, and storing the coded audio data; then, the monitoring of the application currently running in the foreground is continued.
Here, how to perform encoding specifically is the prior art, and is not described herein again.
Specifically, the preset rule may be a default encoding format of the electronic device, or may be an encoding format specified by a user.
In this embodiment, the audio encoding format that can be selected by the user may be various, such as: CD. WAVE, AIFF, AU, MPEG, MP3, MIDI, WMA, VQF, AMR, etc.
The main body of the execution of the above steps 401 to 406 may be an electronic device, or may be a control device located in the electronic device.
In the embodiment of the invention, the application of the foreground can be monitored in real time, when the application of the foreground is switched and the application calls the recording interface, the optimal recording effect parameter corresponding to the switched application can be obtained, and the acquired sound data is processed based on the optimal recording effect parameter, so that the requirements of users on the recording effects under different applications are met.
EXAMPLE five
Fig. 5 is a schematic diagram of a first configuration of a control device according to an embodiment of the present invention, and as shown in fig. 5, the control device includes an obtaining unit 51, a detecting unit 52, a determining unit 53, and a processing unit 54; wherein,
the obtaining unit 51 is configured to obtain an identifier of the first application;
the detecting unit 52 is configured to detect whether the first application calls a recording interface;
the determining unit 53 is configured to determine, according to the identifier of the first application, a recording effect parameter matched with the first application when the first application calls the recording interface;
the processing unit 54 is configured to process the acquired audio data based on the recording effect parameter.
Preferably, the obtaining unit 51 is further configured to:
monitoring the application running in the foreground in real time;
when the application running in the foreground is switched, acquiring an identifier of a first application; wherein the first application is a switched application.
Here, the identification may refer to information capable of uniquely identifying the first application, such as an application name.
The control device can be arranged in electronic equipment.
The control device can automatically switch the recording effect in real time according to the type of the application running in the foreground of the electronic equipment, and improves the use experience of a user.
It should be understood by those skilled in the art that the functions of the units in the control device according to the embodiment of the present invention may be realized by analog circuits that implement the functions described in the embodiment of the present invention, or by running software that executes the functions described in the embodiment of the present invention on an intelligent terminal.
EXAMPLE six
Fig. 6 is a schematic diagram of a second configuration of the control device according to the embodiment of the present invention, and as shown in fig. 6, the control device includes an obtaining unit 51, a detecting unit 52, a determining unit 53, a processing unit 54, and a setting unit 55; wherein,
the setting unit 55 is configured to preset a recording effect parameter library; the recording effect parameter base stores identifiers of all applications and recording effect parameters corresponding to the identifiers;
the obtaining unit 51 is configured to obtain an identifier of the first application;
the detecting unit 52 is configured to detect whether the first application calls a recording interface;
the determining unit 53 is configured to determine, according to the identifier of the first application, a recording effect parameter matched with the first application when the first application calls the recording interface;
the processing unit 54 is configured to process the acquired audio data based on the recording effect parameter.
Preferably, the obtaining unit 51 is further configured to:
monitoring the application running in the foreground in real time;
when the application running in the foreground is switched, acquiring an identifier of a first application; wherein the first application is a switched application.
Here, the identification may refer to information capable of uniquely identifying the first application, such as an application name.
Preferably, the determining unit 53 is further configured to:
inquiring the recording effect parameter corresponding to the identifier of the first application from a recording effect parameter library;
and determining the sound recording effect parameter corresponding to the identifier of the first application as the sound recording effect parameter matched with the first application.
Preferably, the processing unit 54 is further configured to:
acquiring audio data collected by a sensor;
and processing the audio data based on the recording effect parameters to obtain processed audio data.
Specifically, when the first application calls a recording interface, the audio data may be collected through a sensor, for example, the sensor may be an acquisition card capable of acquiring sound data, or an input device such as a microphone.
The control device can be arranged in electronic equipment.
The control device of the embodiment can acquire the optimal recording effect parameter corresponding to the switched application when the application of the foreground is switched, and can process the collected sound data based on the optimal recording effect parameter, thereby greatly improving the hearing experience of a user.
It should be understood by those skilled in the art that the functions of the units in the control device according to the embodiment of the present invention may be realized by analog circuits that implement the functions described in the embodiment of the present invention, or by running software that executes the functions described in the embodiment of the present invention on an intelligent terminal.
EXAMPLE seven
Fig. 7 is a schematic diagram of a third configuration of a control device according to an embodiment of the present invention, and as shown in fig. 7, the control device includes an obtaining unit 51, a detecting unit 52, a determining unit 53, a processing unit 54, a setting unit 55, an encoding unit 56, and a storage unit 57; wherein,
the setting unit 55 is configured to preset a recording effect parameter library; the recording effect parameter base stores identifiers of all applications and recording effect parameters corresponding to the identifiers;
the obtaining unit 51 is configured to obtain an identifier of the first application;
the detecting unit 52 is configured to detect whether the first application calls a recording interface;
the determining unit 53 is configured to determine, according to the identifier of the first application, a recording effect parameter matched with the first application when the first application calls the recording interface;
the processing unit 54 is configured to process the acquired audio data based on the recording effect parameter;
the encoding unit 56 is configured to encode the processed audio data according to a preset rule;
the storage unit 57 is configured to store the encoded audio data.
Specifically, the storage unit 57 may also store the encoded audio data in a memory of the electronic device.
Here, how to perform encoding specifically is the prior art, and is not described herein again.
Specifically, the preset rule may be a default encoding format of the electronic device, or may be an encoding format specified by a user.
Preferably, the obtaining unit 51 is further configured to:
monitoring the application running in the foreground in real time;
when the application running in the foreground is switched, acquiring an identifier of a first application; wherein the first application is a switched application.
Here, the identification may refer to information capable of uniquely identifying the first application, such as an application name.
Preferably, the determining unit 53 is further configured to:
inquiring the recording effect parameter corresponding to the identifier of the first application from a recording effect parameter library;
and determining the sound recording effect parameter corresponding to the identifier of the first application as the sound recording effect parameter matched with the first application.
Preferably, the processing unit 54 is further configured to:
acquiring audio data collected by a sensor;
and processing the audio data based on the recording effect parameters to obtain processed audio data.
Specifically, when the first application calls a recording interface, the audio data may be collected through a sensor, for example, the sensor may be an acquisition card capable of acquiring sound data, or an input device such as a microphone.
The control device can be arranged in electronic equipment.
The control device of the embodiment can acquire the optimal recording effect parameter corresponding to the switched application when the application of the foreground is switched, process the acquired sound data based on the optimal recording effect parameter, encode the processed data, and store the encoded data, thereby greatly improving the hearing experience of the user.
It should be understood by those skilled in the art that the functions of the units in the control device according to the embodiment of the present invention may be realized by analog circuits that implement the functions described in the embodiment of the present invention, or by running software that executes the functions described in the embodiment of the present invention on an intelligent terminal.
An acquisition unit 81, a detection unit 82, a determination unit 83, a processing unit 84, a setting unit 85, an encoding unit 86, and a storage unit 87 in the control device; in practical applications, the control device or the electronic device to which the control device belongs may be implemented by a CPU, a DSP, a Programmable Gate Array (FPGA), or the like.
The invention also describes an electronic device comprising the control device described above.
Specifically, the schematic structural diagram of the control device may be as shown in fig. 5, fig. 6, or fig. 7, and will not be described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (12)
1. A control device, characterized in that the device comprises:
an acquisition unit, configured to acquire an identifier of a first application;
the detection unit is used for detecting whether the first application calls a recording interface or not;
the determining unit is used for determining a sound recording effect parameter matched with the first application according to the identifier of the first application when the first application calls the sound recording interface;
a processing unit, configured to process the audio data collected in the first application based on the recording effect parameter.
2. The apparatus of claim 1, further comprising:
the setting unit is used for presetting a recording effect parameter library;
the recording effect parameter base stores the identifiers of the applications and the recording effect parameters corresponding to the identifiers.
3. The apparatus of claim 2, wherein the obtaining unit is further configured to:
monitoring the application running in the foreground in real time;
when the application running in the foreground is switched, acquiring an identifier of a first application; wherein the first application is a switched application.
4. The apparatus of claim 2, wherein the determining unit is further configured to:
inquiring the recording effect parameter corresponding to the identifier of the first application from a recording effect parameter library;
and determining the sound recording effect parameter corresponding to the identifier of the first application as the sound recording effect parameter matched with the first application.
5. The apparatus of claim 1, wherein the processing unit is further configured to:
acquiring audio data collected by a sensor;
and processing the audio data based on the recording effect parameters to obtain processed audio data.
6. The apparatus of claim 1, further comprising:
the encoding unit is used for encoding the processed audio data according to a preset rule;
and the storage unit is used for storing the coded audio data.
7. A control method, characterized in that the method comprises:
acquiring an identifier of a first application;
detecting whether the first application calls a recording interface;
when the first application calls the recording interface, determining a recording effect parameter matched with the first application according to the identifier of the first application;
processing the audio data collected in the first application based on the recording effect parameter.
8. The method of claim 7, further comprising:
presetting a recording effect parameter library;
the recording effect parameter base stores the identifiers of the applications and the recording effect parameters corresponding to the identifiers.
9. The method of claim 8, wherein obtaining the identity of the first application comprises:
monitoring the application running in the foreground in real time;
when the application running in the foreground is switched, acquiring an identifier of a first application; wherein the first application is a switched application.
10. The method of claim 8, wherein determining the sound recording effect parameter matching the first application according to the identity of the first application comprises:
inquiring the recording effect parameter corresponding to the identifier of the first application from a recording effect parameter library;
and determining the sound recording effect parameter corresponding to the identifier of the first application as the sound recording effect parameter matched with the first application.
11. The method of claim 7, wherein the processing the captured audio data based on the recording effect parameter comprises:
acquiring audio data collected by a sensor;
and processing the audio data based on the recording effect parameters to obtain processed audio data.
12. The method of claim 7, wherein after processing the captured audio data based on the recording effect parameter, further comprising:
and coding the processed audio data according to a preset rule, and storing the coded audio data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510362410.5A CN105094808B (en) | 2015-06-26 | 2015-06-26 | A kind of control device and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510362410.5A CN105094808B (en) | 2015-06-26 | 2015-06-26 | A kind of control device and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105094808A CN105094808A (en) | 2015-11-25 |
CN105094808B true CN105094808B (en) | 2018-04-10 |
Family
ID=54575336
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510362410.5A Active CN105094808B (en) | 2015-06-26 | 2015-06-26 | A kind of control device and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105094808B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105847575B (en) * | 2016-04-27 | 2020-03-13 | 努比亚技术有限公司 | Device and method for calling recorder |
CN105827849A (en) * | 2016-04-28 | 2016-08-03 | 维沃移动通信有限公司 | Method for adjusting sound effect and mobile terminal |
CN106170032A (en) * | 2016-09-22 | 2016-11-30 | 乐视控股(北京)有限公司 | The way of recording of a kind of speech data and device |
CN106648921A (en) * | 2016-09-30 | 2017-05-10 | 北京奇虎科技有限公司 | Method for achieving recording data share in Android system and electronic device |
CN108335701B (en) * | 2018-01-24 | 2021-04-13 | 青岛海信移动通信技术股份有限公司 | Method and equipment for sound noise reduction |
CN112071338A (en) * | 2019-06-10 | 2020-12-11 | 海信视像科技股份有限公司 | Recording control method and device and display equipment |
CN111736795A (en) * | 2019-06-24 | 2020-10-02 | 北京京东尚科信息技术有限公司 | Audio processing method, device, equipment and storage medium |
CN112509608B (en) * | 2020-11-25 | 2022-03-08 | 广州朗国电子科技股份有限公司 | Method and device for recording sound along with channel of USB (Universal Serial bus) equipment and storage medium |
CN113726940B (en) * | 2021-06-15 | 2023-08-22 | 北京荣耀终端有限公司 | Recording method and device |
CN114510290A (en) * | 2022-01-26 | 2022-05-17 | 海宁奕斯伟集成电路设计有限公司 | Sound effect processing method and device, electronic equipment, storage medium and program product |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1728816A (en) * | 2004-07-27 | 2006-02-01 | 索尼株式会社 | Information-processing apparatus, information-processing methods, recording mediums, and programs |
CN1831829A (en) * | 2006-04-20 | 2006-09-13 | 北京理工大学 | Method for quickly forming voice data base for key word checkout task |
CN101295236A (en) * | 2008-06-24 | 2008-10-29 | 北京中星微电子有限公司 | Automatic sound recording method, system and device |
US8983535B2 (en) * | 2009-04-03 | 2015-03-17 | Ubiquity Broadcasting Corporation | Medical scan clip on |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080256613A1 (en) * | 2007-03-13 | 2008-10-16 | Grover Noel J | Voice print identification portal |
-
2015
- 2015-06-26 CN CN201510362410.5A patent/CN105094808B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1728816A (en) * | 2004-07-27 | 2006-02-01 | 索尼株式会社 | Information-processing apparatus, information-processing methods, recording mediums, and programs |
CN1831829A (en) * | 2006-04-20 | 2006-09-13 | 北京理工大学 | Method for quickly forming voice data base for key word checkout task |
CN101295236A (en) * | 2008-06-24 | 2008-10-29 | 北京中星微电子有限公司 | Automatic sound recording method, system and device |
US8983535B2 (en) * | 2009-04-03 | 2015-03-17 | Ubiquity Broadcasting Corporation | Medical scan clip on |
Also Published As
Publication number | Publication date |
---|---|
CN105094808A (en) | 2015-11-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105094808B (en) | A kind of control device and method | |
CN110519539B (en) | Methods, systems, and media for rewinding media content based on detected audio events | |
CN107105367B (en) | Audio signal processing method and terminal | |
CN107122158A (en) | The method and device of broadcast information prompting audio, electronic equipment | |
WO2014086238A1 (en) | Method for controlling background through voice and mobile terminal | |
CN106302997B (en) | Output control method, electronic equipment and system | |
CN104503740A (en) | Memory management method and device | |
CN111128253B (en) | Audio editing method and device | |
CN104091596A (en) | Music identifying method, system and device | |
CN113010139B (en) | Screen projection method and device and electronic equipment | |
CN106664433A (en) | Multimedia informationi playing method and system, standardized server platform and broadcasting terminal | |
CN104092809A (en) | Communication sound recording method and recorded communication sound playing method and device | |
CN111355995A (en) | Method and device for determining sound delay time of Bluetooth device and terminal device | |
CN110675848A (en) | Audio processing method, device and storage medium | |
CN105446695A (en) | Notification message removal method and apparatus | |
CN105929941B (en) | Information processing method and device and terminal equipment | |
CN107948854B (en) | Operation audio generation method and device, terminal and computer readable medium | |
WO2016107104A1 (en) | Method for recording voice communication information, terminal, and computer storage medium | |
CN104656412A (en) | Method for adjusting alarm | |
CN109147783B (en) | Voice recognition method, medium and system based on Karaoke system | |
CN113225659A (en) | Equipment test method and electronic equipment | |
CN106341527A (en) | Emotion adjustment method and mobile terminal | |
CN105376385A (en) | Volume adjusting method and user terminal | |
CN112533081B (en) | Recording processing method, recording processing equipment and recording medium | |
CN109658930B (en) | Voice signal processing method, electronic device and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |