CN114979355A - Microphone control method and device and electronic equipment - Google Patents

Microphone control method and device and electronic equipment Download PDF

Info

Publication number
CN114979355A
CN114979355A CN202210601605.0A CN202210601605A CN114979355A CN 114979355 A CN114979355 A CN 114979355A CN 202210601605 A CN202210601605 A CN 202210601605A CN 114979355 A CN114979355 A CN 114979355A
Authority
CN
China
Prior art keywords
microphone
voltage
electronic device
target application
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210601605.0A
Other languages
Chinese (zh)
Inventor
林翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202210601605.0A priority Critical patent/CN114979355A/en
Publication of CN114979355A publication Critical patent/CN114979355A/en
Priority to PCT/CN2023/096002 priority patent/WO2023231862A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72433User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for voice messaging, e.g. dictaphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/19Arrangements of transmitters, receivers, or complete sets to prevent eavesdropping, to attenuate local noise or to prevent undesired transmission; Mouthpieces or receivers specially adapted therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application discloses a microphone control method, a microphone control device and electronic equipment, and belongs to the technical field of communication, wherein the method comprises the following steps: detecting whether the electronic equipment runs a target application program or not; applying a target voltage to the microphone when the electronic device runs the target application; the target application program is an application program with a voice recording function.

Description

