Translation method, device and electronic equipment

Establishing a communication link between the electronic device and the earphones and translating the sound information in real time solves the problem of cumbersome communication operations in different languages ​​in the existing technology and achieves efficient communication efficiency and a natural and smooth communication experience.

CN112446223BActive Publication Date: 2024-09-20VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011321889.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-23
Publication Date
2024-09-20
Estimated Expiration
2040-11-23

AI Technical Summary

Technical Problem

In the existing technology, communicating in different languages ​​through third-party translation tools is cumbersome and the communication efficiency is low.

Method used

Establish a communication link between electronic devices and headphones to translate sound information in real time to achieve real-time barrier-free communication between users of different languages.

Benefits of technology

Improves communication efficiency and communication experience, making communication more natural and smooth.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112446223B
    Figure CN112446223B
Patent Text Reader

Abstract

The present application discloses a translation method, device and electronic device, belonging to the field of communication technology. The method includes: receiving a first input; in response to the first input, the electronic device enters a first mode, and when the electronic device is in the first mode, establishes a first communication link with the first headset and a second communication link with the second headset; when receiving the first sound information sent by the first headset through the first communication link, converts the first sound information into the second sound information, and sends the second sound information to the second headset through the second communication link; when receiving the third sound information sent by the second headset through the second communication link, converts the third sound information into the fourth sound information, and sends the fourth sound information to the first headset through the first communication link. The present application can perform real-time translation and conversion of languages, realize real-time barrier-free communication, make communication more natural and smooth, and greatly improve communication efficiency and communication experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a translation method, device and electronic equipment. Background Art

[0002] Currently, when communicating with people who speak different languages, most of the time, third-party translation tools are used for translation conversion. This method requires you to convert the content you want to express in the translation tool in advance, and then repeat it to the other party so that the other party can understand it. The other party also needs to perform the same tedious operation to express himself, which greatly increases the communication cost and reduces the communication efficiency. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide a translation method, device and electronic device that can solve the problem of cumbersome operation and low communication efficiency when people communicate between different languages ​​through existing third-party translation tools.

[0004] In order to solve the above technical problems, this application is implemented as follows:

[0005] In a first aspect, an embodiment of the present application provides a translation method, which is applied to an electronic device, comprising:

[0006] receiving a first input;

[0007] In response to the first input, the electronic device enters a first mode, and when the electronic device is in the first mode, the electronic device establishes a first communication link with the first headset, and the electronic device establishes a second communication link with the second headset;

[0008] upon receiving first sound information sent by the first headset through the first communication link, converting the first sound information into second sound information, and sending the second sound information to the second headset through the second communication link;

[0009] When receiving the third sound information sent by the second earphone through the second communication link, the third sound information is converted into fourth sound information, and the fourth sound information is sent to the first earphone through the first communication link.

[0010] In a second aspect, an embodiment of the present application provides a translation device, including:

[0011] A receiving module receives a first input;

[0012] a link establishing module, configured to respond to the first input, cause the electronic device to enter a first mode, and when the electronic device is in the first mode, cause the electronic device to establish a first communication link with the first headset, and cause the electronic device to establish a second communication link with the second headset;

[0013] a first translation module, configured to, upon receiving first sound information sent by the first headset through the first communication link, convert the first sound information into second sound information, and send the second sound information to the second headset through the second communication link;

[0014] The second translation module is used to convert the third sound information into fourth sound information when receiving the third sound information sent by the second earphone through the second communication link, and send the fourth sound information to the first earphone through the first communication link.

[0015] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the translation method described in the first aspect.

[0016] In a fourth aspect, an embodiment of the present application further provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the translation method described in the first aspect are implemented.

[0017] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the steps of the translation method described in the first aspect.

[0018] In an embodiment of the present application, by receiving a first input; in response to the first input, the electronic device enters a first mode, and when the electronic device is in the first mode, the electronic device establishes a first communication link with the first earphone, and the electronic device establishes a second communication link with the second earphone; when receiving first sound information sent by the first earphone through the first communication link, the first sound information is converted into second sound information, and the second sound information is sent to the second earphone through the second communication link; when receiving third sound information sent by the second earphone through the second communication link, the third sound information is converted into fourth sound information, and the fourth sound information is sent to the first earphone through the first communication link. In this way, through the first communication link established between the electronic device and the first earphone and the second communication link established between the electronic device and the second earphone, two people with different voices only need to use the first earphone and the second earphone respectively, and through the electronic device, real-time translation and conversion of languages ​​can be performed, so as to realize real-time barrier-free communication, make communication more natural and smooth, and greatly improve communication efficiency and communication experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 A flowchart of a translation method provided in an embodiment of the present application;

