Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
With the increase of the types of audio playing devices and the improvement of playing sound effects, more users can select to output audio data played by electronic devices such as mobile phones and tablet computers to the audio playing devices for playing. Common audio playing devices include a vehicle-mounted music player, a sound box, an earphone, and the like. Wherein, the earphone comprises a wired earphone or a wireless earphone.
Take an earphone as an example. If the earphone is a wired earphone, the wired earphone is connected with the electronic device through a physical line, and the electronic device transmits audio data to the wired earphone through the physical line so that the wired earphone can play audio conveniently.
In order to release the use of the earphone from the wired condition, the connection between the earphone and the electronic equipment is independent of a physical line, the use convenience of the earphone is improved, and the wireless earphone is produced. The wireless earphone establishes a communication link according to a wireless communication protocol commonly supported by the wireless earphone and the electronic equipment in advance, and then the electronic equipment transmits audio data to the wireless earphone through the communication link so that the wireless earphone can play audio. The wireless communication protocol may include a WLAN protocol, a bluetooth protocol, or a ZigBee protocol, and the wireless headset connected through the bluetooth protocol in the wireless headset is taken as an example for description, that is, the bluetooth headset is taken as an example for description.
In the embodiment of the present application, the headset that can establish a bluetooth connection with other devices such as an electronic device through a bluetooth protocol, a proprietary protocol, or other commands, and perform data transmission is defined as a bluetooth headset, such as a TWS (true Wireless stereo) headset, a TWS Plus headset, and the like. Of course, the bluetooth headset may also be bluetooth connected to other bluetooth headsets.
The electronic device can be connected with one Bluetooth headset or a plurality of Bluetooth headsets. Each bluetooth headset may also be connected to one other bluetooth headset or to a plurality of other bluetooth headsets. The plurality of bluetooth headsets may be two or more than two bluetooth headsets.
The electronic device and the bluetooth headset may form a data transmission system for data transmission, in which the electronic device may transmit data to the bluetooth headset connected to the bluetooth headset, and the bluetooth headset may also transmit data to the bluetooth headset connected to the bluetooth headset.
As a first embodiment, as shown in fig. 1, when the number of the bluetooth headsets is one, the electronic device 400 may bluetooth connect with one bluetooth headset 100 and perform data interaction with the bluetooth headset 100.
As a second embodiment, as shown in fig. 2, when the number of the bluetooth headsets is two or more, the electronic device 400 may respectively establish a connection with a plurality of bluetooth headsets, for example, a first bluetooth headset 110 and a second bluetooth headset 120, and then respectively establish a communication link with the first bluetooth headset 110 and the second bluetooth headset 120 based on the aforementioned wireless communication protocol, and respectively perform data interaction.
As a third embodiment, as shown in fig. 3, when the number of the bluetooth headsets is two or more, the electronic device 400 may establish a connection with one of the bluetooth headsets, and then establish a connection with another bluetooth headset through the connected bluetooth headset, for example, a first bluetooth headset 110 and a second bluetooth headset 120, so that the electronic device 400 may directly suggest a communication link with the first bluetooth headset 110 based on the aforementioned wireless communication protocol, and then establish a communication link with the second bluetooth headset 120 based on the aforementioned wireless communication protocol. And performs data interaction with the first bluetooth headset 110 and the second bluetooth headset 120.
However, in the process of data interaction between the electronic device and the bluetooth headset, if the language of the audio data input by the electronic device to the bluetooth headset is not the language used by the user of the bluetooth headset, the user may be easily unable to receive or communicate with the electronic device. In view of the above problems, the inventor finds, through long-term research, that the translation method, the translation device, the translation system, and the bluetooth headset provided in the embodiments of the present application are provided, and when a language corresponding to audio data received by the bluetooth headset is not consistent with a language used by a user, the audio data is translated into the language used by the user, so that the use is convenient, and the user experience is improved.
Examples
Referring to fig. 4, fig. 4 is a flowchart illustrating a translation method according to an embodiment of the present application. The translation method is used for translating the audio data into the language used by the user when the language corresponding to the audio data received by the Bluetooth headset is inconsistent with the language used by the user, is convenient to use and improves user experience. In a specific embodiment, the translation method is applied to the translation apparatus 200 shown in fig. 10 and the bluetooth headset 100 (fig. 11) equipped with the translation apparatus 200. As will be described in detail with respect to the flow shown in fig. 4, the translation method may specifically include the following steps:
step S110: and the Bluetooth headset receives audio data transmitted by the electronic equipment.
In this embodiment, the bluetooth headset may receive audio data.
As a first way, the audio data received by the bluetooth headset may be transmitted by the electronic device. In one embodiment, the connection state between the electronic device and the bluetooth headset is first detected, and it is understood that the connection state between the electronic device and the bluetooth headset may include a connected state and a disconnected state, wherein the disconnected state includes a disconnected state and a connected state. As one way, whether the electronic device and the bluetooth headset are in a connected state may be determined by checking a state value of the electronic device, and specifically, when the electronic device is connected to the bluetooth headset, a first state value is returned, and when the electronic device is disconnected from the bluetooth headset, a second state value is returned, so that whether the electronic device and the bluetooth headset are in a connected state may be determined by detecting the first state value and the second state value. As another mode, the Android system sends a broadcast when the bluetooth headset is connected or disconnected, so the electronic device can determine whether the electronic device is connected with the bluetooth headset in a broadcast monitoring mode. And when the electronic equipment is determined to be in a connection state with the Bluetooth headset, the Bluetooth headset receives audio data sent by the electronic equipment.
As a second mode, the audio data received by the bluetooth headset may also be sent by other bluetooth headsets, and in an embodiment, the connection state between the bluetooth headset and other bluetooth headsets is first detected, and a method for detecting the connection state between the bluetooth headset and other bluetooth headsets is similar to a method for detecting the connection state between the bluetooth headset and the electronic device, and is not described herein again. When detecting that the Bluetooth headset is in a connection state with other Bluetooth headsets, the Bluetooth headset receives audio data sent by other Bluetooth headsets.
Step S120: and judging whether the language corresponding to the audio data is consistent with the language used by the user corresponding to the Bluetooth headset.
Further, after the bluetooth headset receives the audio data, the language corresponding to the audio data is identified to obtain the language corresponding to the audio data, and it can be understood that the voice corresponding to the audio data includes at least one of, for example, the language corresponding to the audio data is english, the language corresponding to the audio data is chinese, the language corresponding to the audio data is french, the language corresponding to the audio data includes english and chinese, and the language corresponding to the audio data includes english, chinese, and french, and the like, which is not limited herein.
In addition, the language used by the user corresponding to the bluetooth headset can be preset by the bluetooth headset, for example, the user corresponding to the bluetooth headset is a Chinese, and the language used by the user is a Chinese; or the user corresponding to the Bluetooth headset is a American, and the language used by the user is English; or the user corresponding to the Bluetooth headset is a French person, and the language used by the user is French; or the user corresponding to the bluetooth headset is a Chinese, and the language used by the user is Chinese or English, etc.
In this embodiment, after the language corresponding to the audio data is obtained, the language corresponding to the audio data may be compared with a language used by a user preset by the bluetooth headset, so as to determine whether the language corresponding to the audio data is consistent with the language used by the user corresponding to the bluetooth headset. For example, when the language corresponding to the audio data is english, the user corresponding to the bluetooth headset is chinese, and the language used by the user is chinese, then the language corresponding to the audio data is inconsistent with the language used by the user corresponding to the bluetooth headset; when the language corresponding to the audio data is English, the user corresponding to the Bluetooth headset is Americans and the language used by the user is English, then the language corresponding to the audio data is consistent with the language used by the user corresponding to the Bluetooth headset; when the voice corresponding to the audio data is English, the user corresponding to the Bluetooth headset is Chinese and the voice used by the user is Chinese or English, then the language corresponding to the audio data is consistent with the language used by the user corresponding to the Bluetooth headset.
As a mode, before determining whether the language corresponding to the audio data is consistent with the language used by the user corresponding to the bluetooth headset, it may further be performed to detect whether the bluetooth headset is in a wearing state, and when it is determined that the bluetooth headset is in the wearing state, it is performed to determine whether the language corresponding to the audio data is consistent with the language used by the user corresponding to the bluetooth headset. When the Bluetooth headset is not placed on the ear of the user, the Bluetooth headset can be considered not to be in a wearing state. It will be appreciated that when the bluetooth headset is in the worn state, it is indicative that the user is receiving audio data through the bluetooth headset, that is, the user is using or desires to use the bluetooth headset; when the bluetooth is not in a wearing state, it is characterized that the user does not receive audio data through the bluetooth headset, that is, the user does not use or does not desire to use the bluetooth headset.
As one mode, the bluetooth headset may include a headset body and a contact sensor disposed on the headset body, wherein the contact sensor may be disposed on an outer surface of the headset body, and when the bluetooth headset is mounted on an ear of a user, the contact sensor contacts the ear of the user to generate a contact signal, so that whether the bluetooth headset is mounted on the ear of the user may be determined according to a contact parameter detected by the contact sensor, wherein the contact parameter may include a contact area and/or a contact point. That is, whether the bluetooth headset is mounted on the ear of the user may be determined by determining whether the contact area and/or the contact point detected by the contact sensor is consistent with a preset contact area and/or a preset contact point, where the preset contact area and/or the preset contact point are the contact area and the contact point when the bluetooth headset is mounted on the ear of the user.
Step S130: and when the language corresponding to the audio data is not consistent with the language used by the user corresponding to the Bluetooth headset, translating the audio data into a target language, wherein the target language is consistent with the language used by the user corresponding to the Bluetooth headset.
In this embodiment, when it is determined that the language corresponding to the audio data is not consistent with the language used by the user corresponding to the bluetooth headset, it may be considered that the user cannot understand or understand the audio data transmitted to the ear of the user through the bluetooth headset, which may cause a communication obstacle for the user. For example, when the language corresponding to the audio data is english, the user corresponding to the bluetooth headset is chinese, and the language used by the user is chinese, the audio data is translated into chinese, so that the user can acquire the audio data consistent with the voice used by the user, and understanding is facilitated.
According to the translation method provided by one embodiment of the application, the Bluetooth headset receives audio data transmitted by the electronic device, whether the language corresponding to the audio data is consistent with the language used by the user corresponding to the Bluetooth headset is judged, and when the language corresponding to the audio data is inconsistent with the language used by the user corresponding to the Bluetooth headset, the audio data is translated into the target language, wherein the target language is consistent with the language used by the user corresponding to the Bluetooth headset, so that when the language corresponding to the audio data received by the Bluetooth headset is inconsistent with the language used by the user, the audio data is translated into the language used by the user, the use is convenient, and the user experience is improved.
Referring to fig. 5, fig. 5 is a flowchart illustrating a translation method according to another embodiment of the present application. The translation method is applied to the Bluetooth headset. As will be described in detail with respect to the flow shown in fig. 5, the translation method may specifically include the following steps:
step S210: and the Bluetooth headset receives audio data transmitted by the electronic equipment.
For detailed description of step S210, please refer to step S110, which is not described herein again.
Step S220: the Bluetooth headset collects voice information input by a user.
In this embodiment, the bluetooth headset may include a headset body and a radio device disposed on the headset body, where the radio device is configured to receive voice information input by a user into the headset body in real time during a process of collecting the voice information by the bluetooth headset, and transmit the voice information to a processor of the bluetooth headset for analysis or transmit the voice information to an electronic device for analysis, so as to obtain voice content carried by the voice information. Wherein, this radio reception device can be for microphone, microphone etc. on the earphone body, and in this embodiment, bluetooth headset can include the voice call microphone at least, and wherein, the voice call microphone mainly used receives the speech information of input bluetooth headset, for example when the recording, records into the speech information of input earphone body, turns into the signal of telecommunication with speech information in real time to thereby this speech information of analysis obtains the speech content of this speech information.
Step S230: and identifying the voice information to obtain the language corresponding to the voice information.
Further, voice information collected by the bluetooth headset is recognized, wherein in this embodiment, a language corresponding to the voice information is recognized, so as to obtain the language corresponding to the voice information. It is understood that the language corresponding to the speech information obtained by the recognition may include one language or a combination of multiple languages, for example, the language for recognizing the obtained speech information is chinese, or includes chinese and english, which is not limited herein.
Step S240: and judging whether the language corresponding to the audio data is consistent with the language corresponding to the voice information.
It can be understood that the language corresponding to the identified and obtained voice information can be regarded as the language used by the user corresponding to the bluetooth headset, and therefore, the language corresponding to the audio data and the language corresponding to the voice information can be compared to judge whether the language corresponding to the audio data is consistent with the language corresponding to the voice information, wherein when the language corresponding to the audio data is consistent with the language corresponding to the voice information, it can be determined that the language corresponding to the audio data is consistent with the language used by the user corresponding to the bluetooth headset; when the language corresponding to the audio data is inconsistent with the language corresponding to the voice information, it can be determined that the language corresponding to the audio data is inconsistent with the language used by the user corresponding to the bluetooth headset.
Step S250: and sending prompt information when the language corresponding to the audio data is inconsistent with the voice corresponding to the voice information, wherein the prompt information is used for inquiring whether the user translates the audio data.
As a mode, when it is determined that the language corresponding to the audio data is not consistent with the language corresponding to the voice information, a prompt message is sent, where the prompt message may include a prompt sound sent by a bluetooth headset, a prompt flash sent by the bluetooth headset, or a prompt message sent by the bluetooth headset to the electronic device, so as to ask the user whether to translate the audio data through the prompt message, and indicate the user to select. Further, the user may also select a desired target language based on the prompt information, which is not limited herein.
Step S260: translating the audio data into the target language when the user is detected to indicate an instruction to translate the audio data.
It can be understood that the user may select based on the prompt information, that is, may select not to translate the audio data, select to translate the audio data, or select to translate the audio data into the target language desired by the user based on the prompt information, which is not limited herein. Further, the bluetooth headset, upon detecting a user instruction to translate audio data, responsively translates the audio data into a target language for input to the user's ear, wherein the target language is a language selected or used by the user.
Step S270: and when the language corresponding to the audio data is inconsistent with the voice corresponding to the voice information, translating the voice information into the language consistent with the language corresponding to the audio data, and transmitting the language to the electronic equipment.
In addition, when it is determined that the language corresponding to the audio data is not consistent with the language corresponding to the voice information, the language used by the user who represents the input audio data to the electronic device is not consistent with the language used by the user corresponding to the bluetooth headset. Therefore, in the embodiment, after the bluetooth headset collects the voice information, the voice information can be translated to acquire the language consistent with the language corresponding to the audio data, and then the translated voice information is transmitted to the electronic equipment.
In another embodiment of the present application, a bluetooth headset receives audio data transmitted by an electronic device, collects voice information input by a user, identifies the voice information, obtains a language corresponding to the voice information, determines whether the language corresponding to the audio data is consistent with the language corresponding to the voice information, sends a prompt message when the language corresponding to the audio data is inconsistent with the language corresponding to the voice information, translates the audio data into a target language when an instruction indicating that the user should translate the audio data is detected, and translates the voice information into a voice consistent with the language corresponding to the audio data and transmits the voice to the electronic device when the language corresponding to the audio data is inconsistent with the language corresponding to the voice information. Compared with the translation method shown in fig. 4, the embodiment can acquire the language used by the user by recognizing the voice information input by the user into the bluetooth headset, thereby improving the accuracy of translation; in addition, the voice information input by the user is translated into the language consistent with the audio data, so that the receiving party receives the language consistent with the language used by the receiving party, and meanwhile, the experience of the receiving party is improved.
Referring to fig. 6, fig. 6 is a schematic flowchart illustrating a translation method according to still another embodiment of the present application. The translation method is applied to the Bluetooth headset. As will be described in detail with respect to the flow shown in fig. 6, the translation method may specifically include the following steps:
step S310: and the Bluetooth headset receives audio data transmitted by the electronic equipment.
For detailed description of step S310, please refer to step S110, which is not described herein again.
Step S320: and when the Bluetooth headset is set to be in a conference mode, judging whether the language corresponding to the audio data is consistent with the language used by the user corresponding to the Bluetooth headset.
As one way, the bluetooth headset may be set to a plurality of different modes, for example, the bluetooth headset may be set to a conference mode, a KTV mode, an outdoor mode, an indoor mode, and the like. As a mode, the mode setting of the bluetooth headset may be triggered by a user on a function button or a function button of the bluetooth headset, and when the bluetooth headset detects a touch operation of the user on the function button or the function button, the mode setting may be set to a corresponding mode. As another mode, the mode setting of the bluetooth headset may also be set by the electronic device sending an instruction, and it can be understood that the instruction sent by the electronic device may be generated by a user at the electronic device, where when the bluetooth headset receives the instruction sent by the electronic device, the bluetooth headset is correspondingly set to the corresponding mode.
When the bluetooth headset is set to be in the conference mode, the user corresponding to the bluetooth headset is represented to be in a conference occasion, that is, a situation that people in different countries communicate with each other may exist, and therefore, whether the language corresponding to the audio data is consistent with the language used by the user corresponding to the bluetooth headset or not can be judged.
Referring to fig. 7, fig. 7 is a flowchart illustrating a step S320 of the translation method according to the embodiment shown in fig. 6 of the present application. As will be explained in detail with respect to the flow shown in fig. 7, the method may specifically include the following steps:
step S321: and when the Bluetooth headset is set to be in a conference mode, detecting the position information of the Bluetooth headset.
As one mode, when the bluetooth headset is set to the conference mode, the position information of the bluetooth headset is detected. Specifically, the bluetooth headset may further include a positioning module, and the bluetooth headset may acquire position information thereof by positioning through the positioning module. As one way, the location information of the bluetooth headset may be acquired through a Location Based Service (LBS) and/or a Global Positioning System (GPS), and it can be understood that, when the location of the bluetooth headset changes, the LBS and/or the GPS may acquire the location information of the bluetooth headset in real time according to the change of the location of the bluetooth headset.
Step S322: and determining other Bluetooth earphones which are located within the preset range of the Bluetooth earphones and are associated with the Bluetooth earphones based on the position information.
Further, after the position information of the bluetooth headset is determined, other bluetooth headsets within the preset range of the bluetooth headset can be acquired. As one mode, the preset range may be manually set by a user, may be configured by the bluetooth headset when the bluetooth headset leaves a factory, or may be configured by the bluetooth headset according to an environment, which is not limited herein, and meanwhile, the preset range may be 2 meters, 5 meters, 10 meters, and the like, which is not limited herein.
In this embodiment, after the preset range is determined, the other bluetooth headsets located in the preset range are correspondingly obtained, as a manner, the number of the other bluetooth headsets in the preset range may be one or multiple, and is not limited herein. After determining other bluetooth headsets, judging whether the other bluetooth headsets are associated with the bluetooth headset, wherein the association can be pre-established by a user, that is, the other bluetooth headsets which are pre-connected with the bluetooth headset can be considered to be associated with each other, it can be understood that the number of the other bluetooth headsets which are within the preset range of the bluetooth headset and are associated with the bluetooth headset can be one, can be multiple, and is not limited herein, wherein when the number of the other bluetooth headsets which are within the preset range of the bluetooth headset and are associated with the bluetooth headset is one, the other bluetooth headsets are taken as a reference; when the number of other bluetooth headsets associated with the bluetooth headset is more than one within the preset range of the bluetooth headset, one other bluetooth headset can be randomly selected from the other bluetooth headsets as a reference.
As one mode, other bluetooth headsets associated with the bluetooth headset are established in advance, and the language used by the user corresponding to the other bluetooth headset is represented to be consistent with the language used by the user corresponding to the bluetooth headset.
Step S323: and acquiring the languages corresponding to the other Bluetooth earphones, and judging whether the language corresponding to the audio data is consistent with the languages corresponding to the other Bluetooth earphones.
Further, since the language corresponding to the other bluetooth headset may be used as the language used by the user corresponding to the bluetooth headset, it may be determined whether the language corresponding to the audio data is consistent with the language corresponding to the other bluetooth headset by determining whether the language corresponding to the audio data is consistent with the language corresponding to the other bluetooth headset.
Step S330: and when the language corresponding to the audio data is not consistent with the languages corresponding to the other Bluetooth earphones, translating the audio data into a target language, wherein the target language is consistent with the language used by the user corresponding to the Bluetooth earphones.
For detailed description of step S330, please refer to step S130, which is not described herein again.
In another embodiment of the present application, a bluetooth headset receives audio data transmitted by an electronic device, when the bluetooth headset is set to a conference mode, determines whether a language corresponding to the audio data is consistent with a language used by a user corresponding to the bluetooth headset, and when the language corresponding to the audio data is consistent with the language used by the user corresponding to the bluetooth headset, translates the audio data into a target language. Compared with the translation method shown in fig. 4, in the embodiment, when the bluetooth headset is set to the conference mode, the determination operation is performed, so that the applicability of the bluetooth headset can be enhanced.
Referring to fig. 8, fig. 8 is a flowchart illustrating a translation method according to yet another embodiment of the present application. The translation method is applied to the Bluetooth headset. As will be described in detail with respect to the flow shown in fig. 8, the translation method may specifically include the following steps:
step S410: and the Bluetooth headset receives audio data transmitted by the electronic equipment.
For detailed description of step S410, please refer to step S110, which is not described herein again.
Step S420: detecting a selection operation acting on the Bluetooth headset, and determining the first target language based on the selection operation.
As one way, a plurality of selectable languages are set on the bluetooth headset, and the user can perform a selection operation based on the plurality of languages set on the bluetooth headset and determine a first target language therefrom, wherein the determined first target language is a language selected and desired by the user. Specifically, the selection operation may include a single-finger click, a multi-finger click, a single-finger long press, a multi-finger long press, a heavy press, multiple clicks, a sliding operation, and the like, where the single-finger click is an operation of clicking on a bluetooth headset by a single finger; the multi-finger clicking refers to the operation that multiple fingers click on the Bluetooth headset simultaneously; the single-finger long pressing means that the single finger presses on the Bluetooth headset for more than a preset time; the multi-finger long press means that the multi-finger simultaneously presses on the Bluetooth headset for more than a preset time; the heavy pressure means that the pressing force on the Bluetooth headset exceeds the preset force; the multiple clicks refer to the fact that the number of clicks exceeds the preset number within the preset time; the sliding operation refers to an operation of sliding on the bluetooth headset by a single finger.
It is to be understood that, when an operation in accordance with a preset operation is detected, the first target language may be determined based on the selection operation.
Step S430: and judging whether the language corresponding to the audio data is consistent with the first target language.
Step S440: and when the language corresponding to the audio data is inconsistent with the first target language, translating the audio data into the first target language.
For detailed description of steps S430 to S440, please refer to steps S120 to S130, which are not described herein again.
In another embodiment of the present application, a bluetooth headset receives audio data transmitted by an electronic device, detects a selection operation performed on the bluetooth headset, determines a first target language based on the selection operation, and translates the audio data into the first target language when a language corresponding to the audio data is inconsistent with the first target language. Compared with the translation method shown in fig. 4, the embodiment determines the first target language through the selection operation of the user, and translates the audio data into the first target language to satisfy the language selected by the user.
Referring to fig. 9, fig. 9 is a schematic flowchart illustrating a translation method according to another embodiment of the present application. The translation method is applied to the Bluetooth headset. As will be described in detail with respect to the flow shown in fig. 9, the translation method may specifically include the following steps:
step S510: and the Bluetooth headset receives audio data transmitted by the electronic equipment.
For detailed description of step S510, please refer to step S110, which is not described herein again.
Step S520: receiving instruction information sent by the electronic equipment, and determining the second target language based on the instruction information.
In this embodiment, a user may set a language desired to be acquired on an electronic device side connected to the bluetooth headset, specifically, the electronic device may display a plurality of selectable languages, the user may select the languages based on the display of the electronic device, after determining that the user selects the languages, the electronic device may generate instruction information based on the selection and send the instruction information to the bluetooth headset, and after receiving the instruction information, the bluetooth headset analyzes the instruction information, and may determine that a voice selected by the user is recorded as the second target language.
For example, the electronic device may display three choices of "english", "chinese", and "french", and when the user selects "chinese", the electronic device may generate instruction information instructing the bluetooth headset to translate audio data into chinese to the bluetooth headset based on the selection of the user, and the bluetooth headset may obtain the second target language as noon based on the instruction information after receiving the instruction information.
Step S530: and judging whether the language corresponding to the audio data is consistent with the second target language.
Step S540: and when the language corresponding to the audio data is inconsistent with the first target language, translating the audio data into the first target language.
For the detailed description of steps S530 to S540, refer to steps S120 to S130, which are not described herein again.
In the translation method provided by another embodiment of the present application, the bluetooth headset receives audio data transmitted by the electronic device, receives instruction information sent by the electronic device, determines a second target language based on the instruction information, determines whether a language corresponding to the audio data is consistent with the second target language, and translates the audio data into the second target language when the language corresponding to the audio data is inconsistent with the second target language. Compared with the translation method shown in fig. 4, in the embodiment, the first target language is determined by the instruction sent by the electronic device, and the audio data is translated into the second target language to satisfy the language selected by the user.
Referring to fig. 10, fig. 10 is a block diagram illustrating a translation apparatus 200 according to an embodiment of the present disclosure. The interpreting apparatus 200 is applied to the bluetooth headset 100 described above. As will be explained below with respect to the block diagram shown in fig. 10, the translation apparatus 200 includes: a receiving module 210, a determining module 220, and a translating module 230, wherein:
the receiving module 210 is used for the bluetooth headset to receive the audio data transmitted by the electronic device.
The determining module 220 is configured to determine whether a language corresponding to the audio data is consistent with a language used by a user corresponding to the bluetooth headset. Further, the determining module 220 includes: the voice information acquisition submodule, the voice information recognition submodule, the judgment submodule, the transmission submodule, the selection operation detection submodule and the instruction information receiving submodule, wherein:
and the voice information acquisition submodule is used for acquiring the voice information input by the user through the Bluetooth headset.
And the voice information identification submodule is used for identifying the voice information and obtaining the language corresponding to the voice information.
And the judging submodule is used for judging whether the language corresponding to the audio data is consistent with the language corresponding to the voice information.
The judgment sub-module is further configured to judge whether the language corresponding to the audio data is consistent with the language used by the user corresponding to the bluetooth headset when the bluetooth headset is set to the conference mode. Further, the audio data determination sub-module includes: position information detecting element, other bluetooth headset confirm unit and audio data judge the unit, wherein:
and the position information detection unit is used for detecting the position information of the Bluetooth headset when the Bluetooth headset is set to be in a conference mode.
And the other Bluetooth headset determining unit is used for determining other Bluetooth headsets which are positioned in the preset range of the Bluetooth headset and are associated with the Bluetooth headset based on the position information.
And the audio data judging unit is used for acquiring the languages corresponding to the other Bluetooth earphones and judging whether the language corresponding to the audio data is consistent with the languages corresponding to the other Bluetooth earphones.
And the transmission sub-module is used for translating the voice information into a language consistent with the language corresponding to the audio data when the language corresponding to the audio data is inconsistent with the voice corresponding to the voice information, and transmitting the language consistent with the language corresponding to the audio data to the electronic equipment.
A selection operation detection sub-module for detecting a selection operation acting on the Bluetooth headset, and determining the first target language based on the selection operation.
The judgment sub-module is further configured to judge whether a language corresponding to the audio data is consistent with the first target language.
And the instruction information receiving submodule is used for receiving the instruction information sent by the electronic equipment and determining the second target language based on the instruction information.
The judgment sub-module is further configured to judge whether the language corresponding to the audio data is consistent with the second target language.
The translating module 230 is configured to translate the audio data into a target language when a language corresponding to the audio data is not consistent with a language used by a user corresponding to the bluetooth headset, where the target language is consistent with the language used by the user corresponding to the bluetooth headset. Further, the translation module 230 includes: a prompt submodule and a translation submodule, wherein:
and the prompting submodule is used for sending out prompting information when the voice corresponding to the audio data is inconsistent with the voice used by the user corresponding to the Bluetooth headset, wherein the prompting information is used for inquiring whether the user translates the audio data.
And the translation sub-module is used for translating the audio data into the target language when the instruction that the user indicates to translate the audio data is detected.
The translation device that this application embodiment provided includes receiving module, judgment module and translation module, wherein, receiving module is used for bluetooth headset receives the audio data of electronic equipment transmission, and judgment module is used for judging whether the language that audio data corresponds with the language that the user that bluetooth headset corresponds used is unanimous, and translation module is used for working as the language that audio data corresponds with the language that the user that bluetooth headset corresponds used is inconsistent, will audio data translation is the target language, wherein, the target language with the language that the user that bluetooth headset corresponds used is unanimous to through the language that the audio data received at bluetooth headset corresponds with the language that the user used when inconsistent, translate audio data into the language that the user used, convenient to use promotes user experience.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other type of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Referring to fig. 1, fig. 2, or fig. 3 again, an embodiment of the present application further provides a translation system, where the translation system includes an electronic device 400 and a bluetooth headset 100, and the electronic device 400 is connected to the bluetooth headset 100. Specifically, the electronic device 400 is configured to send audio data to the bluetooth headset; the bluetooth headset 100 is configured to receive the audio data and determine whether a language corresponding to the audio data is consistent with a language used by a user corresponding to the bluetooth headset; the bluetooth headset 100 is configured to translate the audio data into a target language when a language corresponding to the audio data is inconsistent with a language used by a user corresponding to the bluetooth headset, where the target language is consistent with the language used by the user corresponding to the bluetooth headset.
Referring to fig. 11, a block diagram of a bluetooth headset 100 according to an embodiment of the present disclosure is shown. The bluetooth headset 100 may be an electronic device capable of running an application, such as a smart phone, a tablet computer, and an electronic book. The bluetooth headset 100 in the present application may include one or more of the following components: a processor 130, a memory 140, a bluetooth module 150, and one or more applications, wherein the one or more applications may be stored in the memory 140 and configured to be executed by the one or more processors 130, the one or more programs configured to perform the methods as described in the foregoing method embodiments.
Processor 130 may include one or more processing cores. The processor 130 connects various parts within the overall bluetooth headset 100 using various interfaces and lines, and performs various functions of the bluetooth headset 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 140 and calling up data stored in the memory 140. Alternatively, the processor 130 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 130 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 130, but may be implemented by a communication chip.
The Memory 140 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 140 may be used to store instructions, programs, code sets, or instruction sets. The memory 140 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The data storage area may also store data created by the bluetooth headset 100 during use (e.g., phone book, audio-video data, chat log data), etc.
The bluetooth module 150 is used for implementing bluetooth connection between the electronic device and two bluetooth headsets and data interaction between the electronic device and two bluetooth headsets, wherein the number of the bluetooth module 150 may be one, or may be multiple integrated together, which is not limited herein. Specifically, the bluetooth protocol may be used with the bluetooth device by 5.0/4.2/4.1/2.1/2.0, or may also be used by Bluetooth Low Energy (BLE), bluetooth Enhanced Data Rate (EDR), or bluetooth Basic Rate (BR). The basic circuit structure is similar to the WiFi module, and can also be composed of a power amplifier, a wireless transceiver, a transceiver switcher, a low noise amplifier, an antenna, and the like. The bluetooth module 150 may use a first communication frequency band, wherein the first communication frequency band may be 2.4 GHZ.
Referring to fig. 12, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable storage medium 300 has stored therein program code that can be called by a processor to execute the method described in the above-described method embodiments.
The computer-readable storage medium 300 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 300 includes a non-volatile computer-readable storage medium. The computer readable storage medium 300 has storage space for program code 310 for performing any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 310 may be compressed, for example, in a suitable form.
To sum up, according to the translation method, the translation device, the translation system, and the bluetooth headset provided in the embodiments of the present application, the bluetooth headset receives audio data transmitted by an electronic device, determines whether a language corresponding to the audio data is consistent with a language used by a user corresponding to the bluetooth headset, and translates the audio data into a target language when the language corresponding to the audio data is inconsistent with the language used by the user corresponding to the bluetooth headset, wherein the target language is consistent with the language used by the user corresponding to the bluetooth headset, so that the audio data is translated into the language used by the user when the language corresponding to the audio data received by the bluetooth headset is inconsistent with the language used by the user, which is convenient to use and improves user experience.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.