CN113395688A - Voice data processing method, device and computer readable storage medium - Google Patents
Voice data processing method, device and computer readable storage medium Download PDFInfo
- Publication number
- CN113395688A CN113395688A CN202110589155.3A CN202110589155A CN113395688A CN 113395688 A CN113395688 A CN 113395688A CN 202110589155 A CN202110589155 A CN 202110589155A CN 113395688 A CN113395688 A CN 113395688A
- Authority
- CN
- China
- Prior art keywords
- voice assistant
- program
- voice
- communication link
- assistant program
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
- G10L15/00—Speech recognition
- G10L15/22—Procedures used during a speech recognition process, e.g. man-machine dialogue
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
- G10L15/00—Speech recognition
- G10L15/22—Procedures used during a speech recognition process, e.g. man-machine dialogue
- G10L2015/223—Execution procedure of a spoken command
Abstract
The invention discloses a method, equipment and a computer readable storage medium for processing voice data, wherein the method comprises the following steps: selecting a target voice assistant program from the supported voice assistant programs in response to a selection instruction of the voice assistant program; sending the received voice data to a target voice assistant program of a second terminal through a communication link corresponding to the target voice assistant program, so that the target voice assistant program can process the voice data to obtain a processing result; and receiving a processing result returned by the second terminal through the communication link. The invention reduces the complexity of switching the voice assistant types.
Description
Technical Field
The present invention relates to the field of network communication technologies, and in particular, to a method and device for processing voice data, and a computer-readable storage medium.
Background
With the development of science and technology and the progress of computer technology, intelligent equipment is more and more widely applied to the work, study and life of people. The equipment such as mobile phones and computers is more intelligent. The voice application program on the mobile phone is opened through the peripheral equipment, the intelligent sound box, the Bluetooth headset and the like, weather is inquired, the entertainment equipment is started, and great convenience is brought to the life of people by controlling the functions of other intelligent equipment, such as working and the like. Various voice application programs are different in functions and are different in different seasons, people like to work by using different voice application programs in different situations, if the voice application programs are switched to be used, the voice application programs need to be switched by restarting equipment, and the mode for switching the voice assistant types is complex.
Disclosure of Invention
Embodiments of the present invention provide a method and an apparatus for processing voice data, and a computer-readable storage medium, to solve the technical problem that to implement switching of a voice application, it is necessary to implement switching of a voice helper type by restarting the apparatus in a complex manner.
The embodiment of the invention provides a method for processing voice data, which is applied to first terminal equipment and comprises the following steps:
selecting a target voice assistant program from the supported voice assistant programs in response to a selection instruction of the voice assistant program;
sending the received voice data to a target voice assistant program of a second terminal through a communication link corresponding to the target voice assistant program, so that the target voice program can process the voice data to obtain a processing result;
and receiving the processing result returned by the second terminal through the communication link.
In one embodiment, the step of selecting a target voice assistant program in a supported voice assistant program in response to a selection instruction of the voice assistant program comprises:
and selecting a target voice assistant program from the supported voice assistant programs in response to a selection instruction of the voice assistant program triggered by the clicking of the selection key or a selection instruction triggered by the detected voice wake word.
In an embodiment, before the step of sending the received voice data to the target voice assistant program of the second terminal through the communication link corresponding to the target voice assistant program, the method further includes:
responding to a detection instruction of a communication link, and detecting whether the communication link corresponding to the target voice assistant program is connected;
and if the communication link corresponding to the target voice assistant program is communicated, executing the communication link corresponding to the target voice assistant program, and sending the received voice data to the target voice assistant program of the second terminal.
And if the communication link corresponding to the target voice assistant program is not connected, outputting prompt information for connecting the communication link corresponding to the target voice assistant program.
In an embodiment, before the step of selecting the target voice assistant program among the voice assistant programs supported by the first terminal device, the method further comprises:
and establishing a communication link corresponding to the voice assistant program in the second terminal equipment.
In an embodiment, the step of connecting the communication link corresponding to the voice assistant program in the second terminal device includes:
detecting the device type of the second terminal device;
and establishing a communication link corresponding to the voice assistant program in the second terminal equipment according to the communication protocol corresponding to the equipment type.
In an embodiment, the step of establishing a communication link corresponding to a voice assistant program in the second terminal device according to the communication protocol corresponding to the device type includes:
and when the device type is the android device, establishing a communication link corresponding to the voice assistant program in the second terminal device according to the identification code of the android device and a standard parallel interface protocol.
In an embodiment, the step of establishing a communication link corresponding to a voice assistant program in the second terminal device according to the communication protocol corresponding to the device type includes:
and when the device type is the IOS device, periodically sending Bluetooth broadcast data so that the IOS device is connected with the Bluetooth of the first terminal device according to the Bluetooth broadcast data.
In an embodiment, the step of detecting the device type of the second terminal device includes:
acquiring an identification code of the second terminal equipment;
and determining the equipment type of the second terminal equipment according to the identification code of the second terminal equipment.
An embodiment of the present invention further provides a first terminal device, where the first terminal device includes: the processing method comprises a memory, a processor and a processing program of voice data stored on the memory and capable of running on the processor, wherein the processor realizes the steps of the processing method of voice data when executing the processing program of voice data.
An embodiment of the present invention further provides a computer-readable storage medium, where a processing program of voice data is stored on the computer-readable storage medium, and when the processing program of voice data is executed by a processor, the steps of the processing method of voice data as described above are implemented.
In the technical scheme of the embodiment, the first terminal device responds to a selection instruction of the voice assistant program and selects a target voice assistant program from the supported voice assistant programs; sending the received voice data to a target voice assistant program of a second terminal through a communication link corresponding to the target voice assistant program, so that the target voice program can process the voice data to obtain a processing result; and receiving the processing result returned by the second terminal through the communication link. The first terminal equipment can switch the supported voice assistant program, so that when a user has a target voice assistant program determined to be used, a selection instruction for using the voice assistant program can be triggered through the first terminal equipment, and when the target voice assistant program corresponding to the selection instruction is supported by the first terminal equipment, the voice instruction subsequently sent by the user can be processed through the target voice assistant program to realize that the user uses the target voice assistant program, so that the user can complete the switching of the voice assistant program through a simple trigger instruction, and the complexity of switching the types of the voice assistant is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of a hardware architecture of a first terminal device according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for processing voice data according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for processing voice data according to a second embodiment of the present invention;
FIG. 4 is a flowchart illustrating a method for processing voice data according to a third embodiment of the present invention;
FIG. 5 is a flowchart illustrating a method for processing voice data according to a fourth embodiment of the present invention;
FIG. 6 is a flowchart illustrating a fifth embodiment of a method for processing voice data according to the present invention;
FIG. 6A is a flowchart illustrating a method for processing voice data according to a fifth embodiment of the present invention;
FIG. 6B is a flowchart illustrating a method for processing voice data according to a fifth embodiment of the present invention;
fig. 7 is a flowchart illustrating a processing method of voice data according to a sixth embodiment of the present invention.
Detailed Description
For a better understanding of the above technical solutions, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The main solution of the invention is: the first terminal equipment responds to the selection instruction of the voice assistant program and selects a target voice assistant program from the supported voice assistant programs; sending the received voice data to a target voice assistant program of a second terminal through a communication link corresponding to the target voice assistant program, so that the target voice program can process the voice data to obtain a processing result; and receiving the processing result returned by the second terminal through the communication link.
The first terminal equipment can switch the supported voice assistant program, so that when a user has a target voice assistant program determined to be used, a selection instruction for using the voice assistant program can be triggered through the first terminal equipment, and when the target voice assistant program corresponding to the selection instruction is supported by the first terminal equipment, the voice instruction subsequently sent by the user can be processed through the target voice assistant program to realize that the user uses the target voice assistant program, so that the user can complete the switching of the voice assistant program through a simple trigger instruction, and the complexity of switching the types of the voice assistant is reduced.
As an implementation, the first terminal device may be as in fig. 1.
The embodiment of the invention relates to a first terminal device, which comprises: a processor 101, e.g. a CPU, a memory 102, a communication bus 103. Wherein a communication bus 103 is used for enabling the connection communication between these components.
The memory 102 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). As in fig. 1, a detection program may be included in the memory 103 as a computer-readable storage medium; and the processor 101 may be configured to call the detection program stored in the memory 102 and perform the following operations:
selecting a target voice assistant program from the supported voice assistant programs in response to a selection instruction of the voice assistant program;
sending the received voice data to a target voice assistant program of a second terminal through a communication link corresponding to the target voice assistant program, so that the target voice program can process the voice data to obtain a processing result;
and receiving the processing result returned by the second terminal through the communication link.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
and selecting a target voice assistant program from the supported voice assistant programs in response to a selection instruction of the voice assistant program triggered by the clicking of the selection key or a selection instruction triggered by the detected voice wake word.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
responding to a detection instruction of a communication link, and detecting whether the communication link corresponding to the target voice assistant program is connected;
and if the communication link corresponding to the target voice assistant program is communicated, executing the communication link corresponding to the target voice assistant program, and sending the received voice data to the target voice assistant program of the second terminal.
And if the communication link corresponding to the target voice assistant program is not connected, outputting prompt information for connecting the communication link corresponding to the target voice assistant program.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
and establishing a communication link corresponding to the voice assistant program in the second terminal equipment.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
detecting the device type of the second terminal device;
and establishing a communication link corresponding to the voice assistant program in the second terminal equipment according to the communication protocol corresponding to the equipment type.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
and when the device type is the android device, establishing a communication link corresponding to the voice assistant program in the second terminal device according to the identification code of the android device and a standard parallel interface protocol.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
and when the device type is the IOS device, periodically sending Bluetooth broadcast data so that the IOS device is connected with the Bluetooth of the first terminal device according to the Bluetooth broadcast data.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
acquiring an identification code of the second terminal equipment;
and determining the equipment type of the second terminal equipment according to the identification code of the second terminal equipment.
In the technical scheme of the embodiment, a target voice assistant program is selected from the supported voice assistant programs in response to a selection instruction of the voice assistant program; sending the received voice data to a target voice assistant program of a second terminal through a communication link corresponding to the target voice assistant program, so that the target voice program can process the voice data to obtain a processing result; and receiving the processing result returned by the second terminal through the communication link. The first terminal equipment can switch the supported voice assistant program, so that when a user has a target voice assistant program determined to be used, a selection instruction for using the voice assistant program can be triggered through the first terminal equipment, and when the target voice assistant program corresponding to the selection instruction is supported by the first terminal equipment, the voice instruction subsequently sent by the user can be processed through the target voice assistant program to realize that the user uses the target voice assistant program, so that the user can complete the switching of the voice assistant program through a simple trigger instruction, and the complexity of switching the types of the voice assistant is reduced.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
Referring to fig. 2, fig. 2 is a first embodiment of a method for processing voice data according to the present invention, the method comprising the steps of:
step S10, in response to the instruction for selecting a voice assistant program, selects a target voice assistant program among the supported voice assistant programs.
With the development of science and technology and the progress of computer technology, intelligent equipment is more and more widely applied to the work, study and life of people. The voice technology is used as an important component of artificial intelligence science, is more widely applied to various intelligent devices, particularly the appearance and application of voice assistants, and enables devices such as mobile phones, computers and the like to be more intelligent. Through peripheral equipment, intelligent audio amplifier, bluetooth headset etc. open the pronunciation assistant on the cell-phone, inquire weather, open amusement equipment, control functions such as other intelligent device work and given people's life and brought very big convenience. In the current common voice assistants, Siri is an entertaining assistant and can be chatted with the assistant for fun; google assistant teaches speed and quickly handles tasks and things well; the Alexa voice assistant is pushed out by Amazon, is matched with various intelligent household products for use, and is fast and convenient. Various voice assistants differ in function, and are different in autumn, and in different situations, people like to use different voice assistants to work, so if the mobile phone is not required to be frequently started, the external equipment is used for freely switching among a plurality of voice assistants, and the requirements of users can be met.
To this end, we propose a first terminal device that enables real-time support of multi-voice assistant handover.
In this embodiment, the first terminal device carries a bluetooth function, the voice Assistant program may be a Google Assistant voice Assistant or an Alexa voice Assistant, and after receiving a selection instruction sent by a user, the first terminal device may determine whether to support a target voice Assistant program corresponding to the instruction, and when determining that the target voice Assistant program is supported, may execute subsequent steps, where the user may initiate the selection instruction of the target voice Assistant program through the first terminal device or a control device of the corresponding terminal device, and specifically, the voice Assistant program supported by the first terminal device includes a voice Assistant program on a second terminal device that can be called by the first terminal device.
Step S20, sending the received voice data to the target voice assistant program of the second terminal through the communication link corresponding to the target voice assistant program, so that the target voice assistant program processes the voice data to obtain a processing result.
In this embodiment, the communication link is used to implement communication with the target voice assistant program through the first terminal device, and is a pre-established communication link, where the first terminal device may transmit data to the target voice assistant program in the second terminal device through the communication link, for example: when a user triggers a target voice assistant program to be used and inputs voice information to be processed at a first terminal device through voice or a key, the first terminal device sends the voice information to a second terminal device through a communication link, so that the target voice assistant program on the second terminal device processes the voice information, and optionally, the second terminal device can be a mobile phone, a tablet computer and other types of electronic devices.
Step S30, receiving the processing result returned by the second terminal through the communication link.
In this embodiment, when the second terminal device completes processing the voice data, the processing result is fed back to the first terminal device.
In the technical scheme of this embodiment, because the first terminal device may switch the supported voice assistant program, when the user has a target voice assistant program determined to be used, the selection instruction for using the voice assistant program may be triggered by the first terminal device, and when the target voice assistant program corresponding to the selection instruction is supported by the first terminal device, the voice instruction subsequently sent by the user may be processed by the target voice assistant program to implement that the user uses the target voice assistant program.
Referring to fig. 3, fig. 3 is a second embodiment of the processing method of voice data according to the present invention, and based on the first embodiment, step S10 includes:
step S11, responding to the selection instruction of the voice assistant program triggered by the selection key being clicked or the selection instruction triggered by the detected voice wake-up word.
In this embodiment, a selection key corresponding to the supported voice assistant program may be set on the first terminal device, and the user may trigger the selection instruction by clicking the selection key; further, the first terminal device may also detect a voice wake-up word, and then recognize whether the voice wake-up word meets a condition for triggering the selection instruction, optionally, a detection switch for the voice wake-up word is provided on the first terminal device.
In the technical scheme of this embodiment, the trigger condition for waking up the target voice helper program of the second terminal device is set in the first terminal device, so that excessive authority control or appearance modification of the second terminal device can be avoided.
Referring to fig. 4, fig. 4 is a third embodiment of the method for processing voice data according to the present invention, and based on the first or second embodiment, before step S20, the method includes:
and step S40, responding to the detection instruction of the communication link, and detecting whether the communication link corresponding to the target voice assistant program is connected.
In this embodiment, since the communication link is pre-established, considering the connection cost, when the user does not use the communication link for a long time, the connection of the communication link is temporarily disconnected, so that the communication link enters an unconnected state, and therefore, when the target voice assistant program is selected according to the selection instruction of the user, a detection instruction for the communication link of the target voice assistant program is triggered, so that the first terminal device responds to the detection instruction to detect whether the communication link of the target voice assistant program is connected, thereby preventing the target voice assistant program from being unavailable for the subsequent user due to the unconnected communication link of the target voice assistant program.
Step S50, if the communication link corresponding to the target voice assistant program is connected, executing the step of sending the received voice data to the target voice assistant program of the second terminal through the communication link corresponding to the target voice assistant program.
And step S60, if the communication link corresponding to the target voice assistant program is not connected, outputting prompt information for connecting the communication link corresponding to the target voice assistant program.
In this embodiment, when a trigger instruction that the user wants to use the target voice assistant program is received, it may be determined whether the user can use the target voice assistant program successfully, for example: whether a communication link with a target voice assistant program exists in first terminal equipment is determined, and when the first terminal equipment is determined to have the communication link with the target voice assistant program, the subsequent steps are executed; otherwise, outputting prompt information to prompt the user to connect the communication link.
In the technical scheme of the embodiment, whether the target voice assistant program can be successfully used or not can be determined by detecting whether a communication link between the target voice assistant program and the first terminal device is in a connected state or not; when the voice prompt device cannot be used successfully, prompt is carried out through the prompt information, so that the situation that the user sends a voice command to be processed but cannot receive feedback information is avoided.
Referring to fig. 5, fig. 5 shows a fourth embodiment of the speech data processing method according to the present invention, based on any one of the first to third embodiments, before step S10, the method further includes:
step S70, establishing a communication link corresponding to the voice assistant program in the second terminal device.
In the embodiment, the first terminal device and the voice assistant program in the second terminal device are established with a communication link in advance, so that the first terminal device can switch to the voice assistant program which has already established the communication link based on the selection of the user.
In the technical solution of this embodiment, the number and management of the voice assistant programs supported in the first terminal device may be installed and updated based on the second terminal device, and the switching of the voice assistant programs may be implemented without complicated operations with respect to the first terminal device.
Referring to fig. 6, fig. 6 is a fourth embodiment of the speech data processing method according to the present invention, and based on any one of the first to third embodiments, step S70 includes:
and step S71, detecting the device type of the second terminal device.
Step S72, establishing a communication link corresponding to the voice assistant program in the second terminal device according to the communication protocol corresponding to the device type.
In this embodiment, in consideration of the difference in device types of the second terminal device, communication protocols corresponding to multiple device types are set, so that the first terminal device can successfully establish a communication link with the voice assistant program in the second terminal device.
Optionally, when the device type is an android device, a communication link corresponding to the voice assistant program in the second terminal device is established according to the identification code of the android device and a standard parallel interface protocol.
Optionally, for the determination of the device type, the identification code of the second terminal device may be acquired; and determining the equipment type of the second terminal equipment according to the identification code of the second terminal equipment.
When the device type is an android device, preferably, a communication link corresponding to a voice assistant program in the second terminal device is established according to the identification code of the android device and a standard parallel interface protocol, for example: establishing two SPPs, distinguishing by using different UUIDs according to the requirements of the Google Assistant voice Assistant and the Alexa voice Assistant protocol, then connecting second terminal equipment corresponding to the UUIDs, and further establishing a communication link of voice Assistant programs in the first terminal equipment and the second terminal equipment.
Optionally, when the device type is an android device, the bluetooth broadcast data is periodically sent according to the identification code of the android device, so that the voice assistant program in the second terminal device establishes a communication link with the first terminal device based on the identification code of the android device.
Optionally, the first terminal device capable of supporting multi-voice Assistant switching in real time needs to be connected with a second terminal device of a type such as a mobile phone or a tablet, where the Google Assistant and the Alexa voice Assistant are already installed. Referring to the flowchart of connecting different voice assistants at the same time, as shown in fig. 6A, first, according to the connected device, the connected device type is confirmed, and if the connected device type is the IOS type, two BLE broadcasts are turned on for APP connection. And in the same way, if the device is an Android device, different APPs can be connected according to different UUIDs. If the connection is successful, the voice assistant is used, and if the connection is not successful, the default voice assistant Siri and the like carried by the mobile phone are directly used.
Alternatively, the reference flow for waking up a different voice assistant after completing the connection is shown in FIG. 6B. Firstly, judging the type of a voice assistant program which is required to be used according to different awakening modes, when a triggering mode is selected, firstly confirming whether a communication link is maintained, if the link is not maintained, namely the connection is disconnected, prompting a user to disconnect or not connect, asking the user to establish the connection firstly, and then using the voice assistant program. If the data is maintained, the data which is desired to be sent is sent to the selected voice assistant program and waits for a reply or the next voice assistant use.
In the technical solution of this embodiment, different communication link establishment manners may be set according to different device types to implement the voice assistant program communication between the first terminal device and the second terminal device, so that the application range of the first terminal device may be wider in the above-mentioned embodiment.
Referring to fig. 7, fig. 7 is a fourth embodiment of the speech data processing method according to the present invention, and based on any one of the first to third embodiments, step S72 includes:
step S721, when the device type is an IOS device, periodically sending bluetooth broadcast data, so that the IOS device connects to the bluetooth of the first terminal device according to the bluetooth broadcast data.
In this embodiment, since the IOS device is special, if the voice assistant program in the IOS device is to be connected, the IOS device may actively connect the bluetooth of the first terminal device by periodically sending bluetooth broadcast data, so as to establish a communication link with the first terminal device and the voice assistant program in the IOS device, for example: BLE broadcasts two kinds of bluetooth broadcast data, which are broadcast once in 100ms and 150ms, respectively, and then waits for the IOS device to connect.
In the technical scheme of this embodiment, the broadcast data may be sent based on the features of the IOS device, and the first terminal device may passively implement establishment of a communication link with a voice assistant program in the IOS device, thereby increasing the application scene type of the first terminal device.
In order to achieve the above object, an embodiment of the present invention further provides a first terminal device, where the first terminal device includes: the processing method comprises a memory, a processor and a processing program of voice data stored on the memory and capable of running on the processor, wherein the processor realizes the steps of the processing method of voice data when executing the processing program of voice data.
To achieve the above object, an embodiment of the present invention further provides a computer-readable storage medium, on which a processing program of voice data is stored, and the processing program of voice data, when executed by a processor, implements the steps of the processing method of voice data as described above.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or program product for processing voice data. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a network configuration product program embodied on one or more computer-usable computer-readable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and program products for processing voice data according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by processing program instructions for voice data. These processing program instructions for voice data may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These program instructions for processing speech data may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These program instructions for processing of speech data may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (10)
1. A method for processing voice data is applied to a first terminal device, and comprises the following steps:
selecting a target voice assistant program from the supported voice assistant programs in response to a selection instruction of the voice assistant program;
sending the received voice data to a target voice assistant program of a second terminal through a communication link corresponding to the target voice assistant program, so that the target voice program can process the voice data to obtain a processing result;
and receiving the processing result returned by the second terminal through the communication link.
2. The method of processing voice data according to claim 1, wherein the step of selecting a target voice assistant program among the supported voice assistant programs in response to a selection instruction of the voice assistant program comprises:
and selecting a target voice assistant program from the supported voice assistant programs in response to a selection instruction of the voice assistant program triggered by the clicking of the selection key or a selection instruction triggered by the detected voice wake word.
3. The method for processing voice data according to any one of claims 1-2, wherein before the step of sending the received voice data to the target voice assistant program of the second terminal through the communication link corresponding to the target voice assistant program, the method further comprises:
responding to a detection instruction of a communication link, and detecting whether the communication link corresponding to the target voice assistant program is connected;
and if the communication link corresponding to the target voice assistant program is communicated, executing the communication link corresponding to the target voice assistant program, and sending the received voice data to the target voice assistant program of the second terminal.
And if the communication link corresponding to the target voice assistant program is not connected, outputting prompt information for connecting the communication link corresponding to the target voice assistant program.
4. The method of processing voice data according to claim 3, wherein before the step of selecting the target voice helper program among the voice helper programs supported by the first terminal device, the method further comprises:
and establishing a communication link corresponding to the voice assistant program in the second terminal equipment.
5. The method of claim 4, wherein the step of connecting the communication link corresponding to the voice helper program in the second terminal device comprises:
detecting the device type of the second terminal device;
and establishing a communication link corresponding to the voice assistant program in the second terminal equipment according to the communication protocol corresponding to the equipment type.
6. The method for processing voice data according to claim 5, wherein the step of establishing the communication link corresponding to the voice helper program in the second terminal device according to the communication protocol corresponding to the device type comprises:
and when the device type is the android device, establishing a communication link corresponding to the voice assistant program in the second terminal device according to the identification code of the android device and a standard parallel interface protocol.
7. The method for processing voice data according to claim 5, wherein the step of establishing the communication link corresponding to the voice helper program in the second terminal device according to the communication protocol corresponding to the device type comprises:
and when the device type is the IOS device, periodically sending Bluetooth broadcast data so that the IOS device is connected with the Bluetooth of the first terminal device according to the Bluetooth broadcast data.
8. The method for processing voice data according to claim 5, wherein the step of detecting the device type of the second terminal device comprises:
acquiring an identification code of the second terminal equipment;
and determining the equipment type of the second terminal equipment according to the identification code of the second terminal equipment.
9. A first terminal device, characterized in that the first terminal device comprises: a memory, a processor and a processing program of voice data stored on the memory and operable on the processor, the processor implementing the steps of the processing method of voice data according to any one of claims 1 to 8 when executing the processing program of voice data.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a processing program of voice data, which when executed by a processor implements the steps of the processing method of voice data according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110589155.3A CN113395688A (en) | 2021-05-27 | 2021-05-27 | Voice data processing method, device and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110589155.3A CN113395688A (en) | 2021-05-27 | 2021-05-27 | Voice data processing method, device and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113395688A true CN113395688A (en) | 2021-09-14 |
Family
ID=77619388
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110589155.3A Pending CN113395688A (en) | 2021-05-27 | 2021-05-27 | Voice data processing method, device and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113395688A (en) |
-
2021
- 2021-05-27 CN CN202110589155.3A patent/CN113395688A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110459221B (en) | Method and device for multi-device cooperative voice interaction | |
CN106341516B (en) | Multipoint connection control method, device, terminal and multipoint Bluetooth headset | |
CN108881779B (en) | Method, system and server for answering and transferring video calls between intelligent devices | |
CN108811182B (en) | Wireless earphone pairing method and device and wireless earphone | |
US20210044887A1 (en) | Wireless Audio Source Switching | |
US9398373B2 (en) | Direct selection of audio source | |
CN112492442A (en) | Connection switching method, device, equipment and storage medium of Bluetooth headset | |
CN112203179B (en) | TWS earphone, automatic reconnection method and device thereof, and computer storage medium | |
JP5849857B2 (en) | Near field communication device | |
CN113765930B9 (en) | Control method for multiparty call, client and server | |
WO2018072656A1 (en) | Multi-terminal communication method, server, terminal, and storage medium | |
WO2017215151A1 (en) | Method and device for automatically adjusting context-based mode | |
CN105657634A (en) | Method, business assistance server, device and system for realizing remote assistance between terminals | |
CN103701994A (en) | Automatic responding method and automatic responding device | |
CN111757307A (en) | Wireless earphone control method, wireless earphone and readable storage medium | |
CN111132117B (en) | Bluetooth connection method and device, vehicle and storage medium | |
WO2013091449A1 (en) | Connecting wireless devices | |
CN102665173A (en) | Active login method and terminal | |
US20150365133A1 (en) | Touch and Talk Auto-Configuring of Video Conferences Using Near Field Communication (NFC) | |
CN113395688A (en) | Voice data processing method, device and computer readable storage medium | |
CN103763439A (en) | Message processing method and device | |
CN111918019B (en) | Video conference method and system, and computer readable storage medium | |
WO2015131666A1 (en) | Communication feedback method, responding mobile terminal and connection system | |
CN113115482B (en) | Terminal communication method and device based on android system, terminal and storage medium | |
KR20180105676A (en) | How to set up service connection, device, program and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |