Intelligent voice control method, device, equipment and medium for Bluetooth device

CN114038456BActive Publication Date: 2024-11-12VTION ANZHUO TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111134152.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-27
Publication Date
2024-11-12
Estimated Expiration
2041-09-27

AI Technical Summary

Technical Problem

当前的Android设备不支持通过语音来控制蓝牙设备,且Amazon公司开源的Alexa语音是不支持控制Android系统下的蓝牙设备的;这就使得Android系统下,只能通过手动方式进行控制,不便于用户使用

Benefits of technology

[0017]本申请实施例提供的方法、装置、设备和介质,使得用户可以在Android系统下,直接通过语音控制蓝牙设备,便于用户使用;并且本发明实现方式便捷,并不会对Android系统有任何影响。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114038456B_ABST
    Figure CN114038456B_ABST
Patent Text Reader

Abstract

The present invention provides an intelligent voice control method, device, equipment and medium for a Bluetooth device. The method comprises: receiving voice commands through Amazon Cloud and converting them into Alexa control commands; connecting the Alexa control commands to the Framework layer of Android, and the Android system performing corresponding operations according to the Alexa control commands; and replying the operation results to Amazon Cloud. This enables users to directly control Bluetooth devices through voice under the Android system, which is convenient for users to use.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to an intelligent voice control method, device, equipment and medium for a Bluetooth device. Background Art

[0002] In the current smart device field, Android systems are the majority. Current Android devices do not support voice control of Bluetooth devices, and Amazon's open source Alexa voice does not support control of Bluetooth devices under the Android system; this means that under the Android system, control can only be done manually, which is inconvenient for users. Summary of the invention

[0003] The technical problem to be solved by the present invention is to provide an intelligent voice control method, device, equipment and medium for Bluetooth devices, so that users can directly control Bluetooth devices by voice under the Android system, which is convenient for users to use.

[0004] In a first aspect, the present invention provides an intelligent voice control method for a Bluetooth device, comprising:

[0005] Step 1: Receive voice commands through Amazon Cloud and convert them into Alexa control commands;

[0006] Step 2: Connect Alexa control commands to the Android Framework layer, and the Android system performs corresponding operations based on the Alexa control commands;

[0007] Step 3. Respond the operation result to Amazon Cloud.

[0008] Furthermore, the operation interface is encapsulated to obtain a JNI interface, and the Alexa control instructions are connected to the Android Framework layer through the JNI interface. According to the Alexa control instructions, the corresponding interface in the JNI interface is called to allow Android to perform corresponding operations. The JNI interface includes: a scanning device interface, a pairing interface, a cancel pairing interface, a connection interface, a disconnection interface, and a playback control interface.

[0009] In a second aspect, the present invention provides an intelligent voice control device for a Bluetooth device, comprising:

[0010] The receiving and conversion module receives voice commands through Amazon Cloud and converts them into Alexa control commands;

[0011] The control operation module connects Alexa control commands to the Android Framework layer, and the Android system performs corresponding operations based on the Alexa control commands;

[0012] The reply module returns the operation results to Amazon Cloud.

[0013] Furthermore, the control operation module is further specifically as follows: encapsulating the operation interface to obtain the JNI interface, connecting the Alexa control instruction to the Android Framework layer through the JNI interface, calling the corresponding interface in the JNI interface according to the Alexa control instruction to let Android perform the corresponding operation, and the JNI interface includes: scanning device interface, pairing interface, unpairing interface, connection interface, disconnection interface and playback control interface.

[0014] In a third aspect, the present invention provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the first aspect when executing the program.

[0015] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the first aspect.

[0016] One or more technical solutions provided in the embodiments of the present invention have at least the following technical effects or advantages:

[0017] The method, apparatus, device and medium provided in the embodiments of the present application enable users to directly control Bluetooth devices by voice under the Android system, which is convenient for users to use; and the implementation method of the present invention is convenient and will not have any impact on the Android system.

[0018] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The present invention will be further described below in conjunction with embodiments with reference to the accompanying drawings.

[0020] Figure 1 is a flow chart of the present invention;

[0021] Figure 2 is a flow chart of the method in Embodiment 1 of the present invention;

[0022] Figure 3It is a schematic diagram of the structure of the device in the second embodiment of the present invention. DETAILED DESCRIPTION

[0023] The embodiments of the present application solve the problem that Alexa voice cannot be used to control Bluetooth devices for related operations under the Android system by providing an intelligent voice control method, device, equipment and medium for Bluetooth devices, and provide a good solution for a large number of Android system devices.

[0024] The technical solution in the embodiment of the present application has the following general idea:

[0025] like Figure 1 As shown, a BlueJni module is added to connect the Alexa command to the Android Framework layer, and all Bluetooth operations to be implemented are encapsulated in JNI mode. The specific operation interface is provided by the standard Bluetooth interface Android.bluetooth package of the Android layer, and the interfaces to be encapsulated include: scanning device scan(), pairing pair() / unpairing unpair(), connecting connect() / disconnecting disconnect(), and playing control play() / pause() / next() / previous(). When the Alexa command is received, the JNI interface encapsulated by the BlueJni module is called to actually call the standard Bluetooth interface of the Android layer to implement specific operations. For example, if the user says: "Alexa, connect my phone", Amazon Cloud will send a Bluetooth connect command to our device after recognizing the voice content. After receiving the command, BlueJni.connect() calls BluetoothSocket.connect() of the Android.bluetooth package to connect to a device, and finally responds to the Amazon Cloud with the connection result.

[0026] Embodiment 1

[0027] like Figure 2 As shown, this embodiment provides an intelligent voice control method for a Bluetooth device, including:

[0028] Step 1: Receive voice commands through Amazon Cloud and convert them into Alexa control commands;

[0029] Step 2: Encapsulate the operation interface to obtain a JNI interface, connect the Alexa control command to the Android Framework layer through the JNI interface, and call the corresponding interface in the JNI interface according to the Alexa control command to let Android perform the corresponding operation. The JNI interface includes: a scanning device interface, a pairing interface, a cancel pairing interface, a connection interface, a disconnection interface, and a playback control interface;

[0030] Step 3. Respond the operation result to Amazon Cloud.

[0031] Based on the same inventive concept, the present application also provides a device corresponding to the method in Example 1, see Example 2 for details.

[0032] Embodiment 2

[0033] like Figure 3 As shown, in this embodiment, an intelligent voice control device for a Bluetooth device is provided, comprising:

[0034] The receiving and conversion module receives voice commands through Amazon Cloud and converts them into Alexa control commands;

[0035] The control operation module encapsulates the operation interface to obtain the JNI interface, connects the Alexa control instruction to the Android Framework layer through the JNI interface, and calls the corresponding interface in the JNI interface according to the Alexa control instruction to let Android perform the corresponding operation. The JNI interface includes: scanning device interface, pairing interface, unpairing interface, connection interface, disconnection interface and playback control interface;

[0036] The reply module returns the operation results to Amazon Cloud.

[0037] Since the device introduced in the second embodiment of the present invention is a device used to implement the method of the first embodiment of the present invention, those skilled in the art can understand the specific structure and deformation of the device based on the method introduced in the first embodiment of the present invention, so it is not described here in detail. All devices used in the method of the first embodiment of the present invention belong to the scope of protection of the present invention.

[0038] Based on the same inventive concept, the present application provides an electronic device embodiment corresponding to the first embodiment, see the third embodiment for details.

[0039] Embodiment 3

[0040] This embodiment provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, any implementation method in the first embodiment can be implemented.

[0041] Since the electronic device introduced in this embodiment is a device used to implement the method in the first embodiment of the present application, based on the method introduced in the first embodiment of the present application, a person skilled in the art can understand the specific implementation of the electronic device of the present embodiment and its various variations, so how the electronic device implements the method in the embodiment of the present application is not described in detail here. As long as a person skilled in the art implements the device used by the method in the embodiment of the present application, it belongs to the scope of protection of the present application.

[0042] Based on the same inventive concept, the present application provides a storage medium corresponding to the first embodiment, see the fourth embodiment for details.

[0043] Embodiment 4

[0044] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, any implementation method in the first embodiment can be implemented.

[0045] The technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: the methods, devices, equipment and media provided in the embodiments of the present application,

[0046] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0047] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0048] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0049] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0050] Although the specific implementation modes of the present invention are described above, those skilled in the art should understand that the specific implementation modes described are only illustrative and are not intended to limit the scope of the present invention. Equivalent modifications and changes made by those skilled in the art in accordance with the spirit of the present invention should be included in the scope of protection of the claims of the present invention.

Claims

1. An intelligent voice control method for a Bluetooth device, characterized in that: include: Step 1: Receive voice commands through Amazon Cloud and convert them into Alexa control commands; Step 2: Encapsulate the operation interface to obtain a JNI interface, connect the Alexa control command to the Android Framework layer through the JNI interface, and call the corresponding interface in the JNI interface according to the Alexa control command to let Android perform the corresponding operation. The JNI interface includes: a scanning device interface, a pairing interface, a cancel pairing interface, a connection interface, a disconnection interface, and a playback control interface; Step 3: Respond the operation result to Amazon Cloud.

2. An intelligent voice control device for a Bluetooth device, characterized in that: include: The receiving and conversion module receives voice commands through the Amazon Cloud and converts them into Alexa control commands; The control operation module encapsulates the operation interface to obtain the JNI interface, connects the Alexa control instruction to the Android Framework layer through the JNI interface, and calls the corresponding interface in the JNI interface according to the Alexa control instruction to let Android perform the corresponding operation. The JNI interface includes: scanning device interface, pairing interface, unpairing interface, connection interface, disconnection interface and playback control interface; The reply module returns the operation results to Amazon Cloud.

3. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to claim 1 is implemented.

4. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to claim 1 is implemented.