CN108810280B - Voice acquisition frequency processing method and device, storage medium and electronic equipment - Google Patents

Voice acquisition frequency processing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN108810280B
CN108810280B CN201810630330.7A CN201810630330A CN108810280B CN 108810280 B CN108810280 B CN 108810280B CN 201810630330 A CN201810630330 A CN 201810630330A CN 108810280 B CN108810280 B CN 108810280B
Authority
CN
China
Prior art keywords
preset
electric quantity
acquisition frequency
electronic equipment
voice
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
Application number
CN201810630330.7A
Other languages
Chinese (zh)
Other versions
CN108810280A (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810630330.7A priority Critical patent/CN108810280B/en
Publication of CN108810280A publication Critical patent/CN108810280A/en
Application granted granted Critical
Publication of CN108810280B publication Critical patent/CN108810280B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/26Speech to text systems
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L17/00Speaker identification or verification techniques
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L21/00Speech or voice signal processing techniques to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
    • G10L21/02Speech enhancement, e.g. noise reduction or echo cancellation
    • G10L21/0208Noise filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0274Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
    • H04W52/0277Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof according to available power supply, e.g. switching off when a low battery condition is detected
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • G10L2015/223Execution procedure of a spoken command
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Computational Linguistics (AREA)
  • Quality & Reliability (AREA)
  • Environmental & Geological Engineering (AREA)
  • Telephone Function (AREA)
  • Emergency Alarm Devices (AREA)

Abstract

The embodiment of the application discloses a processing method and device of voice acquisition frequency, a storage medium and electronic equipment, wherein when the electronic equipment is in a voice awakening state, electric quantity information of the electronic equipment is acquired; determining a preset electric quantity range corresponding to the electric quantity information; matching the database according to the preset electric quantity range to obtain a preset voice acquisition frequency corresponding to the preset electric quantity range; and adjusting the current voice acquisition frequency of the electronic equipment according to the preset voice acquisition frequency. Therefore, when the electronic equipment is in the voice awakening state, the appropriate voice acquisition frequency can be adjusted according to the electric quantity of the electronic equipment, the electric quantity of the electronic equipment can be saved on the premise of not influencing the use of a user, and the cruising ability of the electronic equipment is improved.

Description

Voice acquisition frequency processing method and device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of electronic device control technologies, and in particular, to a method and an apparatus for processing a voice acquisition frequency, a storage medium, and an electronic device.
Background
With the continuous development of electronic technology, electronic devices such as mobile phones have increasingly powerful functions, users can easily realize a plurality of functions such as electronic shopping and entertainment through mobile phones, and mobile phones have become essential tools for people going out, so that the dependence of users on mobile phones is also increasingly strong.
At present, a voice awakening function can be started by a mobile phone, voice information of a user is acquired in real time through a microphone on the mobile phone, and a corresponding operation instruction is determined and executed by extracting keywords from the voice information, so that the effect of quickly controlling the mobile phone through voice is achieved.
Disclosure of Invention
The embodiment of the application provides a processing method and device of voice acquisition frequency, a storage medium and electronic equipment, which can reduce the power consumption of a mobile phone and improve the cruising ability of the mobile phone.
In a first aspect, an embodiment of the present application provides a method for processing a speech acquisition frequency, including:
when the electronic equipment is in a voice awakening state, acquiring electric quantity information of the electronic equipment;
determining a preset electric quantity range corresponding to the electric quantity information;
matching a database according to the preset electric quantity range to obtain a preset voice acquisition frequency corresponding to the preset electric quantity range;
and adjusting the current voice acquisition frequency of the electronic equipment according to the preset voice acquisition frequency.
In a second aspect, an embodiment of the present application provides a processing apparatus for acquiring a frequency of a voice, including:
the device comprises an acquisition unit, a processing unit and a control unit, wherein the acquisition unit is used for acquiring the electric quantity information of the electronic equipment when the electronic equipment is in a voice awakening state;
the determining unit is used for determining a preset electric quantity range corresponding to the electric quantity information;
the matching unit is used for matching a database according to the preset electric quantity range so as to obtain a preset voice acquisition frequency corresponding to the preset electric quantity range;
and the adjusting unit is used for adjusting the current voice acquisition frequency of the electronic equipment according to the preset voice acquisition frequency.
In a third aspect, a storage medium provided in this application is a storage medium having a computer program stored thereon, where the computer program is executed on a computer, so as to enable the computer to execute the processing method for voice acquisition frequency provided in any embodiment of this application.
In a fourth aspect, the electronic device provided in this embodiment of the present application includes a processor and a memory, where the memory has a computer program, and the processor is configured to execute the processing method for the voice capture frequency provided in any embodiment of the present application by calling the computer program.
According to the embodiment of the application, when the electronic equipment is in a voice awakening state, the electric quantity information of the electronic equipment is acquired; determining a preset electric quantity range corresponding to the electric quantity information; matching the database according to the preset electric quantity range to obtain a preset voice acquisition frequency corresponding to the preset electric quantity range; and adjusting the current voice acquisition frequency of the electronic equipment according to the preset voice acquisition frequency. Therefore, when the electronic equipment is in the voice awakening state, the appropriate voice acquisition frequency can be adjusted according to the electric quantity of the electronic equipment, the electric quantity of the electronic equipment can be saved on the premise of not influencing the use of a user, and the cruising ability of the electronic equipment is improved.
Drawings
The technical solution and other advantages of the present application will become apparent from the detailed description of the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a schematic application environment of speech detection provided in an embodiment of the present application.
Fig. 2 is a schematic flowchart of a processing method of a voice acquisition frequency according to an embodiment of the present application.
Fig. 3 is another schematic flow chart of a processing method of a speech acquisition frequency according to an embodiment of the present application.
Fig. 4 is a schematic block diagram of a processing apparatus for acquiring a frequency of a voice according to an embodiment of the present application.
Fig. 5 is a schematic block diagram of another apparatus for processing a speech acquisition frequency according to an embodiment of the present disclosure.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 7 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
The term "module" as used herein may be considered a software object executing on the computing system. The various components, modules, engines, and services described herein may be viewed as objects implemented on the computing system. The apparatus and method described herein are preferably implemented in software, but may also be implemented in hardware, and are within the scope of the present application.
The following is a detailed description of the analysis.
In the present embodiment, the processing apparatus for acquiring a voice frequency will be described in terms of the processing apparatus for acquiring a voice frequency, and the processing apparatus for acquiring a voice frequency may be specifically integrated in an electronic device, such as a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), and the like.
Referring to fig. 1, fig. 1 is a schematic view of an application environment of voice detection according to an embodiment of the present invention. The application environment comprises a user 11 and an electronic device 12.
The electronic device 12 at least comprises a Microphone for detecting the voice of the user 11, wherein the Microphone, known as a Microphone, is an energy conversion device for converting a voice signal into an electric signal and is transliterated by the English word 'Microphone'. Also called microphone, microphone.
Further, when the electronic device is in a voice wake-up state, the user 11 makes a specific sound, such as "please unlock in europe", and the like, the electronic device 12 performs voice detection 121 through a microphone to obtain the specific sound of the user, converts the specific sound into an electrical signal, and performs noise suppression 122 on the electrical signal, where the noise suppression is to eliminate, weaken, or suppress random variation interference in the image. And performing feature extraction 123 on the electric signal subjected to the noise suppression 122, wherein the feature extraction 123 specifically refers to voiceprint feature extraction, and since the voiceprint feature has characteristics of specificity and relative stability. After the adult, the voice of the human can be kept relatively stable and unchanged for a long time. Experiments prove that whether a speaker intentionally imitates the voice and tone of other people or speaks with whisper and whisper, even if the imitation is vivid, the voiceprint characteristics are different all the time. Therefore, the extracted voiceprint features are subjected to voiceprint matching 124 with the preset voiceprint features to obtain corresponding similarity 125, and when the similarity 125 is greater than a certain threshold, the voiceprint features pass verification, and the electronic device 12 executes an unlocking function.
As can be seen from the above application scenario, when the microphone is in the voice wake-up state, the microphone needs to be in the monitoring state all the time to acquire the sound information in the environment, which inevitably causes power loss, and further affects the cruising ability of the electronic device 12.
According to the embodiment of the invention, when the electronic equipment 12 is in the voice wake-up state, the electric quantity information of the electronic equipment 12 is acquired, the preset electric quantity range corresponding to the electric quantity information is determined, the database is matched according to the preset electric quantity range to obtain the preset voice acquisition frequency corresponding to the preset electric quantity range, and the current voice acquisition frequency of the electronic equipment 12 is adjusted according to the preset voice acquisition frequency, so that the voice information is acquired at the proper voice acquisition frequency, and the power consumption of the electronic equipment is saved.
The embodiment of the application provides a processing method of voice acquisition frequency, which can be applied to electronic equipment. As shown in fig. 2, the processing method of the voice acquisition frequency may include the following steps:
in step S101, when the electronic device is in a voice wake-up state, power information of the electronic device is acquired.
When a user needs to use the voiceprint recognition system function, the voice wake-up function can be turned on, for example, the setting of the electronic device is turned on, a voice assistant is found, then a voice wake-up option is found, and the voice wake-up function is turned on.
In one embodiment, when the voice wake-up function is used for the first time, the user needs to train and learn the wake-up word, for example, the user needs to unlock the electronic device, can input an "unlocked" voice keyword, and the like.
Furthermore, after the voice wake-up function is turned on, the electronic device is in a voice wake-up state, and the electronic device continuously monitors the sound information of the environment at a fixed voice acquisition frequency through the microphone, and performs operations such as analysis, voiceprint feature extraction, voiceprint feature verification and the like on the monitored sound information, so that a corresponding response can be performed in real time according to the voice information of the user, that is, the microphone is always in a working state at the fixed voice acquisition frequency.
Based on this, when the electronic device is in the voice wake-up state, the power information of the electronic device is obtained, and the unit of the power information is a percentage system, for example, the power information is seventy percent.
In step S102, a preset electric quantity range corresponding to the electric quantity information is determined.
The power information may be divided into a plurality of preset power ranges, such as 5 preset power ranges, zero to twenty percent, twenty to forty percent, forty to sixty percent, sixty to eighty percent, and eighty to one hundred percent, based on which the power information is divided into the preset power ranges.
Further, a preset electric quantity range to which the current electric quantity information belongs is determined.
In some embodiments, after the step of acquiring the power information of the electronic device, the method may further include:
(1) judging whether the electric quantity information is lower than a preset threshold value or not;
(2) turning off the microphone;
(3) and executing the step of determining the preset electric quantity range corresponding to the electric quantity information.
When the electric quantity of the electronic equipment is judged to be not lower than the preset threshold, the electric quantity of the electronic equipment is judged to be not low, and the step of determining the preset electric quantity range corresponding to the electric quantity information is executed.
In step S103, the database is matched according to the preset electric quantity range to obtain a preset voice collecting frequency corresponding to the preset electric quantity range.
The database stores the association relationship between the preset electric quantity range and the preset voice acquisition frequency in advance, and it is easy to understand that the higher the electric quantity of the electronic equipment is, the longer the endurance time of the electronic equipment is, and the higher the voice acquisition frequency can be correspondingly associated. The lower the electric quantity of the electronic equipment is, the lower the endurance time of the electronic equipment is, and the lower the voice acquisition frequency can be correspondingly associated.
Therefore, the database is matched according to the preset electric quantity range where the current electric quantity is located, and the preset voice acquisition frequency suitable for the preset electric quantity range can be obtained according to the incidence relation.
In step S104, the current voice collecting frequency of the electronic device is adjusted according to the preset voice collecting frequency.
Wherein, under normal conditions, the microphone is in operating condition with fixed pronunciation collection frequency all the time, if gather pronunciation once every 50ms, this pronunciation collection frequency is higher frequency, and the consumption is bigger, if electronic equipment's electric quantity information is higher, can maintain this consumption, but if electronic equipment's electric quantity information reduces the back, still gathers with this frequency, can cause the electric quantity to lose all the time, influences the time of endurance.
Therefore, after the preset voice acquisition frequency is acquired, the preset voice acquisition frequency is relatively in line with the loss speed of the current electric quantity, so that the current voice acquisition frequency of the electronic equipment is adjusted to be the preset voice acquisition frequency, and the power consumption of the electronic equipment can be better saved.
In some embodiments, the step of adjusting the current voice capturing frequency of the electronic device according to the preset voice capturing frequency may include:
(1) acquiring current time point information;
(2) correspondingly adjusting the preset voice acquisition frequency according to the time point information;
(3) and setting the current voice acquisition frequency of the electronic equipment as the adjusted preset voice acquisition frequency.
When the user uses the electronic equipment, the time of the day is divided into a common time period and an uncommon time period, the probability that the user uses the electronic equipment is high in the common time period, and the probability that the user uses the electronic equipment is low in the uncommon time period. Therefore, the electronic equipment can acquire the current time point information, correspondingly adjust the preset voice acquisition frequency according to whether the time point information is a common time period or not, increase the value of the preset voice acquisition frequency in the common time period, and reduce the value of the preset voice acquisition frequency in an uncommon time period. Then, the current voice acquisition frequency of the electronic equipment is set to be the adjusted preset voice acquisition frequency, so that the voice acquisition frequency can be more suitable for the requirements of users.
In some embodiments, the step of correspondingly adjusting the preset voice collecting frequency according to the time point information may include:
(1.1) judging whether the time point information is in a preset time period;
(1.2) increasing the value of the preset voice collection frequency;
(1.3) reducing the value of the preset voice collecting frequency.
The preset time period is a common time period, and when the time point information is judged to be in the preset time period, the current time is indicated to be the common time period, the probability of using the electronic equipment is high, and the value of the preset voice acquisition frequency can be increased. When the time point information is judged not to be in the preset time period, the current time is not in the common time period, the probability of using the electronic equipment is low, and the value of the preset voice acquisition frequency can be reduced.
As can be seen from the above, in the processing method for voice acquisition frequency provided by this embodiment, when the electronic device is in a voice wake-up state, the electric quantity information of the electronic device is acquired; determining a preset electric quantity range corresponding to the electric quantity information; matching the database according to the preset electric quantity range to obtain a preset voice acquisition frequency corresponding to the preset electric quantity range; and adjusting the current voice acquisition frequency of the electronic equipment according to the preset voice acquisition frequency. Therefore, when the electronic equipment is in the voice awakening state, the appropriate voice acquisition frequency can be adjusted according to the electric quantity of the electronic equipment, the electric quantity of the electronic equipment can be saved on the premise of not influencing the use of a user, and the cruising ability of the electronic equipment is improved.
The method described in the above embodiments is further illustrated in detail by way of example.
Referring to fig. 3, fig. 3 is another schematic flow chart of a processing method of a voice acquisition frequency according to an embodiment of the present application.
Specifically, the method comprises the following steps:
in step S201, when the electronic device is in a voice wake-up state, power information of the electronic device is acquired.
When the electronic equipment is in a voice awakening state, acquiring the electric quantity information of the electronic equipment, wherein the unit of the electric quantity information is a percentage system, and if the unit of the electric quantity information is fifty percent.
In step S202, it is determined whether the power information is lower than a preset threshold.
In this scenario, the power consumption should be reduced as much as possible to enable the electronic device to continue the journey as much as possible, and the preset threshold is a critical value, such as five percent, with too low electric quantity.
Further, when the power information is determined to be lower than the preset threshold, step S203 is executed, and when the power information is determined to be not lower than the preset threshold, step S204 is executed.
In step S203, the microphone is turned off.
When the electric quantity information is judged to be lower than the preset threshold value, the electric quantity of the electronic equipment is over low, and the microphone is turned off, so that the best effect of saving power consumption is achieved.
In step S204, a preset electric quantity range corresponding to the electric quantity information is determined.
When the electric quantity information is judged to be not lower than the preset threshold value, the electric quantity of the electronic equipment is not low, the preset electric quantity range corresponding to the electric quantity information is determined, and the electric quantity information can be divided into 5 preset electric quantity ranges, namely zero percent to twenty percent, twenty percent to forty percent, forty percent to sixty percent, sixty percent to eighty percent and eighty percent to one hundred percent.
In step S205, a preset voice collecting frequency corresponding to the preset electric quantity range is obtained according to the association relationship in the preset electric quantity range matching database.
The database comprises an association relation between a preset electric quantity range and a preset voice acquisition frequency, and it is easy to understand that the higher the electric quantity of the electronic equipment is, the longer the endurance time of the electronic equipment is, and the higher the voice acquisition frequency can be correspondingly associated. The lower the electric quantity of the electronic equipment is, the lower the endurance time of the electronic equipment is, the lower the voice acquisition frequency can be correspondingly associated, the voice acquisition frequency is inversely proportional to the acquisition interval time, the higher the voice acquisition frequency is, the shorter the acquisition interval time is, the lower the voice acquisition frequency is, and the longer the acquisition interval time is. The association relationship may be as shown in table 1:
TABLE 1
Preset range of electric quantity Acquisition interval time
0-20 500ms
20-40 300ms
40-60 200ms
60-80 100ms
80-100 50ms
As can be seen from table 1, the larger the preset electric quantity range is, the smaller the collection interval time is, the higher the collection frequency is, the smaller the preset electric quantity range is, the larger the collection interval time is, and the lower the collection frequency is.
In step S206, current time point information is acquired.
Wherein, the electronic device acquires the current time point information, such as 16 hours and 38 minutes.
In step S207, it is determined whether the time point information is in a preset time period.
When the user uses the electronic device, the time of day is divided into a common time period (preset time period) and an uncommon time period, during the common time period, such as 7 hours to 9 hours, 12 hours to 14 hours and 18 hours to 23 hours, the probability of using the electronic device by the user is high, and during the uncommon time period, the probability of using the electronic device by the user is low. When the time point information is judged to be in the preset time period, step S208 is performed. When it is determined that the time point is not in the preset time period, step S209 is performed.
In an embodiment, the preset time period may be flexibly set according to a requirement of a user, and is not particularly limited in this case.
In step S208, the value of the preset voice capturing frequency is increased.
When the time point information is judged to be in the preset time period, the current time period is the common time period, and the value of the preset voice acquisition frequency can be increased, for example, the acquisition interval time of 5ms is reduced, so that the effect of increasing the preset voice acquisition frequency is achieved. Therefore, the voice collection can be faster and more accurate in the common time period.
In step S209, the value of the preset voice capturing frequency is lowered.
When the time point is judged not to be in the preset time period, the current time period is not the common time period, and the value of the preset voice acquisition frequency can be reduced, for example, the acquisition interval time of 5ms is increased, so that the effect of reducing the preset voice acquisition frequency is achieved. Therefore, the power consumption of the voice acquisition can be saved in the time period of not using the voice.
In step S210, the current voice collecting frequency of the electronic device is set as the adjusted preset voice collecting frequency.
The current voice acquisition frequency of the electronic equipment is set to be the preset voice acquisition frequency adjusted according to the time point information, so that the use scene of a user can be more accurately fitted.
As can be seen from the above, according to the processing method of the voice acquisition frequency provided by this embodiment, when the electronic device is in the voice wake-up state, the electric quantity information of the electronic device is acquired, the preset electric quantity range corresponding to the electric quantity information is determined, the association relation in the database is matched according to the preset electric quantity range, so as to obtain the preset voice acquisition frequency corresponding to the preset electric quantity range, the preset voice acquisition frequency is adjusted according to the current time point information, and the current voice acquisition frequency of the electronic device is set as the adjusted preset voice acquisition frequency. Therefore, when the electronic equipment is in the voice awakening state, the appropriate voice acquisition frequency can be adjusted according to the electric quantity of the electronic equipment, the electric quantity of the electronic equipment can be saved on the premise of not influencing the use of a user, and the cruising ability of the electronic equipment is improved.
In order to better implement the processing method of the voice acquisition frequency provided by the embodiment of the present application, the embodiment of the present application further provides a device based on the processing method of the voice acquisition frequency. The meaning of the noun is the same as that in the processing method of the voice acquisition frequency, and specific implementation details can refer to the description in the method embodiment.
Referring to fig. 4, fig. 4 is a schematic block diagram of a processing apparatus for acquiring a voice frequency according to an embodiment of the present disclosure. Specifically, the processing device 300 for acquiring a frequency of voice includes: an acquisition unit 31, a determination unit 32, a matching unit 33, and an adjustment unit 34.
The acquiring unit 31 is configured to acquire power information of the electronic device when the electronic device is in a voice wake-up state.
After the voice awakening function is turned on, the electronic device is in a voice awakening state, the electronic device can continuously monitor the sound information of the environment at a fixed voice acquisition frequency through the microphone, and performs operations such as analysis, voiceprint feature extraction, voiceprint feature verification and the like on the monitored sound information, so that corresponding response can be performed in real time according to the voice information of the user, namely, the microphone is always in a working state at the fixed voice acquisition frequency.
Based on this, the obtaining unit 31 obtains the power information of the electronic device when the electronic device is in the voice wake-up state, where the unit of the power information is a percentage system, for example, the power information is seventy percent.
The determining unit 32 is configured to determine a preset electric quantity range corresponding to the electric quantity information.
The power information may be divided into a plurality of preset power ranges, such as 5 preset power ranges, zero to twenty percent, twenty to forty percent, forty to sixty percent, sixty to eighty percent, and eighty to one hundred percent, based on which the power information is divided into the preset power ranges.
Further, the determination unit 32 determines a preset power range to which the current power information belongs.
In some embodiments, after the obtaining unit 31 obtains the power information of the electronic device, a determining unit (not identified) is further included for determining whether the power information is lower than a preset threshold; a closing unit (not marked) for closing the microphone when the electric quantity information is judged to be lower than a preset threshold value; the determining unit 32 is further configured to perform a step of determining a preset electric quantity range corresponding to the electric quantity information when it is determined that the electric quantity information is not lower than the preset threshold.
The matching unit 33 is configured to match the database according to the preset electric quantity range, so as to obtain a preset voice acquisition frequency corresponding to the preset electric quantity range.
The database stores the association relationship between the preset electric quantity range and the preset voice acquisition frequency in advance, and it is easy to understand that the higher the electric quantity of the electronic equipment is, the longer the endurance time of the electronic equipment is, and the higher the voice acquisition frequency can be correspondingly associated. The lower the electric quantity of the electronic equipment is, the lower the endurance time of the electronic equipment is, and the lower the voice acquisition frequency can be correspondingly associated.
Therefore, the matching unit 33 matches the database according to the preset electric quantity range in which the current electric quantity is located, and can obtain the preset voice acquisition frequency suitable for the preset electric quantity range according to the association relationship.
And the adjusting unit 34 is configured to adjust the current voice collecting frequency of the electronic device according to the preset voice collecting frequency.
Wherein, under normal conditions, the microphone is in operating condition with fixed pronunciation collection frequency all the time, if gather pronunciation once every 50ms, this pronunciation collection frequency is higher frequency, and the consumption is bigger, if electronic equipment's electric quantity information is higher, can maintain this consumption, but if electronic equipment's electric quantity information reduces the back, still gathers with this frequency, can cause the electric quantity to lose all the time, influences the time of endurance.
Therefore, after the preset voice collecting frequency is obtained, since the preset voice collecting frequency is relatively in line with the loss speed of the current electric quantity, the adjusting unit 34 adjusts the current voice collecting frequency of the electronic device to the preset voice collecting frequency, so that the power consumption of the electronic device can be better saved.
Referring to fig. 5 together, fig. 5 is another schematic block diagram of a processing apparatus for acquiring a voice frequency according to an embodiment of the present application, where the processing apparatus 300 for acquiring a voice frequency may further include:
the adjusting unit 34 may include an obtaining subunit 341, a first adjusting subunit 342, and a second adjusting subunit 343.
Further, the obtaining subunit 341 is configured to obtain current time point information. The first adjusting subunit 342 is configured to correspondingly adjust the preset voice collecting frequency according to the time point information. The second adjusting subunit 343 is configured to set the current voice collecting frequency of the electronic device to the adjusted preset voice collecting frequency.
The first adjusting subunit 342 is specifically configured to determine whether the time point information is within a preset time period; when the time point information is judged to be in a preset time period, increasing the value of the preset voice acquisition frequency; and when the time point information is judged not to be in the preset time period, reducing the value of the preset voice acquisition frequency.
As can be seen from the above, in the processing apparatus for acquiring a voice frequency according to this embodiment, the obtaining unit 31 obtains the power information of the electronic device when the electronic device is in a voice wake-up state; the determining unit 32 determines a preset electric quantity range corresponding to the electric quantity information; the matching unit 33 matches the database according to the preset electric quantity range to obtain a preset voice acquisition frequency corresponding to the preset electric quantity range; the adjusting unit 34 adjusts the current voice collecting frequency of the electronic device according to the preset voice collecting frequency. Therefore, when the electronic equipment is in the voice awakening state, the appropriate voice acquisition frequency can be adjusted according to the electric quantity of the electronic equipment, the electric quantity of the electronic equipment can be saved on the premise of not influencing the use of a user, and the cruising ability of the electronic equipment is improved.
The embodiment of the application also provides the electronic equipment. Referring to fig. 6, an electronic device 500 includes a processor 501 and a memory 502. The processor 501 is electrically connected to the memory 502.
The processor 500 is a control center of the electronic device 500, connects various parts of the whole electronic device using various interfaces and lines, performs various functions of the electronic device 500 by running or loading a computer program stored in the memory 502, and calls data stored in the memory 502, and processes the data, thereby performing overall monitoring of the electronic device 500.
The memory 502 may be used to store software programs and modules, and the processor 501 executes various functional applications and data processing by running the computer programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 502 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.
In this embodiment, the processor 501 in the electronic device 500 loads instructions corresponding to one or more processes of the computer program into the memory 502, and the processor 501 runs the computer program stored in the memory 502, so as to implement various functions as follows:
when the electronic equipment is in a voice awakening state, acquiring electric quantity information of the electronic equipment;
determining a preset electric quantity range corresponding to the electric quantity information;
matching a database according to the preset electric quantity range to obtain a preset voice acquisition frequency corresponding to the preset electric quantity range;
and adjusting the current voice acquisition frequency of the electronic equipment according to the preset voice acquisition frequency.
In some embodiments, when the current voice capturing frequency of the electronic device is adjusted according to the preset voice capturing frequency, the processor 501 may specifically perform the following steps:
acquiring current time point information;
correspondingly adjusting the preset voice acquisition frequency according to the time point information;
and setting the current voice acquisition frequency of the electronic equipment as the adjusted preset voice acquisition frequency.
In some embodiments, when the preset speech acquisition frequency is adjusted according to the time point information, the processor 501 may specifically perform the following steps:
judging whether the time point information is in a preset time period or not;
when the time point information is judged to be in a preset time period, increasing the value of the preset voice acquisition frequency;
and when the time point information is judged not to be in the preset time period, reducing the value of the preset voice acquisition frequency.
In some embodiments, after obtaining the power information of the electronic device, the processor 501 may further specifically perform the following steps:
judging whether the electric quantity information is lower than a preset threshold value or not;
when the electric quantity information is judged to be lower than a preset threshold value, the microphone is closed;
and when the electric quantity information is judged to be not lower than the preset threshold value, executing a step of determining a preset electric quantity range corresponding to the electric quantity information.
In some embodiments, the database includes an association relationship between a preset electric quantity range and a preset voice acquisition frequency, and when the database is matched according to the preset electric quantity range to obtain a preset voice acquisition frequency corresponding to the preset electric quantity range, the processor 501 may specifically perform the following steps:
and matching the incidence relation in the database according to the preset electric quantity range to obtain the preset voice acquisition frequency corresponding to the preset electric quantity range.
As can be seen from the above, the electronic device according to the embodiment of the application acquires the electric quantity information of the electronic device when the electronic device is in the voice wake-up state; determining a preset electric quantity range corresponding to the electric quantity information; matching the database according to the preset electric quantity range to obtain a preset voice acquisition frequency corresponding to the preset electric quantity range; and adjusting the current voice acquisition frequency of the electronic equipment according to the preset voice acquisition frequency. Therefore, when the electronic equipment is in the voice awakening state, the appropriate voice acquisition frequency can be adjusted according to the electric quantity of the electronic equipment, the electric quantity of the electronic equipment can be saved on the premise of not influencing the use of a user, and the cruising ability of the electronic equipment is improved.
Referring to fig. 7, in some embodiments, the electronic device 500 may further include: a display 503, radio frequency circuitry 504, audio circuitry 505, and a power supply 506. The display 503, the rf circuit 504, the audio circuit 505, and the power source 506 are electrically connected to the processor 501.
The display 503 may be used to display information entered by or provided to the user as well as various graphical user interfaces, which may be made up of graphics, text, icons, video, and any combination thereof. The Display 503 may include a Display panel, and in some embodiments, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The rf circuit 504 may be used for transceiving rf signals to establish wireless communication with a network device or other electronic devices via wireless communication, and for transceiving signals with the network device or other electronic devices.
The audio circuit 505 may be used to provide an audio interface between a user and an electronic device through a speaker, microphone.
The power source 506 may be used to power various components of the electronic device 500. In some embodiments, power supply 506 may be logically coupled to processor 501 through a power management system, such that functions of managing charging, discharging, and power consumption are performed through the power management system.
Although not shown in fig. 7, the electronic device 500 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
An embodiment of the present application further provides a storage medium, where the storage medium stores a computer program, and when the computer program runs on a computer, the computer is caused to execute the processing method of the voice acquisition frequency in any one of the above embodiments, such as: when the electronic equipment is in a voice awakening state, acquiring electric quantity information of the electronic equipment; determining a preset electric quantity range corresponding to the electric quantity information; matching the database according to the preset electric quantity range to obtain a preset voice acquisition frequency corresponding to the preset electric quantity range; and adjusting the current voice acquisition frequency of the electronic equipment according to the preset voice acquisition frequency.
In the embodiment of the present application, the storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It should be noted that, for the method for processing a speech acquisition frequency in the embodiment of the present application, it can be understood by a person skilled in the art that all or part of the process of implementing the method for processing a speech acquisition frequency in the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, where the computer program can be stored in a computer-readable storage medium, such as a memory of an electronic device, and executed by at least one processor in the electronic device, and during the execution process, the process of the embodiment of the method for processing a speech acquisition frequency can be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, etc.
For the processing device of the voice acquisition frequency in the embodiment of the present application, each functional module may be integrated in one processing chip, or each module may exist alone physically, or two or more modules are integrated in one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The foregoing describes in detail a processing method, an apparatus, a storage medium, and an electronic device for voice acquisition frequency provided in an embodiment of the present application, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the foregoing embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (5)