Microphone control method and device and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to a microphone control method and device and electronic equipment.
Background
With the continuous development of electronic devices, the functions and applications of mobile phones are more and more abundant, and users can often use chat software to perform instant voice chat (for example, in a chat frame of a WeChat application, a left voice button is clicked first, and then an instant voice can be sent to a contact by pressing and talking for a long time), or use a camera to shoot videos, and the like.
In the above process, the microphone is required to record sound, the electronic device applies a voltage to the microphone when starting to record sound, however, a certain time (for example, 100ms) is required from the time when the voltage is applied to the microphone to the time when the microphone can normally work, and a lot of noise waves are generated in the first 100ms because the microphone is just powered on, so that the electronic device can cut off the sound in the first 100ms when storing the sound, and thus, if a user directly speaks when just triggering the electronic device to record, the sound in the first 100ms of speaking can be cut off, and thus, the sound recorded by the electronic device can be lost.
Disclosure of Invention
An object of the embodiments of the present application is to provide a microphone control method and apparatus, and an electronic device, which can solve the problem of voice missing recorded by the electronic device.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a method for controlling a microphone, where the method for controlling the microphone includes: detecting whether the electronic equipment runs a target application program or not; applying a target voltage to the microphone when the electronic device runs the target application; the target application program is an application program with a voice recording function.
In a second aspect, an embodiment of the present application provides a control device for a microphone, including: the device comprises a detection module and a processing module. And the detection module is used for detecting whether the electronic equipment runs the target application program. The processing module is used for applying a target voltage to the microphone under the condition that the electronic equipment runs a target application program; the target application program is an application program with a voice recording function.
In a third aspect, embodiments of the present application provide an electronic device, which includes a processor and a memory, where the memory stores a program or instructions executable on the processor, and the program or instructions, when executed by the processor, implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product, which is stored in a storage medium and executed by at least one processor to implement the method according to the first aspect.
In the embodiment of the application, the electronic device may detect whether the electronic device runs the target application, and apply the target voltage to the microphone when the electronic device is detected to run the target application. In this scheme, electronic equipment directly applys target voltage to the microphone under the condition that detects electronic equipment operation target application, and not when using the microphone, just begin to applys voltage to the microphone to can make the voltage of microphone be in steady state, can produce the problem of clutter when can avoiding electronic equipment to record pronunciation, thereby need not the pronunciation that the intercepting was recorded when the storage pronunciation, so guaranteed that electronic equipment records the integrality of pronunciation.
Drawings
Fig. 1 is a schematic diagram of a placement position of a microphone of a mobile phone according to an embodiment of the present disclosure;
fig. 2 is an audio frame and a schematic flow diagram of a mobile phone system according to an embodiment of the present application;
fig. 3 is a schematic diagram of a microphone control method according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of an example of an interface of a mobile phone according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a control device of a microphone according to an embodiment of the present disclosure;
fig. 6 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present disclosure;
fig. 7 is a second hardware structure schematic diagram of an electronic device according to an embodiment of the present disclosure.
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, and it is obvious that the described embodiments are some, but not all, 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 terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The following describes in detail a control method of a microphone according to an embodiment of the present application with reference to the accompanying drawings.
The control method of the microphone in the embodiment of the application can be applied to a scene that the electronic equipment records sound.
At present, the dual microphones have become standard configurations of mobile phones, the placement positions of the two microphones are relatively fixed and are basically on the top and the bottom of the mobile phone, as shown in fig. 1, a first microphone 20 and a second microphone 21 of the mobile phone; moreover, with the development of science and technology, the functions and applications of the mobile phone are more and more abundant, with the popularization of chat tools, more and more users use chat software to replace telephone contact, and the functions of 'instant voice' in the software (namely, after a user clicks a microphone control in the software, the user presses the microphone control for a long time to start speaking, and then releases the microphone control after speaking, and the electronic equipment can send the content which is just spoken to the opposite side), and because of the convenience and convenience in use, the mobile phone is popular with the majority of users. Currently, the software flow for sending the instant voice is as follows, the user clicks the microphone control → the software control codec opens the micbias (microphone bias circuit), supplies power to the microphone → the system control codec starts the Analog to Digital Converter (ADC). Specifically, the audio framework and flow direction of the handset system is shown in FIG. 2. The microphone needs about 100ms from the power-on of the micbias to the normal operation, and because the output of the microphone generates a lot of noise waves when the micbais is just powered on, the system can cut off the sound of the front 100ms when storing the sound recordings, and the user is prevented from hearing the noise waves. However, many users are used to speak directly after pressing the microphone control, which results in that the voice of the first 100ms of speaking is cut off, usually 1 or half of a word, and thus the voice sent by the user is lost, which results in poor user experience.
The embodiment of the invention provides a control scheme of a microphone, when a user enters a corresponding scene or software which possibly needs to be applied to the microphone, the microphone is powered on in advance, the microphone is in a stable state, and when an ADC samples a microphone recording signal, the user does not need to cut off the sound of the previous 100ms, namely the problem that the speaking sound of the user is cut off does not occur.
In the scheme provided by the embodiment of the application, the electronic device can detect whether the electronic device runs the target application program, and apply the target voltage to the microphone when the electronic device is detected to run the target application program. In this scheme, electronic equipment directly applys target voltage to the microphone under the condition that detects electronic equipment operation target application, and not when using the microphone, just begin to applys voltage to the microphone to can make the voltage of microphone be in steady state, can produce the problem of clutter when can avoiding electronic equipment to record pronunciation, thereby need not the pronunciation that the intercepting was recorded when the storage pronunciation, so guaranteed that electronic equipment records the integrality of pronunciation.
An embodiment of the present application provides a method for controlling a microphone, and fig. 3 shows a flowchart of the method for controlling a microphone provided in the embodiment of the present application, where the method can be applied to an electronic device. As shown in fig. 3, a method for controlling a microphone provided in an embodiment of the present application may include steps 201 and 202 described below.
Step 201, the electronic device detects whether the electronic device runs the target application program.
In this embodiment, the target application is an application having a voice recording function.
In this embodiment of the application, the electronic device may detect whether the electronic device runs the target application, and apply the target voltage to the microphone when detecting that the electronic device runs the target application, that is, control a bias circuit of the electronic device, and power on the microphone with the target voltage.
Optionally, in this embodiment of the application, the target voltage may be a first voltage or a second voltage.
Optionally, in this embodiment of the application, the target application may be any one of the following: a conversation application, a recording application, a shooting application, a chat application.
Optionally, in this embodiment of the present application, before step 201 described above, the method for controlling a microphone provided in this embodiment of the present application further includes step 301 described below.
Step 301, the electronic device detects whether the electronic device enables a voice wake-up function.
In the embodiment of the application, the electronic device can detect whether the user starts the voice awakening function on the setting interface, and under the condition that the voice awakening function is started, the electronic device applies the working voltage in the low power consumption mode to the microphone.
It can be understood that, in order to ensure that the voice wake-up function of the electronic device can be normally used, the microphone bias circuit of the electronic device may be controlled to always power on the microphone with the operating voltage in the low power consumption mode, that is, the microphone is always in the operating state.
Optionally, in this embodiment of the application, the step 201 may be specifically implemented by the following step 201 a.
Step 201a, under the condition that the electronic device does not enable the voice wake-up function, the electronic device detects whether the electronic device runs a target application program.
Optionally, in this embodiment of the application, when the electronic device detects that the voice wakeup function is not enabled by the user (i.e., the electronic device does not apply a voltage to the microphone), the electronic device still needs to detect whether the electronic device runs the target application program, so as to apply the target voltage to the microphone when the electronic device runs the target application program.
Optionally, in this embodiment of the application, when the electronic device detects that the user activates the voice wakeup function (that is, the electronic device has applied the operating voltage in the low power consumption mode to the microphone), the electronic device may keep applying the operating voltage in the low power consumption mode to the microphone without detecting whether the electronic device runs the target application program.
It can be understood that, when the electronic device already applies the operating voltage in the low power consumption mode to the microphone, and the electronic device runs the target application program, the operating voltage of the microphone in the low power consumption mode can be directly determined as the target voltage, that is, the electronic device is controlled to keep applying the operating voltage in the low power consumption mode to the microphone.
Step 202, in the case that the electronic device runs the target application program, the electronic device applies the target voltage to the microphone.
In the embodiment of the application, when the electronic device detects that the electronic device runs the target application (for example, opens the target application), the codec of the electronic device is controlled to open the microphone bias circuit, so that the microphone bias circuit applies the target voltage to the microphone.
Optionally, in this embodiment of the application, the target voltage is a second voltage, and the second voltage is a working voltage of the microphone in a normal working mode.
Optionally, in this embodiment of the application, an operating voltage (i.e., the second voltage) of the microphone in the normal operating mode may be an operating voltage of 2.7V.
It is understood that, when the electronic device detects that the user does not turn on the voice wakeup function in the setting interface, that is, when the microphone bias circuit is not powering on the microphone, if the electronic device detects that the user starts the operation of the target application program, the operating voltage of the microphone in the normal operation mode (i.e. the second voltage) is directly determined as the target voltage, thereby directly controlling the microphone bias circuit of the electronic equipment, electrifying the microphone by the working voltage under the normal working mode, thus, no matter the user sends the instant voice in the subsequent process, or the user's use requirement can be met by switching to the video shooting interface to shoot the video at the instant voice interface and electrifying the microphone by adopting the working voltage under the normal working mode, therefore, the microphone bias circuit is prevented from switching the voltage back and forth to electrify the microphone, and the voltage of the microphone is always in a stable state.
For example, taking the electronic device as a mobile phone and the target application as an application a as an example, when a user opens the application a, the mobile phone detects that the user opens the application a, so as to control a microphone bias circuit of the mobile phone, and power on the microphone with an operating voltage in a normal operating mode (e.g., an operating voltage of 2.7V).
The embodiment of the application provides a method for controlling a microphone, wherein electronic equipment can detect whether the electronic equipment runs a target application program, and a target voltage is applied to the microphone when the electronic equipment is detected to run the target application program. In this scheme, electronic equipment directly applys target voltage to the microphone under the condition that detects electronic equipment operation target application, and not when using the microphone, just begin to applys voltage to the microphone to can make the voltage of microphone be in steady state, can produce the problem of clutter when can avoiding electronic equipment to record pronunciation, thereby need not the pronunciation that the intercepting was recorded when the storage pronunciation, so guaranteed that electronic equipment records the integrality of pronunciation.
Alternatively, in this embodiment of the present application, the step 202 may be specifically implemented by the following step 202 a.
Step 202a, in the case that the electronic device runs the target application program and detects an instant voice sending operation in the target application program, the electronic device applies a target voltage to the microphone.
In an embodiment of the present invention, the target voltage is a first voltage, and the first voltage is an operating voltage of the microphone in the low power consumption mode.
In the embodiment of the application, when the electronic device detects that the electronic device runs the target application program and an instant voice sending operation in the target application program, the electronic device may determine a first voltage (i.e., an operating voltage of the microphone in the low power consumption mode) corresponding to the instant voice sending operation, so as to apply the operating voltage in the low power consumption mode to the microphone.
It can be understood that the instant voice sending operation of the user in the target application program is that the user presses the microphone control for a long time to trigger the electronic device to start recording the instant voice in the instant voice sending interface, that is, the electronic device controls the microphone bias circuit of the electronic device while detecting that the user presses the microphone control, and powers on the microphone with the working voltage in the low power consumption mode.
Optionally, in this embodiment of the application, an operating voltage (i.e., the first voltage) of the microphone in the low power consumption mode may be an operating voltage of 1.8V.
It should be noted that, for a scene with a large sound pressure level, for example: in a recording scene, a video recording scene, etc., the microphone bias circuit is required to power on the microphone with a working voltage in a normal working mode (for example, a working voltage of 2.7 v), however, since the instant voice transmission operation does not basically require a high-step-ratio scene, the microphone bias circuit can power on the microphone with a working voltage in a low-power-consumption mode (for example, a working voltage of 1.8 v), that is, the microphone can also meet the requirement of the instant voice transmission operation with a working voltage of 1.8 v.
Illustratively, after opening application a, the user enters into a chat interface 10 with contact B, and then clicks on the microphone icon 11 at the lower left corner, as shown in fig. 4 (a); the chat interface 10 can be switched to the instant speech interface 12, as shown in fig. 4 (B), pressing the microphone control (i.e., "press and talk" 13) for a long time can trigger the microphone of the mobile phone to record the voice of the user, and when the mobile phone detects that the application program a is running on the mobile phone and the user presses and holds and talk, the mobile phone controls the microphone bias circuit of the mobile phone to power on the microphone with a working voltage (e.g., a working voltage of 1.8 v) in a low power consumption mode.
Optionally, in this embodiment of the application, when the microphone is powered on with the first voltage (that is, the electronic device has enabled the voice wakeup function), if it is detected that the electronic device runs the target application program and when an instant voice sending operation in the target application program is performed, the electronic device determines the first voltage as the target voltage, that is, the operating voltage of the microphone in the low power consumption mode is still determined as the target voltage, and keeps applying the operating voltage in the low power consumption mode to the microphone.
It can be understood that, when the microphone of the electronic device is powered on by using the working voltage in the low power consumption mode, if the electronic device detects the instant voice sending operation of the user in the target application program, the microphone bias circuit of the electronic device is controlled to keep powering on the microphone by using the working voltage in the low power consumption mode, that is, when the instant voice sending operation of the user in the target application program is detected, the microphone bias circuit of the electronic device is controlled to be powered off to power on the microphone first, and then the microphone is powered on by using the voltage corresponding to the user operation again, so that the voltage of the microphone is in a stable state.
In the embodiment of the application, when the microphone of the electronic device is powered on by adopting the working voltage in the low power consumption mode, if the electronic device detects the instant voice sending operation of the user in the target application program, the microphone bias circuit of the electronic device can be controlled to keep the working voltage in the low power consumption mode to be powered on for the microphone, that is, the microphone bias circuit is prevented from switching the voltage back and forth to be powered on for the microphone, so that the voltage of the microphone is in a stable state, and the electronic device is ensured to record complete voice.
Alternatively, in this embodiment of the application, the step 202 may be specifically implemented by the step 202b described below.
Step 202b, in the case that the electronic device runs the target application program and detects that the operation of starting the instant voice sending interface in the target application program, the electronic device applies the target voltage to the microphone.
In an embodiment of the present invention, the target voltage is a second voltage, and the second voltage is an operating voltage of the microphone in a normal operating mode.
In the embodiment of the application, when the electronic device detects that the electronic device runs the target application program and the operation of the instant voice sending interface is started in the target application program, the electronic device determines the second voltage (i.e., the working voltage of the microphone in the normal working mode) as the target voltage, so as to control the microphone bias circuit of the electronic device, and power on the microphone with the working voltage in the normal working mode.
Optionally, in this embodiment of the application, the operation of opening the instant voice sending interface in the target application by the user may be an operation of opening a chat interface in the target application by the user or an operation of opening the instant voice sending interface (that is, switching the chat interface to the instant voice sending interface).
Optionally, in this embodiment, the chat interface includes a microphone icon, and the user may input the microphone icon (for example, click to input the microphone icon) to trigger the electronic device to switch the chat interface to the instant voice interface.
Exemplarily, after the user opens the application a, the user enters the chat interface 10 with the contact B, as shown in (a) in fig. 4, the mobile phone detects that the user opens the chat interface 10 with the contact B, controls the microphone bias circuit of the mobile phone to power on the microphone with the working voltage in the normal operation mode (for example, the working voltage of 2.7V), or after the user opens the application a and enters the chat interface 10 with the contact B, the user clicks the microphone icon 11 at the lower left corner to switch the chat interface 10 to the instant voice interface 12, as shown in (B) in fig. 4, at this time, the mobile phone detects that the user opens the instant voice sending interface 12, thereby controlling the microphone bias circuit of the mobile phone to power on the microphone with the working voltage in the normal operation mode.
In the embodiment of the application, when the electronic device detects that the user does not start the voice wakeup function and the user starts the operation of the instant voice sending interface in the target application program, the microphone bias circuit of the electronic device can be directly controlled to electrify the microphone with the working voltage in the normal working mode, so that the voltage of the microphone is always in a stable state, and the electronic device is ensured to record complete voice.
Optionally, in this embodiment of the present application, after step 202 described above, the method for controlling a microphone provided in this embodiment of the present application further includes step 401 described below.
Step 401, after detecting that the instant voice sending interface is closed, the electronic device keeps applying the target voltage to the microphone within a preset time, and if the instant voice sending interface is not opened within the preset time, the electronic device stops applying the voltage to the microphone.
In the embodiment of the application, after detecting that a user starts an operation of an instant voice sending interface in a target application program and applying a working voltage (i.e., a second voltage) in a normal working mode to a microphone, the electronic device keeps applying the target voltage to the microphone for a preset time period if detecting that the user closes the instant voice sending interface.
It can be understood that, after the electronic device detects that the user closes the instant voice sending interface, the electronic device controls the bias circuit of the microphone to continue to power on the microphone within the preset time period, so that when the user opens the instant voice sending interface again within the preset time period, the microphone bias circuit of the electronic device can be controlled to keep powering on the microphone at the working voltage in the normal working mode, the microphone does not need to be powered on again, and the voltage of the microphone is always in a stable state.
Optionally, in this embodiment of the application, the preset time duration may be 5 seconds, 8 seconds, 10 seconds, and the like, and this embodiment of the application is not limited.
In the embodiment of the application, when detecting that the user starts the instant voice sending interface in the target application program, the electronic device controls a microphone bias circuit of the electronic device, and after the microphone is powered on by a working voltage (i.e., a second voltage) in a normal working mode, if it is detected that the user closes the instant voice sending interface and the instant voice sending interface is not started again within a preset time period, the electronic device stops applying the voltage to the microphone.
It can be understood that, after the electronic device detects that the user closes the instant voice sending interface, the electronic device controls the bias circuit of the microphone to continue to power on the microphone within the preset time, and if the user does not open the instant voice sending interface again within the preset time, that is, the user does not return to the instant voice sending interface within the preset time, the electronic device controls the bias circuit of the microphone to stop powering on the microphone.
In the embodiment of the application, after detecting that the user closes the instant voice sending interface, the electronic device keeps applying the second voltage to the microphone within the preset time length, so that when the user opens the instant voice sending interface again within the preset time length, the second voltage does not need to be applied to the microphone again, the voltage of the microphone is always in a stable state, and the electronic device is ensured to record complete voice.
In the microphone control method provided in the embodiment of the present application, the execution main body may be an electronic device, or a control device of a microphone, or a control module in the control device of the microphone. In the embodiment of the present application, a method for controlling a microphone by an electronic device is taken as an example, and a control apparatus for a microphone provided in the embodiment of the present application is described.
Fig. 5 shows a schematic diagram of a possible structure of the control device of the microphone according to the embodiment of the present application. As shown in fig. 5, the control device 70 of the microphone may include: a detection module 71 and a processing module 72.
The detection module 71 is configured to detect whether the electronic device runs a target application. And the processing module 72 is configured to apply the target voltage to the microphone when the target application is run by the electronic device.
The embodiment of the application provides a controlling means of microphone, because electronic equipment is under the condition that detects electronic equipment operation target application, directly applys target voltage to the microphone, not when using the microphone, just begin to applys voltage to the microphone, thereby when electronic equipment uses target voltage to go up as the microphone, can make the voltage of microphone be in stable state, can be in order to avoid electronic equipment to record the problem that produces the clutter when pronunciation, thereby need not the intercepting pronunciation of recording when the storage pronunciation, the integrality of pronunciation is recorded to electronic equipment has so been guaranteed.
In a possible implementation manner, the detecting module 71 is further configured to detect whether the electronic device enables a voice wake-up function before detecting whether the electronic device runs the target application; the detecting module 71 is specifically configured to detect whether the electronic device runs the target application program under the condition that the electronic device does not enable the voice wakeup function.
In a possible implementation manner, the processing module 72 is specifically configured to apply a target voltage to the microphone when the electronic device runs the target application and detects an instant voice sending operation in the target application, where the target voltage is a first voltage, and the first voltage is an operating voltage of the microphone in the low power consumption mode.
In a possible implementation manner, the processing module 72 is specifically configured to, when the electronic device runs a target application and detects that an operation of starting an instant voice sending interface in the target application is performed, apply a target voltage to the microphone, where the target voltage is a second voltage, and the second voltage is an operating voltage of the microphone in a normal operating mode.
In a possible implementation manner, the processing module 72 is further configured to, in a case that the electronic device runs the target application program, after applying the target voltage to the microphone, after detecting that the instant voice sending interface is closed, keep applying the target voltage to the microphone for a preset time period, and if the instant voice sending interface is not opened for the preset time period, stop applying the voltage to the microphone.
The control device of the microphone in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in an electronic device. The device can be mobile electronic equipment or non-mobile electronic equipment. The Mobile electronic Device may be, for example, a Mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic Device, a Mobile Internet Device (MID), an Augmented Reality (AR)/Virtual Reality (VR) Device, a robot, a wearable Device, an ultra-Mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and may also be a server, a Network Attached Storage (Storage), a personal computer (NAS), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not limited in particular.
The control device of the microphone in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The control device for the microphone provided in the embodiment of the present application can implement each process implemented by the above method embodiment, and is not described here again to avoid repetition.
Optionally, as shown in fig. 6, an electronic device 900 is further provided in this embodiment of the present application, and includes a processor 901 and a memory 902, where the memory 902 stores a program or an instruction that can be executed on the processor 901, and when the program or the instruction is executed by the processor 901, the steps of the embodiment of the microphone control method are implemented, and the same technical effects can be achieved, and are not described again here to avoid repetition.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 100 includes, but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 110 is configured to detect whether the electronic device runs a target application. And applying the target voltage to the microphone in a case where the electronic device runs the target application.
The embodiment of the application provides an electronic equipment, because electronic equipment is under the condition that detects electronic equipment operation target application, directly applys target voltage to the microphone, not when using the microphone, just begin to applys voltage to the microphone, thereby when electronic equipment uses target voltage to go up the electricity as the microphone, can make the voltage of microphone be in stable state, can be in order to avoid electronic equipment to record the problem that produces the clutter when pronunciation, thereby need not the intercepting pronunciation of recording when the storage pronunciation, the integrality of the pronunciation is recorded to electronic equipment has so been guaranteed.
Optionally, the processor 110 is further configured to detect whether the electronic device enables a voice wake-up function before detecting whether the electronic device runs the target application; the processor 110 is specifically configured to detect whether the electronic device runs the target application program when the electronic device does not enable the voice wakeup function.
Optionally, the processor 110 is specifically configured to, when the electronic device runs the target application and detects an instant voice sending operation in the target application, apply a target voltage to the microphone, where the target voltage is a first voltage, and the first voltage is an operating voltage of the microphone in the low power consumption mode.
Optionally, the processor 110 is specifically configured to, when the electronic device runs the target application and detects that an operation of starting the instant voice transmission interface in the target application is performed, apply a target voltage to the microphone, where the target voltage is a second voltage, and the second voltage is a working voltage of the microphone in a normal working mode.
Optionally, the processor 110 is further configured to, after applying the target voltage to the microphone and detecting that the instant voice transmission interface is closed under the condition that the electronic device runs the target application program, keep applying the target voltage to the microphone for a preset time period, and stop applying the voltage to the microphone if the instant voice transmission interface is not opened within the preset time period.
The electronic device provided by the embodiment of the application can realize each process realized by the method embodiment, and can achieve the same technical effect, and for avoiding repetition, the details are not repeated here.
The beneficial effects of the various implementation manners in this embodiment may specifically refer to the beneficial effects of the corresponding implementation manners in the above method embodiments, and are not described herein again to avoid repetition.
It should be understood that, in the embodiment of the present application, the input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics Processing Unit 1041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a first storage area storing a program or an instruction and a second storage area storing data, wherein the first storage area may store an operating system, an application program or an instruction (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, memory 109 may include volatile memory or non-volatile memory, or memory 109 may include both volatile and non-volatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. The volatile Memory may be a Random Access Memory (RAM), a Static Random Access Memory (Static RAM, SRAM), a Dynamic Random Access Memory (Dynamic RAM, DRAM), a Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), a Double Data Rate Synchronous Dynamic Random Access Memory (Double Data Rate SDRAM, ddr SDRAM), an Enhanced Synchronous SDRAM (ESDRAM), a Synchronous Link DRAM (SLDRAM), and a Direct Memory bus RAM (DRRAM). The memory 109 in the embodiments of the subject application includes, but is not limited to, these and any other suitable types of memory.
Processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor, which mainly handles operations related to the operating system, user interface, application programs, etc., and a modem processor, which mainly handles wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements the processes of the foregoing method embodiments, and can achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read only memory ROM, a random access memory RAM, a magnetic or optical disk, and the like.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the foregoing method embodiments, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
The embodiments of the present application provide a computer program product, where the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the processes of the above embodiments of the control method for a microphone, and achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
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. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method for controlling a microphone, the method being applied to an electronic device including a microphone, the method comprising:
detecting whether the electronic equipment runs a target application program or not;
applying a target voltage to the microphone while the electronic device is running the target application;
the target application program is an application program with a voice recording function.
2. The method of claim 1, wherein before detecting whether the electronic device is running a target application, the method further comprises:
detecting whether the electronic equipment enables a voice wake-up function;
the detecting whether the electronic device runs the target application program comprises the following steps:
and detecting whether the electronic equipment runs the target application program or not under the condition that the electronic equipment does not enable a voice wake-up function.
3. The method of claim 1, wherein applying a target voltage to the microphone while the electronic device is running the target application comprises:
and applying the target voltage to the microphone when the electronic equipment runs the target application program and detects the instant voice sending operation in the target application program, wherein the target voltage is a first voltage, and the first voltage is a working voltage of the microphone in a low power consumption mode.
4. The method according to claim 1 or 2, wherein the applying a target voltage to the microphone in a case that the electronic device runs the target application program comprises:
and applying the target voltage to the microphone when the electronic equipment runs the target application program and detects that the operation of starting an instant voice sending interface in the target application program is detected, wherein the target voltage is a second voltage, and the second voltage is a working voltage of the microphone in a normal working mode.
5. The method of claim 4, wherein after applying a target voltage to the microphone while the electronic device is running the target application, the method further comprises:
and after the instant voice sending interface is detected to be closed, keeping applying the target voltage to the microphone within a preset time length, and if the instant voice sending interface is not opened within the preset time length, stopping applying the voltage to the microphone.
6. A control apparatus for a microphone, the apparatus being applied to an electronic device including a microphone, the control apparatus for the microphone comprising: the device comprises a detection module and a processing module;
the detection module is used for detecting whether the electronic equipment runs a target application program or not;
the processing module is used for applying a target voltage to the microphone under the condition that the electronic equipment runs the target application program;
the target application program is an application program with a voice recording function.
7. The apparatus of claim 6,
the detection module is further configured to detect whether the electronic device enables a voice wake-up function before detecting whether the electronic device runs a target application;
the detection module is specifically configured to detect whether the target application is run by the electronic device when the voice wakeup function is not enabled by the electronic device.
8. The apparatus of claim 6,
the processing module is specifically configured to apply the target voltage to the microphone when the electronic device runs the target application and detects an instant voice sending operation in the target application, where the target voltage is a first voltage, and the first voltage is a working voltage of the microphone in a low power consumption mode.
9. An electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, which program or instructions, when executed by the processor, carry out the steps of a method of controlling a microphone according to any one of claims 1 to 5.
10. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the method of controlling a microphone according to any one of claims 1 to 5.
CN202210601605.0A 2022-05-30 2022-05-30 Microphone control method and device and electronic equipment Pending CN114979355A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210601605.0A CN114979355A (en) 2022-05-30 2022-05-30 Microphone control method and device and electronic equipment
PCT/CN2023/096002 WO2023231862A1 (en) 2022-05-30 2023-05-24 Microphone control method and apparatus, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210601605.0A CN114979355A (en) 2022-05-30 2022-05-30 Microphone control method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN114979355A true CN114979355A (en) 2022-08-30

