WO2021058004A1 - Device control method and apparatus, electronic device, and readable storage medium - Google Patents

Device control method and apparatus, electronic device, and readable storage medium Download PDF

Info

Publication number
WO2021058004A1
WO2021058004A1 PCT/CN2020/118465 CN2020118465W WO2021058004A1 WO 2021058004 A1 WO2021058004 A1 WO 2021058004A1 CN 2020118465 W CN2020118465 W CN 2020118465W WO 2021058004 A1 WO2021058004 A1 WO 2021058004A1
Authority
WO
WIPO (PCT)
Prior art keywords
sound pickup
pickup mode
voice
field
far
Prior art date
Application number
PCT/CN2020/118465
Other languages
French (fr)
Chinese (zh)
Inventor
黄顺明
刘作虎
Original Assignee
深圳市万普拉斯科技有限公司
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 深圳市万普拉斯科技有限公司 filed Critical 深圳市万普拉斯科技有限公司
Publication of WO2021058004A1 publication Critical patent/WO2021058004A1/en

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • 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
    • 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/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • H04W52/0254Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity detecting a user operation or a tactile contact or a motion of the device
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; 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

Definitions

  • This application relates to the field of intelligent control technology, and specifically to a device control method, device, electronic device, and readable storage medium.
  • Voice interaction technology has become an important branch of current AI (Artificial Intelligence) technology, which makes the interaction between humans and machines more intelligent and convenient.
  • AI Artificial Intelligence
  • the pickup unit of the controlled device will always be in working condition, that is, the pickup unit of the controlled device is always collecting voice information, and the pickup unit of the controlled device collects voice information.
  • the controlled device switches from the standby state to the on state, and subsequently controls itself according to the collected voice information. Since the pickup unit of the controlled device is always working, the standby power consumption of the controlled device will be relatively high.
  • a device control method applied to a first device and a voice button is provided on the first device, and the method includes: obtaining the voice when the voice button is triggered The duration of the button being triggered; the target sound pickup pattern is determined according to the duration of the voice button being triggered, wherein the target sound pickup pattern includes a near-field sound pickup pattern and a far-field sound pickup pattern; the target sound pickup pattern is When it is determined to be the near-field pickup mode, the voice information is collected, and the collected voice information is sent to the second device in Bluetooth mode to perform voice control on the second device; the target pickup mode is determined to be the far-field In the sound pickup mode, sending a far-field sound pickup mode on signal to the second device, so that the second device collects voice information, and controls the second device according to the collected voice information.
  • a device control method is provided, which is applied to a voice control system, the system includes a first device and a second device, wherein a voice button is provided on the first device, and the method includes : The first device detects whether the voice button is triggered; if it is triggered, the first device obtains the duration when the voice button is triggered; the first device determines the target according to the duration when the voice button is triggered Pickup pattern, wherein the target pickup pattern is a near-field pickup pattern or a far-field pickup pattern; when the target pickup pattern is a near-field pickup pattern, the first device collects voice information and will collect The received voice information is sent to the second device in Bluetooth mode to perform voice control on the second device; when the target sound pickup mode is the far-field sound pickup mode, the first device sends the voice to the second device Sending a far-field sound pickup mode on signal; the second device collects voice information after receiving the far-field sound pickup mode on signal, and controls the second device according to the collected voice
  • a device control device applied to a first device, the first device is provided with a voice button, and the device includes: a detection module for detecting whether the voice button is triggered The detection module is also used to obtain the duration of the voice button being triggered when the voice button is triggered; the mode determination module is used to determine the target sound pickup mode according to the duration of the voice button being triggered, wherein , The target pickup mode is a near-field pickup mode or a far-field pickup mode; the sending module is used to collect voice information when the target pickup mode is a near-field pickup mode, and convert the collected voice information to Bluetooth is sent to the second device to perform voice control on the second device; the sending module is also used to send far-field pickup to the second device when the target pickup mode is a far-field pickup mode.
  • the sound mode is turned on signal, so that the second device collects voice information, and controls the second device according to the collected voice information.
  • an electronic device including a processor and a memory, the memory storing machine executable instructions that can be executed by the processor, and the processor can execute the machine executable instructions ,
  • the voice button when the voice button is triggered, the time length of the voice button is obtained; the target sound pickup pattern is determined according to the time length when the voice button is triggered, wherein the target sound pickup pattern includes near-field pickup Voice mode and far-field pickup mode; when the target pickup mode is determined to be the near-field pickup mode, collect voice information, and send the collected voice information to the second device in Bluetooth mode to The device performs voice control; when the target sound pickup mode is determined to be the far-field sound pickup mode, send a far-field sound pickup mode on signal to the second device, so that the second device collects voice information, and according to The collected voice information controls the second device.
  • a non-volatile readable storage medium with a computer program stored thereon characterized in that the computer program is executed when the processor is executed: when the voice button is When triggered, obtain the duration of the voice button being triggered; determine the target pickup pattern according to the duration of the voice button being triggered, wherein the target pickup pattern includes a near-field pickup pattern and a far-field pickup pattern;
  • the target sound pickup mode is determined to be the near-field sound pickup mode, collect voice information, and send the collected voice information to the second device in Bluetooth mode, so as to perform voice control on the second device;
  • the sound mode is determined to be the far-field pickup mode, send a far-field pickup mode on signal to the second device, so that the second device collects voice information, and responds to the second device according to the collected voice information.
  • the device is controlled.
  • FIG. 1 is a schematic block diagram of a first device provided by an embodiment of the present application
  • FIG. 2 is one of the schematic flowcharts of the device control method provided by the embodiment of the application.
  • FIG. 3 is the second schematic flowchart of the device control method provided by the embodiment of the present application.
  • FIG. 4 is the third schematic flowchart of a device control method provided by an embodiment of the present application.
  • Fig. 5 is a schematic block diagram of a device control apparatus provided by an embodiment of the present application.
  • first and “second” and other relational terms are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply one of these entities or operations. There is any such actual relationship or order between.
  • the terms “include”, “include” or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes those that are not explicitly listed Other elements of, or also include elements inherent to this process, method, article or equipment. Without more restrictions, the element defined by the sentence “including a" does not exclude the existence of other identical elements in the process, method, article or equipment that includes the element.
  • the inventor of the present application found that the current voice control of the controlled device by humans is divided into: near-field voice control and far-field voice control.
  • near-field voice control the user generally manually controls a device close to the user (for example, a remote control held by the user) to collect voice information, and then the device sends the collected information to the controlled device, and the controlled device The voice information controls itself, thereby realizing near-field voice control.
  • the user is inconvenient to use the near-field voice control, for example, when the device that can collect and send voice information to the controlled device is far away, the user can realize the far-field voice control of the controlled device through the wake-up word.
  • the pickup unit of the controlled device in the standby state is always in the working state.
  • the pickup unit When the pickup unit collects the wake-up word, it will wake up the controlled device in the standby state, so that the controlled device subsequently collects the data according to its own pickup unit.
  • the voice information performs corresponding voice control on itself, thereby realizing far-field voice control.
  • the pickup unit of the controlled device in the standby state is always in the working state, which will result in being charged.
  • the standby power consumption of the device is relatively high.
  • the pickup unit of the controlled device collects the wake-up word, the controlled device will be woken up. This method has the problem of false wake-up, for example, the TV is accidentally woken up in the middle of the night, which seriously affects the user experience.
  • FIG. 1 is a block diagram of a first device 100 according to an embodiment of the present application.
  • the first device 100 may be, but is not limited to, a handheld device (such as a remote control), a wearable device, or the like.
  • the first device 100 includes a memory 110, a processor 120, and a communication unit 130.
  • the components of the memory 110, the processor 120, and the communication unit 130 are directly or indirectly electrically connected to each other to realize data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines.
  • the memory 110 is used to store programs or data.
  • the memory 110 may be, but is not limited to, a random access memory (Random Access Memory, RAM), a read only memory (Read Only Memory, ROM), and a programmable read-only memory (Programmable Read-Only Memory, PROM). Erasable Programmable Read-Only Memory (EPROM), Electric Erasable Programmable Read-Only Memory (EEPROM), etc.
  • RAM Random Access Memory
  • ROM read only memory
  • PROM programmable read-only memory
  • PROM Programmable Read-Only Memory
  • EPROM Erasable Programmable Read-Only Memory
  • EEPROM Electric Erasable Programmable Read-Only Memory
  • the processor 120 is used to read/write data or programs stored in the memory 110 and execute corresponding functions.
  • a device control device 200 is stored in the memory 110, and the device control device 200 includes at least one software function module that can be stored in the memory 110 in the form of software or firmware.
  • the processor 120 executes the device control apparatus 200 stored in the memory 110 to implement the device control method in the embodiment of the present application.
  • the communication unit 130 is configured to establish a communication connection between the first device 100 and other communication terminals through a network, and is configured to send and receive data through the network.
  • the communication unit 130 may include a first infrared communication unit and a first Bluetooth communication unit.
  • the first infrared communication unit is used for receiving and transmitting infrared wireless signals
  • the first Bluetooth communication unit is used for receiving and transmitting Bluetooth wireless signals.
  • Bluetooth is a short-distance wireless connection method that can realize fast and flexible data and voice communication in the personal area.
  • the first device 100 can communicate with other devices in a Bluetooth mode or an infrared mode.
  • the first device 100 may further include a first sound pickup unit, and the first sound pickup unit may be, but is not limited to, a microphone.
  • the first device 100 performs voice collection through the first pickup unit. After obtaining the voice, the first device 100 may process the voice, so as to subsequently send the voice to other devices in Bluetooth.
  • the voice processing may be the first pickup unit in the first device 100, or may be other devices in the first device 100.
  • FIG. 1 is only a schematic structural diagram of the first device 100, and the first device 100 may also include more or fewer components than those shown in FIG. Show different configurations.
  • the components shown in FIG. 1 can be implemented by hardware, software, or a combination thereof.
  • the voice information may be sent to the second device.
  • the second device controls itself according to the received voice information.
  • the second device may be, but is not limited to, a television or the like.
  • the first device 100 is a remote control
  • the second device is a TV. If the second device analyzes the voice information collected and sent by the first device 100 to reduce the volume, it will This voice message turns down the volume. Thus, the voice control of the second device can be completed.
  • the second device may include a second infrared communication unit, a second Bluetooth communication unit, a second sound pickup unit, and a control unit.
  • the second infrared communication unit is used for receiving and transmitting infrared wireless signals.
  • the second Bluetooth communication unit is used for receiving and transmitting Bluetooth wireless signals.
  • the second pickup unit is used to collect voice, so that the second device controls the second device according to the collected voice information.
  • the second device can use the second infrared communication unit, the second Bluetooth The communication unit or other communication units send voice information to other devices, and then control itself according to the processed voice information returned by the other devices.
  • the second pickup unit or other devices in the second device can process the collected voice, so as to subsequently parse out the voice control instruction corresponding to the voice, or to facilitate sending to other devices to analyze the voice corresponding voice control instruction.
  • FIG. 2 is one of the schematic flowcharts of the device control method provided by the embodiment of the present application.
  • the device control method is applied to the first device 100, and the first device 100 is provided with a voice button.
  • the specific process of the device control method is described in detail below.
  • Step S110 Detect whether the voice button is triggered.
  • step S120 is executed.
  • Step S120 Obtain the length of time the voice button is triggered.
  • Step S130 judging whether the target sound pickup mode is a near-field sound pickup mode according to the duration of when the voice button is triggered.
  • step S140 If yes, go to step S140; if not, go to step S150.
  • Step S140 Collect voice information, and send the collected voice information to the second device in a Bluetooth mode, so as to perform voice control on the second device.
  • Step S150 When the target sound pickup mode is the far-field sound pickup mode, send a far-field sound pickup mode on signal to the second device, so that the second device collects voice information, and according to the collected voice The information controls the second device.
  • the first device 100 can determine whether the voice button is triggered by detecting the level state corresponding to the voice button.
  • the voice button is triggered, indicating that the user wants to turn on the voice control function.
  • the first device 100 obtains the duration of the voice button being triggered. Then the obtained trigger duration is compared with the preset duration, and the target sound pickup pattern corresponding to the trigger duration is determined according to the preset rule, so that the voice information is subsequently collected according to the target sound pickup pattern, and then the second device Voice control.
  • the pickup pattern includes a far-field pickup pattern and a near-field pickup pattern.
  • the target pickup pattern can be a far-field pickup pattern or a near-field pickup pattern.
  • different pickup modes correspond to different voice control methods. For example, the far-field pickup mode corresponds to far-field voice control, and the near-field pickup mode corresponds to near-field voice control.
  • the preset rules include: when the voice button is long-pressed, the target pickup mode is determined to be the far-field pickup mode; when the voice button is short-pressed, the target pickup mode is determined to be Near-field pickup mode.
  • the first device 100 determines that the voice button is long pressed when the trigger duration is greater than or equal to the preset duration; when the trigger duration is less than the preset duration, determines The voice button is short pressed.
  • the target sound pickup mode is the near-field sound pickup mode
  • the first device 100 can perform near-field sound pickup through the first sound pickup unit to obtain voice information
  • the voice information is sent to the second device through the first Bluetooth communication unit, so that the second device can control itself according to the voice information.
  • the first device 100 may also send notification information that the user triggers the near-field voice control function to the second device through the first Bluetooth communication unit and/or the first infrared communication unit.
  • a key-value command library is stored in the second device, and the key-value command library includes a correspondence relationship between infrared key values, Bluetooth key values, and control commands.
  • the first device 100 may send a first preset infrared key value and/or a first preset Bluetooth key value to the second device, and the second device may command the library according to the key value and receive The first preset infrared key value and/or the first preset Bluetooth key value of, determine to turn on the near-field sound pickup mode.
  • the target sound pickup mode is the far-field sound pickup mode
  • the first device 100 may send a far-field sound pickup mode on signal to the second device.
  • the second device After the second device receives the far-field pickup mode on signal, it enters the power-on state from the standby state, and controls the second pickup unit to switch from the off state to the working state, thereby performing far-field pickup through the second pickup unit Voice to obtain voice information, and then control itself according to the voice information.
  • the first device 100 may send a far-field sound pickup mode activation signal to the second device in a Bluetooth mode and/or an infrared mode.
  • the first device 100 may send a second preset infrared key value and/or a second preset Bluetooth key value to the second device, and the second device may command the library and the second device according to the key value. After receiving the second preset infrared key value and/or the second preset Bluetooth key value, it is determined that the far-field sound pickup mode is turned on.
  • the second pickup unit and the second device of the second device are awakened.
  • the second pickup unit of the second device is always in working state, thereby effectively reducing the standby power consumption of the second device.
  • there is no need for a wake-up word and the second device will not wake up by mistake.
  • the first device 100 can trigger the near-field voice control function and the far-field voice control function without increasing any hardware cost.
  • step S161 to step S163 may be after step S110, or after step S120, or after step S130.
  • the sequence of steps S161 to S163 in the device control method is not specifically limited here, which can be based on Set up according to actual needs.
  • Step S161 Determine whether Bluetooth pairing has been performed with the second device.
  • Step S162 It is judged whether it is in a Bluetooth connection state with the second device.
  • step S163 is executed.
  • Step S163 Send a connection broadcast to the second device in a Bluetooth mode to establish a Bluetooth connection with the second device.
  • the first device 100 can determine whether it has paired with the second device based on Bluetooth pairing records. If it has been paired, it is determined whether it is currently in a Bluetooth connection state with the second device. If it is in the Bluetooth connection state, it can communicate with the second device via Bluetooth. For example, the first device 100 may send the collected voice information to the second device via Bluetooth. If it is not in the Bluetooth connection state, the first device 100 can send a Bluetooth connection broadcast to the second device according to the related information of the second device in the Bluetooth pairing record, so as to establish the connection between the first device 100 and the second device. Bluetooth communication between devices.
  • step S163 the method may further include step S164.
  • Step S164 If the connection is not successful within the first preset time period, the first prompt message for prompting the voice control failure is sent to the second device in an infrared manner.
  • the first device 100 may send a first prompt to the second device through the first infrared communication unit information.
  • the second device displays the first prompt information to prompt the user that the voice control fails this time.
  • the first device 100 may send a third preset infrared key value to the second device, and the second device determines to display a prompt according to the key value command library and the third preset infrared key value The user’s voice control failed this time.
  • the first preset time period can be set according to actual requirements, for example, 200 ms.
  • step S161 if the first device 100 and the second device have not been paired with Bluetooth, the method may further include step S165.
  • Step S165 Infrared is sent to the second device a second prompt message for prompting the Bluetooth pairing between the first device 100 and the second device.
  • the first infrared communication unit may send the second prompt information to the second device in an infrared manner.
  • the second device displays the second prompt information to prompt the user to perform Bluetooth pairing between the first device 100 and the second device.
  • the first device 100 may send a fourth preset infrared key value to the second device, and the second device determines to display a prompt according to the key value command library and the fourth preset infrared key value The user is prompted to perform Bluetooth pairing between the first device 100 and the second device.
  • the first device 100 may determine the target pickup The mode is the near-field pickup mode or the far-field pickup mode, and then step S140 or step S150 is executed.
  • the second device may determine the target pickup The mode is the far-field pickup mode, and the far-field pickup is performed, and then it controls itself.
  • the third preset time period may be greater than, equal to, or less than the fourth preset time period, and may be set according to actual needs.
  • step S165 after step S165 is executed, the current device control process ends.
  • the method may further include:
  • the near-field sound pickup mode or the far-field sound pickup mode is used as the target sound pickup mode.
  • the first device 100 after the first device 100 detects that the voice button is triggered, it can send the third preset Bluetooth key value to the second device via Bluetooth, or send it to the second device via infrared.
  • the fifth preset infrared key value, or the third preset Bluetooth key value and the fifth preset infrared key value are sent to the second device.
  • the second device determines to display the near-field sound pickup mode option and the far-field sound pickup mode option according to the key value command library, the received third preset Bluetooth key value and/or the fifth preset infrared key value.
  • the user can use the arrow keys and the OK key of the first device 100 to make selections.
  • the default sound pickup mode may be used as the target sound pickup mode.
  • the default pickup mode can be a far-field pickup mode or a near-field pickup mode.
  • the second preset time period can be set according to actual needs.
  • the first device 100 may send the duration to the second device after obtaining the duration when the voice button is triggered.
  • the first device 100 may send the fourth preset key value and/or the sixth preset infrared key value to the second device via Bluetooth, and the second device commands the library and the fourth device according to the key value.
  • the preset key value and/or the sixth preset infrared key value determine the specific value of the duration.
  • the second device determines whether to turn on the far-field sound pickup mode according to the duration. If it is not necessary to turn on the far-field sound pickup mode, the second device may return to the first device 100 an activation signal for turning on the near-field sound pickup mode.
  • FIG. 4 is the third schematic flowchart of the device control method provided by the embodiment of the present application.
  • the device control method is applied to a voice control system, the system includes a first device 100 and a second device, wherein the first device 100 is provided with a voice button.
  • the basic principles and technical effects of the device control method applied to the voice control system provided by this embodiment are the same as those of the above embodiment.
  • the parts not mentioned in this embodiment may be Refer to the corresponding content in the above-mentioned embodiment. The following briefly describes the device control method used in the voice control system.
  • step S210 the first device 100 detects whether the voice button is triggered.
  • step S220 is executed.
  • step S220 the first device 100 obtains the duration of when the voice button is triggered.
  • step S230 the first device 100 determines whether the target sound pickup pattern is a near-field sound pickup pattern according to the duration of when the voice button is triggered.
  • step S240 is executed.
  • step S240 the first device 100 collects voice information, and sends the collected voice information to the second device in a Bluetooth mode, so as to perform voice control on the second device.
  • step S250 and step S260 are executed.
  • step S250 the first device 100 sends a far-field sound pickup mode on signal to the second device.
  • step S260 the second device collects voice information after receiving the far-field sound pickup mode activation signal, and controls the second device according to the collected voice information.
  • the method may further include the following steps.
  • the first device 100 determines whether Bluetooth pairing has been performed with the second device.
  • the first device 100 sends to the second device in an infrared manner second prompt information for prompting the Bluetooth pairing between the first device 100 and the second device.
  • the second device After receiving the second prompt information, the second device displays second prompt information for prompting the Bluetooth pairing between the first device 100 and the second device.
  • the second device When the second device does not receive a Bluetooth pairing operation within a third preset time period after displaying the second prompt information, the second device collects voice information, and controls the second device according to the collected voice information.
  • the first device 100 determines whether it is in the Bluetooth connection state with the second device; if it is in the Bluetooth connection state, executes the collection of the first device 100 when the target sound pickup mode is the near-field sound pickup mode
  • the received voice information is sent to the second device in Bluetooth mode to perform the steps of voice control of the second device; if it is not in the Bluetooth connection state, the second device will be sent back to the second device in Bluetooth mode to connect to the second device. Establish a Bluetooth connection between.
  • the device control apparatus 200 may adopt the above-mentioned first device 100 shown in FIG. 1 Device structure.
  • FIG. 5 is a block diagram of a device control apparatus 200 provided in an embodiment of the present application. It should be noted that the basic principles and technical effects of the device control device 200 provided in this embodiment are the same as those of the above-mentioned embodiment. For a brief description, for parts not mentioned in this embodiment, please refer to the above-mentioned embodiment. In the corresponding content.
  • the device control apparatus 200 may include: a detection module 210, a mode determination module 220, and a sending module 230.
  • the detection module 210 is used to detect whether the voice button is triggered.
  • the detection module 210 is further configured to obtain the duration of the voice button being triggered when the voice button is triggered.
  • the mode determining module 220 is configured to determine a target sound pickup mode according to the duration of the voice button being triggered.
  • the target sound pickup pattern is a near-field sound pickup pattern or a far-field sound pickup pattern.
  • the sending module 230 is configured to collect voice information when the target sound pickup mode is the near-field pickup mode, and send the collected voice information to the second device in a Bluetooth mode, so as to perform voice control on the second device.
  • the sending module 230 is further configured to send a far-field sound pickup mode activation signal to the second device when the target sound pickup mode is a far-field sound pickup mode, so that the second device can collect voice information, And control the second device according to the collected voice information.
  • the above-mentioned modules may be stored in the memory 110 shown in FIG. 1 in the form of software or firmware (Firmware) or solidified in the operating system (OS) of the first device 100, and may be stored in the operating system (OS) of the first device 100 in the form of software or firmware (Firmware).
  • the processor 120 executes.
  • data, program codes, etc. required to execute the above-mentioned modules may be stored in the memory 110.
  • the embodiment of the present application also provides a readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the device control method applied to the first device 100 is implemented.
  • the embodiments of the present application provide a device control method, device, electronic device, and readable storage medium.
  • the first device detects whether the voice button is triggered, and if it is triggered, it obtains the duration of the voice button being triggered. Then determine whether the target pickup mode is the near-field pickup mode or the far-field pickup mode according to the duration of the trigger. If the target sound pickup mode is the near-field sound pickup mode, the voice information is collected, and the collected voice information is sent to the second device, so as to perform voice control on the second device. If the target sound pickup mode is the far-field sound pickup mode, it sends a far-field sound pickup mode on signal to the second device.
  • the second device After receiving the signal, the second device collects voice information and performs operations on itself based on the collected voice information. control. Therefore, it is determined whether to turn on the near-field pickup mode or the far-field pickup mode according to the time when the voice button is triggered, so that there is no need for wake-up words and no need for the pickup unit of the second device to be in working state all the time.
  • the far-field voice control of the second device solves the problem of waking up the second device by mistake due to the wake-up word, and at the same time reduces the standby power consumption of the second device without increasing any hardware cost.
  • each block in the flowchart or block diagram may represent a module, program segment, or part of the code, and the module, program segment, or part of the code contains one or more functions for realizing the specified logic function.
  • Executable instructions may also occur in a different order from the order marked in the drawings.
  • each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart can be implemented by a dedicated hardware-based system that performs the specified functions or actions Or it can be realized by a combination of dedicated hardware and computer instructions.
  • the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist alone, or two or more modules may be integrated to form an independent part.
  • the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of the present application essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks and other media that can store program codes. .

Abstract

Disclosed are a device control method and apparatus, an electronic device, and a readable storage medium, relating to the technical field of intelligent control. The device control method comprises: when a voice button is triggered, a first device (100) determining, according to the triggering duration, whether a target sound pickup mode is a near-field sound pickup mode or a far-field sound pickup mode (S130); if the target sound pickup mode is a near-field sound pickup mode, collecting voice information, and sending the collected voice information to a second device (S140); and if the target sound pickup mode is a far-field sound pickup mode, sending a far-field sound pickup mode enabling signal to the second device, and the second device subsequently collecting the voice information, and controlling the second device according to the voice information (S150).

Description

设备控制方法、装置、电子设备及可读存储介质Device control method, device, electronic device and readable storage medium 【技术领域】【Technical Field】
本申请涉及智能控制技术领域,具体而言,涉及一种设备控制方法、装置、电子设备及可读存储介质。This application relates to the field of intelligent control technology, and specifically to a device control method, device, electronic device, and readable storage medium.
【背景技术】【Background technique】
语音交互技术已经成为当前AI(Artificial Intelligence,人工智能)技术的重要分支,该技术使得人与机器之间的交互更加智能及便捷。目前为实现对被控设备的远场语音控制,会使被控设备的拾音单元一直处于工作状态,即被控设备的拾音单元一直在采集语音信息,在被控设备的拾音单元采集到关键词时,被控设备由待机状态切换为开机状态,进而后续根据采集到的语音信息对自身进行控制。由于被控设备的拾音单元一直处于工作状态,会导致被控设备的待机功耗比较高。Voice interaction technology has become an important branch of current AI (Artificial Intelligence) technology, which makes the interaction between humans and machines more intelligent and convenient. At present, in order to realize the far-field voice control of the controlled device, the pickup unit of the controlled device will always be in working condition, that is, the pickup unit of the controlled device is always collecting voice information, and the pickup unit of the controlled device collects voice information. When the keyword is reached, the controlled device switches from the standby state to the on state, and subsequently controls itself according to the collected voice information. Since the pickup unit of the controlled device is always working, the standby power consumption of the controlled device will be relatively high.
【发明内容】[Summary of the invention]
根据本发明的第一方面,提供一种设备控制方法,应用于第一设备,所述第一设备上设置有语音按键,所述方法包括:当所述语音按键被触发时,获得所述语音按键被触发的时长;根据所述语音按键被触发的时长确定目标拾音模式,其中,所述目标拾音模式包括近场拾音模式和远场拾音模式;在所述目标拾音模式被确定为近场拾音模式时,采集语音信息,并将采集到的语音信息以蓝牙方式发送给第二设备,以对第二设备进行语音控制;在所述目标拾音模式被确定为远场拾音模式时,向所述第二设备发送远场拾音模式开启信号,以使所述第二设备采集语音信息,并根据采集到的语音信息对所述第二设备进行控制。According to a first aspect of the present invention, there is provided a device control method applied to a first device, and a voice button is provided on the first device, and the method includes: obtaining the voice when the voice button is triggered The duration of the button being triggered; the target sound pickup pattern is determined according to the duration of the voice button being triggered, wherein the target sound pickup pattern includes a near-field sound pickup pattern and a far-field sound pickup pattern; the target sound pickup pattern is When it is determined to be the near-field pickup mode, the voice information is collected, and the collected voice information is sent to the second device in Bluetooth mode to perform voice control on the second device; the target pickup mode is determined to be the far-field In the sound pickup mode, sending a far-field sound pickup mode on signal to the second device, so that the second device collects voice information, and controls the second device according to the collected voice information.
根据本发明的第二方面,提供一种设备控制方法,应用于语音控制系统,所述系统包括第一设备及第二设备,其中,所述第一设备上设置有语音按键,所述方法包括:所述第一设备检测所述语音按键是否被触发;若被触发,所述第一设备获得所述语音按键被触发的时长;所述第一设备根据所述语音按键被触发的时长确定目标拾音模式,其中,所述目标拾音模式为近场拾音模式或远 场拾音模式;在目标拾音模式为近场拾音模式时,所述第一设备采集语音信息,并将采集到的语音信息以蓝牙方式发送给所述第二设备,以对第二设备进行语音控制;在所述目标拾音模式为远场拾音模式时,所述第一设备向所述第二设备发送远场拾音模式开启信号;所述第二设备在接收到所述远场拾音模式开启信号后,采集语音信息,并根据采集到的语音信息对所述第二设备进行控制。According to a second aspect of the present invention, a device control method is provided, which is applied to a voice control system, the system includes a first device and a second device, wherein a voice button is provided on the first device, and the method includes : The first device detects whether the voice button is triggered; if it is triggered, the first device obtains the duration when the voice button is triggered; the first device determines the target according to the duration when the voice button is triggered Pickup pattern, wherein the target pickup pattern is a near-field pickup pattern or a far-field pickup pattern; when the target pickup pattern is a near-field pickup pattern, the first device collects voice information and will collect The received voice information is sent to the second device in Bluetooth mode to perform voice control on the second device; when the target sound pickup mode is the far-field sound pickup mode, the first device sends the voice to the second device Sending a far-field sound pickup mode on signal; the second device collects voice information after receiving the far-field sound pickup mode on signal, and controls the second device according to the collected voice information.
根据本发明的第三方面,提供一种设备控制装置,应用于第一设备,所述第一设备上设置有语音按键,所述装置包括:检测模块,用于检测所述语音按键是否被触发;所述检测模块,还用于在所述语音按键被触发时,获得所述语音按键被触发的时长;模式确定模块,用于根据所述语音按键被触发的时长确定目标拾音模式,其中,所述目标拾音模式为近场拾音模式或远场拾音模式;发送模块,用于在目标拾音模式为近场拾音模式时,采集语音信息,并将采集到的语音信息以蓝牙方式发送给第二设备,以对第二设备进行语音控制;所述发送模块,还用于在所述目标拾音模式为远场拾音模式时,向所述第二设备发送远场拾音模式开启信号,以使所述第二设备采集语音信息,并根据采集到的语音信息对所述第二设备进行控制。According to a third aspect of the present invention, there is provided a device control device applied to a first device, the first device is provided with a voice button, and the device includes: a detection module for detecting whether the voice button is triggered The detection module is also used to obtain the duration of the voice button being triggered when the voice button is triggered; the mode determination module is used to determine the target sound pickup mode according to the duration of the voice button being triggered, wherein , The target pickup mode is a near-field pickup mode or a far-field pickup mode; the sending module is used to collect voice information when the target pickup mode is a near-field pickup mode, and convert the collected voice information to Bluetooth is sent to the second device to perform voice control on the second device; the sending module is also used to send far-field pickup to the second device when the target pickup mode is a far-field pickup mode. The sound mode is turned on signal, so that the second device collects voice information, and controls the second device according to the collected voice information.
根据本发明的第四方面,提供一种电子设备,包括处理器和存储器,所述存储器存储有能够被所述处理器执行的机器可执行指令,所述处理器可执行所述机器可执行指令,以实现:当所述语音按键被触发时,获得所述语音按键被触发的时长;根据所述语音按键被触发的时长确定目标拾音模式,其中,所述目标拾音模式包括近场拾音模式和远场拾音模式;在所述目标拾音模式被确定为近场拾音模式时,采集语音信息,并将采集到的语音信息以蓝牙方式发送给第二设备,以对第二设备进行语音控制;在所述目标拾音模式被确定为远场拾音模式时,向所述第二设备发送远场拾音模式开启信号,以使所述第二设备采集语音信息,并根据采集到的语音信息对所述第二设备进行控制。According to a fourth aspect of the present invention, there is provided an electronic device including a processor and a memory, the memory storing machine executable instructions that can be executed by the processor, and the processor can execute the machine executable instructions , In order to achieve: when the voice button is triggered, the time length of the voice button is obtained; the target sound pickup pattern is determined according to the time length when the voice button is triggered, wherein the target sound pickup pattern includes near-field pickup Voice mode and far-field pickup mode; when the target pickup mode is determined to be the near-field pickup mode, collect voice information, and send the collected voice information to the second device in Bluetooth mode to The device performs voice control; when the target sound pickup mode is determined to be the far-field sound pickup mode, send a far-field sound pickup mode on signal to the second device, so that the second device collects voice information, and according to The collected voice information controls the second device.
根据本发明的第五方面,提供一种一种非易失性可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现:当所述语音按键被触发时,获得所述语音按键被触发的时长;根据所述语音按键被触发的时长确定目标拾音模式,其中,所述目标拾音模式包括近场拾音模式和远场拾音模式;在所述目标拾音模式被确定为近场拾音模式时,采集语音信息,并将采集到的语音信息以蓝牙方式发送给第二设备,以对第二设备进行语音控制; 在所述目标拾音模式被确定为远场拾音模式时,向所述第二设备发送远场拾音模式开启信号,以使所述第二设备采集语音信息,并根据采集到的语音信息对所述第二设备进行控制。According to a fifth aspect of the present invention, there is provided a non-volatile readable storage medium with a computer program stored thereon, characterized in that the computer program is executed when the processor is executed: when the voice button is When triggered, obtain the duration of the voice button being triggered; determine the target pickup pattern according to the duration of the voice button being triggered, wherein the target pickup pattern includes a near-field pickup pattern and a far-field pickup pattern; When the target sound pickup mode is determined to be the near-field sound pickup mode, collect voice information, and send the collected voice information to the second device in Bluetooth mode, so as to perform voice control on the second device; When the sound mode is determined to be the far-field pickup mode, send a far-field pickup mode on signal to the second device, so that the second device collects voice information, and responds to the second device according to the collected voice information. The device is controlled.
【附图说明】【Explanation of the drawings】
为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本申请的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to more clearly describe the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings that need to be used in the embodiments. It should be understood that the following drawings only show certain embodiments of the present application, and therefore do not It should be regarded as a limitation of the scope. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative work.
图1是本申请实施例提供的第一设备的方框示意图;FIG. 1 is a schematic block diagram of a first device provided by an embodiment of the present application;
图2是本申请实施例提供的设备控制方法的流程示意图之一;FIG. 2 is one of the schematic flowcharts of the device control method provided by the embodiment of the application;
图3是本申请实施例提供的设备控制方法的流程示意图之二;FIG. 3 is the second schematic flowchart of the device control method provided by the embodiment of the present application;
图4是本申请实施例提供的设备控制方法的流程示意图之三;FIG. 4 is the third schematic flowchart of a device control method provided by an embodiment of the present application;
图5是本申请实施例提供的设备控制装置的方框示意图。Fig. 5 is a schematic block diagram of a device control apparatus provided by an embodiment of the present application.
【具体实施方式】【detailed description】
下面将结合本申请实施例中附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本申请实施例的组件可以以各种不同的配置来布置和设计。The following describes the technical solutions in the embodiments of the present application clearly and completely with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various different configurations.
因此,以下对在附图中提供的本申请的实施例的详细描述并非旨在限制要求保护的本申请的范围,而是仅仅表示本申请的选定实施例。基于本申请的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。Therefore, the following detailed description of the embodiments of the application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of the application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work shall fall within the protection scope of the present application.
需要说明的是,术语“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有 更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that the terms "first" and "second" and other relational terms are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply one of these entities or operations. There is any such actual relationship or order between. Moreover, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes those that are not explicitly listed Other elements of, or also include elements inherent to this process, method, article or equipment. Without more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article or equipment that includes the element.
本申请发明人发现,目前人对被控设备的语音控制分为:近场语音控制及远场语音控制。在近场语音控制中,用户一般会手动控制一距离用户较近的设备(比如,用户手持的遥控器)采集语音信息,然后该设备将采集到的信息发送给被控设备,被控设备根据该语音信息对自身进行控制,由此实现近场语音控制。在用户不方便使用近场语音控制时,比如,在距离可采集并发送语音信息给被控设备的设备较远时,用户可通过唤醒词对被控设备实现远场语音控制。待机状态的被控设备的拾音单元一直处于工作状态,该拾音单元在采集到唤醒词时,会唤醒处于待机状态的被控设备,使得被控设备后续根据自身的拾音单元采集到的语音信息对自身进行相应的语音控制,由此实现远场语音控制。The inventor of the present application found that the current voice control of the controlled device by humans is divided into: near-field voice control and far-field voice control. In near-field voice control, the user generally manually controls a device close to the user (for example, a remote control held by the user) to collect voice information, and then the device sends the collected information to the controlled device, and the controlled device The voice information controls itself, thereby realizing near-field voice control. When the user is inconvenient to use the near-field voice control, for example, when the device that can collect and send voice information to the controlled device is far away, the user can realize the far-field voice control of the controlled device through the wake-up word. The pickup unit of the controlled device in the standby state is always in the working state. When the pickup unit collects the wake-up word, it will wake up the controlled device in the standby state, so that the controlled device subsequently collects the data according to its own pickup unit. The voice information performs corresponding voice control on itself, thereby realizing far-field voice control.
然而,虽然远场语音控制的交互方式相较于近场语音控制的交互方式更自然,不需要用户手动操作,但是待机状态下的被控设备的拾音单元一直处于工作状态,会导致被控设备的待机功耗比较高。并且,只要被控设备的拾音单元采集到唤醒词,被控设备就会被唤醒开机,该方式存在误唤醒问题,比如,电视半夜被误唤醒开机,这严重影响用户体验。However, although the far-field voice control interaction method is more natural than the near-field voice control interaction method and does not require manual operation by the user, the pickup unit of the controlled device in the standby state is always in the working state, which will result in being charged. The standby power consumption of the device is relatively high. Moreover, as long as the pickup unit of the controlled device collects the wake-up word, the controlled device will be woken up. This method has the problem of false wake-up, for example, the TV is accidentally woken up in the middle of the night, which seriously affects the user experience.
以上方案所存在的缺陷,均是发明人在经过实践并仔细研究后得到的结果,因此,上述问题的发现过程以及下文中本申请实施例针对上述问题所提出的解决方案,都应是发明人在申请过程中对本申请做出的贡献。The defects in the above solutions are all the results of the inventors after practice and careful research. Therefore, the discovery process of the above problems and the solutions proposed by the embodiments of the application below should be the inventors. Contributions made to this application during the application process.
请参照图1,图1是本申请实施例提供的第一设备100的方框示意图。所述第一设备100可以是,但不限于,手持式(比如,遥控器)、穿戴式设备等。所述第一设备100包括存储器110、处理器120及通信单元130。所述存储器110、处理器120以及通信单元130各元件相互之间直接或间接地电性连接,以实现数据的传输或交互。例如,这些元件相互之间可通过一条或多条通讯总线或信号线实现电性连接。Please refer to FIG. 1, which is a block diagram of a first device 100 according to an embodiment of the present application. The first device 100 may be, but is not limited to, a handheld device (such as a remote control), a wearable device, or the like. The first device 100 includes a memory 110, a processor 120, and a communication unit 130. The components of the memory 110, the processor 120, and the communication unit 130 are directly or indirectly electrically connected to each other to realize data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines.
其中,存储器110用于存储程序或者数据。所述存储器110可以是,但不限于,随机存取存储器(Random Access Memory,RAM),只读存储器(Read Only Memory,ROM),可编程只读存储器(Programmable Read-Only Memory,PROM),可擦除只读存储器(Erasable Programmable Read-Only Memory,EPROM),电可擦除只读存储器(Electric Erasable Programmable Read-Only Memory,EEPROM) 等。Among them, the memory 110 is used to store programs or data. The memory 110 may be, but is not limited to, a random access memory (Random Access Memory, RAM), a read only memory (Read Only Memory, ROM), and a programmable read-only memory (Programmable Read-Only Memory, PROM). Erasable Programmable Read-Only Memory (EPROM), Electric Erasable Programmable Read-Only Memory (EEPROM), etc.
处理器120用于读/写存储器110中存储的数据或程序,并执行相应地功能。比如,存储器110中存储有设备控制装置200,所述设备控制装置200包括至少一个可以软件或固件(firmware)的形式存储于所述存储器110中的软件功能模块。所述处理器120通过运行存储在存储器110内的设备控制装置200,从而实现本申请实施例中的设备控制方法。The processor 120 is used to read/write data or programs stored in the memory 110 and execute corresponding functions. For example, a device control device 200 is stored in the memory 110, and the device control device 200 includes at least one software function module that can be stored in the memory 110 in the form of software or firmware. The processor 120 executes the device control apparatus 200 stored in the memory 110 to implement the device control method in the embodiment of the present application.
通信单元130用于通过网络建立所述第一设备100与其它通信终端之间的通信连接,并用于通过所述网络收发数据。其中,所述通信单元130可以包括第一红外通信单元及第一蓝牙通信单元。该第一红外通信单元用于接收、发射红外无线信号,该第一蓝牙通信单元用于接收、发射蓝牙无线信号。蓝牙是一种短距离的无线连接方式,能够实现个人区域内快速灵活的数据及语音通信。由此,使得所述第一设备100可以以蓝牙方式或红外方式与其他设备通信。The communication unit 130 is configured to establish a communication connection between the first device 100 and other communication terminals through a network, and is configured to send and receive data through the network. Wherein, the communication unit 130 may include a first infrared communication unit and a first Bluetooth communication unit. The first infrared communication unit is used for receiving and transmitting infrared wireless signals, and the first Bluetooth communication unit is used for receiving and transmitting Bluetooth wireless signals. Bluetooth is a short-distance wireless connection method that can realize fast and flexible data and voice communication in the personal area. Thus, the first device 100 can communicate with other devices in a Bluetooth mode or an infrared mode.
所述第一设备100还可以包括第一拾音单元,该第一拾音单元可以是,但不限于,麦克风。所述第一设备100通过该第一拾音单元进行语音采集。在获得语音后,所述第一设备100可对该语音进行处理,以便后续将该语音以蓝牙方式发送给其他设备。其中,对语音进行处理的可以是第一设备100中的第一拾音单元,也可以是第一设备100中的其他器件。The first device 100 may further include a first sound pickup unit, and the first sound pickup unit may be, but is not limited to, a microphone. The first device 100 performs voice collection through the first pickup unit. After obtaining the voice, the first device 100 may process the voice, so as to subsequently send the voice to other devices in Bluetooth. Wherein, the voice processing may be the first pickup unit in the first device 100, or may be other devices in the first device 100.
应当理解的是,图1所示的结构仅为第一设备100的结构示意图,所述第一设备100还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。图1中所示的各组件可以采用硬件、软件或其组合实现。It should be understood that the structure shown in FIG. 1 is only a schematic structural diagram of the first device 100, and the first device 100 may also include more or fewer components than those shown in FIG. Show different configurations. The components shown in FIG. 1 can be implemented by hardware, software, or a combination thereof.
可选地,在本实施例中,第一设备100在采集到语音信息后,可将该语音信息发送给第二设备。所述第二设备根据接收到的该语音信息对自身进行控制。所述第二设备可以是,但不限于,电视等。比如,在本实施例的一种实施方式中,第一设备100为遥控器,第二设备为电视,第二设备若从第一设备100采集并发送的语音信息中解析出降低音量,则根据这一语音信息将音量调小。由此,可完成对第二设备的语音控制。Optionally, in this embodiment, after the first device 100 collects voice information, the voice information may be sent to the second device. The second device controls itself according to the received voice information. The second device may be, but is not limited to, a television or the like. For example, in an implementation of this embodiment, the first device 100 is a remote control, and the second device is a TV. If the second device analyzes the voice information collected and sent by the first device 100 to reduce the volume, it will This voice message turns down the volume. Thus, the voice control of the second device can be completed.
所述第二设备可以包括第二红外通信单元、第二蓝牙通信单元、第二拾音单元及一控制单元。所述第二红外通信单元用于接收、发射红外无线信号。所述第二蓝牙通信单元用于接收、发射蓝牙无线信号。由此,所述第二设备可以以蓝牙方式或红外方式与其他设备通信。所述第二拾音单元用于采集语音,以 便所述第二设备根据采集到的语音信息对第二设备进行控制。The second device may include a second infrared communication unit, a second Bluetooth communication unit, a second sound pickup unit, and a control unit. The second infrared communication unit is used for receiving and transmitting infrared wireless signals. The second Bluetooth communication unit is used for receiving and transmitting Bluetooth wireless signals. Thus, the second device can communicate with other devices in a Bluetooth mode or an infrared mode. The second pickup unit is used to collect voice, so that the second device controls the second device according to the collected voice information.
若所述第二设备需要将采集到的语音信息或接收到的由第一设备100发送的语音信息,发送给其他设备进行解析,所述第二设备可通过第二红外通信单元、第二蓝牙通信单元或其他通信单元将语音信息发送给其他设备,然后根据其他设备返回的处理后的语音信息对自身进行控制。其中,第二拾音单元或第二设备中的其他器件可对采集到的语音进行处理,以便后续解析出该语音对应的语音控制指令,或便于发送给其他设备解析语音对应的语音控制指令。If the second device needs to send the collected voice information or the received voice information sent by the first device 100 to other devices for analysis, the second device can use the second infrared communication unit, the second Bluetooth The communication unit or other communication units send voice information to other devices, and then control itself according to the processed voice information returned by the other devices. Among them, the second pickup unit or other devices in the second device can process the collected voice, so as to subsequently parse out the voice control instruction corresponding to the voice, or to facilitate sending to other devices to analyze the voice corresponding voice control instruction.
请参照图2,图2是本申请实施例提供的设备控制方法的流程示意图之一。所述设备控制方法应用于第一设备100,所述第一设备100上设置有语音按键。下面对设备控制方法的具体流程进行详细阐述。Please refer to FIG. 2, which is one of the schematic flowcharts of the device control method provided by the embodiment of the present application. The device control method is applied to the first device 100, and the first device 100 is provided with a voice button. The specific process of the device control method is described in detail below.
步骤S110,检测所述语音按键是否被触发。Step S110: Detect whether the voice button is triggered.
若未被触发,则直接结束。If it is not triggered, it ends directly.
若被触发,则执行步骤S120。If it is triggered, step S120 is executed.
步骤S120,获得所述语音按键被触发的时长。Step S120: Obtain the length of time the voice button is triggered.
步骤S130,根据所述语音按键被触发的时长判断目标拾音模式是否为近场拾音模式。Step S130, judging whether the target sound pickup mode is a near-field sound pickup mode according to the duration of when the voice button is triggered.
若是,则执行步骤S140;若否,则执行步骤S150。If yes, go to step S140; if not, go to step S150.
步骤S140,采集语音信息,并将采集到的语音信息以蓝牙方式发送给第二设备,以对第二设备进行语音控制。Step S140: Collect voice information, and send the collected voice information to the second device in a Bluetooth mode, so as to perform voice control on the second device.
步骤S150,在所述目标拾音模式为远场拾音模式时,向所述第二设备发送远场拾音模式开启信号,以使所述第二设备采集语音信息,并根据采集到的语音信息对所述第二设备进行控制。Step S150: When the target sound pickup mode is the far-field sound pickup mode, send a far-field sound pickup mode on signal to the second device, so that the second device collects voice information, and according to the collected voice The information controls the second device.
在本实施例中,所述第一设备100可通过检测语音按键对应的电平状态,从而确定该语音按键是否被触发。语音按键被触发,表示用户要开启语音控制功能。所述第一设备100在语音按键被触发时,获得该语音按键被触发的时长。然后将得到的触发时长与预设时长进行比较,并根据预设规则确定与该触发时长对应的目标拾音模式,以便后续根据该目标拾音模式采集语音信息,进而完成对所述第二设备的语音控制。拾音模式包括远场拾音模式、近场拾音模式,目标拾音模式可以是远场拾音模式,也可以是近场拾音模式。其中,不同的拾音模式对应不同的语音控制方式,比如,远场拾音模式对应远场语音控制,近 场拾音模式对应近场语音控制。In this embodiment, the first device 100 can determine whether the voice button is triggered by detecting the level state corresponding to the voice button. The voice button is triggered, indicating that the user wants to turn on the voice control function. When the voice button is triggered, the first device 100 obtains the duration of the voice button being triggered. Then the obtained trigger duration is compared with the preset duration, and the target sound pickup pattern corresponding to the trigger duration is determined according to the preset rule, so that the voice information is subsequently collected according to the target sound pickup pattern, and then the second device Voice control. The pickup pattern includes a far-field pickup pattern and a near-field pickup pattern. The target pickup pattern can be a far-field pickup pattern or a near-field pickup pattern. Among them, different pickup modes correspond to different voice control methods. For example, the far-field pickup mode corresponds to far-field voice control, and the near-field pickup mode corresponds to near-field voice control.
可选地,在本实施例的一种实施方式中,预设规则包括:语音按键被长按时,确定目标拾音模式为远场拾音模式;语音按键被短按时,确定目标拾音模式为近场拾音模式。对应地,在获得语音按键被触发的触发时长后,所述第一设备100在该触发时长大于或等于预设时长时,确定语音按键被长按;在该触发时长小于预设时长时,确定语音按键被短按。Optionally, in an implementation of this embodiment, the preset rules include: when the voice button is long-pressed, the target pickup mode is determined to be the far-field pickup mode; when the voice button is short-pressed, the target pickup mode is determined to be Near-field pickup mode. Correspondingly, after obtaining the trigger duration of the voice button being triggered, the first device 100 determines that the voice button is long pressed when the trigger duration is greater than or equal to the preset duration; when the trigger duration is less than the preset duration, determines The voice button is short pressed.
在所述目标拾音模式为近场拾音模式时,确定用户选择近场语音控制,所述第一设备100可通过第一拾音单元进行近场拾音,以获得语音信息,并将该语音信息通过第一蓝牙通信单元发送给所述第二设备,以使所述第二设备根据该语音信息对自身进行控制。When the target sound pickup mode is the near-field sound pickup mode, it is determined that the user selects near-field voice control, and the first device 100 can perform near-field sound pickup through the first sound pickup unit to obtain voice information, and then The voice information is sent to the second device through the first Bluetooth communication unit, so that the second device can control itself according to the voice information.
可选地,所述第一设备100还可以通过第一蓝牙通信单元和/或第一红外通信单元,向所述第二设备发送用户触发近场语音控制功能的通知信息。Optionally, the first device 100 may also send notification information that the user triggers the near-field voice control function to the second device through the first Bluetooth communication unit and/or the first infrared communication unit.
可选地,所述第二设备中存储有键值命令库,所述键值命令库中包括红外键值、蓝牙键值与控制命令的对应关系。可选地,所述第一设备100可向所述第二设备发送第一预设红外键值和/或第一预设蓝牙键值,所述第二设备可根据键值命令库及接收到的第一预设红外键值和/或第一预设蓝牙键值,确定开启近场拾音模式。Optionally, a key-value command library is stored in the second device, and the key-value command library includes a correspondence relationship between infrared key values, Bluetooth key values, and control commands. Optionally, the first device 100 may send a first preset infrared key value and/or a first preset Bluetooth key value to the second device, and the second device may command the library according to the key value and receive The first preset infrared key value and/or the first preset Bluetooth key value of, determine to turn on the near-field sound pickup mode.
在所述目标拾音模式为远场拾音模式时,确定用户选择远场语音控制,所述第一设备100可向所述第二设备发送远场拾音模式开启信号。所述第二设备在接收到远场拾音模式开启信号后,由待机状态进入开机状态,并控制第二拾音单元由关闭状态切换为工作状态,从而通过第二拾音单元进行远场拾音,以获得语音信息,然后根据该语音信息对自身控制。When the target sound pickup mode is the far-field sound pickup mode, it is determined that the user selects far-field voice control, and the first device 100 may send a far-field sound pickup mode on signal to the second device. After the second device receives the far-field pickup mode on signal, it enters the power-on state from the standby state, and controls the second pickup unit to switch from the off state to the working state, thereby performing far-field pickup through the second pickup unit Voice to obtain voice information, and then control itself according to the voice information.
可选地,所述第一设备100可以以蓝牙方式和/或红外方式,向所述第二设备发送远场拾音模式开启信号。作为一种实施方式,所述第一设备100可向所述第二设备发送第二预设红外键值和/或第二预设蓝牙键值,所述第二设备可根据键值命令库及接收到的第二预设红外键值和/或第二预设蓝牙键值,确定开启远场拾音模式。Optionally, the first device 100 may send a far-field sound pickup mode activation signal to the second device in a Bluetooth mode and/or an infrared mode. As an implementation manner, the first device 100 may send a second preset infrared key value and/or a second preset Bluetooth key value to the second device, and the second device may command the library and the second device according to the key value. After receiving the second preset infrared key value and/or the second preset Bluetooth key value, it is determined that the far-field sound pickup mode is turned on.
在本实施例中,根据语音按键被触发的时长判断是否开启远场拾音模式,在需要开启远场拾音模式时,再唤醒第二设备的第二拾音单元及第二设备,不需要第二设备的第二拾音单元一直处于工作状态,从而有效降低第二设备的待 机功耗。同时不需要唤醒词,不会出现误唤醒第二设备的情况。并且,通过对第一设备100的语音按键的复用,使得在原有硬件基础上,第一设备100可触发近场语音控制功能及远场语音控制控制功能,不会增加任何硬件成本。In this embodiment, it is determined whether to turn on the far-field pickup mode according to the time when the voice button is triggered. When the far-field pickup mode needs to be turned on, the second pickup unit and the second device of the second device are awakened. The second pickup unit of the second device is always in working state, thereby effectively reducing the standby power consumption of the second device. At the same time, there is no need for a wake-up word, and the second device will not wake up by mistake. In addition, by multiplexing the voice buttons of the first device 100, based on the original hardware, the first device 100 can trigger the near-field voice control function and the far-field voice control function without increasing any hardware cost.
请参照图3,图3是本申请实施例提供的设备控制方法的流程示意图之二。所述方法还可以包括步骤S161、步骤S162及步骤S163。其中,步骤S161~步骤S163可以在步骤S110后,也可以在步骤S120后,还可以在步骤S130后,在此不对步骤S161~步骤S163在所述设备控制方法中的顺序进行具体限定,可根据实际需求进行设置。Please refer to FIG. 3, which is the second schematic flowchart of the device control method provided by the embodiment of the present application. The method may further include step S161, step S162, and step S163. Among them, step S161 to step S163 may be after step S110, or after step S120, or after step S130. The sequence of steps S161 to S163 in the device control method is not specifically limited here, which can be based on Set up according to actual needs.
步骤S161,判断与所述第二设备之间是否已进行过蓝牙配对。Step S161: Determine whether Bluetooth pairing has been performed with the second device.
若是,则执行步骤S162。If yes, go to step S162.
步骤S162,判断与所述第二设备是否处于蓝牙连接状态。Step S162: It is judged whether it is in a Bluetooth connection state with the second device.
若未处于蓝牙连接状态,则执行步骤S163。If it is not in the Bluetooth connection state, step S163 is executed.
步骤S163,以蓝牙方式向所述第二设备发送回连广播,以与所述第二设备之间建立蓝牙连接。Step S163: Send a connection broadcast to the second device in a Bluetooth mode to establish a Bluetooth connection with the second device.
在本实施例中,所述第一设备100可根据蓝牙配对记录,判断自身与第二设备是否进行过蓝牙配过。若已配对过,则判断当前与所述第二设备是否处于蓝牙连接状态。若处于蓝牙连接状态,则可通过蓝牙方式与第二设备进行通信。比如,第一设备100可将采集到的语音信息通过蓝牙方式发送给第二设备。若未处于蓝牙连接状态,所述第一设备100可根据蓝牙配对记录中的第二设备的相关信息,以蓝牙方式向所述第二设备发送回连广播,以建立第一设备100与第二设备之间的蓝牙通信。In this embodiment, the first device 100 can determine whether it has paired with the second device based on Bluetooth pairing records. If it has been paired, it is determined whether it is currently in a Bluetooth connection state with the second device. If it is in the Bluetooth connection state, it can communicate with the second device via Bluetooth. For example, the first device 100 may send the collected voice information to the second device via Bluetooth. If it is not in the Bluetooth connection state, the first device 100 can send a Bluetooth connection broadcast to the second device according to the related information of the second device in the Bluetooth pairing record, so as to establish the connection between the first device 100 and the second device. Bluetooth communication between devices.
请再次参照图3,在步骤S163之后,所述方法还可以包括步骤S164。Please refer to FIG. 3 again. After step S163, the method may further include step S164.
步骤S164,若在第一预设时间段内未回连成功,则以红外方式向所述第二设备发送用于提示语音控制失败的第一提示信息。Step S164: If the connection is not successful within the first preset time period, the first prompt message for prompting the voice control failure is sent to the second device in an infrared manner.
在本实施例中,所述第一设备100若在第一预设时间段内未与所述第二设备回连成功,则可通过第一红外通信单元向所述第二设备发送第一提示信息。所述第二设备对该第一提示信息进行显示,以提示用户本次语音控制失败。可选地,所述第一设备100可向所述第二设备发送第三预设红外键值,所述第二设备根据键值命令库、第三预设红外键值,确定显示用于提示用户本次语音控制失败的提示信息。其中,所述第一预设时间段可以根据实际需求设置,比如, 200ms。In this embodiment, if the first device 100 does not successfully connect back to the second device within the first preset time period, it may send a first prompt to the second device through the first infrared communication unit information. The second device displays the first prompt information to prompt the user that the voice control fails this time. Optionally, the first device 100 may send a third preset infrared key value to the second device, and the second device determines to display a prompt according to the key value command library and the third preset infrared key value The user’s voice control failed this time. Wherein, the first preset time period can be set according to actual requirements, for example, 200 ms.
请再次参照图3,在步骤S161之后,若第一设备100与第二设备未进行过蓝牙配对,所述方法还可以包括步骤S165。Please refer to FIG. 3 again. After step S161, if the first device 100 and the second device have not been paired with Bluetooth, the method may further include step S165.
步骤S165,以红外方式向所述第二设备发送用于提示进行所述第一设备100与所述第二设备蓝牙配对的第二提示信息。Step S165: Infrared is sent to the second device a second prompt message for prompting the Bluetooth pairing between the first device 100 and the second device.
在本实施例中,所述第一设备100在未与第二设备进行过蓝牙配对时,可通过所述第一红外通信单元,以红外方式向所述第二设备发送第二提示信息。所述第二设备对该第二提示信息进行显示,以提示用户进行第一设备100与第二设备的蓝牙配对。可选地,所述第一设备100可向所述第二设备发送第四预设红外键值,所述第二设备根据键值命令库、第四预设红外键值,确定显示用于提示用户进行第一设备100与第二设备的蓝牙配对的提示信息。In this embodiment, when the first device 100 has not been paired with the second device via Bluetooth, the first infrared communication unit may send the second prompt information to the second device in an infrared manner. The second device displays the second prompt information to prompt the user to perform Bluetooth pairing between the first device 100 and the second device. Optionally, the first device 100 may send a fourth preset infrared key value to the second device, and the second device determines to display a prompt according to the key value command library and the fourth preset infrared key value The user is prompted to perform Bluetooth pairing between the first device 100 and the second device.
可选地,在本实施例中的一种实施方式中,第一设备100若在发送所述第二提示信息后第四预设时间段内未接收到蓝牙配对操作,则可以确定目标拾音模式为近场拾音模式或远场拾音模式,然后执行步骤S140或步骤S150。Optionally, in an implementation manner in this embodiment, if the first device 100 does not receive the Bluetooth pairing operation within the fourth preset time period after sending the second prompt information, it may determine the target pickup The mode is the near-field pickup mode or the far-field pickup mode, and then step S140 or step S150 is executed.
可选地,在本实施例的另一种实施方式中,第二设备若在显示完所述第二提示信息后第三预设时间段内未接收到蓝牙配对操作,则可确定目标拾音模式为远场拾音模式,并进行远场拾音,然后对自身进行控制。其中,所述第三预设时间段可以大于、等于或小于第四预设时间段,可以根据实际需求设置。Optionally, in another implementation manner of this embodiment, if the second device does not receive the Bluetooth pairing operation within the third preset time period after displaying the second prompt information, it may determine the target pickup The mode is the far-field pickup mode, and the far-field pickup is performed, and then it controls itself. Wherein, the third preset time period may be greater than, equal to, or less than the fourth preset time period, and may be set according to actual needs.
可选地,在本实施例的另一种实施方式中,在执行完步骤S165后,本次设备控制流程结束。Optionally, in another implementation manner of this embodiment, after step S165 is executed, the current device control process ends.
在本实施例的一种实施方式中,在所述语音按键被触发时,所述方法还可以包括:In an implementation manner of this embodiment, when the voice button is triggered, the method may further include:
向所述第二设备发送所述语音按键被触发所产生的信号,以使所述第二设备显示近场拾音模式选项及远场拾音模式选项;Sending the signal generated by the triggering of the voice button to the second device, so that the second device displays a near-field sound pickup mode option and a far-field sound pickup mode option;
若在第二预设时间段内未接收到对近场拾音模式选项及远场拾音模式选项的选择操作,则将近场拾音模式或远场拾音模式作为所述目标拾音模式。If the selection operation of the near-field sound pickup mode option and the far-field sound pickup mode option is not received within the second preset time period, the near-field sound pickup mode or the far-field sound pickup mode is used as the target sound pickup mode.
在本实施方式中,所述第一设备100在检测到语音按键被触发后,可以蓝牙方式向所述第二设备发送第三预设蓝牙键值、或以红外方式向所述第二设备发送第五预设红外键值、或向所述第二设备发送第三预设蓝牙键值及第五预设红外键值。所述第二设备根据键值命令库、接收到的第三预设蓝牙键值和/或第 五预设红外键值,确定显示近场拾音模式选项及远场拾音模式选项。用户可通过第一设备100的方向键、确定键进行选择。若第二设备在第二预设时间段内未接收到选择操作,可将默认拾音模式作为目标拾音模式。其中,默认拾音模式可以为远场拾音模式,也可以为近场拾音模式。第二预设时间段可以根据实际需求设置。In this embodiment, after the first device 100 detects that the voice button is triggered, it can send the third preset Bluetooth key value to the second device via Bluetooth, or send it to the second device via infrared. The fifth preset infrared key value, or the third preset Bluetooth key value and the fifth preset infrared key value are sent to the second device. The second device determines to display the near-field sound pickup mode option and the far-field sound pickup mode option according to the key value command library, the received third preset Bluetooth key value and/or the fifth preset infrared key value. The user can use the arrow keys and the OK key of the first device 100 to make selections. If the second device does not receive the selection operation within the second preset time period, the default sound pickup mode may be used as the target sound pickup mode. Among them, the default pickup mode can be a far-field pickup mode or a near-field pickup mode. The second preset time period can be set according to actual needs.
可选地,本实施例的一种实施方式中,所述第一设备100在获得语音按键被触发的时长后,可以将该时长发送给所述第二设备。比如,所述第一设备100可通过蓝牙方式将第四预设键值和/或第六预设红外键值发送给所述第二设备,所述第二设备根据键值命令库及第四预设键值和/或第六预设红外键值确定时长的具体数值。所述第二设备根据该时长判断是否开启远场拾音模式。若不需要开启远场拾音模式,所述第二设备可向所述第一设备100返回开启近场拾音模式的开启信号。Optionally, in an implementation manner of this embodiment, the first device 100 may send the duration to the second device after obtaining the duration when the voice button is triggered. For example, the first device 100 may send the fourth preset key value and/or the sixth preset infrared key value to the second device via Bluetooth, and the second device commands the library and the fourth device according to the key value. The preset key value and/or the sixth preset infrared key value determine the specific value of the duration. The second device determines whether to turn on the far-field sound pickup mode according to the duration. If it is not necessary to turn on the far-field sound pickup mode, the second device may return to the first device 100 an activation signal for turning on the near-field sound pickup mode.
请参照图4,图4是本申请实施例提供的设备控制方法的流程示意图之三。所述设备控制方法应用于语音控制系统,所述系统包括第一设备100及第二设备,其中,所述第一设备100上设置有语音按键。需要说明的是,本实施例所提供的应用于语音控制系统的设备控制方法,其基本原理及产生的技术效果和上述实施例相同,为简要描述,本实施例部分未提及之处,可参考上述的实施例中相应内容。下面对应用于所述语音控制系统的设备控制方法进行简要阐述。Please refer to FIG. 4, which is the third schematic flowchart of the device control method provided by the embodiment of the present application. The device control method is applied to a voice control system, the system includes a first device 100 and a second device, wherein the first device 100 is provided with a voice button. It should be noted that the basic principles and technical effects of the device control method applied to the voice control system provided by this embodiment are the same as those of the above embodiment. For a brief description, the parts not mentioned in this embodiment may be Refer to the corresponding content in the above-mentioned embodiment. The following briefly describes the device control method used in the voice control system.
步骤S210,所述第一设备100检测所述语音按键是否被触发。In step S210, the first device 100 detects whether the voice button is triggered.
若未被触发,则直接结束。If it is not triggered, it ends directly.
若被触发,则执行步骤S220。If it is triggered, step S220 is executed.
步骤S220,所述第一设备100获得所述语音按键被触发的时长。In step S220, the first device 100 obtains the duration of when the voice button is triggered.
步骤S230,所述第一设备100根据所述语音按键被触发的时长判断目标拾音模式是否为近场拾音模式。In step S230, the first device 100 determines whether the target sound pickup pattern is a near-field sound pickup pattern according to the duration of when the voice button is triggered.
若目标拾音模式为近场拾音模式,则执行步骤S240。If the target sound pickup mode is the near-field sound pickup mode, step S240 is executed.
步骤S240,所述第一设备100采集语音信息,并将采集到的语音信息以蓝牙方式发送给所述第二设备,以对第二设备进行语音控制。In step S240, the first device 100 collects voice information, and sends the collected voice information to the second device in a Bluetooth mode, so as to perform voice control on the second device.
若目标拾音模式不为近场拾音模式,而是远场拾音模式,则执行步骤S250及步骤S260。If the target sound pickup pattern is not a near-field sound pickup pattern but a far-field sound pickup pattern, step S250 and step S260 are executed.
步骤S250,所述第一设备100向所述第二设备发送远场拾音模式开启信号。In step S250, the first device 100 sends a far-field sound pickup mode on signal to the second device.
步骤S260,所述第二设备在接收到所述远场拾音模式开启信号后,采集语音信息,并根据采集到的语音信息对所述第二设备进行控制。In step S260, the second device collects voice information after receiving the far-field sound pickup mode activation signal, and controls the second device according to the collected voice information.
可选地,在本实施例中,所述方法还可以包括以下步骤。Optionally, in this embodiment, the method may further include the following steps.
所述第一设备100判断与所述第二设备之间是否已进行过蓝牙配对。The first device 100 determines whether Bluetooth pairing has been performed with the second device.
若未进行过蓝牙配对,所述第一设备100则以红外方式向所述第二设备发送用于提示进行所述第一设备100与所述第二设备蓝牙配对的第二提示信息。If the Bluetooth pairing has not been performed, the first device 100 sends to the second device in an infrared manner second prompt information for prompting the Bluetooth pairing between the first device 100 and the second device.
所述第二设备在接收到所述第二提示信息后,显示用于提示进行所述第一设备100与所述第二设备蓝牙配对的第二提示信息。After receiving the second prompt information, the second device displays second prompt information for prompting the Bluetooth pairing between the first device 100 and the second device.
所述第二设备在显示完所述第二提示信息后第三预设时间段内未接收到蓝牙配对操作时,采集语音信息,并根据采集到的语音信息对所述第二设备进行控制。When the second device does not receive a Bluetooth pairing operation within a third preset time period after displaying the second prompt information, the second device collects voice information, and controls the second device according to the collected voice information.
若已进行过蓝牙配对,则第一设备100判断与第二设备是否处于蓝牙连接状态;若处于蓝牙连接状态,则执行在目标拾音模式为近场拾音模式时,将第一设备100采集到的语音信息以蓝牙方式发送给第二设备,以对第二设备进行语音控制的步骤;若未处于蓝牙连接状态,则以蓝牙方式向第二设备发送回连广播,以与第二设备之间建立蓝牙连接。If the Bluetooth pairing has been performed, the first device 100 determines whether it is in the Bluetooth connection state with the second device; if it is in the Bluetooth connection state, executes the collection of the first device 100 when the target sound pickup mode is the near-field sound pickup mode The received voice information is sent to the second device in Bluetooth mode to perform the steps of voice control of the second device; if it is not in the Bluetooth connection state, the second device will be sent back to the second device in Bluetooth mode to connect to the second device. Establish a Bluetooth connection between.
为了执行上述实施例及各个可能的方式中的相应步骤,下面给出一种设备控制装置200的实现方式,可选地,该设备控制装置200可以采用上述图1所示的第一设备100的器件结构。进一步地,请参照图5,图5是本申请实施例提供的设备控制装置200的方框示意图。需要说明的是,本实施例所提供的设备控制装置200,其基本原理及产生的技术效果和上述实施例相同,为简要描述,本实施例部分未提及之处,可参考上述的实施例中相应内容。该设备控制装置200可以包括:检测模块210、模式确定模块220及发送模块230。In order to perform the corresponding steps in the above-mentioned embodiments and each possible manner, an implementation manner of the device control apparatus 200 is given below. Optionally, the device control apparatus 200 may adopt the above-mentioned first device 100 shown in FIG. 1 Device structure. Further, please refer to FIG. 5, which is a block diagram of a device control apparatus 200 provided in an embodiment of the present application. It should be noted that the basic principles and technical effects of the device control device 200 provided in this embodiment are the same as those of the above-mentioned embodiment. For a brief description, for parts not mentioned in this embodiment, please refer to the above-mentioned embodiment. In the corresponding content. The device control apparatus 200 may include: a detection module 210, a mode determination module 220, and a sending module 230.
所述检测模块210,用于检测所述语音按键是否被触发。The detection module 210 is used to detect whether the voice button is triggered.
所述检测模块210,还用于在所述语音按键被触发时,获得所述语音按键被触发的时长。The detection module 210 is further configured to obtain the duration of the voice button being triggered when the voice button is triggered.
所述模式确定模块220,用于根据所述语音按键被触发的时长确定目标拾音模式。其中,所述目标拾音模式为近场拾音模式或远场拾音模式。The mode determining module 220 is configured to determine a target sound pickup mode according to the duration of the voice button being triggered. Wherein, the target sound pickup pattern is a near-field sound pickup pattern or a far-field sound pickup pattern.
所述发送模块230,用于在目标拾音模式为近场拾音模式时,采集语音信息,并将采集到的语音信息以蓝牙方式发送给第二设备,以对第二设备进行语音控 制。The sending module 230 is configured to collect voice information when the target sound pickup mode is the near-field pickup mode, and send the collected voice information to the second device in a Bluetooth mode, so as to perform voice control on the second device.
所述发送模块230,还用于在所述目标拾音模式为远场拾音模式时,向所述第二设备发送远场拾音模式开启信号,以使所述第二设备采集语音信息,并根据采集到的语音信息对所述第二设备进行控制。The sending module 230 is further configured to send a far-field sound pickup mode activation signal to the second device when the target sound pickup mode is a far-field sound pickup mode, so that the second device can collect voice information, And control the second device according to the collected voice information.
可选地,上述模块可以软件或固件(Firmware)的形式存储于图1所示的存储器110中或固化于该第一设备100的操作系统(Operating System,OS)中,并可由图1中的处理器120执行。同时,执行上述模块所需的数据、程序的代码等可以存储在存储器110中。Optionally, the above-mentioned modules may be stored in the memory 110 shown in FIG. 1 in the form of software or firmware (Firmware) or solidified in the operating system (OS) of the first device 100, and may be stored in the operating system (OS) of the first device 100 in the form of software or firmware (Firmware). The processor 120 executes. At the same time, data, program codes, etc. required to execute the above-mentioned modules may be stored in the memory 110.
本申请实施例还提供一种可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现应用于第一设备100的设备控制方法。The embodiment of the present application also provides a readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the device control method applied to the first device 100 is implemented.
综上所述,本申请实施例提供了一种设备控制方法、装置、电子设备及可读存储介质。第一设备检测语音按键是否被触发,若被触发,则获得该语音按键被触发的时长。然后根据被触发的时长确定目标拾音模式为近场拾音模式还是远场拾音模式。若目标拾音模式为近场拾音模式,则采集语音信息,并将采集到的语音信息发送给第二设备,以对第二设备进行语音控制。若目标拾音模式为远场拾音模式,则向第二设备发送远场拾音模式开启信号,第二设备在接收到该信号后,采集语音信息,并根据采集到的语音信息对自身进行控制。由此,根据语音按键被触发的时长确定是开启近场拾音模式还是远场拾音模式,使得不需要唤醒词,也不需要第二设备的拾音单元一直处于工作状态,依然可以实现对第二设备的远场语音控制,从而解决了因唤醒词而误唤醒第二设备的问题,同时降低了第二设备的待机功耗,并且不会增加任何硬件成本。In summary, the embodiments of the present application provide a device control method, device, electronic device, and readable storage medium. The first device detects whether the voice button is triggered, and if it is triggered, it obtains the duration of the voice button being triggered. Then determine whether the target pickup mode is the near-field pickup mode or the far-field pickup mode according to the duration of the trigger. If the target sound pickup mode is the near-field sound pickup mode, the voice information is collected, and the collected voice information is sent to the second device, so as to perform voice control on the second device. If the target sound pickup mode is the far-field sound pickup mode, it sends a far-field sound pickup mode on signal to the second device. After receiving the signal, the second device collects voice information and performs operations on itself based on the collected voice information. control. Therefore, it is determined whether to turn on the near-field pickup mode or the far-field pickup mode according to the time when the voice button is triggered, so that there is no need for wake-up words and no need for the pickup unit of the second device to be in working state all the time. The far-field voice control of the second device solves the problem of waking up the second device by mistake due to the wake-up word, and at the same time reduces the standby power consumption of the second device without increasing any hardware cost.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,也可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,附图中的流程图和框图显示了根据本申请的多个实施例的装置、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现方式中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框 图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。In the several embodiments provided in this application, it should be understood that the disclosed device and method may also be implemented in other ways. The device embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the possible implementation architectures, functions, and functions of the devices, methods, and computer program products according to multiple embodiments of the present application. operating. In this regard, each block in the flowchart or block diagram may represent a module, program segment, or part of the code, and the module, program segment, or part of the code contains one or more functions for realizing the specified logic function. Executable instructions. It should also be noted that in some alternative implementations, the functions marked in the block may also occur in a different order from the order marked in the drawings. For example, two consecutive blocks can actually be executed substantially in parallel, or they can sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart, can be implemented by a dedicated hardware-based system that performs the specified functions or actions Or it can be realized by a combination of dedicated hardware and computer instructions.
另外,在本申请各个实施例中的各功能模块可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist alone, or two or more modules may be integrated to form an independent part.
所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solution of the present application essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks and other media that can store program codes. .
以上所述仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only preferred embodiments of the application, and are not intended to limit the application. For those skilled in the art, the application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included in the protection scope of this application.

Claims (18)

  1. 一种设备控制方法,其特征在于,应用于第一设备,所述第一设备上设置有语音按键,所述方法包括:A device control method, characterized in that it is applied to a first device, the first device is provided with a voice button, and the method includes:
    当所述语音按键被触发时,获得所述语音按键被触发的时长;When the voice button is triggered, obtain the duration of when the voice button is triggered;
    根据所述语音按键被触发的时长确定目标拾音模式,其中,所述目标拾音模式包括近场拾音模式和远场拾音模式;Determining a target sound pickup pattern according to the duration of when the voice button is triggered, wherein the target sound pickup pattern includes a near-field sound pickup pattern and a far-field sound pickup pattern;
    在所述目标拾音模式被确定为近场拾音模式时,采集语音信息,并将采集到的语音信息以蓝牙方式发送给第二设备,以对第二设备进行语音控制;When the target sound pickup mode is determined to be the near-field sound pickup mode, collecting voice information, and sending the collected voice information to the second device in a Bluetooth mode, so as to perform voice control on the second device;
    在所述目标拾音模式被确定为远场拾音模式时,向所述第二设备发送远场拾音模式开启信号,以使所述第二设备采集语音信息,并根据采集到的语音信息对所述第二设备进行控制。When the target sound pickup mode is determined to be the far-field sound pickup mode, send a far-field sound pickup mode on signal to the second device, so that the second device collects voice information, and based on the collected voice information Control the second device.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    判断与所述第二设备之间是否已进行过蓝牙配对;Determine whether Bluetooth pairing has been performed with the second device;
    若已进行过蓝牙配对,判断与所述第二设备是否处于蓝牙连接状态;If Bluetooth pairing has been performed, determine whether it is in a Bluetooth connection state with the second device;
    若处于蓝牙连接状态,则执行在目标拾音模式为近场拾音模式时,将所述第一设备采集到的语音信息以蓝牙方式发送给所述第二设备,以对第二设备进行语音控制的步骤;If it is in the Bluetooth connection state, when the target sound pickup mode is the near-field sound pickup mode, it is executed to send the voice information collected by the first device to the second device in Bluetooth mode, so as to voice the second device Control steps;
    若未处于蓝牙连接状态,则以蓝牙方式向所述第二设备发送回连广播,以与所述第二设备之间建立蓝牙连接。If it is not in the Bluetooth connection state, a Bluetooth connection is sent to the second device to establish a Bluetooth connection with the second device.
  3. 根据权利要求2所述的方法,其特征在于,所述方法还包括:The method according to claim 2, wherein the method further comprises:
    若在第一预设时间段内未回连成功,则以红外方式向所述第二设备发送用于提示语音控制失败的第一提示信息。If the connection is not successful within the first preset time period, the first prompt message for prompting the voice control failure is sent to the second device in an infrared manner.
  4. 根据权利要求2所述的方法,其特征在于,所述方法还包括:The method according to claim 2, wherein the method further comprises:
    若未进行过蓝牙配对,则以红外方式向所述第二设备发送用于提示进行所述第一设备与所述第二设备蓝牙配对的第二提示信息。If the Bluetooth pairing has not been performed, the second prompt information for prompting the Bluetooth pairing between the first device and the second device is sent to the second device in an infrared manner.
  5. 根据权利要求1所述的方法,其特征在于,在所述语音按键被触发时,所述方法还包括:The method according to claim 1, wherein when the voice button is triggered, the method further comprises:
    向所述第二设备发送所述语音按键被触发所产生的信号,以使所述第二设备显示近场拾音模式选项及远场拾音模式选项;Sending the signal generated by the triggering of the voice button to the second device, so that the second device displays a near-field sound pickup mode option and a far-field sound pickup mode option;
    若在第二预设时间段内未接收到对近场拾音模式选项及远场拾音模式选项的选择操作,则将近场拾音模式或远场拾音模式作为所述目标拾音模式。If the selection operation of the near-field sound pickup mode option and the far-field sound pickup mode option is not received within the second preset time period, the near-field sound pickup mode or the far-field sound pickup mode is used as the target sound pickup mode.
  6. 一种设备控制方法,其特征在于,应用于语音控制系统,所述系统包括第一设备及第二设备,其中,所述第一设备上设置有语音按键,所述方法包括:A device control method, characterized in that it is applied to a voice control system, the system includes a first device and a second device, wherein a voice button is provided on the first device, and the method includes:
    所述第一设备检测所述语音按键是否被触发;The first device detects whether the voice button is triggered;
    若被触发,所述第一设备获得所述语音按键被触发的时长;If it is triggered, the first device obtains the duration of when the voice button is triggered;
    所述第一设备根据所述语音按键被触发的时长确定目标拾音模式,其中,所述目标拾音模式为近场拾音模式或远场拾音模式;The first device determines a target sound pickup pattern according to the duration of when the voice button is triggered, wherein the target sound pickup pattern is a near-field sound pickup pattern or a far-field sound pickup pattern;
    在目标拾音模式为近场拾音模式时,所述第一设备采集语音信息,并将采集到的语音信息以蓝牙方式发送给所述第二设备,以对第二设备进行语音控制;When the target sound pickup mode is the near-field sound pickup mode, the first device collects voice information, and sends the collected voice information to the second device in a Bluetooth mode, so as to perform voice control on the second device;
    在所述目标拾音模式为远场拾音模式时,所述第一设备向所述第二设备发送远场拾音模式开启信号;When the target sound pickup mode is a far-field sound pickup mode, the first device sends a far-field sound pickup mode on signal to the second device;
    所述第二设备在接收到所述远场拾音模式开启信号后,采集语音信息,并根据采集到的语音信息对所述第二设备进行控制。The second device collects voice information after receiving the signal for turning on the far-field sound pickup mode, and controls the second device according to the collected voice information.
  7. 根据权利要求6所述的方法,其特征在于,所述方法还包括:The method according to claim 6, wherein the method further comprises:
    所述第一设备判断与所述第二设备之间是否已进行过蓝牙配对;Judging by the first device whether Bluetooth pairing has been performed with the second device;
    若未进行过蓝牙配对,所述第一设备则以红外方式向所述第二设备发送用于提示进行所述第一设备与所述第二设备蓝牙配对的第二提示信息;If Bluetooth pairing has not been performed, the first device sends to the second device in an infrared manner second prompt information for prompting to perform Bluetooth pairing between the first device and the second device;
    所述第二设备在接收到所述第二提示信息后,显示用于提示进行所述第一设备与所述第二设备蓝牙配对的第二提示信息;After receiving the second prompt information, the second device displays second prompt information for prompting the Bluetooth pairing between the first device and the second device;
    所述第二设备在显示完所述第二提示信息后第三预设时间段内未接收到蓝牙配对操作时,采集语音信息,并根据采集到的语音信息对所述第二设备进行控制。When the second device does not receive a Bluetooth pairing operation within a third preset time period after displaying the second prompt information, the second device collects voice information, and controls the second device according to the collected voice information.
  8. 一种设备控制装置,其特征在于,应用于第一设备,所述第一设备上设置有语音按键,所述装置包括:A device control device, characterized in that it is applied to a first device, the first device is provided with a voice button, and the device includes:
    检测模块,用于检测所述语音按键是否被触发;The detection module is used to detect whether the voice button is triggered;
    所述检测模块,还用于在所述语音按键被触发时,获得所述语音按键被触发的时长;The detection module is further configured to obtain the duration of when the voice button is triggered when the voice button is triggered;
    模式确定模块,用于根据所述语音按键被触发的时长确定目标拾音模式,其中,所述目标拾音模式为近场拾音模式或远场拾音模式;A mode determination module, configured to determine a target sound pickup mode according to the duration of when the voice button is triggered, wherein the target sound pickup mode is a near-field sound pickup mode or a far-field sound pickup mode;
    发送模块,用于在目标拾音模式为近场拾音模式时,采集语音信息,并将采集到的语音信息以蓝牙方式发送给第二设备,以对第二设备进行语音控制;The sending module is used to collect voice information when the target sound pickup mode is the near-field sound pickup mode, and send the collected voice information to the second device in a Bluetooth mode, so as to perform voice control on the second device;
    所述发送模块,还用于在所述目标拾音模式为远场拾音模式时,向所述第二设备发送远场拾音模式开启信号,以使所述第二设备采集语音信息,并根据采集到的语音信息对所述第二设备进行控制。The sending module is further configured to send a far-field sound pickup mode activation signal to the second device when the target sound pickup mode is a far-field sound pickup mode, so that the second device collects voice information, and The second device is controlled according to the collected voice information.
  9. 一种电子设备,其特征在于,包括处理器和存储器,所述存储器存储有能够被所述处理器执行的机器可执行指令,所述处理器可执行所述机器可执行指令,以实现:An electronic device, characterized by comprising a processor and a memory, the memory storing machine executable instructions that can be executed by the processor, and the processor can execute the machine executable instructions to realize:
    当所述语音按键被触发时,获得所述语音按键被触发的时长;When the voice button is triggered, obtain the duration of when the voice button is triggered;
    根据所述语音按键被触发的时长确定目标拾音模式,其中,所述目标拾音模式包括近场拾音模式和远场拾音模式;Determining a target sound pickup pattern according to the duration of when the voice button is triggered, wherein the target sound pickup pattern includes a near-field sound pickup pattern and a far-field sound pickup pattern;
    在所述目标拾音模式被确定为近场拾音模式时,采集语音信息,并将采集到的语音信息以蓝牙方式发送给第二设备,以对第二设备进行语音控制;When the target sound pickup mode is determined to be the near-field sound pickup mode, collecting voice information, and sending the collected voice information to the second device in a Bluetooth mode, so as to perform voice control on the second device;
    在所述目标拾音模式被确定为远场拾音模式时,向所述第二设备发送远场拾音模式开启信号,以使所述第二设备采集语音信息,并根据采集到的语音信息对所述第二设备进行控制。When the target sound pickup mode is determined to be the far-field sound pickup mode, send a far-field sound pickup mode on signal to the second device, so that the second device collects voice information, and based on the collected voice information Control the second device.
  10. 根据权利要求9所述的电子设备,其特征在于,所述处理器可执行所述机器可执行指令还实现:The electronic device according to claim 9, wherein said processor executable said machine-executable instructions further implement:
    判断与所述第二设备之间是否已进行过蓝牙配对;Determine whether Bluetooth pairing has been performed with the second device;
    若已进行过蓝牙配对,判断与所述第二设备是否处于蓝牙连接状态;If Bluetooth pairing has been performed, determine whether it is in a Bluetooth connection state with the second device;
    若处于蓝牙连接状态,则执行在目标拾音模式为近场拾音模式时,将所述第一设备采集到的语音信息以蓝牙方式发送给所述第二设备,以对第二设备进行语音控制的步骤;If it is in the Bluetooth connection state, when the target sound pickup mode is the near-field sound pickup mode, it is executed to send the voice information collected by the first device to the second device in Bluetooth mode, so as to voice the second device Control steps;
    若未处于蓝牙连接状态,则以蓝牙方式向所述第二设备发送回连广播,以与所述第二设备之间建立蓝牙连接。If it is not in the Bluetooth connection state, a Bluetooth connection is sent to the second device to establish a Bluetooth connection with the second device.
  11. 根据权利要求10所述的电子设备,其特征在于,所述处理器可执行所述机器可执行指令还实现:The electronic device according to claim 10, wherein said processor executable said machine executable instructions further implements:
    若在第一预设时间段内未回连成功,则以红外方式向所述第二设备发送用于提示语音控制失败的第一提示信息。If the connection is not successful within the first preset time period, the first prompt message for prompting the voice control failure is sent to the second device in an infrared manner.
  12. 根据权利要求10所述的电子设备,其特征在于,所述处理器可执行所 述机器可执行指令还实现:The electronic device of claim 10, wherein the processor-executable machine-executable instructions further implement:
    若未进行过蓝牙配对,则以红外方式向所述第二设备发送用于提示进行所述第一设备与所述第二设备蓝牙配对的第二提示信息。If the Bluetooth pairing has not been performed, the second prompt information for prompting the Bluetooth pairing between the first device and the second device is sent to the second device in an infrared manner.
  13. 根据权利要求9所述的电子设备,其特征在于,所述处理器可执行所述机器可执行指令还实现:The electronic device according to claim 9, wherein said processor executable said machine-executable instructions further implement:
    当所述语音按键被触发时,向所述第二设备发送所述语音按键被触发所产生的信号,以使所述第二设备显示近场拾音模式选项及远场拾音模式选项,其中,当所述第二设备在第二预设时间段内未接收到对近场拾音模式选项及远场拾音模式选项的选择操作,则将近场拾音模式或远场拾音模式作为所述目标拾音模式。When the voice button is triggered, the signal generated by the voice button is sent to the second device, so that the second device displays the near-field pickup mode option and the far-field pickup mode option, where , When the second device does not receive the selection operation of the near-field pickup mode option and the far-field pickup mode option within the second preset time period, the near-field pickup mode or the far-field pickup mode is taken as the all Describe the target pickup pattern.
  14. 一种非易失性可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现:A non-volatile readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, it realizes:
    当所述语音按键被触发时,获得所述语音按键被触发的时长;When the voice button is triggered, obtain the duration of when the voice button is triggered;
    根据所述语音按键被触发的时长确定目标拾音模式,其中,所述目标拾音模式包括近场拾音模式和远场拾音模式;Determining a target sound pickup pattern according to the duration of when the voice button is triggered, wherein the target sound pickup pattern includes a near-field sound pickup pattern and a far-field sound pickup pattern;
    在所述目标拾音模式被确定为近场拾音模式时,采集语音信息,并将采集到的语音信息以蓝牙方式发送给第二设备,以对第二设备进行语音控制;When the target sound pickup mode is determined to be the near-field sound pickup mode, collecting voice information, and sending the collected voice information to the second device in a Bluetooth mode, so as to perform voice control on the second device;
    在所述目标拾音模式被确定为远场拾音模式时,向所述第二设备发送远场拾音模式开启信号,以使所述第二设备采集语音信息,并根据采集到的语音信息对所述第二设备进行控制。When the target sound pickup mode is determined to be the far-field sound pickup mode, send a far-field sound pickup mode on signal to the second device, so that the second device collects voice information, and based on the collected voice information Control the second device.
  15. 根据权利要求14所述的非易失性可读存储介质,其特征在于,所述计算机程序被执行时还实现:The non-volatile readable storage medium according to claim 14, wherein when the computer program is executed, it also implements:
    判断与所述第二设备之间是否已进行过蓝牙配对;Determine whether Bluetooth pairing has been performed with the second device;
    若已进行过蓝牙配对,判断与所述第二设备是否处于蓝牙连接状态;If Bluetooth pairing has been performed, determine whether it is in a Bluetooth connection state with the second device;
    若处于蓝牙连接状态,则执行在目标拾音模式为近场拾音模式时,将所述第一设备采集到的语音信息以蓝牙方式发送给所述第二设备,以对第二设备进行语音控制的步骤;If it is in the Bluetooth connection state, when the target sound pickup mode is the near-field sound pickup mode, it is executed to send the voice information collected by the first device to the second device in Bluetooth mode, so as to voice the second device Control steps;
    若未处于蓝牙连接状态,则以蓝牙方式向所述第二设备发送回连广播,以与所述第二设备之间建立蓝牙连接。If it is not in the Bluetooth connection state, a Bluetooth connection is sent to the second device to establish a Bluetooth connection with the second device.
  16. 根据权利要求15所述的非易失性可读存储介质,其特征在于,所述计 算机程序被执行时还实现:The non-volatile readable storage medium according to claim 15, characterized in that, when the computer program is executed, it also implements:
    若在第一预设时间段内未回连成功,则以红外方式向所述第二设备发送用于提示语音控制失败的第一提示信息。If the connection is not successful within the first preset time period, the first prompt message for prompting the voice control failure is sent to the second device in an infrared manner.
  17. 根据权利要求16所述的非易失性可读存储介质,其特征在于,所述计算机程序被执行时还实现:The non-volatile readable storage medium according to claim 16, characterized in that, when the computer program is executed, it also implements:
    若未进行过蓝牙配对,则以红外方式向所述第二设备发送用于提示进行所述第一设备与所述第二设备蓝牙配对的第二提示信息。If the Bluetooth pairing has not been performed, the second prompt information for prompting the Bluetooth pairing between the first device and the second device is sent to the second device in an infrared manner.
  18. 根据权利要求14所述的非易失性存储介质,其特征在于,所述计算机程序被执行时还实现:The non-volatile storage medium according to claim 14, characterized in that, when the computer program is executed, it also implements:
    当所述语音按键被触发时,向所述第二设备发送所述语音按键被触发所产生的信号,以使所述第二设备显示近场拾音模式选项及远场拾音模式选项,其中,当所述第二设备在第二预设时间段内未接收到对近场拾音模式选项及远场拾音模式选项的选择操作,则将近场拾音模式或远场拾音模式作为所述目标拾音模式。When the voice button is triggered, the signal generated by the voice button is sent to the second device, so that the second device displays the near-field pickup mode option and the far-field pickup mode option, where When the second device does not receive the selection operation of the near-field pickup mode option and the far-field pickup mode option within the second preset time period, the near-field pickup mode or the far-field pickup mode is taken as the all Describe the target pickup pattern.
