CN115623455A - Voice interaction method, device, system, bluetooth device and storage medium - Google Patents

Voice interaction method, device, system, bluetooth device and storage medium Download PDF

Info

Publication number
CN115623455A
CN115623455A CN202110796486.4A CN202110796486A CN115623455A CN 115623455 A CN115623455 A CN 115623455A CN 202110796486 A CN202110796486 A CN 202110796486A CN 115623455 A CN115623455 A CN 115623455A
Authority
CN
China
Prior art keywords
bluetooth device
voice
bluetooth
connection request
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110796486.4A
Other languages
Chinese (zh)
Inventor
江德祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202110796486.4A priority Critical patent/CN115623455A/en
Publication of CN115623455A publication Critical patent/CN115623455A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The disclosure relates to a voice interaction method, a voice interaction device, a voice interaction system, a Bluetooth device and a storage medium. Wherein the method is applied to a second bluetooth device, the method comprising: receiving a pairing request sent by first Bluetooth equipment in the surrounding environment, and pairing the first Bluetooth equipment according to the pairing request; responding to successful pairing of the second Bluetooth device and the first Bluetooth device, establishing a synchronous broadcast information link with the first Bluetooth device, and receiving voice data which is sent by the first Bluetooth device in a broadcast mode and serves as a voice connection request; and establishing a bidirectional voice connection path with the first Bluetooth device according to the response information of the second Bluetooth device to the voice connection request. The method and the device can complete direct voice communication between the Bluetooth devices through the independent Bluetooth devices, and establish a new voice social chat mode between the Bluetooth devices.

Description

Voice interaction method, device, system, bluetooth device and storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a voice interaction method, apparatus, system, bluetooth device, and storage medium.
Background
A wireless bluetooth device is already a very popular terminal device, such as a wireless bluetooth headset. In the related art, voice interaction is usually performed by strongly binding a wireless bluetooth headset with a mobile terminal such as a mobile phone, and connecting the bluetooth headset as a receiving terminal with the mobile terminal such as the mobile phone, so that the mobile terminal such as the mobile phone performs voice communication social contact with other external mobile terminals such as other mobile phones through the bluetooth headset. However, such a social approach to speech is complex.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a voice interaction method, apparatus, system, bluetooth device, and storage medium.
According to a first aspect of the embodiments of the present disclosure, a voice interaction method is provided, which is applied to a second bluetooth device, and the method includes:
receiving a pairing request sent by first Bluetooth equipment in the surrounding environment, and pairing the first Bluetooth equipment according to the pairing request;
responding to successful pairing of the second Bluetooth device and the first Bluetooth device, establishing a synchronous broadcast information link with the first Bluetooth device, and receiving voice data which is sent by the first Bluetooth device in a broadcast mode and serves as a voice connection request;
and establishing a bidirectional voice connection path with the first Bluetooth equipment according to the response information of the second Bluetooth equipment to the voice connection request.
According to a second aspect of the embodiments of the present disclosure, there is provided another voice interaction method applied to a first bluetooth device, the method including:
periodically scanning other Bluetooth devices in a surrounding environment in response to the first Bluetooth device entering a chat mode;
responding to the first Bluetooth device scanning to a second Bluetooth device, and pairing with the second Bluetooth device;
responding to successful pairing of the first Bluetooth device and the second Bluetooth device, establishing a synchronous broadcast information link with the second Bluetooth device, collecting voice of a user of the first Bluetooth device, and sending collected voice data to the second Bluetooth device in a broadcast mode;
sending a CIS connection request to the second Bluetooth device;
establishing a two-way voice connection path with the second Bluetooth device in response to receiving a first automatic response from the second Bluetooth device; wherein the first automatic response indicates that the second Bluetooth device accepts the CIS connection request.
According to a third aspect of the embodiments of the present disclosure, there is provided a voice interaction apparatus applied to a second bluetooth device, the apparatus including:
the pairing unit is used for receiving a pairing request sent by first Bluetooth equipment in the surrounding environment and pairing the first Bluetooth equipment according to the pairing request;
the receiving and sending unit is used for responding to the successful pairing of the second Bluetooth device and the first Bluetooth device, establishing a synchronous broadcast information link with the first Bluetooth device, and receiving voice data which is sent by the first Bluetooth device in a broadcast mode and serves as a voice connection request;
and the establishing unit is used for establishing a bidirectional voice connection path with the first Bluetooth equipment according to the response information of the second Bluetooth equipment to the voice connection request.
According to a fourth aspect of the embodiments of the present disclosure, there is provided another voice interaction apparatus, applied to a first bluetooth device, the apparatus including:
the scanning unit is used for responding to the first Bluetooth device entering the chat mode and periodically scanning other Bluetooth devices in the surrounding environment;
the pairing unit is used for responding to the scanning of the first Bluetooth device to a second Bluetooth device and pairing with the second Bluetooth device;
the receiving and sending unit is used for responding to the successful pairing of the first Bluetooth device and the second Bluetooth device, establishing a synchronous broadcast information link with the second Bluetooth device, collecting the voice of a user of the first Bluetooth device, and sending the collected voice data to the second Bluetooth device in a broadcast mode;
the transceiving unit is further used for sending a CIS connection request to the second Bluetooth device;
an establishing unit configured to establish a bidirectional voice connection path with the second bluetooth device in response to receiving a first automatic response from the second bluetooth device; wherein the first automatic response indicates that the second Bluetooth device accepts the CIS connection request.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a voice interaction system, including: the voice interaction device of the third aspect; and implementing the voice interaction device of the fourth aspect.
According to a sixth aspect of the embodiments of the present disclosure, there is provided a bluetooth device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the voice interaction method according to the first aspect or the voice interaction method according to the second aspect when executing the computer program.
According to a seventh aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium, on which a computer program is stored, the computer program, when being executed by a processor, implements the voice interaction method of the first aspect or implements the voice interaction method of the second aspect.
According to an eighth aspect of embodiments of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the voice interaction method of the aforementioned first aspect, or implements the voice interaction method of the aforementioned second aspect.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: through establishing the two-way voice connection path between the first Bluetooth device and the second Bluetooth device, the first Bluetooth device and the second Bluetooth device can be enabled to carry out two-way voice communication through the two-way voice connection path, so that the direct voice communication between the first Bluetooth device and the second Bluetooth device can be completed through the independent Bluetooth devices, a new voice social chat mode between the Bluetooth devices is established, the purpose of voice friend-making chat is achieved, and the functional practicability of the Bluetooth devices is enriched. In addition, in the whole voice interaction process, voice interaction can be completed through independent Bluetooth equipment without participation of three-party cloud service or three-party equipment, so that the user interaction cost is low, the scene is simple, and the voice social contact mode is simple.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow chart illustrating a method of voice interaction in accordance with an exemplary embodiment.
FIG. 2 is a flow chart illustrating another method of voice interaction in accordance with an exemplary embodiment.
FIG. 3 is a flow chart illustrating a method of voice interaction in accordance with another exemplary embodiment.
FIG. 4 is a block diagram illustrating a voice interaction device, according to an example embodiment.
FIG. 5 is a block diagram illustrating a voice interaction device, according to another example embodiment.
FIG. 6 is a block diagram illustrating a voice interaction device, according to yet another illustrative embodiment.
FIG. 7 is a block diagram illustrating a voice interaction system in accordance with an exemplary embodiment.
Fig. 8 is a schematic diagram illustrating interaction between bluetooth devices in an initial state setting stage in a voice interaction system according to an exemplary embodiment.
Fig. 9 is an interaction diagram illustrating a bluetooth device in a voice interaction confirmation phase in a voice interaction system according to an example embodiment.
Fig. 10 is a schematic diagram illustrating interaction between bluetooth devices during a voice communication phase in a voice interaction system according to an example embodiment.
FIG. 11 is a block diagram illustrating an apparatus for voice interaction in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
It should be noted that the wireless bluetooth device is already a very popular terminal device, such as a wireless bluetooth headset. The voice interaction is usually to strongly bind the wireless bluetooth headset with the mobile terminals such as the mobile phone, and connect the bluetooth headset as a receiving terminal with the mobile terminals such as the mobile phone, so that the mobile terminals such as the mobile phone can perform voice communication social contact with other mobile terminals such as external mobile phones through the bluetooth headset. However, such a social approach to speech is complex.
In the related art, the voice interaction mode is usually realized by a cloud service side networking mode. The cloud service end receives the setting of the communication clan transmitted by the Bluetooth headset electronic device, and is communicated with the electronic devices of other members in the received communication clan, so that a user can communicate with the other members in the communication clan. Therefore, according to the scheme, a cloud server is required to be connected with all the Bluetooth headsets, a private call cluster is set between each Bluetooth headset and the cloud server, only a group which is specially set can communicate through the cloud server, and the limitation is large.
Based on the above problems, the present disclosure provides a voice interaction method, apparatus, system, bluetooth device and storage medium, which can implement direct voice communication between the two devices through an independent bluetooth device, that is, implement direct voice interaction between bluetooth devices in an End-To-End (i.e., end-To-End) manner, and establish a new social chat mode of voice among bluetooth devices.
First, it should be noted that the first bluetooth device and/or the second bluetooth device in the embodiment of the present disclosure may be a bluetooth headset. For example, the first bluetooth device may be a terminal device (such as a mobile phone, a tablet computer, etc.) having a bluetooth module, and the second bluetooth device may be a bluetooth headset; for another example, the first bluetooth device may be a bluetooth headset, and the second bluetooth device may be a terminal device (e.g., a mobile phone, a tablet computer, etc.) having a bluetooth module; for another example, the first bluetooth device and the second bluetooth device are both bluetooth headsets. The embodiments of the present disclosure do not limit the specific technology and the specific device form adopted by the bluetooth device.
A voice interaction method, apparatus, system, bluetooth device, and storage medium of embodiments of the present disclosure are described below with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a voice interaction method according to an exemplary embodiment, where the voice interaction method is used in a second bluetooth device as shown in fig. 1, and includes the following steps.
In step S11, a pairing request sent by a first bluetooth device in the surrounding environment is received, and pairing is performed with the first bluetooth device according to the pairing request.
It should be noted that when the bluetooth function of the second bluetooth device is turned on, bluetooth broadcast data may be sent to the surrounding environment, so that other bluetooth devices in the surrounding environment may scan and discover. For example, when other bluetooth devices in the surrounding environment (such as the first bluetooth device mentioned above) scan and discover bluetooth broadcast data broadcasted by the second bluetooth device, the first bluetooth device initiates a bluetooth connection to establish a GATT (Generic attribute profile) connection with the second bluetooth device, where the GATT connection includes a bluetooth link authentication and encryption process, and sends a pairing request to the second bluetooth device using an SMP (Security management Protocol) pairing procedure, and then completes link encryption. And the second Bluetooth equipment is paired with the first Bluetooth equipment when receiving the pairing request, so that the pairing operation of the first Bluetooth equipment and the second Bluetooth equipment is realized.
The pairing request is sent when the first Bluetooth device scans other Bluetooth devices in the surrounding environment periodically after entering the chat mode and scans the second Bluetooth device. The implementation manner of the first bluetooth device sending the pairing request may refer to the implementation manner provided in the foregoing embodiment, and is not described herein again.
In the embodiment of the present disclosure, the first bluetooth device and the second bluetooth device both support a specific protocol. The specified protocol can be Bluetooth BT5.2 protocol or Bluetooth BT5.2 or above version protocol.
In step S12, in response to the second bluetooth device successfully pairing with the first bluetooth device, a synchronous broadcast information link is established with the first bluetooth device, and voice data transmitted by the first bluetooth device in a broadcast manner as a voice connection request is received.
It should be noted that, in the embodiment of the present disclosure, a synchronous broadcast information link with the first bluetooth device may be established; receiving voice data which is sent by a first Bluetooth device in a broadcast mode and serves as a voice connection request; a disconnection request for the synchronized broadcast information link is transmitted to the first bluetooth device to disconnect the synchronized broadcast information link.
For example, upon completing pairing with a second bluetooth device, the first bluetooth device may establish a synchronized broadcast information link with the second bluetooth device based on LE Audio technology defined in the supported specified protocol, wherein the synchronized broadcast information link may be used to transmit various parameters for parsing voice, and the like. Since the synchronized Broadcast information link between the first bluetooth device and the second bluetooth device is established, the first bluetooth device may transmit BIS (Broadcast Isochronous Streams, which is used in the unconnected operating mode) Broadcast synchronization information to transmit voice data collected by the first bluetooth device to the second bluetooth device. For example, a first bluetooth device user initiates speech around the first bluetooth device. The first Bluetooth device can acquire the voice data of a user of the first Bluetooth device through the microphone and send the acquired voice data to the second Bluetooth device in a BIS broadcast synchronization information mode. It can be understood that the synchronous broadcast information link adopts a unidirectional communication mode, and thus, after the first bluetooth device establishes the synchronous broadcast information link between the first bluetooth device and the second bluetooth device, the voice of the user of the first bluetooth device can be transmitted to the second bluetooth device in a unidirectional broadcast mode, so that the second bluetooth device can analyze the voice data in the broadcast synchronization information based on the parameters carried by the previous synchronous broadcast information link after receiving the broadcast synchronization information, and thereby obtain the voice of the user of the first bluetooth device. After the second Bluetooth device analyzes the voice, the voice can be played through the loudspeaker of the second Bluetooth device, and at the moment, the user of the second Bluetooth device can hear the voice content sent by the user of the first Bluetooth device.
In the present disclosure, when the second bluetooth device user hears the voice message from the first bluetooth device user through the second bluetooth device, the second bluetooth device user can determine whether to approve the voice friend-making chat with the first bluetooth device user according to the self-requirement and preference. And when the second Bluetooth equipment user agrees or is willing to continue the voice chat with the first Bluetooth equipment user, setting a bidirectional voice connection path state so that the first Bluetooth equipment can establish a bidirectional voice connection path with the second Bluetooth equipment. When the second Bluetooth device user does not want to or refuses to continue the voice chat with the first Bluetooth device user, the two-way voice connection access state is set, so that the first Bluetooth device cannot establish the two-way voice connection access with the second Bluetooth device, namely the second Bluetooth device refuses the voice chat request of the first Bluetooth device.
As an example, the user of the second bluetooth device may set the bi-directional voice connection path state by voice setting, tapping on the second bluetooth device, or the like. For example, taking the setting of the bidirectional voice connection state by voice as an example, assuming that the second bluetooth device has a voice recognition function, when the second bluetooth device user hears the voice information sent by the first bluetooth device user through the speaker of the second bluetooth device and agrees or wishes to continue the voice chat with the first bluetooth device user, the second bluetooth device recognizes that the second bluetooth device user sends a voice command such as "agree", and the setting information of the bidirectional voice connection state by the second bluetooth device indicates that the voice connection request sent by the first bluetooth device is accepted. When the second Bluetooth device user hears the voice information sent by the first Bluetooth device user through the loudspeaker of the second Bluetooth device and refuses or does not agree to continue the voice chat with the first Bluetooth device user, the second Bluetooth device recognizes that the second Bluetooth device user sends voice instructions of refusing or not agreeing, and the like, and the setting information of the second Bluetooth device on the bidirectional voice connection access state is represented as refusing the voice connection request.
For another example, taking the manner of tapping on the second bluetooth device to set the bidirectional voice connection state as an example, when the second bluetooth device user performs a double-click operation on the second bluetooth device, it indicates that the second bluetooth device user agrees or is willing to continue the voice chat with the first bluetooth device user, and at this time, the setting information of the second bluetooth device on the bidirectional voice connection state indicates that the voice connection request is accepted. When the second bluetooth device user performs stand-alone operation on the second bluetooth device, the second bluetooth device user refuses or does not agree to continue the voice chat with the first bluetooth device user, and at the moment, the setting information of the second bluetooth device on the bidirectional voice connection access state shows that the voice connection request is refused.
In some embodiments of the present disclosure, after determining the setting information for the bidirectional voice connection path state, transmitting a disconnection request of the synchronized broadcast information link to the first bluetooth device; wherein the first bluetooth device transmits a CIS (Connected Isochronous Stream, connection-based, transport Isochronous Stream data) connection request to the second bluetooth device in response to the disconnection request.
In step S13, a bidirectional voice connection path with the first bluetooth device is established according to response information of the second bluetooth device to the voice connection request.
In the embodiment of the present disclosure, the response information may be understood to be used to inform the second bluetooth device to accept the voice chat invitation of the first bluetooth device or reject the voice chat invitation of the first bluetooth device.
It should be noted that, in the embodiment of the present disclosure, the operation of the voice connection request by the second bluetooth device user may be determined; receiving a CIS connection request sent by a first Bluetooth device; responding to the operation of accepting the voice connection request, sending a first automatic response to the first Bluetooth device, and establishing a bidirectional voice connection path with the first Bluetooth device; wherein the first automatic response indicates that the second Bluetooth device accepts the CIS connection request; in response to the operation being rejection of the voice connection request, sending a second automatic response to the first bluetooth device; wherein the second automatic response is to instruct the second bluetooth device to reject the CIS connection request.
In the embodiment of the present disclosure, after the first bluetooth device transmits the voice request, the second bluetooth device needs to operate on the device, but does not transmit any message to the first bluetooth device at this time, and after the first bluetooth device transmits the CIS request, the second bluetooth device determines whether to transmit the reception request or reject the request according to the previous operation. For example, the second bluetooth device may determine an operation of the second bluetooth device user for the voice connection request, for example, if the second bluetooth device user informs the second bluetooth device of accepting the voice chat invitation of the first bluetooth device by voice (or triggers a hardware component on the second bluetooth device, such as double-clicking the second bluetooth device), the second bluetooth device may determine that the second bluetooth device user accepts the voice connection request, and upon receiving the CIS connection request sent by the first bluetooth device, may send a first automatic response to the first bluetooth device, and inform the first bluetooth device of accepting the CIS connection request by the first automatic response, and establish a bidirectional voice connection path with the first bluetooth device.
In some embodiments of the present disclosure, after the establishment of the bidirectional voice connection path between the second bluetooth device and the first bluetooth device is completed, the second bluetooth device and the first bluetooth device may perform voice communication through the bidirectional voice connection path. That is, after the first bluetooth device establishes the bidirectional voice connection path with the second bluetooth device, the second bluetooth device performs voice communication with the first bluetooth device through the bidirectional voice connection path, so that voice communication between the bluetooth devices can be directly performed.
In some embodiments of the present disclosure, the second bluetooth device, in response to being operative to reject the voice connection request, sends a second automatic response to the first bluetooth device; wherein the second automatic response is to instruct the second bluetooth device to reject the CIS connection request. For example, the second bluetooth device user informs the second bluetooth device of rejecting the voice chat invitation of the first bluetooth device in a voice mode (or triggers a hardware component on the second bluetooth device, such as clicking the second bluetooth device), so that the second bluetooth device can determine that the second bluetooth device user rejects the voice connection request, and when receiving a CIS connection request sent by the first bluetooth device, can send a second automatic response to the first bluetooth device, and informs the first bluetooth device through the second automatic response, so that the second bluetooth device rejects the CIS connection request, and at this time, the first bluetooth device exits from the voice chat scene.
According to the voice interaction method disclosed by the embodiment of the disclosure, the first Bluetooth device and the second Bluetooth device can carry out bidirectional voice communication through the bidirectional voice connection passage established between the first Bluetooth device and the second Bluetooth device, so that direct voice communication between the first Bluetooth device and the second Bluetooth device can be completed through the independent Bluetooth devices, a new voice social chat mode between the Bluetooth devices is established, and the purpose of voice friend-making and chat is achieved. In addition, in the whole voice interaction process, voice interaction can be completed through independent Bluetooth equipment without participation of three-party cloud service or three-party equipment, so that the user interaction cost is low, the scene is simple, and the voice social contact mode is simple.
It is understood that the voice interaction method of the above embodiment is described from the second bluetooth device side. The voice interaction method described from the first bluetooth device side will be given below. Fig. 2 is a flow chart illustrating another voice interaction method according to an exemplary embodiment, as shown in fig. 3, for a first bluetooth device, including the following steps.
In step S21, other bluetooth devices in the surrounding environment are periodically scanned in response to the first bluetooth device entering the chat mode.
For example, suppose that a user is provided with a trigger mode which can enable the first bluetooth device to enter the chat mode, and the user can start the chat mode through the trigger mode to enable the first bluetooth device to enter the chat mode. For example, the trigger mode may be a voice trigger, or an action trigger, etc.
As an example, taking the triggering mode as voice triggering as an example, the first bluetooth device has voice collecting and voice recognizing functions, the first bluetooth device collects voice in the surrounding environment, and when the first bluetooth device recognizes the collected voice and recognizes that a user of the first bluetooth device speaks a voice instruction for opening a voice chat mode, such as "open voice chat", the first bluetooth device enters the chat mode.
As another example, taking the triggering manner as an action trigger, when the first bluetooth device detects that a user performs a specific action on the first bluetooth device, such as tapping a specific location of the first bluetooth device N times continuously, or clicking or touching one or some keys on the first bluetooth device, the first bluetooth device enters a chat mode.
In this step, when the first bluetooth device enters the chat mode, other bluetooth devices in the surrounding environment of the first bluetooth device may be periodically scanned. It should be noted that, when the first bluetooth device enters the chat mode, the bluetooth module in the first bluetooth device is in an on state, so that if the bluetooth modules of other bluetooth devices in the surrounding environment are also turned on, when the first bluetooth device periodically scans the other bluetooth devices in the periodic environment, the first bluetooth device may discover the other bluetooth devices in the periodic environment, where the bluetooth module is turned on, and for convenience of description, in this embodiment of the present disclosure, the other bluetooth devices that are turned on and discovered by the first bluetooth device may be referred to as second bluetooth devices.
In step S22, in response to the first bluetooth device scanning for the second bluetooth device, pairing with the second bluetooth device is performed.
In the embodiment of the present disclosure, the first bluetooth device and the second bluetooth device both support a specific protocol. The specified protocol can be Bluetooth BT5.2 protocol or Bluetooth BT5.2 or above version protocol.
In the embodiment of the present disclosure, when the first bluetooth device scans the second bluetooth device, the first bluetooth device may pair with the second bluetooth device. For example, when a first bluetooth device scans a second bluetooth device, it initiates a bluetooth connection to establish a GATT connection with the second bluetooth device, where the process includes a bluetooth link authentication and encryption process, and uses an SMP pairing procedure to send a pairing request to the second bluetooth device, and then completes link encryption. And the second Bluetooth equipment is paired with the first Bluetooth equipment when receiving the pairing request, so that the pairing operation of the first Bluetooth equipment and the second Bluetooth equipment is realized.
In step S23, in response to the first bluetooth device and the second bluetooth device being successfully paired, a synchronous broadcast information link with the second bluetooth device is established, the voice of the user of the first bluetooth device is collected, and the collected voice data is sent to the second bluetooth device in a broadcast manner.
In the disclosed embodiments, upon completion of pairing of a first bluetooth device with a second bluetooth device, the first bluetooth device may establish a synchronized broadcast information link with the second bluetooth device based on LE Audio technology defined in the supported specified protocol.
As an example, taking the specified protocol may be the bluetooth BT5.2 protocol as an example, in the embodiment of the present disclosure, when the first bluetooth device and the second bluetooth device complete pairing, the first bluetooth device establishes a synchronous broadcast information link with the second bluetooth device based on the LE Audio technology defined by the bluetooth BT5.2 protocol, so that the first bluetooth device transmits the BIS broadcast synchronization information in a broadcast manner.
In the embodiment of the present disclosure, after establishing the synchronous broadcast information link with the second bluetooth device, the first bluetooth device may collect the voice of the user of the first bluetooth device, and send the collected voice data to the second bluetooth device in a broadcast manner.
For example, a first bluetooth device user initiates speech around the first bluetooth device. The first Bluetooth device can acquire the voice data of a user of the first Bluetooth device through the microphone and send the acquired voice data to the second Bluetooth device in a one-way mode in a broadcasting mode. It is understood that the synchronous broadcast information link is a one-way communication method, and the synchronous broadcast information link can be used for transmitting various parameters for resolving voice and the like. Therefore, after the synchronous broadcast information link between the first Bluetooth device and the second Bluetooth device is established, the first Bluetooth device can send the voice of the user of the first Bluetooth device to the second Bluetooth device in a one-way broadcast mode, so that the second Bluetooth device can analyze the voice data in the broadcast synchronization information based on the parameters carried by the previous synchronous broadcast information link after receiving the broadcast synchronization information, and the voice of the user of the first Bluetooth device is obtained. After the second Bluetooth device analyzes the voice, the voice can be played through the loudspeaker of the second Bluetooth device, and at the moment, the user of the second Bluetooth device can hear the voice content sent by the user of the first Bluetooth device.
In step S24, a CIS connection request is transmitted to the second bluetooth device.
In one implementation, a disconnection request for the synchronized broadcast information link is received from the second bluetooth device to disconnect the synchronized broadcast information link before the CIS connection request is transmitted to the second bluetooth device. In the embodiment of the present disclosure, the disconnection request is sent by the second bluetooth device when receiving the voice data broadcast by the first bluetooth device and receiving the setting information for the bidirectional voice connection path state.
For example, when the second bluetooth device user hears the voice message sent by the first bluetooth device user through the second bluetooth device, the second bluetooth device user can determine whether to agree to perform the voice friend-making chat with the first bluetooth device user according to the own requirement and preference. And when the second Bluetooth equipment user agrees or is willing to continue the voice chat with the first Bluetooth equipment user, setting a bidirectional voice connection path state so that the first Bluetooth equipment can establish a bidirectional voice connection path with the second Bluetooth equipment. When the second Bluetooth device user does not want to or refuses to continue the voice chat with the first Bluetooth device user, the two-way voice connection access state is set, so that the first Bluetooth device cannot establish the two-way voice connection access with the second Bluetooth device, namely the second Bluetooth device refuses the voice chat request of the first Bluetooth device.
As an example, the user of the second bluetooth device may set the bi-directional voice connection path state by voice setting, tapping on the second bluetooth device, or the like. For example, taking the example of setting the bidirectional voice connection state by voice, assuming that the second bluetooth device has a voice recognition function, when the second bluetooth device user hears the voice information sent by the first bluetooth device user through a speaker of the second bluetooth device and agrees or wishes to continue the voice chat with the first bluetooth device user, the second bluetooth device recognizes that the second bluetooth device user sends a voice command such as "agree" or the like, and the second bluetooth device indicates that the setting information of the bidirectional voice connection state is to accept the CIS connection request, and sends a first automatic response to the first bluetooth device. When the second Bluetooth device user hears the voice information sent by the first Bluetooth device user through the loudspeaker of the second Bluetooth device and refuses or does not agree to continue the voice chat with the first Bluetooth device user, the second Bluetooth device recognizes that the second Bluetooth device user sends voice instructions such as 'refusing or not agreeing', the setting information of the second Bluetooth device on the bidirectional voice connection access state represents that the CIS connection request is refused, and a second automatic response is sent to the first Bluetooth device.
For another example, taking the manner of tapping on the second bluetooth device or the like to set the bidirectional voice connection access state as an example, when the user of the second bluetooth device performs a double-tap operation on the second bluetooth device, it indicates that the user of the second bluetooth device agrees or is willing to continue the voice chat with the user of the first bluetooth device, at this time, the setting information of the bidirectional voice connection access state by the second bluetooth device indicates that the CIS connection request is accepted, and a first automatic response is sent to the first bluetooth device. When the second Bluetooth device user clicks on the second Bluetooth device, the second Bluetooth device user refuses or does not agree to continue the voice chat with the first Bluetooth device user, at the moment, the second Bluetooth device shows that the setting information of the bidirectional voice connection access state is a CIS connection refusal request, and a second automatic response is sent to the first Bluetooth device.
It should be noted that, in the embodiment of the present disclosure, the second bluetooth device sends a disconnection request of the synchronous broadcast information link to the first bluetooth device when receiving the voice broadcast data sent by the first bluetooth device in a broadcast manner and receiving the setting information for the bidirectional voice connection path state. That is, when the second bluetooth device receives the voice broadcast data transmitted by the first bluetooth device and receives the setting information for the bidirectional voice connection path state, it needs to transmit a disconnection request for the synchronized broadcast information link to the first bluetooth device to disconnect the synchronized broadcast information link between the first bluetooth device and the second bluetooth device.
In step S25, a bidirectional voice connection path is established with the second bluetooth device in response to reception of a first automatic response from the second bluetooth device, wherein the first automatic response indicates that the second bluetooth device accepts the CIS connection request.
For example, it is assumed that an operation behavior is provided that can distinguish whether the second bluetooth device accepts the CIS connection request sent by the first bluetooth device, and the second bluetooth device can determine whether to accept or reject the CIS connection request sent by the first bluetooth device through the operation behavior.
As an example, taking an operation behavior as an action trigger, when the second bluetooth device detects that a user performs a specific action on the second bluetooth device, for example, a specific position of the second bluetooth device is tapped N times consecutively, that is, the second bluetooth device can accept a CIS connection request sent by the first bluetooth device; and continuously tapping the specific position of the second Bluetooth device for N +1 times, namely rejecting to accept the CIS connection request sent by the first Bluetooth device by the second Bluetooth device.
It can be understood that the second bluetooth device may determine whether to accept the CIS connection request sent by the first bluetooth device through operations such as user action triggering. The CIS connection request sent by the first Bluetooth device can be accepted, and the voice connection request sent by the first Bluetooth device can also be rejected. When the second bluetooth device accepts the CIS connection request, the first bluetooth device may establish a bidirectional voice connection path with the second bluetooth device. In an embodiment of the disclosure, a first bluetooth device may establish a bi-directional voice connection path with a second bluetooth device based on LE Audio technology defined in a supported specified protocol.
As an example, taking the specified protocol may be bluetooth BT5.2 protocol as an example, in the embodiment of the present disclosure, when the second bluetooth device accepts the voice connection request, the first bluetooth device establishes a bidirectional voice connection path with the second bluetooth device based on LE Audio technology defined by bluetooth BT5.2 protocol. The bidirectional voice connection path can be used for transmitting synchronous stream data between the Bluetooth devices based on connection, namely, the transmission of voice stream data between the first Bluetooth device and the second Bluetooth device can be realized based on connection, so that voice communication can be directly carried out between the Bluetooth devices.
Optionally, in this disclosed embodiment, in response to receiving a second automatic response from the second bluetooth device, generating a voice chat rejection prompt message, and providing the voice chat rejection prompt message to the first bluetooth device user; wherein the second automatic response is to instruct the second bluetooth device to reject the CIS connection request. That is, the first bluetooth device does not establish a bidirectional voice connection path with the second bluetooth device when the second bluetooth device rejects the CIS connection request.
In some embodiments of the present disclosure, after the establishment of the bidirectional voice connection path between the first bluetooth device and the second bluetooth device is completed, the first bluetooth device and the second bluetooth device may perform voice communication through the bidirectional voice connection path. That is, after the first bluetooth device establishes a bidirectional voice connection path with the second bluetooth device, the first bluetooth device can perform voice communication through the bidirectional voice connection path, so that voice communication can be directly performed between bluetooth devices.
It is noted that in some embodiments, the second bluetooth device may be one or more. That is, the first bluetooth device may directly perform voice interaction with one second bluetooth device, or the first bluetooth device may directly perform voice interaction with a plurality of second bluetooth devices. That is to say, the direct voice interaction between the first bluetooth device and the plurality of second bluetooth devices can be realized by using the one-to-many interconnection feature of the bluetooth devices.
According to the voice interaction method of the embodiment of the disclosure, when a first Bluetooth device enters a chat mode, other Bluetooth devices in the surrounding environment are periodically scanned through the first Bluetooth device, the first Bluetooth device scans a second Bluetooth device in response to the first Bluetooth device, the first Bluetooth device is paired with the second Bluetooth device, when the first Bluetooth device is successfully paired with the second Bluetooth device, a synchronous broadcast information link with the second Bluetooth device is established, the voice of a user of the first Bluetooth device is collected, the collected voice data is sent to the second Bluetooth device in a broadcast mode, a CIS connection request is sent to the second Bluetooth device, and a bidirectional voice connection channel with the second Bluetooth device is established in response to the first automatic response received from the second Bluetooth device; the first automatic response indicates that the second Bluetooth device accepts the CIS connection request, so that the first Bluetooth device and the second Bluetooth device perform voice communication through the bidirectional voice connection path. Therefore, the two-way voice connection path between the first Bluetooth device and the second Bluetooth device is established, and the first Bluetooth device and the second Bluetooth device can carry out two-way voice communication through the two-way voice connection path, so that direct voice communication between the first Bluetooth device and the second Bluetooth device can be completed through the independent Bluetooth devices, a new voice social chat mode between the Bluetooth devices is established, and the purpose of voice friend-making chat is achieved. In addition, in the whole voice interaction process, voice interaction can be completed through independent Bluetooth equipment without participation of three-party cloud service or three-party equipment, so that the user interaction cost is low, the scene is simple, and the voice social contact mode is simple.
In order to further improve the user experience, before the bidirectional voice communication is directly performed between the first bluetooth device and the second bluetooth device, the user of the first bluetooth device may ask the user of the second bluetooth device whether to approve the voice friend-making chat in a voice inquiry mode. When the user of the second Bluetooth device agrees to carry out voice friend-making chat with the user of the first Bluetooth device, the first Bluetooth device and the second Bluetooth device establish a bidirectional voice connection channel so as to directly carry out bidirectional voice communication. Specifically, fig. 3 is a flowchart illustrating a voice interaction method according to another exemplary embodiment, where the voice interaction method is used in a first bluetooth device, as shown in fig. 3, and includes the following steps.
In step S31, other bluetooth devices in the surrounding environment are periodically scanned in response to the first bluetooth device entering the chat mode.
In the embodiment of the present disclosure, step S31 may be implemented by respectively adopting any one of the embodiments of the present disclosure, which is not limited by the embodiment of the present disclosure and is not described again.
In step S32, in response to the first bluetooth device scanning the second bluetooth device, pairing with the second bluetooth device is performed.
In the embodiment of the present disclosure, step S32 may be implemented by using any one of the embodiments of the present disclosure, and this is not limited in the embodiment of the present disclosure and is not described again.
In step S33, in response to the first bluetooth device successfully pairing with the second bluetooth device, a synchronized broadcast information link is established with the second bluetooth device.
In the disclosed embodiments, upon completion of pairing of a first bluetooth device with a second bluetooth device, the first bluetooth device may establish a synchronized broadcast information link with the second bluetooth device based on LE Audio technology defined in the supported specified protocol.
As an example, taking the specific protocol may be bluetooth BT5.2 protocol as an example, in the embodiment of the present disclosure, when the first bluetooth device and the second bluetooth device complete pairing, the first bluetooth device establishes a synchronous broadcast information link with the second bluetooth device based on LE Audio technology defined by bluetooth BT5.2 protocol, so that the first bluetooth device transmits BIS broadcast synchronization information in a broadcast manner.
In step S34, the voice of the user of the first bluetooth device is collected, and the collected voice data is sent to the second bluetooth device in a broadcast manner.
For example, a first bluetooth device user initiates speech around the first bluetooth device. The first Bluetooth device can acquire the voice data of a user of the first Bluetooth device through the microphone and send the acquired voice data to the second Bluetooth device in a one-way mode in a broadcasting mode. It is understood that the synchronous broadcast information link is a unidirectional communication method, and the synchronous broadcast information link can be used for transmitting various parameters for resolving voice and the like. Therefore, after the first Bluetooth device establishes the synchronous broadcast information link between the first Bluetooth device and the second Bluetooth device, the voice of the user of the first Bluetooth device can be sent to the second Bluetooth device in a broadcast manner in a one-way mode, so that the second Bluetooth device can analyze the voice data in the broadcast synchronization information based on the parameters carried by the previous synchronous broadcast information link after receiving the broadcast synchronization information, and the voice of the user of the first Bluetooth device is obtained. After the second Bluetooth device analyzes the voice, the voice can be played through the loudspeaker of the second Bluetooth device, and at the moment, the user of the second Bluetooth device can hear the voice content sent by the user of the first Bluetooth device.
In the present disclosure, when the second bluetooth device user hears the voice message from the first bluetooth device user through the second bluetooth device, the second bluetooth device user can determine whether to approve the voice friend-making chat with the first bluetooth device user according to the self-requirement and preference. And when the second Bluetooth equipment user agrees or is willing to continue the voice chat with the first Bluetooth equipment user, setting a bidirectional voice connection path state so that the first Bluetooth equipment can establish a bidirectional voice connection path with the second Bluetooth equipment. When the second Bluetooth device user does not want to or refuses to continue the voice chat with the first Bluetooth device user, the two-way voice connection access state is set, so that the first Bluetooth device cannot establish the two-way voice connection access with the second Bluetooth device, namely the second Bluetooth device refuses the voice chat request of the first Bluetooth device.
As an example, the user of the second bluetooth device may set the bi-directional voice connection path state by voice setting, tapping on the second bluetooth device, or the like. For example, taking the case of setting the bidirectional voice connection path state in a voice manner, assuming that the second bluetooth device has a voice recognition function, when the second bluetooth device user hears voice information sent by the first bluetooth device user through a speaker of the second bluetooth device and agrees or wishes to continue voice chat with the first bluetooth device user, the second bluetooth device recognizes that the second bluetooth device user sends a voice command such as "agree" or the like, the second bluetooth device indicates that the setting information of the bidirectional voice connection path state is to accept the CIS connection request, and sends a first automatic response to the first bluetooth device. When the second Bluetooth device user hears the voice information sent by the first Bluetooth device user through the loudspeaker of the second Bluetooth device and refuses or disagrees to continue the voice chat with the first Bluetooth device user, the second Bluetooth device recognizes that the second Bluetooth device user sends voice commands of refusing or disagreeing and the like, the second Bluetooth device represents that the CIS connection request is refused according to the setting information of the bidirectional voice connection access state, and sends a second automatic response to the first Bluetooth device.
For another example, when the user of the second bluetooth device performs a double-click operation on the second bluetooth device, it indicates that the user of the second bluetooth device agrees or is willing to continue a voice chat with the user of the first bluetooth device, and at this time, the second bluetooth device indicates that the CIS connection request is accepted as the setting information of the bidirectional voice connection state, and sends a first automatic response to the first bluetooth device. When the second Bluetooth device user clicks on the second Bluetooth device, the second Bluetooth device user refuses or does not agree to continue the voice chat with the first Bluetooth device user, at the moment, the second Bluetooth device shows that the setting information of the bidirectional voice connection access state is a CIS connection refusal request, and a second automatic response is sent to the first Bluetooth device.
It should be noted that, in the embodiment of the present disclosure, when receiving the voice broadcast data that is broadcast by the first bluetooth device and receiving the setting information for the bidirectional voice connection path state, the second bluetooth device sends a disconnection request of the synchronous broadcast information link to the first bluetooth device. That is, when the second bluetooth device receives the voice broadcast data transmitted by the first bluetooth device and receives the setting information for the bidirectional voice connection path state, it needs to transmit a disconnection request for the synchronized broadcast information link to the first bluetooth device to disconnect the synchronized broadcast information link between the first bluetooth device and the second bluetooth device.
In step S35, a disconnection request for the synchronized broadcast information link is received from the second bluetooth device to disconnect the synchronized broadcast information link.
In the embodiment of the present disclosure, the disconnection request is sent by the second bluetooth device when receiving the voice data broadcast by the first bluetooth device and receiving the setting information for the bidirectional voice connection path state.
In step S36, a CIS connection request is transmitted to the second bluetooth device.
In step S37, in response to receiving the first automatic response from the second bluetooth device, establishing a bidirectional voice connection path with the second bluetooth device; wherein the first automatic response indicates that the second bluetooth device accepts the CIS connection request.
In step S38, in response to the second bluetooth device receiving the second automatic response, generating rejection voice chat prompt information, and providing the rejection voice chat prompt information to the first bluetooth device user, wherein the second automatic response is applied to instruct the second bluetooth device to reject the CIS connection request.
In some embodiments of the present disclosure, after the establishment of the bidirectional voice connection path between the first bluetooth device and the second bluetooth device is completed, the first bluetooth device and the second bluetooth device may perform voice communication through the bidirectional voice connection path. That is, after the first bluetooth device establishes a bidirectional voice connection path with the second bluetooth device, the first bluetooth device can perform voice communication through the bidirectional voice connection path, so that voice communication can be directly performed between bluetooth devices.
According to the voice interaction method disclosed by the embodiment of the disclosure, before bidirectional voice communication is directly carried out between the first Bluetooth device and the second Bluetooth device, the user of the first Bluetooth device can inquire whether the user of the second Bluetooth device agrees to carry out voice friend-making chat or not in a voice inquiry mode, and when the user of the second Bluetooth device agrees to carry out voice friend-making chat with the user of the first Bluetooth device, the first Bluetooth device and the second Bluetooth device establish a bidirectional voice connection path to directly carry out bidirectional voice communication, so that the aim of end-to-end voice friend-making chat between the Bluetooth devices is fulfilled, a brand-new voice social chat mode is realized according to independent selection of the user, and the user experience is further improved.
Fig. 4 is a block diagram illustrating a voice interaction apparatus according to an exemplary embodiment, where, as shown in fig. 4, the voice interaction apparatus 40 is applied to a first bluetooth device, and the voice interaction apparatus 40 may include: a scanning unit 41, a pairing unit 42, a transceiving unit 43 and a setup unit 44.
Specifically, the scanning unit 41 is configured to periodically scan for other bluetooth devices in the surrounding environment in response to the first bluetooth device entering the chat mode.
The pairing unit 42 is configured to pair with the second bluetooth device in response to the first bluetooth device scanning for the second bluetooth device.
The transceiving unit 43 is configured to, in response to that the first bluetooth device and the second bluetooth device are successfully paired, establish a synchronous broadcast information link with the second bluetooth device, collect voice of a user of the first bluetooth device, and send collected voice data to the second bluetooth device in a broadcast manner.
The transceiving unit 43 is further configured to send a CIS connection request to the second bluetooth device. As an example, the transceiving unit 43 is further configured to receive a disconnection request for the synchronized broadcast information link from the second bluetooth device to disconnect the synchronized broadcast information link before transmitting the CIS connection request to the second bluetooth device.
The establishing unit 44 is configured to establish a bidirectional voice connection path with the second bluetooth device in response to the second bluetooth device receiving a first automatic response, where the first automatic response indicates that the second bluetooth device accepts the CIS connection request.
In some embodiments of the present disclosure, the establishing unit 44 is further configured to not establish a bi-directional voice connection path with the second bluetooth device in response to the second bluetooth device rejecting the voice connection request. As an example, the establishing unit 44 transmits a CIS connection request to the second bluetooth device in response to the rejection of the voice connection request by the second bluetooth device; receiving a second automatic response to the CIS connection request from the second Bluetooth device without establishing a two-way voice connection path with the second Bluetooth device; the second automatic response indicates rejection of the CIS connection request.
In some embodiments of the present disclosure, as shown in fig. 5, the voice interaction apparatus 50 may further include: a generating unit 55 and a reminder unit 56. Wherein the generating unit 55 is configured to generate the voice chat rejection prompt message in response to receiving a second automatic response from the second bluetooth device, wherein the second automatic response is configured to instruct the second bluetooth device to reject the CIS connection request. The reminder unit 56 is used to provide the voice chat refusal prompt message to the first bluetooth device user. Wherein 51-54 in fig. 5 and 41-44 in fig. 4 have the same function and structure.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
According to the voice interaction device disclosed by the embodiment of the disclosure, the two-way voice connection channel between the first Bluetooth device and the second Bluetooth device is established, and the first Bluetooth device and the second Bluetooth device can perform two-way voice communication through the two-way voice connection channel, so that direct voice communication between the first Bluetooth device and the second Bluetooth device can be completed through the independent Bluetooth devices, a new voice social chat mode between the Bluetooth devices is established, and the purpose of voice friend-making chat is achieved. In addition, in the whole voice interaction process, voice interaction can be completed through the independent Bluetooth equipment without participation of three-party cloud service or three-party equipment, so that the user interaction cost is low, the scene is simple, and the voice social contact mode is simple.
Fig. 6 is a block diagram illustrating another voice interaction apparatus according to an exemplary embodiment, and as shown in fig. 6, the voice interaction apparatus 60 applied to a second bluetooth device may include: a pairing unit 61, a transceiving unit 62 and a establishing unit 63.
Specifically, the pairing unit 61 is configured to receive a pairing request sent by a first bluetooth device in the surrounding environment, and pair with the first bluetooth device according to the pairing request.
The transceiving unit 62 is configured to establish a synchronous broadcast information link with the first bluetooth device in response to successful pairing of the second bluetooth device with the first bluetooth device, and receive voice data, which is sent by the first bluetooth device in a broadcast manner and is used as a voice connection request.
In some embodiments of the present disclosure, the transceiving unit 62 is further configured to send a disconnection request for the synchronized broadcast information link to the first bluetooth device to disconnect the synchronized broadcast information link.
In some embodiments of the present disclosure, the transceiving unit 62 is further configured to send a second automatic response to the first bluetooth device in response to operating to reject the voice connection request; wherein the second automatic response is to instruct the second bluetooth device to reject the CIS connection request.
The establishing unit 63 is configured to establish a bidirectional voice connection path with the first bluetooth device according to response information of the second bluetooth device to the voice connection request.
In some embodiments of the present disclosure, the establishing unit 63 is specifically configured to: determining the operation of the second Bluetooth equipment user on the voice connection request; receiving a CIS connection request sent by a first Bluetooth device; responding to the operation of accepting the voice connection request, sending a first automatic response to the first Bluetooth device, and establishing a bidirectional voice connection path with the first Bluetooth device; wherein the first automatic response indicates that the second bluetooth device accepts the CIS connection request.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
According to the voice interaction device disclosed by the embodiment of the disclosure, the first Bluetooth device and the second Bluetooth device can carry out bidirectional voice communication through the bidirectional voice connection passage established between the first Bluetooth device and the second Bluetooth device, so that direct voice communication between the first Bluetooth device and the second Bluetooth device can be completed through the independent Bluetooth devices, a new voice social chat mode between the Bluetooth devices is established, and the purpose of voice friend-making and chat is achieved. In addition, in the whole voice interaction process, voice interaction can be completed through independent Bluetooth equipment without participation of three-party cloud service or three-party equipment, so that the user interaction cost is low, the scene is simple, and the voice social contact mode is simple.
FIG. 7 is a block diagram illustrating a voice interaction system according to an exemplary embodiment, and as shown in FIG. 7, the voice interaction system 70 may include: a voice interaction means 71 and a voice interaction means 72. The structure and description of the voice interaction device 71 can refer to the structure and description of the voice interaction device in the embodiments shown in fig. 4 to fig. 5, which are not repeated herein. The structure and description of the voice interaction apparatus 72 can refer to the structure and description of the voice interaction apparatus shown in fig. 6, and are not repeated herein. As an example, the voice interaction apparatus 71 is a first bluetooth device, and the voice interaction apparatus 72 is a second bluetooth device.
The interaction process of the voice interaction system of the present disclosure is described in detail below with reference to fig. 8 to 10. For convenience of description, taking the first bluetooth device and the second bluetooth device as bluetooth headsets for example, the bluetooth headset a and the user 1 are an independent connection unit representing the user a, the bluetooth device B and the user 2 are an independent connection unit representing the user B, and the user a and the user B can perform voice communication through a communication channel between the bluetooth headset a and the bluetooth headset B, so that a social mode is achieved; when the user A selects to receive voice data of other Bluetooth earphones, the user A starts a receiving mode on the Bluetooth earphones and starts BLE to send Bluetooth broadcast information; when a user B actively wants to perform social communication with a user A, the user B actively initiates a BLE SCAN, a Bluetooth headset B and the Bluetooth headset A automatically establish BLE connection line synchronous audio broadcasting information, when the user B starts to speak, voice data are collected through a microphone of the Bluetooth headset B and are sent in a Bluetooth broadcasting mode, the Bluetooth headset of the user A can receive the voice broadcasting data, connection establishment of a BLE voice channel is initiated when the user B is confirmed to continue voice chatting, and a social mode that voice private chatting is directly performed between the user A and the user B through the Bluetooth headset is started. The disclosure describes a voice communication social process between end-to-end main bodies of a bluetooth headset, and in order to meet privacy protection and user habits and experiences of normal social contact, the whole voice interaction process is defined as the following three stages: the first stage is as follows: setting an initial state; and a second stage: confirming voice interaction; and a third stage: voice communication.
The technical principles of the above three stages are described in detail below:
the first stage is as follows: and setting an initial state. As shown in fig. 8, the user a wears the bluetooth headset a, the user B wears the bluetooth headset B, and both the bluetooth headsets a and B are in the on state. If a user A has social needs and is willing to receive voice needs of other Bluetooth earphones, the user A actively starts a chat mode to realize that the Bluetooth earphone of the user A supports a BLE Audio function and can receive Bluetooth Audio Broadcast data and voice data based on connection, the Bluetooth earphone A supports a Broadcast SINK function and a Scan decompressor function in the BLE Audio, wherein the Broadcast SINK function is mainly used for receiving the voice Broadcast data, and the Scan decompressor function is mainly used for initiating BLE Broadcast to inform surrounding equipment of service information supported by the equipment; user a may trigger headset a to enter the chat mode through voice interaction or key interaction. The method comprises the steps that BLE scanning is started in a Bluetooth earphone A Broadcast Sink software logic unit to wait for receiving Bluetooth synchronous periodic voice Data broadcasting, and a Scan Delegator software logic unit simultaneously sends BL Data broadcasting carrying Service Data to inform surrounding equipment that a user A supports receiving voice broadcasting Data; the bluetooth headset of user B is in the open IDLE state at this time, and if user B wants to initiate a voice chat, the second stage logic of the present disclosure is entered.
And a second stage: and confirming through voice interaction. This stage completes the process of whether or not voice communication is maintained between bluetooth headset a and bluetooth headset B, as shown in fig. 9. And the Bluetooth earphone A receives Bluetooth voice data from the Bluetooth earphone B, if the user A listens that the voice is willing to continue to communicate with the user B, the voice broadcast is ended, a private connection-based bidirectional voice channel is established, and otherwise, the user A exits from the chat mode to reject the connection request of the user B. The specific process comprises the following steps:
2-1: the Bluetooth headset A and the Bluetooth headset B have already finished the initial state setting, and the Bluetooth headset A has already started the chat mode and sent BLE broadcasting ready to receive synchronous broadcasting information;
2-2: the Bluetooth headset B starts a Broadcast Assistant software logic unit and initiates BLE SCAN to find the Bluetooth headset A; the method comprises the steps that a Bluetooth headset B initiates BLE connection to establish GATT connection with a Bluetooth headset A, the process comprises a Bluetooth link authentication and encryption process, an SMP pairing process is used to enable the Bluetooth headset A and the Bluetooth headset B to carry out pairing request, then link encryption is completed, the Bluetooth headset B sends BIS broadcast synchronization information to the Bluetooth headset A, and the Bluetooth headset A can synchronously receive voice broadcast data discovered by the Bluetooth headset B;
2-3: the user B starts voice at the end B of the Bluetooth headset, a microphone at the end B of the Bluetooth headset starts to send voice Broadcast data through a Broadcast Source software logic unit after the data is collected by the microphone at the end B of the Bluetooth headset, the end A of the Bluetooth headset can synchronously receive a voice Broadcast data packet according to the BIS information transmitted by the end B of the Bluetooth headset in the previous step, the voice Broadcast data packet is played by a loudspeaker at the end A of the Bluetooth headset, and at the moment, the user can hear the voice information sent by the Bluetooth headset A;
2-4: if the user A wants to continue the voice chat with the user B, setting the software logic state as a CIS connection waiting to be started; if the user does not want to continue chatting with the user B, the state is set as a lesson supplementing connection state; the user A can receive the mode of knocking on the Bluetooth headset A and the like to set the 2 states; the user A disconnects the voice broadcasting process and the synchronous information link with the user B;
2-5: after receiving the disconnection request of the Bluetooth headset A, the Bluetooth headset B of the user B can try to actively send a CIS connection path, if the user A agrees to continue voice communication, the Bluetooth headset A receives the connection request, and if the user A does not wish, the Bluetooth headset A refuses the connection request.
And a third stage: voice communication opens two-way voice chat. As shown in fig. 10, after the bluetooth headset a disconnects the synchronous broadcast information link with the bluetooth headset B, the bluetooth headset a has set a state of whether to continue receiving the voice request, and if the bluetooth headset a sets a rejection state, the CIS connection request is directly closed; if the Bluetooth earphone A sets a receiving state, the Bluetooth earphone B initiates a CIS request, the Bluetooth earphone A receives the CIS request and completes SMP authentication and encryption processes, the CIS is a synchronous link based on connection, and then bidirectional voice communication can be performed between the Bluetooth earphone A and the Bluetooth earphone B, so that the purpose of voice friend-making and chatting is achieved.
Therefore, the two-way voice connection path between the first Bluetooth device and the second Bluetooth device is established, and the first Bluetooth device and the second Bluetooth device can carry out two-way voice communication through the two-way voice connection path, so that direct voice communication between the first Bluetooth device and the second Bluetooth device can be completed through the independent Bluetooth devices, a new voice social chat mode between the Bluetooth devices is established, and the purpose of voice friend-making chat is achieved. In addition, in the whole voice interaction process, voice interaction can be completed through the independent Bluetooth equipment without participation of three-party cloud service or three-party equipment, so that the user interaction cost is low, the scene is simple, and the voice social contact mode is simple.
FIG. 11 is a block diagram illustrating an apparatus 1100 for voice interaction in accordance with an example embodiment. For example, the apparatus 1100 may be a bluetooth device, which may be a bluetooth enabled mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, and the like.
Referring to fig. 11, apparatus 1100 may include one or more of the following components: a processing component 1102, a memory 1104, a power component 1106, a multimedia component 1108, an audio component 1110, an input/output (I/O) interface 1112, a sensor component 1114, and a communication component 1116.
The processing component 1102 generally controls the overall operation of the device 1100, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 1102 may include one or more processors 1120 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 1102 may include one or more modules that facilitate interaction between the processing component 1102 and other components. For example, the processing component 1102 may include a multimedia module to facilitate interaction between the multimedia component 1108 and the processing component 1102.
The memory 1104 is configured to store various types of data to support operations at the apparatus 1100. Examples of such data include instructions for any application or method operating on device 1100, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1104 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 1106 provide power for the various components of device 1100. The power components 1106 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the apparatus 1100.
The multimedia component 1108 includes a screen that provides an output interface between the device 1100 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1108 includes a front-facing camera and/or a rear-facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 1100 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 1110 is configured to output and/or input audio signals. For example, the audio component 1110 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 1100 is in operating modes, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 1104 or transmitted via the communication component 1116. In some embodiments, the audio assembly 1110 further includes a speaker for outputting audio signals.
The I/O interface 1112 provides an interface between the processing component 1102 and peripheral interface modules, which can be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 1114 includes one or more sensors for providing various aspects of state assessment for the device 1100. For example, the sensor assembly 1114 may detect an open/closed state of the apparatus 1100, the relative positioning of components, such as a display and keypad of the apparatus 1100, the sensor assembly 1114 may also detect a change in position of the apparatus 1100 or a component of the apparatus 1100, the presence or absence of user contact with the apparatus 1100, an orientation or acceleration/deceleration of the apparatus 1100, and a change in temperature of the apparatus 1100. The sensor assembly 1114 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1114 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1114 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1116 is configured to facilitate wired or wireless communication between the apparatus 1100 and other devices. The apparatus 1100 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1116 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1116 also includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an example embodiment, the apparatus 1100 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 1104 comprising instructions, executable by the processor 1120 of the apparatus 1100 to perform the method described above is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product is also provided, comprising a computer program, which is executed by the processor 1120 of the apparatus 1100 to perform the above-described method.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (22)

1. A voice interaction method applied to a second bluetooth device, the method comprising:
receiving a pairing request sent by first Bluetooth equipment in the surrounding environment, and pairing the first Bluetooth equipment according to the pairing request;
responding to successful pairing of the second Bluetooth device and the first Bluetooth device, establishing a synchronous broadcast information link with the first Bluetooth device, and receiving voice data which is sent by the first Bluetooth device in a broadcast mode and serves as a voice connection request;
and establishing a bidirectional voice connection path with the first Bluetooth device according to the response information of the second Bluetooth device to the voice connection request.
2. The voice interaction method of claim 1, wherein prior to establishing the bi-directional voice connection path with the first bluetooth device, the method further comprises:
sending a disconnection request for the synchronous broadcast information link to the first Bluetooth device to disconnect the synchronous broadcast information link.
3. The method of claim 1, wherein the establishing a bidirectional voice connection path with the first bluetooth device according to the response information of the second bluetooth device to the voice connection request comprises:
determining the operation of a second Bluetooth device user on the voice connection request;
receiving a CIS connection request sent by the first Bluetooth device;
responding to the operation of accepting the voice connection request, sending a first automatic response to the first Bluetooth device, and establishing a bidirectional voice connection path with the first Bluetooth device; wherein the first automatic response indicates that the second Bluetooth device accepts the CIS connection request.
4. The voice interaction method of claim 3, further comprising:
in response to the operation being a rejection of the voice connection request, sending a second automatic response to the first Bluetooth device; wherein the second automatic response is to instruct the second Bluetooth device to reject the CIS connection request.
5. The voice interaction method of any one of claims 1 to 4, wherein the first Bluetooth device and/or the second Bluetooth device is a Bluetooth headset.
6. A voice interaction method applied to a first bluetooth device, the method comprising:
periodically scanning other Bluetooth devices in a surrounding environment in response to the first Bluetooth device entering a chat mode;
responding to the first Bluetooth device scanning to a second Bluetooth device, and pairing with the second Bluetooth device;
responding to the successful pairing of the first Bluetooth device and the second Bluetooth device, establishing a synchronous broadcast information link with the second Bluetooth device, collecting the voice of a user of the first Bluetooth device, and sending the collected voice data to the second Bluetooth device in a broadcast mode;
sending a CIS connection request to the second Bluetooth device;
in response to receiving a first automatic response from the second Bluetooth device, establishing a bidirectional voice connection path with the second Bluetooth device; wherein the first automatic response indicates that the second Bluetooth device accepts the CIS connection request.
7. The voice interaction method of claim 6, wherein before sending the CIS connection request to the second Bluetooth device, the method comprises:
receiving a disconnection request for the synchronous broadcast information link from the second Bluetooth device to disconnect the synchronous broadcast information link.
8. The voice interaction method of claim 6, further comprising:
generating voice chat rejection prompt information in response to receiving a second automatic response from the second bluetooth device, and providing the voice chat rejection prompt information to the first bluetooth device user; wherein the second automatic response is to instruct the second Bluetooth device to reject the CIS connection request.
9. The voice interaction method of any one of claims 6 to 8, wherein the first Bluetooth device and/or the second Bluetooth device is a Bluetooth headset.
10. A voice interaction apparatus, applied to a second bluetooth device, the apparatus comprising:
the pairing unit is used for receiving a pairing request sent by first Bluetooth equipment in the surrounding environment and pairing the first Bluetooth equipment according to the pairing request;
the receiving and sending unit is used for responding to the successful pairing of the second Bluetooth device and the first Bluetooth device, establishing a synchronous broadcast information link with the first Bluetooth device, and receiving voice data which is sent by the first Bluetooth device in a broadcast mode and serves as a voice connection request;
and the establishing unit is used for establishing a bidirectional voice connection path with the first Bluetooth equipment according to the response information of the second Bluetooth equipment to the voice connection request.
11. The apparatus of claim 10, wherein the transceiver unit is further configured to:
sending a disconnection request for the synchronized broadcast information link to the first Bluetooth device to disconnect the synchronized broadcast information link.
12. The voice interaction apparatus according to claim 10, wherein the establishing unit is specifically configured to:
determining the operation of a second Bluetooth device user on the voice connection request;
receiving a CIS connection request sent by the first Bluetooth device;
responding to the operation of accepting the voice connection request, sending a first automatic response to the first Bluetooth device, and establishing a bidirectional voice connection path with the first Bluetooth device; wherein the first automatic response indicates that the second Bluetooth device accepts the CIS connection request.
13. The voice interaction apparatus of claim 12, wherein the transceiver unit is further configured to:
in response to the operation being a rejection of the voice connection request, sending a second automatic response to the first Bluetooth device; wherein the second automatic response is to instruct the second Bluetooth device to reject the CIS connection request.
14. The apparatus according to any one of claims 10 to 13, wherein the first bluetooth device and/or the second bluetooth device is a bluetooth headset.
15. A voice interaction apparatus, applied to a first bluetooth device, the apparatus comprising:
the scanning unit is used for responding to the first Bluetooth device entering the chat mode and periodically scanning other Bluetooth devices in the surrounding environment;
the pairing unit is used for responding to the scanning of the first Bluetooth device to a second Bluetooth device and pairing with the second Bluetooth device;
the receiving and sending unit is used for responding to the successful pairing of the first Bluetooth device and the second Bluetooth device, establishing a synchronous broadcast information link with the second Bluetooth device, collecting the voice of a user of the first Bluetooth device, and sending the collected voice data to the second Bluetooth device in a broadcast mode;
the transceiving unit is further used for sending a CIS connection request to the second Bluetooth device;
the establishing unit is used for responding to the first automatic response received from the second Bluetooth device and establishing a bidirectional voice connection path with the second Bluetooth device; wherein the first automatic response indicates that the second Bluetooth device accepts the CIS connection request.
16. The voice interaction apparatus of claim 15, wherein the transceiver is further configured to:
receiving a disconnection request for the synchronous broadcast information link from the second Bluetooth device to disconnect the synchronous broadcast information link before transmitting a CIS connection request to the second Bluetooth device.
17. The voice interaction apparatus of claim 15, further comprising:
a generating unit, configured to generate a voice chat rejection prompt message in response to receiving a second automatic response from the second bluetooth device; wherein the second automatic response is to instruct the second Bluetooth device to reject the CIS connection request;
and the reminding unit is used for providing the voice chat refusing prompt message for the first Bluetooth equipment user.
18. The apparatus according to any of claims 15 to 17, wherein the first bluetooth device and/or the second bluetooth device is a bluetooth headset.
19. A voice interaction system, comprising:
the voice interaction device of any one of claims 10 to 14;
the voice interaction device of any of claims 15 to 18.
20. A bluetooth device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the voice interaction method according to any one of claims 1 to 5 or implementing the voice interaction method according to any one of claims 6 to 9 when executing the computer program.
21. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the voice interaction method as claimed in any one of claims 1 to 5, or carries out the voice interaction method as claimed in any one of claims 6 to 9.
22. A computer program product comprising a computer program which, when executed by a processor, implements the voice interaction method of any one of claims 1 to 5, or implements the voice interaction method of any one of claims 6 to 9.
CN202110796486.4A 2021-07-14 2021-07-14 Voice interaction method, device, system, bluetooth device and storage medium Pending CN115623455A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110796486.4A CN115623455A (en) 2021-07-14 2021-07-14 Voice interaction method, device, system, bluetooth device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110796486.4A CN115623455A (en) 2021-07-14 2021-07-14 Voice interaction method, device, system, bluetooth device and storage medium