[0020] Figure 2 A schematic diagram of a specific translation workflow for communication between two users of different languages ​​according to an embodiment of the present application;

[0021] Figure 3 A schematic diagram of a specific translation workflow for communication between three users of different languages ​​in an embodiment of the present application;

[0022] Figure 4 A schematic diagram of the transmission of sound data through a first communication link and a second communication link in time in an embodiment of the present application;

[0023] Figure 5 A schematic diagram of the structure of a translation device provided in an embodiment of the present application;

[0024] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0025] Figure 7 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0027] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0028] The translation method provided in the embodiment of the present application will be described in detail below through specific embodiments and application scenarios in conjunction with the accompanying drawings.

[0029] like Figure 1 FIG. 1 is a flow chart of a translation method provided in an embodiment of the present application, and the method is applied to an electronic device. The implementation process of the method is specifically described below with reference to the figure.

[0030] Before this, it should be noted that the subject involved in the method includes a first earphone, a second earphone and an electronic device. Here, the electronic device is connected to the first earphone and the second earphone respectively.

[0031] Step 101, receiving a first input;

[0032] It should be noted that the first input is a pre-set input, which may include but is not limited to at least one of click input, press input, long press input, pinch input, drag input, slide input and swipe input. In other words, the first input may be one of the above inputs, or a combination of two or more of them.

[0033] In this step, specifically, a first input of a target object is received. Here, the target object includes one of the following:

[0034] First Headphones;

[0035] Second earphone;

[0036] Electronic equipment.

[0037] In other words, the operation object of the first input is one of the above objects. In other words, the initiating object that triggers the electronic device to enter the first mode can be one of the above objects.

[0038] Optionally, both the first earphone and the second earphone are true wireless Bluetooth earphones (True Wireless Stereo, TWS), which can be worn freely without restriction.

[0039] Step 102, in response to the first input, the electronic device enters a first mode, and when the electronic device is in the first mode, the electronic device establishes a first communication link with a first headset, and the electronic device establishes a second communication link with a second headset;

[0040] Here, the first mode is the translation mode. For example, the user can long press the first earphone or the second earphone to make the electronic device enter the translation mode.

[0041] Optionally, both the first communication link and the second communication link may be synchronous connection-oriented (SCO) links or may be Bluetooth Low Energy (BLE) links.

[0042] Here, the SCO link is a Bluetooth synchronous transmission link that can transmit data in both directions at the same time. It is mainly used in scenarios such as voice calls that require simultaneous sending and receiving of sounds.

[0043] The BLE link can support multiple devices connecting and transmitting simultaneously.

[0044] Step 103, upon receiving first sound information sent by the first headset through the first communication link, converting the first sound information into second sound information, and sending the second sound information to the second headset through the second communication link;

[0045] It should be noted that the first user wearing the first headset speaks in the first language; and the second user wearing the second headset speaks in the second language.

[0046] The first sound information is the sound information of the first user speaking in the first language recorded by the microphone MIC of the first headset; the second sound information is the sound information corresponding to the second language. The first language and the second language are different languages, and the first sound information and the second sound information have the same semantics.

[0047] Step 104: upon receiving the third sound information sent by the second earphone through the second communication link, convert the third sound information into fourth sound information, and send the fourth sound information to the first earphone through the first communication link.

[0048] Here, the third sound information is the sound information of the second user speaking in the second language recorded by the MIC of the second earphone; the fourth sound information is the sound information corresponding to the first language. The third sound information and the fourth sound information have the same semantics.

[0049] It should be noted that there is no specific execution order for step 103 and step 104, which correspond to two different situations. Of course, they can also be executed simultaneously.