PCT/CN2020/118465 2019-09-29 2020-09-28 Device control method and apparatus, electronic device, and readable storage medium WO2021058004A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910936829.5A CN112581949B (en) 2019-09-29 2019-09-29 Device control method, device, electronic device and readable storage medium
CN201910936829.5 2019-09-29

Publications (1)

Publication Number Publication Date
WO2021058004A1 true WO2021058004A1 (en) 2021-04-01

Family

ID=75111183

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/118465 WO2021058004A1 (en) 2019-09-29 2020-09-28 Device control method and apparatus, electronic device, and readable storage medium

Country Status (2)

Country Link
CN (1) CN112581949B (en)
WO (1) WO2021058004A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114666632A (en) * 2022-03-21 2022-06-24 海信视像科技股份有限公司 Display device, control device and quick wake-up method
CN115484480A (en) * 2022-08-19 2022-12-16 海信视像科技股份有限公司 Remote control device and display control system
CN114666632B (en) * 2022-03-21 2024-05-10 海信视像科技股份有限公司 Display device, control device and rapid wake-up method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030130852A1 (en) * 2002-01-07 2003-07-10 Kabushiki Kaisha Toshiba Headset with radio communication function for speech processing system using speech recognition
CN103558916A (en) * 2013-11-07 2014-02-05 百度在线网络技术(北京)有限公司 Man-machine interaction system, method and device
CN105635778A (en) * 2015-12-29 2016-06-01 康佳集团股份有限公司 Voice interaction method and system of intelligent television
CN107393535A (en) * 2017-08-29 2017-11-24 歌尔科技有限公司 A kind of method, apparatus, earphone and terminal for opening terminal speech identification function
CN109036411A (en) * 2018-09-05 2018-12-18 深圳市友杰智新科技有限公司 A kind of intelligent terminal interactive voice control method and device
CN109360568A (en) * 2018-12-20 2019-02-19 西安Tcl软件开发有限公司 Unmanned plane sound control method, system and computer readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109243444B (en) * 2018-09-30 2021-06-01 百度在线网络技术(北京)有限公司 Voice interaction method, device and computer-readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030130852A1 (en) * 2002-01-07 2003-07-10 Kabushiki Kaisha Toshiba Headset with radio communication function for speech processing system using speech recognition
CN103558916A (en) * 2013-11-07 2014-02-05 百度在线网络技术(北京)有限公司 Man-machine interaction system, method and device
CN105635778A (en) * 2015-12-29 2016-06-01 康佳集团股份有限公司 Voice interaction method and system of intelligent television
CN107393535A (en) * 2017-08-29 2017-11-24 歌尔科技有限公司 A kind of method, apparatus, earphone and terminal for opening terminal speech identification function
CN109036411A (en) * 2018-09-05 2018-12-18 深圳市友杰智新科技有限公司 A kind of intelligent terminal interactive voice control method and device
CN109360568A (en) * 2018-12-20 2019-02-19 西安Tcl软件开发有限公司 Unmanned plane sound control method, system and computer readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114666632A (en) * 2022-03-21 2022-06-24 海信视像科技股份有限公司 Display device, control device and quick wake-up method
CN114666632B (en) * 2022-03-21 2024-05-10 海信视像科技股份有限公司 Display device, control device and rapid wake-up method
CN115484480A (en) * 2022-08-19 2022-12-16 海信视像科技股份有限公司 Remote control device and display control system

Also Published As

Publication number Publication date
CN112581949B (en) 2023-09-01
CN112581949A (en) 2021-03-30

Similar Documents

Publication Publication Date Title
WO2019007245A1 (en) Processing method, control method and recognition method, and apparatus and electronic device therefor
KR101811969B1 (en) Electronic equipment, method and device for awaking the electronic equipment
WO2016078214A1 (en) Terminal processing method, device and computer storage medium
RU2627940C2 (en) Method and device for controlling intelligent home power source
CN105049923A (en) Method and apparatus for waking up electronic device
JP2019161638A (en) Method for switching control modes of smart tv, equipment and computer program
WO2015131550A1 (en) Method and apparatus for controlling player to enter sleep mode and terminal device
WO2018010596A1 (en) Mode switching method and device
CN111885556A (en) Fast Bluetooth adaptation method, system, remote controller, intelligent terminal and medium
WO2021058004A1 (en) Device control method and apparatus, electronic device, and readable storage medium
CN110933345B (en) Method for reducing television standby power consumption, television and storage medium
CN107742520B (en) Voice control method, device and system
WO2019227370A1 (en) Method, apparatus and system for controlling multiple voice assistants, and computer-readable storage medium
CN112201242A (en) Method and device for waking up equipment, electronic equipment and storage medium
CN111768604B (en) Remote controller control method, remote controller and electrical equipment
CN111862965A (en) Awakening processing method and device, intelligent sound box and electronic equipment
US20200366983A1 (en) Headphone control system
WO2021077260A1 (en) Power consumption information processing method, device, electronic apparatus and storage medium
WO2023246036A1 (en) Control method and apparatus for speech recognition device, and electronic device and storage medium
CN111142900A (en) Program updating method and device and terminal equipment
CN108663942B (en) Voice recognition equipment control method, voice recognition equipment and central control server
CN109831714B (en) Method and device for identifying earphone keys and electronic equipment
CN110703895B (en) Control method and device
CN107463478A (en) The control method and device of terminal device
CN108040362B (en) Mobile terminal, boot key enabling control method and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20867348

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 30.08.2022)

122 Ep: pct application non-entry in european phase

Ref document number: 20867348

Country of ref document: EP

Kind code of ref document: A1