Family

ID=82957563

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210601605.0A Pending CN114979355A (en) 2022-05-30 2022-05-30 Microphone control method and device and electronic equipment

Country Status (2)

Country Link
CN (1) CN114979355A (en)
WO (1) WO2023231862A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023231862A1 (en) * 2022-05-30 2023-12-07 维沃移动通信有限公司 Microphone control method and apparatus, and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105430139A (en) * 2015-10-27 2016-03-23 上海斐讯数据通信技术有限公司 Electronic equipment and applied recording method thereof
EP3160150A1 (en) * 2015-10-22 2017-04-26 Samsung Electronics Co., Ltd. Electronic device and method for executing function using speech recognition thereof
US20180374481A1 (en) * 2017-06-27 2018-12-27 Samsung Electronics Co., Ltd. Electronic device for performing operation corresponding to voice input
CN110109549A (en) * 2019-05-13 2019-08-09 Oppo广东移动通信有限公司 Processing method, device, storage medium and the electronic equipment of applicative notifications
CN111327994A (en) * 2020-04-02 2020-06-23 华景科技无锡有限公司 Low-power-consumption microphone, voice control device and voice control method
CN114786080A (en) * 2022-04-21 2022-07-22 维沃移动通信有限公司 Microphone control method and device, electronic equipment and readable storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI502406B (en) * 2013-08-23 2015-10-01 Acer Inc Electrical device and controlling method
CN104715757A (en) * 2013-12-13 2015-06-17 华为技术有限公司 Terminal voice control operation method and device
DE102014216654A1 (en) * 2014-08-21 2016-02-25 Robert Bosch Gmbh Signal processing circuit for a digital microphone
US9699550B2 (en) * 2014-11-12 2017-07-04 Qualcomm Incorporated Reduced microphone power-up latency
CN205356683U (en) * 2016-02-03 2016-06-29 北京卓锐微技术有限公司 Microphone and mobile terminal
CN114979355A (en) * 2022-05-30 2022-08-30 维沃移动通信有限公司 Microphone control method and device and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3160150A1 (en) * 2015-10-22 2017-04-26 Samsung Electronics Co., Ltd. Electronic device and method for executing function using speech recognition thereof
CN105430139A (en) * 2015-10-27 2016-03-23 上海斐讯数据通信技术有限公司 Electronic equipment and applied recording method thereof
US20180374481A1 (en) * 2017-06-27 2018-12-27 Samsung Electronics Co., Ltd. Electronic device for performing operation corresponding to voice input
CN110109549A (en) * 2019-05-13 2019-08-09 Oppo广东移动通信有限公司 Processing method, device, storage medium and the electronic equipment of applicative notifications
CN111327994A (en) * 2020-04-02 2020-06-23 华景科技无锡有限公司 Low-power-consumption microphone, voice control device and voice control method
CN114786080A (en) * 2022-04-21 2022-07-22 维沃移动通信有限公司 Microphone control method and device, electronic equipment and readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023231862A1 (en) * 2022-05-30 2023-12-07 维沃移动通信有限公司 Microphone control method and apparatus, and electronic device