[0050] The translation method of the embodiment of the present application receives a first input; in response to the first input, the electronic device enters a first mode, and when the electronic device is in the first mode, the electronic device establishes a first communication link with the first earphone, and the electronic device establishes a second communication link with the second earphone; when receiving first sound information sent by the first earphone through the first communication link, the first sound information is converted into second sound information, and the second sound information is sent to the second earphone through the second communication link; when receiving third sound information sent by the second earphone through the second communication link, the third sound information is converted into fourth sound information, and the fourth sound information is sent to the first earphone through the first communication link. In this way, through the first communication link established between the electronic device and the first earphone and the second communication link established between the electronic device and the second earphone, two people with different voices only need to use the first earphone and the second earphone respectively, and through the electronic device, real-time translation and conversion of languages ​​can be performed, thereby realizing real-time barrier-free communication, making communication more natural and smooth, and greatly improving communication efficiency and communication experience.

[0051] It should be noted that before receiving the first input, the electronic device is in the second mode. After receiving the first input, the electronic device exits the second mode and enters the first mode.

[0052] When the electronic device is in the second mode, the electronic device maintains communication with the first headset and the second headset respectively through an asynchronous link (Asynchronous Connectionless, ACL).

[0053] That is, when the electronic device is in the second mode, the electronic device receives sound information sent by the target device or sends sound information to the target device, and the target device includes at least one of the first earphone or the second earphone. In other words, only one-way transmission can be performed between the electronic device and the earphone at the same time. The second mode can be applied to the scenario of one-way transmission of instructions and data.

[0054] As an optional implementation, in step 103 of the method of the embodiment of the present application, converting the first sound information into the second sound information may include:

[0055] Sending the first sound information to a cloud server;

[0056] The second sound information sent by the cloud server is received, and the cloud server is used to translate the first sound information into the second sound information.

[0057] The following is an example (such as Figure 2 ) illustrates a specific translation workflow for communication between two users of different languages ​​when the electronic device is in the first mode (translation mode).

[0058] It should be noted that user A wears the first headset and speaks in AA language, and user B wears the second headset and speaks in BB language.

[0059] 1) User A speaks in the AA language and transmits the sound data recorded by the first earphone MIC to the electronic device in real time through the first SCO link.

[0060] 2) After receiving the AA language sound data, the electronic device transmits it to the voice assistant cloud for translation, and obtains the converted and translated BB language sound data.

[0061] 3) The electronic device transmits the BB language sound data to the second earphone of user B through the second SCO link for playback, and user B listens to the BB language sound data after translation.

[0062] 4) User B speaks in the BB language, and transmits the sound data recorded by the second earphone MIC to the electronic device in real time through the second SCO link.

[0063] 5) After receiving the BB language sound data, the electronic device transmits it to the voice assistant cloud for translation, and obtains the converted and translated AA language sound data.

[0064] 6) The electronic device transmits the AA language sound data to the first earphone of user A through the first SCO link for playback, and user A listens to the AA language sound data after translation.

[0065] Through the above steps, a process of mutual communication between user A and user B is completed, achieving the effect of communication between two users of different languages.

[0066] It should be noted that the communication link in the above example is a SCO link, but it can also be a BLE link. As long as it is a link that can support simultaneous transmission of multiple devices, there is no specific limitation here.

[0067] The following is an example (such as Figure 3 ) illustrates a specific translation workflow for communication between users of three different languages ​​when the electronic device is in the first mode (translation mode).

[0068] It should be noted that the first user wears earphone A and speaks in language aa, the second user wears earphone B and speaks in language bb, and the third user wears earphone C and speaks in language cc. Earphone A, earphone B, and earphone C all establish communication links with electronic devices that support simultaneous transmission of multiple devices. In this example, the BLE link is taken as an example.

[0069] The first user speaks in language aa, and transmits the sound data recorded by the A earphone MIC to the electronic device in real time through the first BLE link. After that, after receiving the aa language sound data, the electronic device transmits it to the voice assistant cloud for translation, and obtains the converted and translated bb language sound data and cc language sound data; then, the bb language sound data is sent to the B earphone for playback through the second BLE link, and the cc language sound data is sent to the C earphone for playback through the second BLE link.

[0070] The second user speaks in bb language, and the third user speaks in cc language. The process of translating and transmitting the speech to the corresponding earphone end through their respective earphones by electronic devices is similar to that of the first user and will not be repeated here.

[0071] The embodiment of the present application is not only applicable to communication between two users of different languages, but also to communication between three or more users of different languages. The embodiment of the present application can maintain two or more communication links at the same time, each communication link has both uplink and downlink voice data, and can simultaneously run two threads to synchronously process the uplink data of two or more communication links, transmit each uplink data to the cloud translation, and transmit the returned translation results to the downlink of other communication links to achieve the effect of real-time synchronous translation.

[0072] In order to ensure reliable transmission of sound data, as an optional implementation, after sending the fourth sound information to the first headset through the first communication link, the embodiment of the present application may further include:

[0073] When the target information sent by the first headset is not received within a first preset time period, determining a target time window within a retransmission time window, the retransmission time window includes a first time window and a second time window, and the first time window is earlier than the second time window in time, and the target time window is one of the first time window and the second time window;

[0074] Here, the target information may be feedback information, such as ACK information.

[0075] It should be noted that if the target information sent by the first headset is not received within the first preset time, it means that the first headset has not received the fourth sound information sent by the electronic device to the first headset through the first communication link. In order to ensure reliable transmission of sound data, the fourth sound information needs to be retransmitted.

[0076] In this step, the fourth sound information needs to be retransmitted within a retransmission time window. Here, the retransmission time window is a pre-set time window.

[0077] like Figure 4 FIG. 1 is a schematic diagram showing the transmission of sound data through the first communication link and the second communication link in time.

[0078] The electronic device and the first headset are one combination, and the electronic device and the second headset are another combination. Assuming that the priority of transmitting the sound data through the first communication link is higher than the priority of transmitting the sound data through the second communication link (of course, it can also be the other way around), refer to Figure 4 It is explained that the electronic device and the first headset can interact with each other for sound data once within a first preset time (in the figure, the horizontal striped box on the communication link is the sound data sent by the electronic device, and the vertical striped box is the sound data sent by the headset MIC), and the electronic device and the second headset can interact with each other for sound data once at a second preset time after the first preset time.

[0079] Then, before the next effective data transmission, a certain retransmission time window (the dotted box part in the figure) is reserved, including a first time window and a second time window, wherein the first time window is used to retransmit the sound data between the electronic device and the first earphone, and the second time window is used to retransmit the sound data between the electronic device and the second earphone.

[0080] In this embodiment, optionally, the retransmission time window is the difference between the first time and the second time; wherein, the first time is the difference between the sending time of the fifth sound information after sending the fourth sound information and the reserved receiving time of the sound information returned by the first earphone in response to the fourth sound information; the second time is the time to complete a sound information interaction through the second communication link.

[0081] Here, the fifth sound information can be understood as the next valid data. The reserved reception time for receiving the sound information returned by the first earphone in response to the fourth sound information can correspond to Figure 4 The time occupied by the vertical striped box.

[0082] In this step, within the retransmission time window, determining the target time window may include:

[0083] In a case where the time window corresponding to the retransmission of the sound information through the first communication link is the first time window, determining the first time window as the target time window;

[0084] When the time window corresponding to the retransmission of the sound information through the first communication link is the second time window and the first time window is in an idle state, determining the first time window as the target time window;

[0085] It should be noted that the time window corresponding to the retransmission of sound information through the first communication link is the second time window, which means that the time window for retransmitting the fourth sound information is the subsequent time window. In order to improve transmission efficiency and save transmission time, the previous time window (i.e., the first time window) is in an idle state, that is, when there is no retransmission data, the previous time window, i.e., the first time window, can be used to transmit data.

[0086] When the time window corresponding to the retransmission of the sound information through the first communication link is the second time window and the first time window is in an occupied state, the second time window is determined as the target time window.

[0087] The fourth sound information is resent to the first headset via the first communication link within the target time window.

[0088] It should be noted that the retransmission time window is mainly used to ensure data transmission to the peer device when high-frequency (such as 2.4G) wireless interference is very large in the environment.

[0089] In addition, when the voice data is retransmitted within the retransmission time window but still not sent to the peer device, the voice data is discarded and the sending of new data is prioritized.

[0090] That is, when the fourth sound information is still not sent to the first earphone after the fourth sound information is retransmitted through the target time window, the fourth sound information is discarded.

[0091] Here, after sending the second sound information to the second earphone through the second communication link, if the second target information sent by the second earphone is not received within the second preset time length, the step of retransmitting the second sound information can refer to the description in the above part and will not be repeated here.

[0092] The translation method of the embodiment of the present application receives a first input; in response to the first input, the electronic device enters a first mode, and when the electronic device is in the first mode, the electronic device establishes a first communication link with the first earphone, and the electronic device establishes a second communication link with the second earphone; when receiving first sound information sent by the first earphone through the first communication link, the first sound information is converted into second sound information, and the second sound information is sent to the second earphone through the second communication link; when receiving third sound information sent by the second earphone through the second communication link, the third sound information is converted into fourth sound information, and the fourth sound information is sent to the first earphone through the first communication link. In this way, through the first communication link established between the electronic device and the first earphone and the second communication link established between the electronic device and the second earphone, two people with different voices only need to use the first earphone and the second earphone respectively, and through the electronic device, real-time translation and conversion of languages ​​can be performed, thereby realizing real-time barrier-free communication, making communication more natural and smooth, and greatly improving communication efficiency and communication experience.

[0093] It should be noted that the translation method provided in the embodiment of the present application can be executed by a translation device or a control module in the translation device for executing the translation method. In the embodiment of the present application, the translation device provided in the embodiment of the present application is described by taking the translation device executing the translation method as an example.

[0094] like Figure 5 , which is a schematic diagram of the structure of a translation device provided in an embodiment of the present application. The translation device 500 may include:

[0095] A receiving module 501 receives a first input;

[0096] a link establishing module 502, configured to cause the electronic device to enter a first mode in response to the first input, and when the electronic device is in the first mode, establish a first communication link between the electronic device and the first headset, and establish a second communication link between the electronic device and the second headset;

[0097] A first translation module 503 is configured to, upon receiving first sound information sent by the first headset through the first communication link, convert the first sound information into second sound information, and send the second sound information to the second headset through the second communication link;

[0098] The second translation module 504 is used to, upon receiving the third sound information sent by the second earphone through the second communication link, convert the third sound information into fourth sound information and send the fourth sound information to the first earphone through the first communication link.

[0099] Optionally, the device 500 further includes:

[0100] a first processing module, configured to determine a target time window within a retransmission time window if target information sent by the first headset is not received within a first preset time period, the retransmission time window comprising a first time window and a second time window, the first time window being earlier than the second time window in time, and the target time window being one of the first time window and the second time window;

[0101] The first sending module is used to resend the fourth sound information to the first headset through the first communication link within the target time window.

[0102] Optionally, the first processing module includes:

[0103] A first processing unit, configured to determine the first time window as the target time window when the time window corresponding to the retransmission of the sound information through the first communication link is the first time window;

[0104] a second processing unit, configured to determine the first time window as the target time window when the time window corresponding to the retransmission of the sound information through the first communication link is the second time window and the first time window is in an idle state;

[0105] The third processing unit is used to determine the second time window as the target time window when the time window corresponding to the retransmission of the sound information through the first communication link is the second time window and the first time window is in an occupied state.

[0106] Optionally, the retransmission time window is the difference between the first time and the second time;

[0107] The first time is the difference between the sending time of the fifth sound information after the fourth sound information is sent and the reserved receiving time of the sound information returned by the first earphone in response to the fourth sound information;

[0108] The second time is the time required to complete one voice information interaction via the second communication link.

[0109] Optionally, the first translation module 503 includes:

[0110] A sending unit, configured to send the first sound information to a cloud server;

[0111] A receiving unit is used to receive the second sound information sent by the cloud server, and the cloud server is used to translate the first sound information into the second sound information.

[0112] The translation device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0113] The translation device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0114] The translation device provided in the embodiment of the present application can achieve Figure 1 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0115] The translation device of the embodiment of the present application receives a first input through a receiving module; the link establishment module responds to the first input, the electronic device enters a first mode, and when the electronic device is in the first mode, the electronic device establishes a first communication link with the first earphone, and the electronic device establishes a second communication link with the second earphone; the first translation module, when receiving the first sound information sent by the first earphone through the first communication link, converts the first sound information into second sound information, and sends the second sound information to the second earphone through the second communication link; the second translation module, when receiving the third sound information sent by the second earphone through the second communication link, converts the third sound information into fourth sound information, and sends the fourth sound information to the first earphone through the first communication link. In this way, through the first communication link established between the electronic device and the first earphone and the second communication link established between the electronic device and the second earphone, two people with different voices only need to use the first earphone and the second earphone respectively, and through the electronic device, they can perform real-time translation and conversion of languages, realize real-time barrier-free communication, make communication more natural and smooth, and greatly improve communication efficiency and communication experience.

[0116] Alternatively, if Figure 6As shown, an embodiment of the present application also provides an electronic device 600, including a processor 602, a memory 601, and a program or instruction stored in the memory 601 and executable on the processor 602. When the program or instruction is executed by the processor 602, each process of the above-mentioned translation method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0117] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0118] Figure 7 A schematic diagram of the hardware structure of an electronic device for implementing various embodiments of the present application.

[0119] The electronic device 700 includes but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710, and a power supply 711.

[0120] Those skilled in the art will appreciate that the electronic device 700 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 710 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 7 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0121] Among them, the user input unit 707 is used to receive a first input; the processor 710 is used to respond to the first input, the electronic device enters a first mode, and when the electronic device is in the first mode, the electronic device establishes a first communication link with the first earphone, and the electronic device establishes a second communication link with the second earphone; when receiving first sound information sent by the first earphone through the first communication link, the first sound information is converted into second sound information, and the second sound information is sent to the second earphone through the second communication link; when receiving third sound information sent by the second earphone through the second communication link, the third sound information is converted into fourth sound information, and the fourth sound information is sent to the first earphone through the first communication link.

[0122] In the embodiment of the present application, through the first communication link established between the electronic device and the first earphone and the second communication link established between the electronic device and the second earphone, two people with different voices only need to use the first earphone and the second earphone respectively, and through the electronic device, they can perform real-time translation and conversion of languages, realize real-time barrier-free communication, make communication more natural and smooth, and greatly improve communication efficiency and communication experience.

[0123] Optionally, the processor 710 is further configured to:

[0124] When the target information sent by the first headset is not received within a first preset time period, determining a target time window within a retransmission time window, the retransmission time window includes a first time window and a second time window, and the first time window is earlier than the second time window in time, and the target time window is one of the first time window and the second time window;

[0125] The fourth sound information is resent to the first headset via the first communication link within the target time window.

[0126] Optionally, the processor 710 is further configured to:

[0127] In a case where the time window corresponding to the retransmission of the sound information through the first communication link is the first time window, determining the first time window as the target time window;

[0128] When the time window corresponding to the retransmission of the sound information through the first communication link is the second time window and the first time window is in an idle state, determining the first time window as the target time window;

[0129] When the time window corresponding to the retransmission of the sound information through the first communication link is the second time window and the first time window is in an occupied state, the second time window is determined as the target time window.

[0130] Optionally, the retransmission time window is the difference between the first time and the second time;

[0131] The first time is the difference between the sending time of the fifth sound information after the fourth sound information is sent and the reserved receiving time of the sound information returned by the first earphone in response to the fourth sound information;

[0132] The second time is the time required to complete one voice information interaction via the second communication link.

[0133] Optionally, the radio frequency unit 701 is further used for:

[0134] Sending the first sound information to a cloud server;

[0135] The second sound information sent by the cloud server is received, and the cloud server is used to translate the first sound information into the second sound information.

[0136] In the embodiment of the present application, through the first communication link established between the electronic device and the first earphone and the second communication link established between the electronic device and the second earphone, two people with different voices only need to use the first earphone and the second earphone respectively, and through the electronic device, they can perform real-time translation and conversion of languages, realize real-time barrier-free communication, make communication more natural and smooth, and greatly improve communication efficiency and communication experience.

[0137] It should be understood that in the embodiment of the present application, the input unit 704 may include a graphics processor (GPU) 7041 and a microphone 7042, and the graphics processor 7041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 706 may include a display panel 7071, and the display panel 7071 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071 is also called a touch screen. The touch panel 7071 may include two parts: a touch detection device and a touch controller. Other input devices 7072 may include but are not limited to a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 709 may be used to store software programs and various data, including but not limited to applications and operating systems. The processor 710 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, the user interface, and the application program, etc., and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 710.