Publications (1)

Publication Number Publication Date
CN115623455A true CN115623455A (en) 2023-01-17

Family

ID=84855144

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110796486.4A Pending CN115623455A (en) 2021-07-14 2021-07-14 Voice interaction method, device, system, bluetooth device and storage medium

Country Status (1)

Country Link
CN (1) CN115623455A (en)

Similar Documents

Publication Publication Date Title
EP3038397B1 (en) Method and device for p2p wifi connection
US10237901B2 (en) Method and apparatus for connecting with controlled smart device, and storage medium
US10205776B2 (en) Method and device for wireless connection
CN113115403B (en) Method, device, electronic equipment and storage medium for network node to access network
EP3223147A2 (en) Method for accessing virtual desktop and mobile terminal
US8503998B2 (en) Wireless communication terminal and wireless communication method
CN113434224B (en) Conference information transmission method and electronic equipment
US20150119011A1 (en) Information processing method and device
US20060172727A1 (en) Method of providing one-to-one call during conference call in a mobile terminal
CN110784908B (en) Wireless network distribution method, wireless router and wireless network distribution system
CN113766259A (en) Information synchronization system, method, device, equipment and storage medium
CN111010721A (en) Wireless network distribution method, wireless network distribution device and computer readable storage medium
CN105306567B (en) Method and device for terminal connection
CN111866720A (en) Positioning method and device
US11076429B2 (en) Method and apparatus for acquiring system information, and method and apparatus for transmitting system information
WO2023025150A1 (en) Call method, electronic device, and system
JP2018527765A (en) Method, apparatus, program and recording medium for establishing service connection
CN107277422B (en) Video call method, device and system
CN115623455A (en) Voice interaction method, device, system, bluetooth device and storage medium
CN111800836B (en) Communication method, device, electronic equipment and storage medium
CN113596263A (en) Call method and device, server, initiating terminal, receiving terminal and storage medium
CN106657533B (en) Call handling method and device
CN118042049A (en) Multi-party call realization method, device, equipment, chip and storage medium
EP4387215A1 (en) Call control method and apparatus, storage medium, and chip
EP4412190A1 (en) Call method and communication system

Legal Events

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