1. A processing method for voice acquisition frequency is characterized by comprising the following steps:
when the electronic equipment is in a voice awakening state, a microphone of the electronic equipment is in a monitoring state to acquire sound information in the environment and acquire electric quantity information of the electronic equipment;
judging whether the electric quantity information is lower than a preset threshold value or not;
when the electric quantity information is judged to be lower than a preset threshold value, closing the microphone;
when the electric quantity information is judged to be not lower than a preset threshold value, determining a preset electric quantity range corresponding to the electric quantity information;
matching a database according to the preset electric quantity range to obtain a preset voice acquisition frequency corresponding to the preset electric quantity range;
acquiring current time point information;
correspondingly adjusting the preset voice acquisition frequency according to the time point information, wherein whether the time point information is in a preset time period or not is judged, when the time point information is judged to be in the preset time period, the value of the preset voice acquisition frequency is increased, and when the time point information is judged not to be in the preset time period, the value of the preset voice acquisition frequency is decreased, wherein the preset time period is a common time period;
and setting the current voice acquisition frequency of the electronic equipment as the adjusted preset voice acquisition frequency.
2. The method for processing the voice collecting frequency according to claim 1, wherein the database includes an association relationship between a preset electric quantity range and a preset voice collecting frequency, and the step of matching the database according to the preset electric quantity range to obtain the preset voice collecting frequency corresponding to the preset electric quantity range includes:
and matching the incidence relation in a database according to the preset electric quantity range to obtain a preset voice acquisition frequency corresponding to the preset electric quantity range.
3. A processing apparatus for acquiring a frequency of a voice, comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring sound information in the environment by monitoring a microphone of the electronic equipment when the electronic equipment is in a voice awakening state and acquiring electric quantity information of the electronic equipment;
the determining unit is used for judging whether the electric quantity information is lower than a preset threshold value or not; when the electric quantity information is judged to be lower than a preset threshold value, closing the microphone; when the electric quantity information is judged to be not lower than a preset threshold value, determining a preset electric quantity range corresponding to the electric quantity information;
the matching unit is used for matching a database according to the preset electric quantity range so as to obtain a preset voice acquisition frequency corresponding to the preset electric quantity range;
the adjusting unit is used for acquiring current time point information; correspondingly adjusting the preset voice acquisition frequency according to the time point information, wherein whether the time point information is in a preset time period or not is judged, when the time point information is judged to be in the preset time period, the value of the preset voice acquisition frequency is increased, and when the time point information is judged not to be in the preset time period, the value of the preset voice acquisition frequency is decreased, wherein the preset time period is a common time period; and setting the current voice acquisition frequency of the electronic equipment as the adjusted preset voice acquisition frequency.
4. A storage medium having stored thereon a computer program, characterized in that, when the computer program is run on a computer, it causes the computer to execute the processing method of a speech acquisition frequency according to any one of claims 1 to 2.
5. An electronic device comprising a processor and a memory, said memory having a computer program, wherein said processor is adapted to perform the method of processing a speech acquisition frequency according to any of claims 1 to 2 by invoking said computer program.
CN201810630330.7A 2018-06-19 2018-06-19 Voice acquisition frequency processing method and device, storage medium and electronic equipment Active CN108810280B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810630330.7A CN108810280B (en) 2018-06-19 2018-06-19 Voice acquisition frequency processing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810630330.7A CN108810280B (en) 2018-06-19 2018-06-19 Voice acquisition frequency processing method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN108810280A CN108810280A (en) 2018-11-13
CN108810280B true CN108810280B (en) 2021-01-08