[0138] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned translation method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0139] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0140] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned translation method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0141] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0142] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0143] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0144] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A translation method, applied to an electronic device, characterized in that: receiving a first input; In response to the first input, the electronic device enters a first mode, and when the electronic device is in the first mode, the electronic device establishes a first communication link with the first headset, and the electronic device establishes a second communication link with the second headset; upon receiving first sound information sent by the first headset through the first communication link, converting the first sound information into second sound information, and sending the second sound information to the second headset through the second communication link; upon receiving third sound information sent by the second headset through the second communication link, converting the third sound information into fourth sound information, and sending the fourth sound information to the first headset through the first communication link; After sending the fourth sound information to the first headset through the first communication link, the method further includes: In the case that the target information sent by the first headset is not received within the first preset time length, within the retransmission time window, a target time window is determined, the retransmission time window includes a first time window and a second time window, and the first time window is earlier than the second time window in time, and the target time window is one of the first time window and the second time window; the first time window is used to retransmit the sound data between the electronic device and the first headset, and the second time window is used to retransmit the sound data between the electronic device and the second headset; Resending the fourth sound information to the first headset via the first communication link within the target time window; Determining the target time window within the retransmission time window includes: In a case where the time window corresponding to the retransmission of the sound information through the first communication link is the first time window, determining the first time window as the target time window; When the time window corresponding to the retransmission of the sound information through the first communication link is the second time window and the first time window is in an idle state, determining the first time window as the target time window; When the time window corresponding to the retransmission of the sound information through the first communication link is the second time window and the first time window is in an occupied state, the second time window is determined as the target time window.

2. The method according to claim 1, characterized in that: The retransmission time window is the difference between the first time and the second time; The first time is the difference between the sending time of the fifth sound information after the fourth sound information is sent and the reserved receiving time of the sound information returned by the first earphone in response to the fourth sound information; The second time is the time required to complete one voice information interaction via the second communication link.

3. The method according to claim 1, characterized in that The converting the first sound information into second sound information comprises: Sending the first sound information to a cloud server; The second sound information sent by the cloud server is received, and the cloud server is used to translate the first sound information into the second sound information.

4. A translation device, characterized in that: include: A receiving module receives a first input; a link establishing module, configured to respond to the first input, cause the electronic device to enter a first mode, and when the electronic device is in the first mode, cause the electronic device to establish a first communication link with the first headset, and cause the electronic device to establish a second communication link with the second headset; a first translation module, configured to, upon receiving first sound information sent by the first headset through the first communication link, convert the first sound information into second sound information, and send the second sound information to the second headset through the second communication link; a second translation module, configured to, upon receiving third sound information sent by the second headset through the second communication link, convert the third sound information into fourth sound information, and send the fourth sound information to the first headset through the first communication link; The device also includes: a first processing module, configured to determine a target time window within a retransmission time window if target information sent by the first headset is not received within a first preset time period, the retransmission time window comprising a first time window and a second time window, the first time window being earlier than the second time window in time, the target time window being one of the first time window and the second time window; the first time window being used to retransmit sound data between the electronic device and the first headset, and the second time window being used to retransmit sound data between the electronic device and the second headset; A first sending module, configured to resend the fourth sound information to the first headset through the first communication link within the target time window; Wherein, the first processing module includes: A first processing unit, configured to determine the first time window as the target time window when the time window corresponding to the retransmission of the sound information through the first communication link is the first time window; a second processing unit, configured to determine the first time window as the target time window when the time window corresponding to the retransmission of the sound information through the first communication link is the second time window and the first time window is in an idle state; The third processing unit is used to determine the second time window as the target time window when the time window corresponding to the retransmission of the sound information through the first communication link is the second time window and the first time window is in an occupied state.

5. The device according to claim 4, characterized in that The retransmission time window is the difference between the first time and the second time; The first time is the difference between the sending time of the fifth sound information after the fourth sound information is sent and the reserved receiving time of the sound information returned by the first earphone in response to the fourth sound information; The second time is the time required to complete one voice information interaction via the second communication link.

6. The device according to claim 4, characterized in that The first translation module comprises: A sending unit, configured to send the first sound information to a cloud server; A receiving unit is used to receive the second sound information sent by the cloud server, and the cloud server is used to translate the first sound information into the second sound information.

7. An electronic device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the translation method according to any one of claims 1 to 3.

8. A readable storage medium, characterized in that: The readable storage medium stores a program or an instruction, and when the program or the instruction is executed by a processor, the steps of the translation method according to any one of claims 1 to 3 are implemented.