Also Published As

Publication number Publication date
WO2023231862A1 (en) 2023-12-07

Similar Documents

Publication Publication Date Title
CN107544810B (en) Method and device for controlling application program
EP3933570A1 (en) Method and apparatus for controlling a voice assistant, and computer-readable storage medium
KR20090114749A (en) Mobile terminal and its video communication control method
CN105786507B (en) Display interface switching method and device
CN110619873A (en) Audio processing method, device and storage medium
CN107888965A (en) Image present methods of exhibiting and device, terminal, system, storage medium
CN114500432A (en) Session message transceiving method and device, electronic equipment and readable storage medium
WO2023231862A1 (en) Microphone control method and apparatus, and electronic device
CN112711366A (en) Image generation method and device and electronic equipment
CN108766427B (en) Voice control method and device
CN106325508A (en) Method and device for processing application
CN114153362A (en) Information processing method and device
CN112702468A (en) Call control method and device
CN110062276A (en) Processing method, device and the electronic equipment and storage medium of audio, video data
CN110798721B (en) Episode management method and device and electronic equipment
CN113778596A (en) Remote assistance method and device and electronic equipment
CN114374761A (en) Information interaction method and device, electronic equipment and medium
CN113873165A (en) Photographing method and device and electronic equipment
CN111968680A (en) Voice processing method, device and storage medium
CN111857496A (en) Operation execution method and device and electronic equipment
CN115550505B (en) Incoming call processing method and device
CN116543745A (en) Voice recording method, device, electronic equipment and storage medium
CN113038333B (en) Bluetooth headset control method and device, electronic equipment and readable storage medium
CN113709290B (en) Processing device, processing method and electronic equipment
CN115348240B (en) Voice call method, device, electronic equipment and storage medium for sharing document

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