Family

ID=64083525

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810630330.7A Active CN108810280B (en) 2018-06-19 2018-06-19 Voice acquisition frequency processing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN108810280B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109412544B (en) * 2018-12-20 2022-07-08 歌尔科技有限公司 Voice acquisition method and device of intelligent wearable device and related components
CN109961787A (en) * 2019-02-20 2019-07-02 北京小米移动软件有限公司 Determine the method and device of acquisition end time
CN112217289A (en) * 2019-07-10 2021-01-12 深圳市文鼎创数据科技有限公司 Induction power taking method and terminal
CN110880322B (en) * 2019-11-29 2022-05-27 中核第四研究设计工程有限公司 Control method of monitoring equipment and voice control device
CN111831100B (en) * 2020-07-06 2022-03-22 Oppo广东移动通信有限公司 Electronic device control method and device, storage medium and electronic device
CN112687080B (en) * 2020-12-21 2022-08-09 中国地质环境监测院 Geological disaster monitoring equipment acquisition and reporting frequency adjusting method combined with meteorological early warning
CN115150307B (en) * 2022-06-30 2023-12-22 珠海天融信网络安全技术有限公司 Method and device for collecting frequency safety detection, storage medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103578474A (en) * 2013-10-25 2014-02-12 小米科技有限责任公司 Method, device and equipment for voice control
CN106211292A (en) * 2016-08-19 2016-12-07 广东欧珀移动通信有限公司 The air navigation aid of a kind of mobile terminal and mobile terminal
KR20170106595A (en) * 2016-03-11 2017-09-21 제주대학교 산학협력단 System and method for transmitting highly directive multimedia contents using parametric array

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103578474A (en) * 2013-10-25 2014-02-12 小米科技有限责任公司 Method, device and equipment for voice control
KR20170106595A (en) * 2016-03-11 2017-09-21 제주대학교 산학협력단 System and method for transmitting highly directive multimedia contents using parametric array
CN106211292A (en) * 2016-08-19 2016-12-07 广东欧珀移动通信有限公司 The air navigation aid of a kind of mobile terminal and mobile terminal

Also Published As

Publication number Publication date
CN108810280A (en) 2018-11-13

Similar Documents

Publication Publication Date Title
CN108810280B (en) Voice acquisition frequency processing method and device, storage medium and electronic equipment
EP2821992B1 (en) Method for updating voiceprint feature model and terminal
CN108108142A (en) Voice information processing method, device, terminal device and storage medium
KR20160001965A (en) Providing Method For Voice Command and Electronic Device supporting the same
CN110364156A (en) Voice interactive method, system, terminal and readable storage medium storing program for executing
CN109101517B (en) Information processing method, information processing apparatus, and medium
CN110223687B (en) Instruction execution method and device, storage medium and electronic equipment
CN108848264A (en) Control method, device, storage medium and the electronic equipment of microphone
CN112700782A (en) Voice processing method and electronic equipment
US11915700B2 (en) Device for processing user voice input
CN109712623A (en) Sound control method, device and computer readable storage medium
EP3826008A1 (en) Voice processing method and apparatus, storage medium, and electronic device
CN109003607B (en) Voice recognition method, voice recognition device, storage medium and electronic equipment
CN108924343A (en) Control method of electronic device, device, storage medium and electronic equipment
CN110322880A (en) Vehicle-mounted terminal equipment and the method for waking up its multiple interactive voice program
US11437031B2 (en) Activating speech recognition based on hand patterns detected using plurality of filters
CN108600559B (en) Control method and device of mute mode, storage medium and electronic equipment
EP4095850A1 (en) Instruction execution method and apparatus, storage medium, and electronic device
CN108989551B (en) Position prompting method and device, storage medium and electronic equipment
CN109064720B (en) Position prompting method and device, storage medium and electronic equipment
CN107154996B (en) Incoming call interception method and device, storage medium and terminal
CN111028846B (en) Method and device for registration of wake-up-free words
US20210056974A1 (en) Method and apparatus for activating speech recognition
WO2020102979A1 (en) Method and apparatus for processing voice information, storage medium and electronic device
CN116030817B (en) Voice wakeup method, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant