WO2021244159A1 - 一种翻译方法、装置、耳机和耳机收纳装置 - Google Patents

一种翻译方法、装置、耳机和耳机收纳装置 Download PDF

Info

Publication number
WO2021244159A1
WO2021244159A1 PCT/CN2021/087836 CN2021087836W WO2021244159A1 WO 2021244159 A1 WO2021244159 A1 WO 2021244159A1 CN 2021087836 W CN2021087836 W CN 2021087836W WO 2021244159 A1 WO2021244159 A1 WO 2021244159A1
Authority
WO
WIPO (PCT)
Prior art keywords
voice data
earphone
user
headset
storage device
Prior art date
Application number
PCT/CN2021/087836
Other languages
English (en)
French (fr)
Inventor
王颖
李健涛
张丹
刘宝
张硕
杨天府
梁宵
荣河江
李鹏翀
Original Assignee
北京搜狗智能科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京搜狗智能科技有限公司 filed Critical 北京搜狗智能科技有限公司
Publication of WO2021244159A1 publication Critical patent/WO2021244159A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/40Processing or translation of natural language
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/26Speech to text systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1091Details not provided for in groups H04R1/1008 - H04R1/1083
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2201/00Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
    • H04R2201/10Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups

Definitions

  • This application relates to the field of data processing technology, in particular to a translation method, device, earphone and earphone storage device.
  • the embodiment of the present invention provides a translation method to implement translation based on a headset device.
  • the embodiment of the present invention also provides a translation device, earphone and earphone storage device to ensure the implementation and application of the above method.
  • the embodiment of the present invention discloses a translation method, which is applied to a headset, and the headset is connected to a headset storage device.
  • the method includes: the headset obtains source voice data;
  • the source voice data is sent to the earphone storage device, and the earphone storage device translates the source voice data to generate first target voice data.
  • the earphone is also connected to a terminal device, and the earphone is used by a first communication user corresponding to the terminal device;
  • the earphone acquiring source voice data includes: the earphone receiving the voice sent by the terminal device Data as source voice data; wherein the voice data sent by the terminal device is the second communication received by the terminal device during the communication process between the first communication user and at least one second communication user through the terminal device The user's voice data; the method further includes: the headset receives the first target voice data sent by the headset storage device, and plays the first target voice data.
  • the headset is also connected to a terminal device, and the headset is used by a first communication user corresponding to the terminal device;
  • the acquisition of source voice data by the headset includes: When the device communicates with at least one second communication user, the earphone collects the voice data of the first communication user as source voice data; the method further includes: the earphone receives the earphone receiving device sent First target voice data; the headset sends the first target voice data to the terminal device, so that the terminal device sends the first target voice data to the terminal device of the second communication user.
  • the earphone includes: a first earphone and at least one second earphone, the second earphone and the first earphone are respectively connected to the earphone storage device; the first earphone is used by the first user, so The second earphone is used by at least one second user; the earphone acquiring source voice data includes: the first earphone collects the voice data of the first user as source voice data; the earphone transfers the source voice data Sending data to the earphone storage device includes: the first earphone sends the source voice data to the earphone storage device, and the earphone storage device translates the source voice data to generate the first target voice The data is sent to the second earphone; the method further includes: the second earphone receives the first target voice data sent by the earphone storage device, and plays the first target voice data.
  • the earphone includes at least one, the earphone is used by at least one first user, the earphone storage device includes at least one, and the earphone storage device is used by at least one second user; the earphone acquires the source voice
  • the data includes: the headset collects voice data of the first user as source voice data; wherein the first target voice data is played by the headset storage device.
  • the method further includes: the earphone receiving second target voice data sent by the earphone storage device, where the second target voice data is the voice of the second user collected by the earphone storage device for it The data is generated after translation; the headset plays the second target voice data.
  • the headset includes two, and the method further includes: the headset receives the first target voice data sent by the headset storage device; and the headset controls the headset according to the usage of the headset Channel allocation when playing voice data, where the voice data includes source voice data and/or first target voice data.
  • the earphone controls the channel distribution of the earphone when playing voice data according to the usage of the earphone, including: when both earphones are used, the two earphones respectively play the source voice data And the first target voice data.
  • the method further includes: receiving a user's switching instruction to switch the type of voice data played in the two earphones; or receiving a user's volume adjustment instruction to adjust the volume of the earphone corresponding to the music adjustment operation; Or receiving a user type selection instruction, the two earphones both play the first target voice data or both play the source voice data.
  • the earphone controls the channel allocation of the earphone when playing voice data according to the usage of the earphone, including: when one of the earphones is used, the earphone used plays the source voice data and Mixing of the first target voice data.
  • the embodiment of the present invention also discloses a translation method, which is applied to an earphone storage device, the earphone storage device is connected to the earphone, and the method includes: the earphone storage device receives the source voice data sent by the earphone; The earphone storage device translates the source voice data to generate first target voice data.
  • the headset is also connected to a terminal device, and the headset is used by a first communication user corresponding to the terminal device; the source voice data is that the first communication user communicates with at least one first communication user through the terminal device. 2.
  • the voice data of the second communication user received by the terminal device and sent to the headset; the method further includes: the headset storage device sends the first target voice data To the earphone, the earphone plays the first target voice data; or, the earphone storage device plays the first target voice data.
  • the headset is also connected to a terminal device, and the headset is used by a first communication user corresponding to the terminal device; the source voice data is that the first communication user communicates with at least one first communication user through the terminal device. 2.
  • the voice data of the first communication user collected by the headset the method further includes: sending the first target voice data to the headset, so that the headset can The first target voice data is forwarded to the terminal device, and the terminal device sends the first target voice data to the terminal device of the second communication user.
  • the earphone includes: a first earphone and at least one second earphone, the second earphone and the first earphone are respectively connected to the earphone storage device; the first earphone is used by the first user, so The second earphone is used by at least one second user; the source voice data is the voice data of the first user collected by the first earphone; the method further includes: the earphone storage device transfers the first target The voice data is sent to the second earphone, and the first target voice data is played by the second earphone.
  • the earphone includes at least one, the earphone is used by at least one first user, the earphone storage device includes at least one, and the earphone storage device is used by at least one second user;
  • the source voice data is The voice data of the first user collected by the headset; the method further includes: the headset storage device plays the first target voice data.
  • the method further includes: collecting the voice data of the second user by the earphone storage device; translating the voice data of the second user to generate second target voice data; and converting the second target voice
  • the data is sent to the earphone, and the earphone plays the second target voice data.
  • the method further includes: sending the first target voice data to the earphone, and the earphone controls the channel allocation of the earphone when the voice data is played according to the usage of the earphone.
  • the voice data includes source voice data and/or first target voice data.
  • the translating the source voice data to generate the first target voice data includes: performing simultaneous interpretation on the source voice data to generate the first target voice data.
  • the earphone storage device is further connected to a server, and the translating the source voice data to generate target voice data includes: generating a translation request according to the source voice data, and sending the translation request to A server, so that the server translates the source voice data according to the translation request, generates and returns first target voice data; and receives the first target voice data returned by the server.
  • the embodiment of the present invention also discloses a translation device, which is applied to a headset, the headset is connected to the headset storage device, and the device includes: an acquisition module for acquiring source voice data; a first sending module for connecting The source voice data is sent to the earphone storage device, and the earphone storage device translates the source voice data to generate first target voice data.
  • the earphone is also connected to a terminal device, and the earphone is used by a first communication user corresponding to the terminal device;
  • the acquisition module includes: a voice data receiving sub-module, which is used to receive the voice data sent by the terminal device The voice data of the terminal device is used as the source voice data; wherein the voice data sent by the terminal device is the first communication user received by the terminal device in the process of communicating with at least one second communication user through the terminal device 2.
  • Voice data of the communication user the device further includes: a first playback module, configured to receive the first target voice data sent by the earphone storage device, and play the first target voice data.
  • the earphone is also connected to a terminal device, and the earphone is used by a first communication user corresponding to the terminal device;
  • the acquisition module includes: a first voice data collection sub-module, configured to When a communication user communicates with at least one second communication user through the terminal device, the voice data of the first communication user is collected as the source voice data;
  • the device further includes: a first receiving module for Receiving the first target voice data sent by the earphone storage device; a second sending module, configured to send the first target voice data to the terminal device, so that the terminal device transmits the first target voice data Sent to the terminal device of the second communication user.
  • the earphone includes: a first earphone and at least one second earphone, the second earphone and the first earphone are respectively connected to the earphone storage device; the first earphone is used by the first user, so The second earphone is used by at least one second user; the acquisition module includes: a second voice data collection sub-module for collecting voice data of the first user as source voice data; the first sending module , Used to call the first earphone to send the source voice data to the earphone storage device, and the earphone storage device translates the source voice data to generate first target voice data and send it to the first target voice data.
  • the device further includes: a second playback module, configured to call the second earphone to receive the first target voice data sent by the earphone storage device, and to play the first target voice data.
  • the earphone includes at least one, the earphone is used by at least one first user, the earphone storage device includes at least one, and the earphone storage device is used by at least one second user; the acquisition module includes : The third voice data collection sub-module is used to collect voice data of the first user as source voice data; wherein, the first target voice data is played by the earphone storage device.
  • the device further includes: a second receiving module configured to receive second target voice data sent by the earphone storage device, where the second target voice data is the second target voice data collected by the earphone storage device for it Second, the user's voice data is generated after translation; the third playing module is used to play the second target voice data.
  • a second receiving module configured to receive second target voice data sent by the earphone storage device, where the second target voice data is the second target voice data collected by the earphone storage device for it Second, the user's voice data is generated after translation; the third playing module is used to play the second target voice data.
  • the headset includes two, and the device further includes: a third receiving module for receiving the first target voice data sent by the headset storage device; a distribution module for receiving the first target voice data according to the use of the headset
  • the channel allocation of the earphone when playing voice data is controlled, and the voice data includes source voice data and/or first target voice data.
  • the distribution module includes: a first channel distribution sub-module, configured to play the source voice data and the first target voice data on the two earphones when both earphones are used.
  • the device further includes: a switching module for receiving a user's switching instruction to switch the type of voice data played in the two earphones; an adjustment module for receiving a user's volume adjustment instruction and adjusting the The music adjustment operation corresponds to the volume of the earphone; or the selection module is used to receive the user's type selection instruction, and the two earphones both play the first target voice data or both play the source voice data.
  • a switching module for receiving a user's switching instruction to switch the type of voice data played in the two earphones
  • an adjustment module for receiving a user's volume adjustment instruction and adjusting the The music adjustment operation corresponds to the volume of the earphone
  • the selection module is used to receive the user's type selection instruction, and the two earphones both play the first target voice data or both play the source voice data.
  • the distribution module includes: a second distribution sub-module, which is used to play a mixture of the source voice data and the first target voice data when one of the earphones is used.
  • the embodiment of the present invention also discloses a translation device, which specifically includes: applied to a headset storage device, the headset storage device is connected to the headset, and the device includes: a fourth receiving module, configured to receive Source voice data; a first translation module, used to translate the source voice data to generate first target voice data.
  • the headset is also connected to a terminal device, and the headset is used by a first communication user corresponding to the terminal device; the source voice data is that the first communication user communicates with at least one first communication user through the terminal device.
  • the terminal device receives the voice data of the second communication user and sends it to the headset; the device further includes: a third sending module for sending the first target voice The data is sent to the headset, and the headset plays the first target voice data; the fourth playback module is used to play the first target voice data.
  • the headset is also connected to a terminal device, and the headset is used by a first communication user corresponding to the terminal device; the source voice data is that the first communication user communicates with at least one first communication user through the terminal device.
  • the voice data of the first communication user collected by the headset the device further includes: a fourth sending module, configured to send the first target voice data to the headset, In order to enable the headset to forward the first target voice data to the terminal device, the terminal device sends the first target voice data to the terminal device of the second communication user.
  • the earphone includes: a first earphone and at least one second earphone, the second earphone and the first earphone are respectively connected to the earphone storage device; the first earphone is used by the first user, so The second earphone is used by at least one second user; the source voice data is the voice data of the first user collected by the first earphone; the device further includes: a fifth sending module, configured to send A target voice data is sent to the second earphone, and the first target voice data is played by the second earphone.
  • the earphone includes at least one, the earphone is used by at least one first user, the earphone storage device includes at least one, and the earphone storage device is used by at least one second user; the source voice data is The voice data of the first user collected by the earphone; the device further includes: a fifth playing module configured to play the first target voice data.
  • the device further includes: a collection module, configured to collect voice data of a second user; a second translation module, configured to translate the voice data of the second user to generate second target voice data;
  • the sixth sending module is configured to send the second target voice data to the earphone, and the earphone plays the second target voice data.
  • the device further includes: a seventh sending module, configured to send the first target voice data to the earphone, and the earphone controls the earphone to play Channel allocation for voice data, where the voice data includes source voice data and/or first target voice data.
  • a seventh sending module configured to send the first target voice data to the earphone, and the earphone controls the earphone to play Channel allocation for voice data, where the voice data includes source voice data and/or first target voice data.
  • the first translation module is configured to perform simultaneous interpretation on the source voice data to generate first target voice data.
  • the earphone storage device is also connected to a server, and the first translation module is configured to generate a translation request according to the source voice data, and send the translation request to the server, so that the server can make the The translation request translates the source voice data, generates and returns first target voice data; and receives the first target voice data returned by the server.
  • the embodiment of the present invention also discloses a readable storage medium.
  • the instructions in the storage medium are executed by the processor of the earphone, the earphone can execute the translation method according to any one of the embodiments of the present invention.
  • the embodiment of the present invention also discloses a readable storage medium.
  • the earphone storage device can execute the translation method according to any one of the embodiments of the present invention. .
  • the embodiment of the present invention also discloses a headset, which includes a memory and one or more programs, wherein one or more programs are stored in the memory and are configured to be executed by one or more processors.
  • One or more programs include instructions for performing the following operations: obtain source voice data; send the source voice data to the earphone storage device, and the earphone storage device translates the source voice data to generate a first target Voice data.
  • the earphone is also connected to a terminal device, and the earphone is used by a first communication user corresponding to the terminal device;
  • the earphone acquiring source voice data includes: the earphone receiving the voice sent by the terminal device Data as source voice data; wherein the voice data sent by the terminal device is the second communication received by the terminal device during the communication process between the first communication user and at least one second communication user through the terminal device
  • the user's voice data further includes instructions for performing the following operations: the headset receives the first target voice data sent by the headset storage device, and plays the first target voice data.
  • the headset is also connected to a terminal device, and the headset is used by a first communication user corresponding to the terminal device; the acquisition of source voice data by the headset includes: When the device communicates with at least one second communication user, the headset collects the voice data of the first communication user as source voice data; further includes instructions for performing the following operations: the headset receives the headset storage device The first target voice data sent; the headset sends the first target voice data to the terminal device, so that the terminal device sends the first target voice data to the terminal of the second communication user equipment.
  • the earphone includes: a first earphone and at least one second earphone, the second earphone and the first earphone are respectively connected to the earphone storage device; the first earphone is used by the first user, so The second earphone is used by at least one second user; the earphone acquiring source voice data includes: the first earphone collects the voice data of the first user as source voice data; the earphone transfers the source voice data Sending data to the earphone storage device includes: the first earphone sends the source voice data to the earphone storage device, and the earphone storage device translates the source voice data to generate the first target voice The data is sent to the second earphone; it also includes instructions to perform the following operations: the second earphone receives the first target voice data sent by the earphone storage device, and plays the first target voice data.
  • the earphone includes at least one, the earphone is used by at least one first user, the earphone storage device includes at least one, and the earphone storage device is used by at least one second user; the earphone acquires the source voice
  • the data includes: the headset collects voice data of the first user as source voice data; wherein the first target voice data is played by the headset storage device.
  • the headset further includes instructions for performing the following operations: the headset receives second target voice data sent by the headset storage device, and the second target voice data is a second user collected by the headset storage device for The voice data is generated after translation; the headset plays the second target voice data.
  • the headset includes two, and further includes instructions for performing the following operations: the headset receives the first target voice data sent by the headset storage device; the headset controls the headset according to the usage of the headset The channel allocation of the headset when playing voice data, where the voice data includes source voice data and/or first target voice data.
  • the earphone controls the channel distribution of the earphone when playing voice data according to the usage of the earphone, including: when both earphones are used, the two earphones respectively play the source voice data And the first target voice data.
  • it also includes instructions for performing the following operations: receiving a user's switching instruction, switching the type of voice data played in the two earphones; or receiving a user's volume adjustment instruction, adjusting the music adjustment operation corresponding to the earphone Volume; or receiving a user type selection instruction, the two earphones both play the first target voice data or both play the source voice data.
  • the earphone controls the channel allocation of the earphone when playing voice data according to the usage of the earphone, including: when one of the earphones is used, the earphone used plays the source voice data and Mixing of the first target voice data.
  • the embodiment of the present invention also discloses a headset storage device, including a memory and one or more programs, wherein one or more programs are stored in the memory and configured to be executed by one or more processors.
  • One or more programs include instructions for performing the following operations: receiving source voice data sent by the headset; translating the source voice data to generate first target voice data.
  • the headset is also connected to a terminal device, and the headset is used by a first communication user corresponding to the terminal device; the source voice data is that the first communication user communicates with at least one first communication user through the terminal device.
  • the terminal device receives the voice data of the second communication user and sends it to the headset; it also includes instructions to perform the following operations: the headset storage device transfers the first target voice The data is sent to the headset, and the headset plays the first target voice data; or, the headset storage device plays the first target voice data.
  • the headset is also connected to a terminal device, and the headset is used by a first communication user corresponding to the terminal device; the source voice data is that the first communication user communicates with at least one first communication user through the terminal device. 2.
  • the voice data of the first communication user collected by the headset further includes an instruction to perform the following operations: send the first target voice data to the headset, so that the headset The first target voice data is forwarded to the terminal device, and the terminal device sends the first target voice data to the terminal device of the second communication user.
  • the earphone includes: a first earphone and at least one second earphone, the second earphone and the first earphone are respectively connected to the earphone storage device; the first earphone is used by the first user, so The second earphone is used by at least one second user; the source voice data is the voice data of the first user collected by the first earphone; and further includes instructions for performing the following operations: the earphone storage device stores the first user A target voice data is sent to the second earphone, and the first target voice data is played by the second earphone.
  • the earphone includes at least one, the earphone is used by at least one first user, the earphone storage device includes at least one, and the earphone storage device is used by at least one second user; the source voice data is The voice data of the first user collected by the earphone; further includes instructions for performing the following operations: the earphone storage device plays the first target voice data.
  • the earphone storage device collects the voice data of the second user; translates the voice data of the second user to generate second target voice data; The target voice data is sent to the headset, and the second target voice data is played by the headset.
  • the voice data includes source voice data and/or first target voice data.
  • the translating the source voice data to generate the first target voice data includes: performing simultaneous interpretation on the source voice data to generate the first target voice data.
  • the earphone storage device is further connected to a server, and the translating the source voice data to generate target voice data includes: generating a translation request according to the source voice data, and sending the translation request to A server, so that the server translates the source voice data according to the translation request, generates and returns first target voice data; and receives the first target voice data returned by the server.
  • the earphone can obtain the source voice data, and then send the source voice data to the earphone storage device connected to it, and the earphone storage device translates the source voice data to generate the first target voice data; Users only need to use headset equipment to achieve translation, without using special translation equipment.
  • FIG. 1 is a flowchart of steps of an embodiment of a method for translation on the earphone side of the present invention
  • FIG. 2 is a flowchart of steps of an embodiment of a method for side translation of a headset storage device of the present invention
  • Figure 3a is a schematic diagram of an embodiment of a communication scenario of the present invention.
  • Figure 3b is a flow chart of the steps of an alternative embodiment of the translation method of the present invention.
  • FIG. 4 is a flowchart of the steps of another alternative embodiment of the translation method of the present invention.
  • Figure 5 is a flow chart of the steps of another alternative embodiment of the translation method of the present invention.
  • Figure 6a is a schematic diagram of an embodiment of a one-to-one translation scenario of the present invention.
  • Fig. 6b is a flow chart of the steps of another alternative embodiment of the translation method of the present invention.
  • Figure 7a is a schematic diagram of yet another one-to-one translation scenario embodiment of the present invention.
  • Figure 7b is a flow chart of the steps of another alternative embodiment of the translation method of the present invention.
  • FIG. 8 is a flow chart of the steps of another alternative embodiment of the translation method of the present invention.
  • FIG. 9 is a flowchart of the steps of another alternative embodiment of the translation method of the present invention.
  • FIG. 10 is a structural block diagram of an embodiment of an earphone-side translation device of the present invention.
  • FIG. 11 is a structural block diagram of an alternative embodiment of the earphone-side translation device of the present invention.
  • FIG. 12 is a structural block diagram of an embodiment of a side translation device of a headphone storage device of the present invention.
  • FIG. 13 is a structural block diagram of an alternative embodiment of a side translation device of a headphone storage device of the present invention.
  • Fig. 14 shows a structural block diagram of an electronic device for translation according to an exemplary embodiment.
  • Terminal equipment is one of the important carriers to realize electronic, informatization and networking.
  • terminal equipment is used for office, terminal equipment is used for communication, etc.; and terminal equipment is also widely used.
  • users will connect earphones to the terminal device: for example, in a communication scenario, connecting earphones can not only hear the voice of the peer more clearly, but also free their hands; for example, when watching videos and listening to music , Live broadcast, video/voice calls, etc., access to the headset can not only obtain high-quality audio, but also protect privacy and reduce interference to others; this makes the headset gradually become one of the external devices that users often use.
  • the embodiment of the present invention can add a translation function to the earphone device, and then realize the translation based on the earphone device, without the user needing to use a special translation device for translation.
  • the earphone device includes an earphone and an earphone storage device, and the earphone storage device is connected to the earphone.
  • FIG. 1 there is shown a flow chart of the steps of an embodiment of the earphone-side translation method of the present invention, which may specifically include the following steps:
  • Step 102 The headset obtains source voice data.
  • Step 104 The earphone sends the source voice data to the earphone storage device, and the earphone storage device translates the source voice data to generate first target voice data.
  • the source voice data may be collected by a headset, or collected by other devices connected to the headset, such as a terminal device, which is not limited in the embodiment of the present invention.
  • the earphone may have a built-in sound collection module such as a microphone array, so that the earphone can collect voice data.
  • the source voice data may refer to untranslated voice data.
  • a translation function can be added to the earphone storage device of the earphone device, and then after the earphone obtains the source voice data, the source voice data can be sent to the earphone storage device; the earphone storage device responds to the source voice The data is translated to generate the first target voice data.
  • the translation process of the earphone storage device will be described later.
  • the earphone storage device After the earphone storage device generates the first target voice data, it can play the first target voice data by itself, or send it to the earphone to play the first target voice data; it can also send the first target voice data to the earphone. Then, the headset is sent to the corresponding terminal device; it can be specifically determined according to the application scenario, which is not limited in the embodiment of the present invention.
  • the earphone can obtain the source voice data, and then send the source voice data to the earphone storage device connected to it, and the earphone storage device translates the source voice data to generate the first target voice Data; in turn, users only need to use headset equipment to achieve translation, without the need to use special translation equipment.
  • FIG. 2 there is shown a step flow chart of an embodiment of a method for side translation of an earphone storage device of the present invention, which may specifically include the following steps:
  • Step 202 The earphone storage device receives the source voice data sent by the earphone.
  • Step 204 The earphone storage device translates the source voice data to generate first target voice data.
  • the earphone storage device after the earphone storage device receives the source voice data sent by the earphone connected to it, it can perform voice recognition on the source voice data to determine the corresponding voice recognition text; and then translate the voice recognition text into a translation in the target language Text, and then convert the translated text of the target language into the corresponding first target voice data.
  • the target language can be the language used by the user who uses the headset, or the language used by other users who communicate with the user who uses the headset, which can be specifically determined according to the application scenario, which is not discussed in this embodiment of the present invention. limit.
  • the earphone storage device can play the first target voice data by itself, or send the first target voice data to the earphone; it can be specifically determined according to the application scenario. This is not restricted.
  • the earphone storage device can translate the source voice data to generate the first target voice data; furthermore, the user only needs to use the earphone device to achieve this. Translation, no need to use special translation equipment.
  • an application scenario of an embodiment of the present invention may be: a scenario where users in different languages communicate. Refer to FIG. 3a, and FIG. 3a only shows a scenario where two users communicate.
  • the communication may refer to a voice call performed by dialing, or a voice/video call performed through instant messaging software, which is not limited in the embodiment of the present invention.
  • the users participating in the communication may include at least two users, each user participating in the communication uses the headset device, and the earphones of the headset devices used by the users participating in the communication are respectively connected to the terminal device used by the user participating in the communication.
  • Any user who uses the headset device can be called the first communication user, and other users participating in the communication can be called the second communication user; the second communication user includes at least one, and one second communication user can use one terminal Device, a terminal device corresponds to the headset in a set of headset devices.
  • the earphone may be a wired earphone or a wireless earphone, which is not limited in the embodiment of the present invention.
  • the connection mode of the earphone and the earphone storage device and the terminal device can be determined according to requirements. For example, if the earphone is a wireless earphone, the earphone and the earphone storage device can be connected by Bluetooth, and the earphone and the terminal device can be connected by Bluetooth; The embodiment of the invention does not limit this.
  • the headset may be a TWS (True Wireless Stereo, true wireless headset).
  • the following takes the headset device used by the first communication user as an example to illustrate the translation method of the embodiment of the present invention.
  • FIG. 3b there is shown a flow chart of the steps of an alternative embodiment of the translation method of the present invention.
  • Step 302 The earphone receives the voice data sent by the terminal device as source voice data; wherein the voice data sent by the terminal device is that the first communication user communicates with at least one second communication user through the terminal device In the communication process, the user's voice data received by the terminal device.
  • any second communication user is talking (for the convenience of the subsequent description of the embodiment of the present invention,
  • the second communication user who speaks during the communication can be referred to as the target second communication user)
  • the terminal device of the target second communication user can collect the voice data of the target second communication user.
  • the headset corresponding to the target second communication user may also collect the voice data of the target second communication user and send it to the terminal device of the target second communication user. Then, the earphone of the target second communication user sends the voice data of the target second communication user to the terminal device of the first communication user.
  • the terminal device of the first communication user can receive the voice data sent by the terminal device of the target second communication user; and then send the received voice data of the target second communication user to the headset used by the first communication user. After the headset used by the first communication user receives the voice data sent by the terminal device of the first communication user, the received voice data may be used as the source voice data.
  • Step 304 The earphone sends the source voice data to the earphone storage device.
  • the headset used by the first communication user can determine whether the language used by the first communication user is the same as the language used by the target second communication user based on the source voice data.
  • the headset used by the first communication user can determine the language used by the target second communication user according to the source voice data (that is, the voice data of the target second communication user); or according to the target second communication user set by the first communication user
  • the language of the second communication user determines the language used by the target second communication user, which is not limited in the embodiment of the present invention.
  • the headset used by the first communication user can determine the language used by the first communication user by acquiring the language of the first communication user set by the first communication user; or determine the first communication user's language according to the system language of the terminal device corresponding to the first communication user.
  • the language used by the communication user is not limited by the embodiment of the present invention.
  • the first communication user can set the language of the first communication user and the language of the target second communication user in the headset storage device, or set the language and the first communication user's language and the first communication user's language in the headset device corresponding application of the terminal device. 2.
  • the language of the communication user which is not limited in the embodiment of the present invention. If the language used by the first communication user is the same as the language used by the target second communication user, the source voice data does not need to be translated, and the source voice data can be played directly. If the language used by the first communication user is different from the language used by the target second communication user, the source voice data is sent to the corresponding earphone storage device, and the earphone storage device translates the source voice data.
  • the headset of the first communication user may also directly send the source voice data to the headset without determining whether the language used by the first communication user is the same as the language used by the target second communication user Storage device; the earphone storage device determines whether the language used by the first communication user is the same as the language used by the target second communication user.
  • Step 306 The earphone storage device translates the source voice data to generate first target voice data.
  • Step 308 The earphone storage device sends the first target voice data to the earphone.
  • the headset storage device may perform voice recognition on the acquired source voice data to determine the corresponding The speech recognition text; then the speech recognition text is translated into the translation text corresponding to the language used by the first communication user, and then the translated text is converted into the corresponding first target voice data and returned to the headset of the first communication user.
  • the headset may send the first communication user's language set by the first communication user to the headset storage device.
  • the headset can send the system language of the terminal device corresponding to the first communication user to the headset storage device.
  • the headset when the headset does not determine whether the language used by the first communication user is the same as the language used by the target second communication user;
  • the data determines whether the language used by the first communication user is the same as the language used by the target second communication user.
  • the source voice data can be returned to the headset of the first communication user, and the headset of the first communication user can directly play the source voice data.
  • the earphone storage device may execute step 306 to generate the first target voice data.
  • Step 310 The headset plays the first target voice data.
  • each user's headset device can translate the voice data of the users participating in the communication, generate and play the voice data in the language used by itself; thus, cross-language communication between users in different languages can be realized in the communication process.
  • the earphone storage device translates the source voice data, and after generating the first target voice data, the first target voice data may also be played; and there is no need to transfer the first target voice data.
  • the target voice data is returned to the earphone, which improves the efficiency of playing the voice data, and can also realize the voice playback of the translated voice data.
  • the headset of the first communication user in the process of the first communication user communicating with at least one second communication user through the terminal device, can transmit the first communication user's terminal device to the first communication user. 2.
  • the voice data of the communication user is used as the source voice data; then the source voice data is sent to the earphone storage device, and the earphone storage device translates the source voice data to generate the first target voice data and return it to the first communication
  • the user's earphone; the first target voice data is played by the earphone of the first communication user, so as to realize cross-language communication in the communication process of users in different languages.
  • the embodiment of the present invention does not need to turn on the power amplifier during the communication process to complete the translation; not only can privacy be protected, but also Improve the accuracy of translation.
  • the following takes the headset used by the first communication user as an example to illustrate the translation method of the embodiment of the present invention.
  • FIG. 4 there is shown a flow chart of the steps of another alternative embodiment of the translation method of the present invention.
  • Step 402 The headset collects the voice data of the first communication user as source voice data.
  • the first communication user's headset in a scenario where the first communication user communicates with at least one second communication user through its terminal device, can be collected by the first communication user while the first communication user is speaking Voice data; and use the collected voice data of the first communication user as the source voice data.
  • Step 404 The earphone sends the source voice data to the earphone storage device.
  • the headset when the language used by the first communication user is the same as the language used by each second communication user, the headset may directly send the source voice data to the terminal device of the first communication user;
  • the terminal device of a communication user sends the source voice data to the terminal device of each second communication user, and the terminal device of each second communication user sends the source voice data to the headset used by each second communication user.
  • the earphone used by the second communication user plays the source voice data.
  • the headset may perform step 404.
  • the method for the headset used by the first communication user to determine whether the language used by the first communication user and the language used by each second communication user are the same is similar to the above, and will not be repeated here.
  • the headset of the first communication user may directly send the source voice data to the headset without determining whether the language used by the first communication user is the same as the language used by each second communication user Storage device; the earphone storage device determines whether the language used by the first communication user is the same as the language used by the second communication user.
  • Step 406 The earphone storage device translates the source voice data to generate first target voice data.
  • Step 408 The earphone storage device returns the first target voice data to the earphone.
  • the earphone storage device may perform processing on the source voice data
  • Voice recognition determines the corresponding voice recognition text; then, translates the voice recognition text into a translated text corresponding to the language used by the second communication user, and then converts the translated text into the corresponding first target voice data and returns it to the headset.
  • the headset of the first communication user when the headset of the first communication user does not determine whether the language used by the first communication user is the same as the language used by the second communication user; According to the source voice data, it is determined whether the language used by the first communication user is the same as the language used by each second communication user.
  • the source voice data can be returned to the headset of the first communication user, and the headset of the first communication user can directly send the source voice data to the first communication user. Terminal equipment of communication users.
  • the earphone storage device may execute step 406 to generate the first target voice data and return it to the earphone.
  • the headset storage device can respectively translate the source voice data to generate a voice data for use with the first communication user.
  • the first target voice data corresponding to the language used by each second communication user with a different language; and then each first target voice data is sent to the headset of the first communication user.
  • Step 410 The headset sends the first target voice data to the terminal device, so that the terminal device sends the first target voice data to the terminal device of the second communication user.
  • the first target voice data can be sent to the terminal device of the first communication user. Then, the terminal device of the first communication user sends the first target voice data to the terminal device of the second communication user. Furthermore, the terminal device of the second communication user can send the first target voice data to the earphone of the second communication user, and the earphone of the second communication user plays the first target voice data, thereby achieving barrier-free communication during the communication process. communicate.
  • the terminal device of the first communication user may sequentially send the first target voice data to each of the second communication users.
  • each second communication user participating in the communication can obtain the first target voice data that can be understood from the plurality of first target voice data played in sequence.
  • the headset used by each second communication user selects the first target voice data matching the language used by the corresponding second communication user from a plurality of received first target voice data for playback.
  • the terminal equipment of the first communication user may also send each first target voice data to the corresponding first target voice data.
  • the terminal device of the communication user then the terminal device of the second communication user sends the received first target voice data to the headset used by the corresponding second communication user, and the headset used by the second communication user pairs the received first target voice data A target voice data is played.
  • the headset of the first communication user can also send the source voice data to the terminal device corresponding to the first communication user;
  • the terminal device corresponding to the first communication user sends the source voice data to the terminal device of the second communication user whose language is the same as that of the first communication user.
  • the headset can obtain the voice data of the first communication user as source voice data, and send the source voice data to the headset storage device;
  • the source voice data is translated, the first target voice data is generated and then returned to the headset, and then the first target voice data is sent to the terminal device by the headset;
  • the terminal device of the first communication user then transmits the The first target voice data is sent to the terminal device of the second communication user, and the terminal device of the second communication user sends the first target voice data to the earphone of the second communication user, which is played by the earphone of the second communication user
  • the first target voice data thereby achieving cross-language communication in the communication process of users in different languages.
  • the embodiment of the present invention does not need to turn on the power amplifier during the communication process to complete the translation; not only can privacy be protected, but also Improve the accuracy of translation.
  • only some of the users participating in the communication may use the headset device; then, in combination with the above steps 302 to 310, and the above steps 402 to 410, the communication process of users in different languages can be realized. Communicate across languages.
  • any user who uses the headset device can be referred to as the first communication user, and other users participating in the communication can be referred to as the second communication user.
  • FIG. 5 there is shown a flow chart of the steps of another alternative embodiment of the translation method of the present invention.
  • Step 502 The earphone receives the voice data sent by the terminal device as source voice data; wherein, the source voice data is a process in which the first communication user communicates with at least one second communication user through the terminal device , The voice data of the second communication user received by the terminal device.
  • Step 504 The earphone sends the source voice data to the earphone storage device.
  • Step 506 The earphone storage device translates the source voice data to generate first target voice data.
  • Step 508 The earphone storage device sends the first target voice data to the earphone.
  • Step 510 The earphone plays the first target voice data.
  • Step 512 The headset collects the voice data of the first communication user as source voice data.
  • Step 514 The earphone sends the source voice data to the earphone storage device.
  • Step 516 The earphone storage device translates the source voice data to generate first target voice data.
  • Step 518 The earphone storage device returns the first target voice data to the earphone.
  • Step 520 The headset sends the first target voice data to the terminal device, so that the terminal device sends the target voice data to the terminal device of the second communication user.
  • steps 502-510 are similar to the above-mentioned steps 302-310, and steps 512-520 are similar to the above-mentioned steps 402-410, and will not be repeated here.
  • the embodiment of the present invention does not limit whether steps 502-510 are performed first, or steps 512-520 are performed first.
  • the voice data of the second communication user sent by the terminal device of the first communication user can be transmitted by the headset .
  • the earphone storage device translates the source voice data, generates first target voice data and returns it to the earphone for playback; and the first communication can be acquired by the earphone
  • the user’s voice data is used as the source voice data and sent to the earphone storage device.
  • the earphone storage device translates the source voice data to generate first target voice data and return it to the earphone; then the earphone transfers the first target
  • the voice data is sent to the terminal device of the first communication user, and the terminal device of the first communication user sends the first target voice data to the terminal device of the second communication user.
  • the terminal device of at least one second communication user may play the first target voice data, or the terminal device of the second communication user may send the first target voice data to the earphone of the second communication user.
  • the earphone of the second communication user plays the first target voice data; the earphone of the second communication user may also send the first target voice data to the corresponding earphone storage device, and the earphone storage device corresponding to the second communication user Play the first target voice data; this embodiment of the present invention does not limit this. Furthermore, even if some of the users participating in the communication do not use the headset device, it is possible to achieve cross-language communication in the communication process of users using different languages.
  • the earphones may include multiple earphones.
  • One earphone may be called a first earphone, and the other earphones may be called a second earphone.
  • the first earphone includes one earphone, and the second earphone may include at least one earphone. . That is, the earphone may include: a first earphone and at least one second earphone, and the first earphone and the second earphone are respectively connected to the earphone storage device.
  • the first earphone is used by a first user
  • the second earphone is used by at least one second user
  • a second user can use a second earphone; in turn, face-to-face voice communication can be realized through the first earphone and the second earphone Translation in progress.
  • the first earphone and the second earphone may be the same pair of earphones or different pairs of earphones.
  • the first earphone and the second earphone can be connected to the earphone storage device in a variety of ways, such as performing a touch operation in the earphone device corresponding application of the terminal device, connecting the first earphone and the earphone receiving device, and connecting the second earphone.
  • Earphone and earphone storage device It is also possible to perform a touch operation in the earphone storage device, connect the first earphone and the earphone storage device, and connect the second earphone and the earphone storage device. It may also be to issue a voice connection instruction, connect the first earphone to the earphone storage device, and connect the second earphone to the earphone storage device, etc.; the embodiment of the present invention does not limit this.
  • FIG. 6b there is shown a flow chart of the steps of another alternative embodiment of the translation method of the present invention.
  • Step 602 The first earphone collects voice data of the first user as source voice data.
  • Step 604 The first earphone sends the source voice data to the earphone storage device.
  • Step 606 The earphone storage device translates the source voice data to generate first target voice data.
  • Step 608 The earphone storage device sends the first target voice data to the second earphone.
  • Step 610 The second earphone plays the first target voice data.
  • the first earphone in a face-to-face voice communication between a first user and at least one second user, can collect the first user’s voice data during the first user’s speech, and combine the first user’s voice The data is used as the source voice data.
  • the first earphone can send the source voice data to the earphone storage device; after receiving the source voice data, the earphone storage device can perform voice recognition on the source voice data to determine the corresponding voice recognition text; and then the voice recognition text Translate into a translated text in the language corresponding to the second user, and convert the translated text into corresponding first target voice data.
  • the first target voice data is then sent to a second earphone used by a second user, and the first target voice data is played by the second earphone.
  • the earphone storage device can translate the source voice data into the first target voice data that matches the language used by the multiple second users; at this time, the earphone storage device can sequentially translate the first target voice
  • the data is sent to the second earphones of each second user; the second earphones of each second user play each first target voice data in turn.
  • each second user who communicates face-to-face can obtain the first target voice data that can be understood from the plurality of first target voice data played in sequence.
  • the second earphone used by each second user selects the first target voice data matching the language used by the corresponding second user from the received multiple first target voice data for playback.
  • the earphone storage device can translate the source voice data into the first target voice data that matches the language used by the multiple second users; at this time, the earphone storage device can also translate each first target The voice data are respectively sent to the second earphones corresponding to the second user; then, each second earphone can play the received first target voice data.
  • the earphone storage device may also send the source voice data to the second earphone of the second user who speaks the same language as the first user .
  • the second earphone of the second user who uses the same language as the first user can directly play the source voice data.
  • Step 612 The second earphone collects the voice data of the second user as source voice data.
  • Step 614 The second earphone sends the source voice data to the earphone storage device.
  • Step 616 The earphone storage device translates the source voice data to generate first target voice data.
  • Step 618 The earphone storage device sends the first target voice data to the first earphone.
  • Step 620 The first earphone plays the first target voice data.
  • any second user speaks (for the convenience of the subsequent description of the embodiment of the present invention, the second user who speaks may be referred to as the target second user).
  • the target second user Two users, the second earphone corresponding to the target second user may be called the target second earphone), the target second earphone may collect the voice data of the target second user, and use the voice data of the target second user as the source voice data.
  • the target second headset can send the source voice data to the headset storage device; after receiving the source voice data, the headset storage device can perform voice recognition on the source voice data to determine the corresponding voice recognition text; and then recognize the voice
  • the text is translated into the translated text in the language corresponding to the first user, and the translated text is converted into the corresponding first target voice data.
  • the first target voice data is then sent to a first earphone used by a first user, and the first target voice data is played by the first earphone.
  • the earphone storage device may also translate the speech recognition text into translation text in the language corresponding to other second users, and convert the translated text into the corresponding first target voice data;
  • a target voice data is sent to other second earphones used by corresponding other second users, and the other second earphones play the corresponding first target voice data.
  • the first target voice data can be sent to the other second earphones of each other second user and the first earphone of the first user in sequence;
  • the other second earphones of the second user and the first earphone of the first user sequentially play each first target voice data.
  • each other second user and the first user who communicate face-to-face can obtain the first target voice data that can be understood from the plurality of first target voice data that are played in sequence.
  • other second earphones used by other second users may also select the first target voice data matching the language used by the corresponding second user from the received multiple first target voice data for playback.
  • the first earphone of the first user selects the first target voice data matching the language used by the first user from the multiple received first target voice data to play.
  • the earphone storage device may also send each first target voice data to the corresponding second earphone/first earphone; and then the second earphone The earphone/first earphone can receive and play the first target voice data.
  • the earphone storage device may also send the source voice data to other second users who speak the same language as the target second user The other second headset.
  • Other second earphones of other second users who use the same language as the target second user can directly play the source voice data.
  • step 602 to step 610 is performed first, or whether to perform step 612 to step 620 first.
  • the first earphone collects the voice data of the first user while the first user is speaking.
  • the earphone storage device translates the source voice data to generate the first target voice data and send it to the second earphone.
  • the earphone plays the first target voice data.
  • the second earphone may collect the voice data of the second user as source voice data and send the source voice data to the earphone storage device, and the earphone storage device will The source voice data is translated, and first target voice data is generated and sent to the first earphone, and the first target voice data is played by the first earphone.
  • the embodiment of the present invention can quickly implement multi-person translation based on earphones, without the need for communication parties to constantly exchange translation devices to view translation results for each other in the translation device, which not only improves translation efficiency, but also improves user experience.
  • the earphone is used by the first user, and the earphone storage device is used by the second user, and the translation is realized through the earphone and the earphone storage device; refer to FIG. 7a, which only shows one One-to-one translation scene.
  • the earphone may include at least one earphone
  • the earphone receiving device may include at least one earphone
  • one first user may use one earphone
  • one second user may use one earphone receiving device.
  • FIG. 7b there is shown a flow chart of the steps of another embodiment of the translation method of the present invention.
  • Step 702 The headset collects voice data of the first user as source voice data.
  • Step 704 The earphone sends the source voice data to the earphone storage device.
  • Step 706 The earphone storage device translates the source voice data to generate first target voice data.
  • Step 708 The earphone storage device plays the first target voice data.
  • any one of the first users speaks (in order to facilitate the subsequent description of the embodiment of the present invention)
  • the first user who speaks will be referred to as the target first user, the headset used by the target first user is called the target headset), the target headset can collect the voice data of the target first user, and use the voice data of the target first user as Source voice data. Then the target earphone can send the acquired source voice data to each earphone storage device.
  • Each earphone storage device may perform voice recognition on the source language data to determine the corresponding voice recognition text; then translate the voice recognition text into a translated text corresponding to the language used by the second user using the earphone storage device, and then transfer the translated text Convert it into the corresponding first target voice data and play it.
  • the earphone storage device of the second user with the same language as the target first user can directly play the source voice data.
  • any one earphone storage device can also translate the source voice data into multiple first target voice data corresponding to the language used by other first users;
  • the earphone storage device is called a target earphone storage device.
  • the target earphone storage device may sequentially send the first target voice data to other earphones used by each other first user; the other earphones of each other first user sequentially play each first target voice data.
  • each other first user who communicates face-to-face can obtain the first target voice data that can be understood from the plurality of first target voice data that are played in sequence.
  • other earphones used by other first users may also select the first target voice data matching the language used by the corresponding first user from the received multiple first target voice data for playback.
  • the target earphone storage device translates the source voice data into multiple first target voice data corresponding to the language used by each other first user, and the target earphone storage device may also transfer each first user A target voice data is respectively sent to other earphones corresponding to other first users; the earphones of other first users can receive and play the first target voice data.
  • the target earphone storage device may also send the source voice data to other earphones of other first users with the same language as the target first user.
  • Other earphones of other first users who use the same language as the first user can directly play the source voice data.
  • the earphone storage device may be provided with a display screen. Furthermore, the earphone storage device can simultaneously display the translated text of the source voice data on the display screen while playing the first target voice data, that is, the text corresponding to the first target voice data; thus, it is convenient for the second user The understanding of the first target voice data further improves the user experience.
  • the earphone storage device also has a storage function and can receive the earphones.
  • the earphone storage device can also charge the earphone.
  • Step 710 The earphone storage device collects voice data of the second user.
  • Step 712 The earphone storage device translates the voice data of the second user to generate second target voice data.
  • Step 714 The earphone storage device sends the second target voice data to the earphone.
  • Step 716 The earphone receives the second target voice data sent by the earphone storage device.
  • Step 718 The earphone plays the second target voice data.
  • the target earphone storage device may collect the voice data of the target second user, and use the voice data of the target second user as the source voice data.
  • the target earphone storage device can perform voice recognition on the acquired source voice data to determine the corresponding voice recognition text; then the voice recognition text is translated into the translated text in the corresponding language of the first user, and then the translated text is converted into the corresponding The second target voice data. Then the second target voice data is sent to the headset used by the first user, and the second target voice data is played by the headset; and then the first user using the headset can hear the translation of the source voice data of the second user result
  • the target earphone storage device may translate the source voice data into the second target voice data corresponding to the language used by each first user. Then, the second target voice data can be sent to the earphones used by each first user in sequence; the earphones of each first user can play each second target voice data in sequence. Furthermore, each first user who communicates face-to-face can obtain the second target voice data that can be understood from the plurality of second target voice data played in sequence. Of course, it is also possible that the earphone used by each first user selects the second target voice data matching the language used by the corresponding first user from the multiple received second target voice data to play.
  • the target earphone storage device translates the source voice data into multiple second target voice data corresponding to the language used by each first user, and the target earphone storage device can also convert each second The target voice data are respectively sent to the corresponding earphone of the first user; the earphone of the first user can receive and play the second target voice data.
  • the target earphone storage device of the target second user may also send the source voice data to the first user who speaks the same language as the target second user Headphones.
  • the earphone of the first user who uses the same language as the target second user can directly play the source voice data.
  • the target earphone storage device can also translate the source voice data into second target voice data corresponding to the language used by other second users; and then send each second target voice data to the corresponding other In the earphone storage device of the second user, the earphone storage device of each other second user plays the corresponding target voice data.
  • the target earphone storage device when the target earphone storage device generates the second target voice data corresponding to the language used by the other second users, the second target voice data may be sent to the other earphone storage devices of each other second user in sequence; The other earphone storage device of the second user can play each target voice data in sequence. Furthermore, each other second user who communicates face-to-face can obtain the target voice data that can be understood from the multiple target voice data that are played in sequence. Of course, it is also possible that the earphone storage device used by each other second user selects the second target voice data matching the language used by the corresponding second user from the received multiple second target voice data for playback.
  • the target earphone storage device can also directly send the source language data to the earphone storage boxes of other second users; the earphone storage boxes of other second users translate the source voice data to its corresponding The second target voice data corresponding to the language used by the other second users is played.
  • the target earphone storage device of the target second user may also send the source voice data to other second users who speak the same language as the target second user.
  • Earphone storage device for users The earphone storage devices of other second users with the same language as the target second user can directly play the source voice data.
  • step 702 to step 708 are performed first, or whether to perform step 710 to step 718 first.
  • the first user’s headset collects the first user’s voice data while the first user speaks.
  • the earphone storage device translates the source voice data to generate and play the first target voice data; and then the second user using the earphone storage device can hear the first user’s The translation result of the source voice data.
  • the earphone storage device may collect and translate the voice data of the second user to generate second target voice data; and then send the second target voice data to all
  • the headset used by the first user plays the second target voice data; and then the first user using the headset can hear the translation result of the source voice data of the second user. Therefore, the embodiment of the present invention can quickly implement translation based on the earphone and the earphone storage device connected to the earphone, without the need for the communication parties to constantly exchange translation equipment to view the translation results for each other in the translation equipment, which can not only improve the translation efficiency, but also improve the translation efficiency. user experience.
  • the embodiments of the present invention can also avoid concerns about hygiene during the communication process between the two parties, and further improve the user experience.
  • the headset can perform simultaneous interpretation to translate the source voice data in real time to improve user experience.
  • FIG. 8 there is shown a step flow chart of another embodiment of the translation method of the present invention.
  • Step 802 The earphone obtains source voice data.
  • Step 804 The earphone sends the source voice data to the earphone storage device.
  • Step 806 The earphone storage device first performs simultaneous interpretation on the source voice data to generate first target voice data.
  • the earphone when it acquires the source voice data, it can perform simultaneous interpretation on sending the source voice data to the earphone storage device. Generate the first target voice data; to improve the efficiency of translation and the fluency of communication.
  • the headset device can also perform simultaneous interpretation.
  • simultaneous interpretation For example, online meetings, online interviews/interviews, watching foreign media speeches, news, foreign media movies and other scenes, the headset sends the source voice data sent by the terminal device to the headset storage device, and the headset storage device can send the source voice to the terminal device The data is simultaneously interpreted, and the first target voice data is generated and then returned to the headset for playback.
  • the earphone storage device itself can collect source voice data and perform simultaneous interpretation, generate the first target voice data and return it to the earphone for playback.
  • the source voice data can be sent to the earphone storage device, and the earphone storage device performs simultaneous interpretation of the source voice data to generate the first voice data.
  • One target voice data in turn, the source voice data can be translated in real time, which improves the translation efficiency.
  • the source voice data obtained by the earphone is sent by the terminal device or collected by the earphone.
  • the noise of the source voice data is small, which can improve the accuracy of simultaneous interpretation and further improve the user experience.
  • the embodiment of the present invention can realize the simultaneous interpretation at a longer distance.
  • the earphone storage device may also have a networking function, and the earphone storage device may translate the source voice data through the server to obtain the first target voice data.
  • FIG. 9 there is shown a step flow chart of an embodiment of a translation method of the present invention.
  • Step 902 The earphone obtains source voice data.
  • Step 904 The earphone sends the source voice data to the earphone storage device.
  • Step 906 The earphone storage device generates a translation request according to the source voice data, and sends the translation request to a server, so that the server translates the source voice data according to the translation request to generate a first Target voice data and return.
  • Step 908 The earphone storage device receives the first target voice data returned by the server.
  • the earphone may include two earphones forming a pair.
  • Different users have different habits of using earphones. For example, some users are accustomed to using one pair of earphones, while some users are accustomed to using a pair of earphones at the same time.
  • the same user has different habit of using earphones in different scenarios. For example, when running, he is accustomed to using a pair of earphones at the same time; during a voice call, he is accustomed to using one earphone.
  • one way for the headset to play voice data may be: the headset controls the channel allocation of the headset when playing voice data according to the use of the headset, and the voice data includes source voice data and / Or the first target voice data. Furthermore, it is possible to reasonably allocate the sound channels of the earphone according to the user's use of the earphone, thereby improving the user experience.
  • a way for the earphone to control the channel allocation when the earphone is playing voice data according to the usage of the earphone may be: when both earphones are used, the two earphones Play the source voice data and the first target voice data separately.
  • the source voice data and the first target voice data in the two earphones may be played synchronously.
  • the source voice data can be played in a headset corresponding to the left ear
  • the first target voice data can be played in a headset corresponding to the right ear.
  • the source voice data can be played in a headset corresponding to the right ear
  • the first target voice data can be played in a headset corresponding to the left ear; the embodiment of the present invention sets no limitation on this.
  • the headset in the embodiment of the present invention supports the user to switch the types of voice data played in the two headsets.
  • the user can perform the switching operation for the headset/headphone storage device, or perform the switching operation in the application program of the terminal device corresponding to the headset device; correspondingly, the headset receives the user's switching instruction to switch the two headsets The type of voice data played in.
  • the switching operation for the earphone/earphone storage device may be a touch operation; it may also be a voice command issued by the user; it may also be the movement of the user's head when the earphone is used or the user's action on the earphone storage device. The embodiment does not limit this.
  • the user may also perform a volume adjustment operation on the earphone/earphone storage device, or perform a volume adjustment operation in the terminal device to adjust the playback volume of the earphone.
  • the earphone can receive a user's volume adjustment instruction, and adjust the volume of the earphone corresponding to the music adjustment instruction; and then the volume of each earphone can be adjusted separately.
  • the volume adjustment operation for the earphone/earphone storage device can be a touch operation; it can also be a voice command issued by the user; it can also be the movement of the user's head when the earphone is used or the user's action on the earphone storage device. The embodiment of the invention does not limit this.
  • the earphone can receive a user's volume adjustment instruction to adjust the volume of two earphones; and then adjust the volume of the two earphones at the same time.
  • the earphones can also provide a type selection function.
  • the user can perform the type selection operation for the earphone/headphone storage device, or in the terminal device A switching operation is performed in the application program corresponding to the earphone in the two earphones, so that the voice data of the same language is played in the two earphones.
  • the headset receives the user's category selection instruction, and the two headsets both play the first target voice data or both play the source voice data.
  • the selection operation for the type of earphone/earphone storage device may be a touch operation; it may also be a voice command issued by the user; it may also be the movement of the user's head when the earphone is used or the user's action on the earphone storage device.
  • the embodiment of the invention does not limit this.
  • another way for the earphone to control the channel allocation when the earphone is playing voice data according to the usage of the earphone may be: when one of the earphones is used, it is used
  • the headset plays the mixed sound of the source voice data and the first target voice data. Wherein, after the source voice data and the first target voice data are mixed, the mixed sound can be played in the earphone. Subsequent users can adjust the volume of the source voice data and the first target voice data in the audio mixing, as well as the overall volume of the audio mixing to better meet the user's personalized needs and improve user experience.
  • the embodiment of the present invention also provides a translation device, which is applied to earphones.
  • FIG. 10 there is shown a structural block diagram of an embodiment of a headset-side translation device of the present invention, which may specifically include the following modules:
  • the obtaining module 1002 is used to obtain source voice data
  • the first sending module 1004 is configured to send the source voice data to the earphone storage device, and the earphone storage device translates the source voice data to generate first target voice data.
  • FIG. 11 there is shown a structural block diagram of an alternative embodiment of an earphone-side translation device of the present invention.
  • the headset is also connected to a terminal device, and the headset is used by a first communication user corresponding to the terminal device;
  • the acquisition module 1002 includes: a voice data receiving sub-module 10022, which is used to receive voice data sent by the terminal device as source voice data; wherein the voice data sent by the terminal device is passed by the first communication user The voice data of the second communication user received by the terminal device during the communication process between the terminal device and at least one second communication user;
  • the device further includes: a first playback module 1006, configured to receive the first target voice data sent by the earphone storage device, and play the first target voice data.
  • a first playback module 1006 configured to receive the first target voice data sent by the earphone storage device, and play the first target voice data.
  • the headset is also connected to a terminal device, and the headset is used by a first communication user corresponding to the terminal device;
  • the acquisition module 1002 includes: a first voice data collection sub-module 10024, configured to collect voice data of the first communication user as source voice data when the first communication user communicates with at least one second communication user through the terminal device;
  • the device further includes :
  • the first receiving module 1008 is used to receive the first target voice data sent by the earphone storage device;
  • the second sending module 1010 is used to send the first target voice data to the terminal device, so that the The terminal device sends the first target voice data to the terminal device of the second communication user.
  • the earphone includes: a first earphone and at least one second earphone, the second earphone and the first earphone are respectively connected to the earphone storage device; the first earphone is connected by Used by the first user, the second earphone is used by at least one second user;
  • the acquisition module 1002 includes: a second voice data collection sub-module 10026, configured to collect voice data of the first user as the source voice Data;
  • the first sending module 1004 is used to call the first earphone to send the source voice data to the earphone storage device, and the earphone storage device translates the source voice data to generate a first
  • the target voice data is sent to the second earphone;
  • the device further includes: a second playback module 1012, configured to call the second earphone to receive the first target voice data sent by the earphone storage device, and play all The first target voice data.
  • the earphone includes at least one, the earphone is used by at least one first user, the earphone storage device includes at least one, and the earphone storage device is used by at least one second user;
  • the acquisition module 1002 includes: a third voice data collection sub-module 10028 for collecting voice data of the first user as source voice data; wherein, the first target voice data is played by the earphone storage device .
  • the device further includes: a second receiving module 1014, configured to receive second target voice data sent by the headset storage device, where the second target voice data is the headset
  • the storage device is generated after translating the collected voice data of the second user; the third playing module 1016 is used to play the second target voice data.
  • the headset includes two, and the device further includes: a third receiving module 1018, configured to receive the first target voice data sent by the headset storage device; and a distribution module 1020, It is used to control the channel allocation of the earphone when playing voice data according to the usage of the earphone, and the voice data includes source voice data and/or first target voice data.
  • a third receiving module 1018 configured to receive the first target voice data sent by the headset storage device
  • a distribution module 1020 It is used to control the channel allocation of the earphone when playing voice data according to the usage of the earphone, and the voice data includes source voice data and/or first target voice data.
  • the distribution module 1020 includes: a first channel distribution sub-module 10202, which is configured to play the source voice data and the first audio channel when both earphones are used. One target voice data.
  • the device further includes: a switching module 1022, configured to receive a user's switching instruction, to switch the type of voice data played in the two earphones; and an adjustment module 1024, configured to receive The user’s volume adjustment instruction adjusts the volume of the earphone corresponding to the music adjustment operation; or the selection module 1026 is used to receive the user’s category selection instruction, the two earphones both play the first target voice data or both play the source voice data.
  • a switching module 1022 configured to receive a user's switching instruction, to switch the type of voice data played in the two earphones
  • an adjustment module 1024 configured to receive The user’s volume adjustment instruction adjusts the volume of the earphone corresponding to the music adjustment operation
  • the selection module 1026 is used to receive the user’s category selection instruction, the two earphones both play the first target voice data or both play the source voice data.
  • the distribution module 1020 includes: a second distribution sub-module 10204, which is used to play the source voice data and the first target voice when one of the earphones is used. Mixing of data.
  • the earphone can obtain the source voice data, and then send the source voice data to the earphone storage device connected to it, and the earphone storage device translates the source voice data to generate the first target voice Data; in turn, users only need to use headset equipment to achieve translation, without the need to use special translation equipment.
  • the embodiment of the present invention also provides a translation device, which is applied to the earphone storage device.
  • FIG. 12 there is shown a structural block diagram of an embodiment of a side translation device of a headphone storage device of the present invention, which may specifically include the following modules:
  • the fourth receiving module 1202 is configured to receive source voice data sent by the headset
  • the first translation module 1204 is configured to translate the source voice data to generate first target voice data.
  • FIG. 13 there is shown a structural block diagram of an alternative embodiment of a side translation device of a headphone storage device of the present invention.
  • the earphone is also connected to a terminal device, and the earphone is used by a first communication user corresponding to the terminal device;
  • the source voice data is that the first communication user passes through the
  • the terminal device communicates with at least one second communication user, the voice data of the second communication user received by the terminal device is sent to the headset;
  • the device further includes: a third sending module 1206, configured to send the first target voice data to the headset, and the headset will play the first target voice data; a fourth playing module 1208, configured to Play the first target voice data.
  • the earphone is also connected to a terminal device, and the earphone is used by a first communication user corresponding to the terminal device;
  • the source voice data is that the first communication user passes through the In the communication process between the terminal equipment and at least one second communication user, the voice data of the first communication user collected by the headset;
  • the device further includes: a fourth sending module 1210, configured to send the first target voice Data is sent to the headset, so that the headset forwards the first target voice data to the terminal device, and the terminal device sends the first target voice data to the terminal of the second communication user equipment.
  • the earphone includes: a first earphone and at least one second earphone, the second earphone and the first earphone are respectively connected to the earphone storage device; the first earphone is connected by Used by the first user, the second earphone is used by at least one second user; the source voice data is the voice data of the first user collected by the first earphone; the device further includes: a fifth sending module 1212 , For sending the first target voice data to a second earphone, and the second earphone plays the first target voice data.
  • the earphone includes at least one, the earphone is used by at least one first user, the earphone storage device includes at least one, and the earphone storage device is used by at least one second user;
  • the source voice data is the voice data of the first user collected by the headset; the device further includes: a fifth playing module 1214, configured to play the first target voice data.
  • the device further includes: a collection module 1216, configured to collect voice data of a second user; and a second translation module 1218, configured to translate voice data of the second user , Generate second target voice data; a sixth sending module 1220, configured to send the second target voice data to the headset, and the headset will play the second target voice data.
  • a collection module 1216 configured to collect voice data of a second user
  • a second translation module 1218 configured to translate voice data of the second user , Generate second target voice data
  • a sixth sending module 1220 configured to send the second target voice data to the headset, and the headset will play the second target voice data.
  • the device further includes: a seventh sending module 1222, configured to send the first target voice data to the earphone, and the earphone is used according to the usage of the earphone. , Controlling the channel allocation of the headset when playing voice data, the voice data including source voice data and/or first target voice data.
  • the first translation module 1204 is configured to perform simultaneous interpretation on the source voice data to generate first target voice data.
  • the earphone storage device is also connected to a server, and the first translation module 1204 is configured to generate a translation request according to the source voice data, and send the translation request to the server, In order to enable the server to translate the source voice data according to the translation request, generate and return first target voice data; and receive the first target voice data returned by the server.
  • the earphone storage device can translate the source voice data to generate the first target voice data; furthermore, the user only needs to use the earphone device to achieve this. Translation, no need to use special translation equipment.
  • the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.
  • Fig. 14 is a structural block diagram showing an electronic device 1400 for data processing according to an exemplary embodiment.
  • the electronic device 1400 may be a headset, a headset storage device, or the like.
  • the electronic device 1400 may include one or more of the following components: a processing component 1402, a memory 1404, a power component 1406, a multimedia component 1408, an audio component 1410, an input/output (I/O) interface 1412, and a sensor component 1414 , And the communication component 1416.
  • the processing component 1402 generally controls the overall operations of the electronic device 1400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
  • the processing element 1402 may include one or more processors 1420 to execute instructions to complete all or part of the steps of the foregoing method.
  • the processing component 1402 may include one or more modules to facilitate the interaction between the processing component 1402 and other components.
  • the processing component 1402 may include a multimedia module to facilitate the interaction between the multimedia component 1408 and the processing component 1402.
  • the memory 1404 is configured to store various types of data to support the operation of the device 1400. Examples of these data include instructions for any application or method operating on the electronic device 1400, contact data, phone book data, messages, pictures, videos, etc.
  • the memory 1404 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable and Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic Disk or Optical Disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read-only memory
  • EPROM erasable and Programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Magnetic Disk Magnetic Disk or Optical Disk.
  • the power component 1406 provides power for various components of the electronic device 1400.
  • the power component 1406 may include a power management system, one or more power supplies, and other components associated with the generation, management, and distribution of power for the electronic device 1400.
  • the multimedia component 1408 includes a screen that provides an output interface between the electronic device 1400 and the user.
  • the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touch, sliding, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure related to the touch or slide operation.
  • the multimedia component 1408 includes a front camera and/or a rear camera. When the electronic device 1400 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
  • the audio component 1410 is configured to output and/or input audio signals.
  • the audio component 1410 includes a microphone (MIC).
  • the microphone is configured to receive external audio signals.
  • the received audio signal may be further stored in the memory 1404 or transmitted via the communication component 1416.
  • the audio component 1410 further includes a speaker for outputting audio signals.
  • the I/O interface 1412 provides an interface between the processing component 1402 and a peripheral interface module.
  • the above-mentioned peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
  • the sensor component 1414 includes one or more sensors for providing the electronic device 1400 with various aspects of state evaluation.
  • the sensor component 1414 can detect the on/off status of the device 1400 and the relative positioning of the components.
  • the component is the display and the keypad of the electronic device 1400.
  • the sensor component 1414 can also detect the electronic device 1400 or a component of the electronic device 1400.
  • the position of the electronic device 1400 changes, the presence or absence of contact between the user and the electronic device 1400, the orientation or acceleration/deceleration of the electronic device 1400, and the temperature change of the electronic device 1400.
  • the sensor assembly 1414 may include a proximity sensor configured to detect the presence of nearby objects when there is no physical contact.
  • the sensor component 1414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
  • the sensor component 1414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
  • the communication component 1416 is configured to facilitate wired or wireless communication between the electronic device 1400 and other devices.
  • the electronic device 1400 can access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof.
  • the communication component 1414 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel.
  • the communication component 1414 further includes a near field communication (NFC) module to facilitate short-range communication.
  • the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • the electronic device 1400 may be used by one or more application-specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field-available A programmable gate array (FPGA), controller, microcontroller, microprocessor, or other electronic components are implemented to implement the above methods.
  • ASIC application-specific integrated circuits
  • DSP digital signal processors
  • DSPD digital signal processing devices
  • PLD programmable logic devices
  • FPGA field-available A programmable gate array
  • controller microcontroller, microprocessor, or other electronic components are implemented to implement the above methods.
  • a non-transitory computer-readable storage medium including instructions, such as a memory 1404 including instructions, and the foregoing instructions may be executed by the processor 1420 of the electronic device 1400 to complete the foregoing method.
  • the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
  • a headset includes a memory and one or more programs, where one or more programs are stored in the memory, and are configured to be executed by one or more processors, including for performing Instructions for the following operations: acquire source voice data; send the source voice data to the earphone storage device, and the earphone storage device translates the source voice data to generate first target voice data.
  • the earphone is also connected to a terminal device, and the earphone is used by a first communication user corresponding to the terminal device;
  • the earphone acquiring source voice data includes: the earphone receiving the voice sent by the terminal device Data as source voice data; wherein the voice data sent by the terminal device is the second communication received by the terminal device during the communication process between the first communication user and at least one second communication user through the terminal device
  • the user's voice data further includes instructions for performing the following operations: the headset receives the first target voice data sent by the headset storage device, and plays the first target voice data.
  • the headset is also connected to a terminal device, and the headset is used by a first communication user corresponding to the terminal device; the acquisition of source voice data by the headset includes: When the device communicates with at least one second communication user, the headset collects the voice data of the first communication user as source voice data; further includes instructions for performing the following operations: the headset receives the headset storage device The first target voice data sent; the headset sends the first target voice data to the terminal device, so that the terminal device sends the first target voice data to the terminal of the second communication user equipment.
  • the earphone includes: a first earphone and at least one second earphone, the second earphone and the first earphone are respectively connected to the earphone storage device; the first earphone is used by the first user, so The second earphone is used by at least one second user; the earphone acquiring source voice data includes: the first earphone collects the voice data of the first user as source voice data; the earphone transfers the source voice data Sending data to the earphone storage device includes: the first earphone sends the source voice data to the earphone storage device, and the earphone storage device translates the source voice data to generate the first target voice The data is sent to the second earphone; it also includes instructions to perform the following operations: the second earphone receives the first target voice data sent by the earphone storage device, and plays the first target voice data.
  • the earphone includes at least one, the earphone is used by at least one first user, the earphone storage device includes at least one, and the earphone storage device is used by at least one second user; the earphone acquires the source voice
  • the data includes: the headset collects voice data of the first user as source voice data; wherein the first target voice data is played by the headset storage device.
  • the headset further includes instructions for performing the following operations: the headset receives second target voice data sent by the headset storage device, and the second target voice data is a second user collected by the headset storage device for The voice data is generated after translation; the headset plays the second target voice data.
  • the headset includes two, and further includes instructions for performing the following operations: the headset receives the first target voice data sent by the headset storage device; the headset controls the headset according to the usage of the headset The channel allocation of the headset when playing voice data, where the voice data includes source voice data and/or first target voice data.
  • the earphone controls the channel distribution of the earphone when playing voice data according to the usage of the earphone, including: when both earphones are used, the two earphones respectively play the source voice data And the first target voice data.
  • it also includes instructions for performing the following operations: receiving a user's switching instruction, switching the type of voice data played in the two earphones; or receiving a user's volume adjustment instruction, adjusting the music adjustment operation corresponding to the earphone Volume; or receiving a user type selection instruction, the two earphones both play the first target voice data or both play the source voice data.
  • the earphone controls the channel allocation of the earphone when playing voice data according to the usage of the earphone, including: when one of the earphones is used, the earphone used plays the source voice data and Mixing of the first target voice data.
  • a headset storage device includes a memory and one or more programs, wherein one or more programs are stored in the memory, and are configured to be executed by one or more processors. Instructions for performing the following operations: receiving source voice data sent by the headset; translating the source voice data to generate first target voice data.
  • the headset is also connected to a terminal device, and the headset is used by a first communication user corresponding to the terminal device; the source voice data is that the first communication user communicates with at least one first communication user through the terminal device.
  • the terminal device receives the voice data of the second communication user and sends it to the headset; it also includes instructions to perform the following operations: the headset storage device transfers the first target voice The data is sent to the headset, and the headset plays the first target voice data; or, the headset storage device plays the first target voice data.
  • the headset is also connected to a terminal device, and the headset is used by a first communication user corresponding to the terminal device; the source voice data is that the first communication user communicates with at least one first communication user through the terminal device. 2.
  • the voice data of the first communication user collected by the headset further includes an instruction to perform the following operations: send the first target voice data to the headset, so that the headset The first target voice data is forwarded to the terminal device, and the terminal device sends the first target voice data to the terminal device of the second communication user.
  • the earphone includes: a first earphone and at least one second earphone, the second earphone and the first earphone are respectively connected to the earphone storage device; the first earphone is used by the first user, so The second earphone is used by at least one second user; the source voice data is the voice data of the first user collected by the first earphone; and further includes instructions for performing the following operations: the earphone storage device stores the first user A target voice data is sent to the second earphone, and the first target voice data is played by the second earphone.
  • the earphone includes at least one, the earphone is used by at least one first user, the earphone storage device includes at least one, and the earphone storage device is used by at least one second user; the source voice data is The voice data of the first user collected by the earphone; further includes instructions for performing the following operations: the earphone storage device plays the first target voice data.
  • the earphone storage device collects the voice data of the second user; translates the voice data of the second user to generate second target voice data; The target voice data is sent to the headset, and the second target voice data is played by the headset.
  • the voice data includes source voice data and/or first target voice data.
  • the translating the source voice data to generate the first target voice data includes: performing simultaneous interpretation on the source voice data to generate the first target voice data.
  • the earphone storage device is further connected to a server, and the translating the source voice data to generate target voice data includes: generating a translation request according to the source voice data, and sending the translation request to A server, so that the server translates the source voice data according to the translation request, generates and returns first target voice data; and receives the first target voice data returned by the server.
  • a non-transitory computer-readable storage medium when instructions in the storage medium are executed by a processor of a headset, enabling the headset to execute a translation method, the method comprising: connecting the headset to a headset storage device, The method includes: the earphone acquires source voice data; the earphone sends the source voice data to the earphone storage device, and the earphone storage device translates the source voice data to generate a first target Voice data.
  • the earphone is also connected to a terminal device, and the earphone is used by a first communication user corresponding to the terminal device;
  • the earphone acquiring source voice data includes: the earphone receiving the voice sent by the terminal device Data as source voice data; wherein the voice data sent by the terminal device is the second communication received by the terminal device during the communication process between the first communication user and at least one second communication user through the terminal device The user's voice data; the method further includes: the headset receives the first target voice data sent by the headset storage device, and plays the first target voice data.
  • the headset is also connected to a terminal device, and the headset is used by a first communication user corresponding to the terminal device;
  • the acquisition of source voice data by the headset includes: When the device communicates with at least one second communication user, the earphone collects the voice data of the first communication user as source voice data; the method further includes: the earphone receives the earphone receiving device sent First target voice data; the headset sends the first target voice data to the terminal device, so that the terminal device sends the first target voice data to the terminal device of the second communication user.
  • the earphone includes: a first earphone and at least one second earphone, the second earphone and the first earphone are respectively connected to the earphone storage device; the first earphone is used by the first user, so The second earphone is used by at least one second user; the earphone acquiring source voice data includes: the first earphone collects the voice data of the first user as source voice data; the earphone transfers the source voice data Sending data to the earphone storage device includes: the first earphone sends the source voice data to the earphone storage device, and the earphone storage device translates the source voice data to generate the first target voice The data is sent to the second earphone; the method further includes: the second earphone receives the first target voice data sent by the earphone storage device, and plays the first target voice data.
  • the earphone includes at least one, the earphone is used by at least one first user, the earphone storage device includes at least one, and the earphone storage device is used by at least one second user; the earphone acquires the source voice
  • the data includes: the headset collects voice data of the first user as source voice data; wherein the first target voice data is played by the headset storage device.
  • the method further includes: the earphone receiving second target voice data sent by the earphone storage device, where the second target voice data is the voice of the second user collected by the earphone storage device for it The data is generated after translation; the headset plays the second target voice data.
  • the headset includes two, and the method further includes: the headset receives the first target voice data sent by the headset storage device; and the headset controls the headset according to the usage of the headset Channel allocation when playing voice data, where the voice data includes source voice data and/or first target voice data.
  • the earphone controls the channel distribution of the earphone when playing voice data according to the usage of the earphone, including: when both earphones are used, the two earphones respectively play the source voice data And the first target voice data.
  • the method further includes: receiving a user's switching instruction to switch the type of voice data played in the two earphones; or receiving a user's volume adjustment instruction to adjust the volume of the earphone corresponding to the music adjustment operation; Or receiving a user type selection instruction, the two earphones both play the first target voice data or both play the source voice data.
  • the earphone controls the channel allocation of the earphone when playing voice data according to the usage of the earphone, including: when one of the earphones is used, the earphone used plays the source voice data and Mixing of the first target voice data.
  • a non-transitory computer-readable storage medium when the instructions in the storage medium are executed by the processor of the earphone storage device, the earphone storage device can execute a translation method, the method includes: the earphone storage device Receiving the source voice data sent by the headset; the headset storage device translates the source voice data to generate first target voice data.
  • the headset is also connected to a terminal device, and the headset is used by a first communication user corresponding to the terminal device; the source voice data is that the first communication user communicates with at least one first communication user through the terminal device. 2.
  • the voice data of the second communication user received by the terminal device and sent to the headset; the method further includes: the headset storage device sends the first target voice data To the earphone, the earphone plays the first target voice data; or, the earphone storage device plays the first target voice data.
  • the headset is also connected to a terminal device, and the headset is used by a first communication user corresponding to the terminal device; the source voice data is that the first communication user communicates with at least one first communication user through the terminal device. 2.
  • the voice data of the first communication user collected by the headset the method further includes: sending the first target voice data to the headset, so that the headset can The first target voice data is forwarded to the terminal device, and the terminal device sends the first target voice data to the terminal device of the second communication user.
  • the earphone includes: a first earphone and at least one second earphone, the second earphone and the first earphone are respectively connected to the earphone storage device; the first earphone is used by the first user, so The second earphone is used by at least one second user; the source voice data is the voice data of the first user collected by the first earphone; the method further includes: the earphone storage device transfers the first target The voice data is sent to the second earphone, and the first target voice data is played by the second earphone.
  • the earphone includes at least one, the earphone is used by at least one first user, the earphone storage device includes at least one, and the earphone storage device is used by at least one second user;
  • the source voice data is The voice data of the first user collected by the headset; the method further includes: the headset storage device plays the first target voice data.
  • the method further includes: collecting the voice data of the second user by the earphone storage device; translating the voice data of the second user to generate second target voice data; and converting the second target voice
  • the data is sent to the earphone, and the earphone plays the second target voice data.
  • the method further includes: sending the first target voice data to the earphone, and the earphone controls the channel allocation of the earphone when the voice data is played according to the usage of the earphone.
  • the voice data includes source voice data and/or first target voice data.
  • the translating the source voice data to generate the first target voice data includes: performing simultaneous interpretation on the source voice data to generate the first target voice data.
  • the earphone storage device is further connected to a server, and the translating the source voice data to generate target voice data includes: generating a translation request according to the source voice data, and sending the translation request to A server, so that the server translates the source voice data according to the translation request, generates and returns first target voice data; and receives the first target voice data returned by the server.
  • These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing terminal equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the instruction device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing terminal equipment, so that a series of operation steps are executed on the computer or other programmable terminal equipment to produce computer-implemented processing, so that the computer or other programmable terminal equipment
  • the instructions executed above provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Artificial Intelligence (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Machine Translation (AREA)

Abstract

一种翻译方法、翻译装置、耳机、耳机收纳装置和可读存储介质,其中,该方法包括:耳机获取源语音数据(102);将源语音数据发送至与其连接的耳机收纳装置,由耳机收纳装置对源语音数据进行翻译,生成第一目标语音数据(104)。用户只需采用耳机设备即可以实现翻译,无需采用专用翻译设备。

Description

一种翻译方法、装置、耳机和耳机收纳装置
本申请要求在2020年06月05日提交中国专利局、申请号为202010508213.0、发明名称为“一种翻译方法、装置、耳机和耳机收纳装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及数据处理技术领域,特别是涉及一种翻译方法、装置、耳机和耳机收纳装置。
背景技术
随着全球化的推进,各国在商业、生活上的交流变得日益频繁;例如,跨国贸易、国际交流会议、跨国旅游等等。
由于各国/各地区使用的语言不同,使得语言成为了各国在商业和生活交流过程中的主要障碍之一;为了解决语言障碍,翻译设备应运而生;如翻译机、翻译笔等等。也就是说,现有技术必须使用专用翻译设备,才能实现翻译。
发明内容
本发明实施例提供一种翻译方法,以基于耳机设备实现翻译。
相应的,本发明实施例还提供了一种翻译装置、耳机和耳机收纳装置,用以保证上述方法的实现及应用。
为了解决上述问题,本发明实施例公开了一种翻译方法,应用于耳机中,所述耳机与耳机收纳装置连接,所述的方法包括:所述耳机获取源语音数据;所述耳机将所述源语音数据发送至所述耳机收纳装置,由所述耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据。
可选地,所述耳机还与终端设备连接,所述耳机由所述终端设备对应的第一通讯用户使用;所述耳机获取源语音数据,包括:所述耳机接收所述终端设备发送的语音数据,作为源语音数据;其中,所述终端设备发送的语音数据是所述第一通讯用户通过所述终端设备与至少一个第二通讯用户通讯过程中,所述终端设备接收到的第二通讯用户的语音数据;所述的方法还包括:所述耳机接收所述耳机收纳装置发送的第一目标语音数据,并播放所述第一目标语音数据。
可选地,所述耳机还与终端设备连接,所述耳机由所述终端设备对应的第一通讯用户使用;所述耳机获取源语音数据,包括:在所述第一通讯用户通过所述终端设备与至少一个第二通讯用户通讯的过程中,所述耳机采集所述第一通讯用户的语音数据,作为源语音数据;所述的方法还包括:所述耳机接收所述耳机收纳装置发送的第一目标语音数据;所述耳机将所述第一目标语音数据发送至所述终端设备,以使所述终端设备将所述第一目标语音数据发送至所述第二通讯用户的终端设备。
可选地,所述耳机包括:第一耳机和至少一个第二耳机,所述第二耳机和第一耳机,分别与所述耳机收纳装置连接;所述第一耳机由第一用户使用,所述第二耳机由至少一个第二用户使用;所述耳机获取源语音数据,包括:所述第一耳机采集所述第一用户的语音数据,作为源语音数据;所述耳机将所述源语音数据发送至所述耳机收纳装置,包 括:所述第一耳机将所述源语音数据发送至所述耳机收纳装置,由所述耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据并发送至所述第二耳机;所述的方法还包括:所述第二耳机接收所述耳机收纳装置发送的第一目标语音数据,并播放所述第一目标语音数据。
可选地,所述耳机包括至少一个,所述耳机由至少一个第一用户使用,所述耳机收纳装置包括至少一个,所述耳机收纳装置由至少一个第二用户使用;所述耳机获取源语音数据,包括:所述耳机采集所述第一用户的语音数据,作为源语音数据;其中,所述第一目标语音数据由所述耳机收纳装置播放。
可选地,所述的方法还包括:所述耳机接收所述耳机收纳装置发送的第二目标语音数据,所述第二目标语音数据是所述耳机收纳装置针对其采集的第二用户的语音数据进行翻译后生成的;所述耳机播放所述第二目标语音数据。
可选地,所述耳机包括两个,所述的方法还包括:所述耳机接收所述耳机收纳装置发送的第一目标语音数据;所述耳机根据所述耳机的使用情况,控制所述耳机在播放语音数据时的声道分配,所述语音数据包括源语音数据和/或第一目标语音数据。
可选地,所述耳机根据所述耳机的使用情况,控制所述耳机在播放语音数据时的声道分配,包括:当两个耳机均被使用时,两个耳机分别播放所述源语音数据和第一目标语音数据。
可选地,所述的方法还包括:接收用户的切换指令,切换所述两个耳机中播放的语音数据的种类;或接收用户的音量调节指令,调节所述音乐调节操作对应耳机的音量;或接收用户的种类选取指令,所述两个耳机均播放所述第一目标语音数据或均播放源语音数据。
可选地,所述耳机根据所述耳机的使用情况,控制所述耳机在播放语音数据时的声道分配,包括:当其中一个耳机被使用时,被使用的耳机播放所述源语音数据和第一目标语音数据的混音。
本发明实施例还公开了一种翻译方法,应用于耳机收纳装置中,所述耳机收纳装置与耳机连接,所述的方法包括:所述耳机收纳装置接收所述耳机发送的源语音数据;所述耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据。
可选地,所述耳机还与终端设备连接,所述耳机由所述终端设备对应的第一通讯用户使用;所述源语音数据是所述第一通讯用户通过所述终端设备与至少一个第二通讯用户通讯过程中,所述终端设备接收到的第二通讯用户的语音数据并发送至所述耳机的;所述的方法还包括:所述耳机收纳装置将所述第一目标语音数据发送至所述耳机,由所述耳机播放所述第一目标语音数据;或,所述耳机收纳装置播放所述第一目标语音数据。
可选地,所述耳机还与终端设备连接,所述耳机由所述终端设备对应的第一通讯用户使用;所述源语音数据是所述第一通讯用户通过所述终端设备与至少一个第二通讯用户通讯过程中,所述耳机采集的所述第一通讯用户的语音数据;所述的方法还包括:将所述第一目标语音数据发送至所述耳机,以使所述耳机将所述第一目标语音数据转发至所述终端设备,由所述终端设备将所述第一目标语音数据发送至所述第二通讯用户的终端设备。
可选地,所述耳机包括:第一耳机和至少一个第二耳机,所述第二耳机和第一耳机,分别与所述耳机收纳装置连接;所述第一耳机由第一用户使用,所述第二耳机由至少一个第二用户使用;所述源语音数据是所述第一耳机采集的第一用户的语音数据;所述的 方法还包括:所述耳机收纳装置将所述第一目标语音数据发送至第二耳机,由所述第二耳机播放所述第一目标语音数据。
可选地,所述耳机包括至少一个,所述耳机由至少一个第一用户使用,所述耳机收纳装置包括至少一个,所述耳机收纳装置由至少一个第二用户使用;所述源语音数据是所述耳机采集的第一用户的语音数据;所述的方法还包括:所述耳机收纳装置播放所述的第一目标语音数据。
可选地,所述的方法还包括:所述耳机收纳装置采集第二用户的语音数据;对所述第二用户的语音数据进行翻译,生成第二目标语音数据;将所述第二目标语音数据发送给所述耳机,由所述耳机播放所述第二目标语音数据。
可选地,所述的方法还包括:将所述第一目标语音数据发送至所述耳机,由所述耳机根据所述耳机的使用情况,控制所述耳机在播放语音数据时的声道分配,所述语音数据包括源语音数据和/或第一目标语音数据。
可选地,所述对所述源语音数据进行翻译,生成第一目标语音数据,包括:对所述源语音数据进行同声传译,生成第一目标语音数据。
可选地,所述耳机收纳装置还与服务器连接,所述对所述源语音数据进行翻译,生成目标语音数据,包括:依据所述源语音数据生成翻译请求,并将所述翻译请求发送至服务器,以使所述服务器依据所述翻译请求对所述源语音数据进行翻译,生成第一目标语音数据并返回;接收所述服务器返回的第一目标语音数据。
本发明实施例还公开了一种翻译装置,应用于耳机中,所述耳机与耳机收纳装置连接,所述的装置包括:获取模块,用于获取源语音数据;第一发送模块,用于将所述源语音数据发送至所述耳机收纳装置,由所述耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据。
可选地,所述耳机还与终端设备连接,所述耳机由所述终端设备对应的第一通讯用户使用;所述获取模块,包括:语音数据接收子模块,用于接收所述终端设备发送的语音数据,作为源语音数据;其中,所述终端设备发送的语音数据是所述第一通讯用户通过所述终端设备与至少一个第二通讯用户通讯过程中,所述终端设备接收到的第二通讯用户的语音数据;所述的装置还包括:第一播放模块,用于接收所述耳机收纳装置发送的第一目标语音数据,并播放所述第一目标语音数据。
可选地,所述耳机还与终端设备连接,所述耳机由所述终端设备对应的第一通讯用户使用;所述获取模块,包括:第一语音数据采集子模块,用于在所述第一通讯用户通过所述终端设备与至少一个第二通讯用户通讯的过程中,采集所述第一通讯用户的语音数据,作为源语音数据;所述的装置还包括:第一接收模块,用于接收所述耳机收纳装置发送的第一目标语音数据;第二发送模块,用于将所述第一目标语音数据发送至所述终端设备,以使所述终端设备将所述第一目标语音数据发送至所述第二通讯用户的终端设备。
可选地,所述耳机包括:第一耳机和至少一个第二耳机,所述第二耳机和第一耳机,分别与所述耳机收纳装置连接;所述第一耳机由第一用户使用,所述第二耳机由至少一个第二用户使用;所述获取模块,包括:第二语音数据采集子模块,用于采集所述第一用户的语音数据,作为源语音数据;所述第一发送模块,用于调用所述第一耳机将所述源语音数据发送至所述耳机收纳装置,由所述耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据并发送至所述第二耳机;所述的装置还包括:第二播放模块,用 于调用所述第二耳机接收所述耳机收纳装置发送的第一目标语音数据,并播放所述第一目标语音数据。
可选地,所述耳机包括至少一个,所述耳机由至少一个第一用户使用,所述耳机收纳装置包括至少一个,所述耳机收纳装置由至少一个第二用户使用;所述获取模块,包括:第三语音数据采集子模块,用于采集所述第一用户的语音数据,作为源语音数据;其中,所述第一目标语音数据由所述耳机收纳装置播放。
可选地,所述的装置还包括:第二接收模块,用于接收所述耳机收纳装置发送的第二目标语音数据,所述第二目标语音数据是所述耳机收纳装置针对其采集的第二用户的语音数据进行翻译后生成的;第三播放模块,用于播放所述第二目标语音数据。
可选地,所述耳机包括两个,所述的装置还包括:第三接收模块,用于接收所述耳机收纳装置发送的第一目标语音数据;分配模块,用于根据所述耳机的使用情况,控制所述耳机在播放语音数据时的声道分配,所述语音数据包括源语音数据和/或第一目标语音数据。
可选地,所述分配模块,包括:第一声道分配子模块,用于当两个耳机均被使用时,两个耳机分别播放所述源语音数据和第一目标语音数据。
可选地,所述的装置还包括:切换模块,用于接收用户的切换指令,切换所述两个耳机中播放的语音数据的种类;调节模块,用于接收用户的音量调节指令,调节所述音乐调节操作对应耳机的音量;或选取模块,用于接收用户的种类选取指令,所述两个耳机均播放所述第一目标语音数据或均播放源语音数据。
可选地,所述分配模块,包括:第二分配子模块,用于当其中一个耳机被使用时,被使用的耳机播放所述源语音数据和第一目标语音数据的混音。
本发明实施例还公开了一种翻译装置,具体包括:应用于耳机收纳装置中,所述耳机收纳装置与耳机连接,所述的装置包括:第四接收模块,用于接收所述耳机发送的源语音数据;第一翻译模块,用于对所述源语音数据进行翻译,生成第一目标语音数据。
可选地,所述耳机还与终端设备连接,所述耳机由所述终端设备对应的第一通讯用户使用;所述源语音数据是所述第一通讯用户通过所述终端设备与至少一个第二通讯用户通讯过程中,所述终端设备接收到的第二通讯用户的语音数据并发送至所述耳机的;所述的装置还包括:第三发送模块,用于将所述第一目标语音数据发送至所述耳机,由所述耳机播放所述第一目标语音数据;第四播放模块,用于播放所述第一目标语音数据。
可选地,所述耳机还与终端设备连接,所述耳机由所述终端设备对应的第一通讯用户使用;所述源语音数据是所述第一通讯用户通过所述终端设备与至少一个第二通讯用户通讯过程中,所述耳机采集的所述第一通讯用户的语音数据;所述的装置还包括:第四发送模块,用于将所述第一目标语音数据发送至所述耳机,以使所述耳机将所述第一目标语音数据转发至所述终端设备,由所述终端设备将所述第一目标语音数据发送至所述第二通讯用户的终端设备。
可选地,所述耳机包括:第一耳机和至少一个第二耳机,所述第二耳机和第一耳机,分别与所述耳机收纳装置连接;所述第一耳机由第一用户使用,所述第二耳机由至少一个第二用户使用;所述源语音数据是所述第一耳机采集的第一用户的语音数据;所述的装置还包括:第五发送模块,用于将所述第一目标语音数据发送至第二耳机,由所述第二耳机播放所述第一目标语音数据。
可选地,所述耳机包括至少一个,所述耳机由至少一个第一用户使用,所述耳机收 纳装置包括至少一个,所述耳机收纳装置由至少一个第二用户使用;所述源语音数据是所述耳机采集的第一用户的语音数据;所述的装置还包括:第五播放模块,用于播放所述的第一目标语音数据。
可选地,所述的装置还包括:采集模块,用于采集第二用户的语音数据;第二翻译模块,用于对所述第二用户的语音数据进行翻译,生成第二目标语音数据;第六发送模块,用于将所述第二目标语音数据发送给所述耳机,由所述耳机播放所述第二目标语音数据。
可选地,所述的装置还包括:第七发送模块,用于将所述第一目标语音数据发送至所述耳机,由所述耳机根据所述耳机的使用情况,控制所述耳机在播放语音数据时的声道分配,所述语音数据包括源语音数据和/或第一目标语音数据。
可选地,所述第一翻译模块,用于对所述源语音数据进行同声传译,生成第一目标语音数据。
可选地,所述耳机收纳装置还与服务器连接,所述第一翻译模块,用于依据所述源语音数据生成翻译请求,并将所述翻译请求发送至服务器,以使所述服务器依据所述翻译请求对所述源语音数据进行翻译,生成第一目标语音数据并返回;接收所述服务器返回的第一目标语音数据。
本发明实施例还公开了一种可读存储介质,当所述存储介质中的指令由耳机的处理器执行时,使得耳机能够执行如本发明实施例任一所述的翻译方法。
本发明实施例还公开了一种可读存储介质,当所述存储介质中的指令由耳机收纳装置的处理器执行时,使得耳机收纳装置能够执行如本发明实施例任一所述的翻译方法。
本发明实施例还公开了一种耳机,包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:获取源语音数据;将所述源语音数据发送至所述耳机收纳装置,由所述耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据。
可选地,所述耳机还与终端设备连接,所述耳机由所述终端设备对应的第一通讯用户使用;所述耳机获取源语音数据,包括:所述耳机接收所述终端设备发送的语音数据,作为源语音数据;其中,所述终端设备发送的语音数据是所述第一通讯用户通过所述终端设备与至少一个第二通讯用户通讯过程中,所述终端设备接收到的第二通讯用户的语音数据;还包含进行执行如下操作的指令:所述耳机接收所述耳机收纳装置发送的第一目标语音数据,并播放所述第一目标语音数据。
可选地,所述耳机还与终端设备连接,所述耳机由所述终端设备对应的第一通讯用户使用;所述耳机获取源语音数据,包括:在所述第一通讯用户通过所述终端设备与至少一个第二通讯用户通讯的过程中,所述耳机采集所述第一通讯用户的语音数据,作为源语音数据;还包含进行执行如下操作的指令:所述耳机接收所述耳机收纳装置发送的第一目标语音数据;所述耳机将所述第一目标语音数据发送至所述终端设备,以使所述终端设备将所述第一目标语音数据发送至所述第二通讯用户的终端设备。
可选地,所述耳机包括:第一耳机和至少一个第二耳机,所述第二耳机和第一耳机,分别与所述耳机收纳装置连接;所述第一耳机由第一用户使用,所述第二耳机由至少一个第二用户使用;所述耳机获取源语音数据,包括:所述第一耳机采集所述第一用户的语音数据,作为源语音数据;所述耳机将所述源语音数据发送至所述耳机收纳装置,包 括:所述第一耳机将所述源语音数据发送至所述耳机收纳装置,由所述耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据并发送至所述第二耳机;还包含进行执行如下操作的指令:所述第二耳机接收所述耳机收纳装置发送的第一目标语音数据,并播放所述第一目标语音数据。
可选地,所述耳机包括至少一个,所述耳机由至少一个第一用户使用,所述耳机收纳装置包括至少一个,所述耳机收纳装置由至少一个第二用户使用;所述耳机获取源语音数据,包括:所述耳机采集所述第一用户的语音数据,作为源语音数据;其中,所述第一目标语音数据由所述耳机收纳装置播放。
可选地,还包含进行执行如下操作的指令:所述耳机接收所述耳机收纳装置发送的第二目标语音数据,所述第二目标语音数据是所述耳机收纳装置针对其采集的第二用户的语音数据进行翻译后生成的;所述耳机播放所述第二目标语音数据。
可选地,所述耳机包括两个,还包含进行执行如下操作的指令:所述耳机接收所述耳机收纳装置发送的第一目标语音数据;所述耳机根据所述耳机的使用情况,控制所述耳机在播放语音数据时的声道分配,所述语音数据包括源语音数据和/或第一目标语音数据。
可选地,所述耳机根据所述耳机的使用情况,控制所述耳机在播放语音数据时的声道分配,包括:当两个耳机均被使用时,两个耳机分别播放所述源语音数据和第一目标语音数据。
可选地,还包含进行执行如下操作的指令:接收用户的切换指令,切换所述两个耳机中播放的语音数据的种类;或接收用户的音量调节指令,调节所述音乐调节操作对应耳机的音量;或接收用户的种类选取指令,所述两个耳机均播放所述第一目标语音数据或均播放源语音数据。
可选地,所述耳机根据所述耳机的使用情况,控制所述耳机在播放语音数据时的声道分配,包括:当其中一个耳机被使用时,被使用的耳机播放所述源语音数据和第一目标语音数据的混音。
本发明实施例还公开了一种耳机收纳装置,包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:接收所述耳机发送的源语音数据;对所述源语音数据进行翻译,生成第一目标语音数据。
可选地,所述耳机还与终端设备连接,所述耳机由所述终端设备对应的第一通讯用户使用;所述源语音数据是所述第一通讯用户通过所述终端设备与至少一个第二通讯用户通讯过程中,所述终端设备接收到的第二通讯用户的语音数据并发送至所述耳机的;还包含进行执行如下操作的指令:所述耳机收纳装置将所述第一目标语音数据发送至所述耳机,由所述耳机播放所述第一目标语音数据;或,所述耳机收纳装置播放所述第一目标语音数据。
可选地,所述耳机还与终端设备连接,所述耳机由所述终端设备对应的第一通讯用户使用;所述源语音数据是所述第一通讯用户通过所述终端设备与至少一个第二通讯用户通讯过程中,所述耳机采集的所述第一通讯用户的语音数据;还包含进行执行如下操作的指令:将所述第一目标语音数据发送至所述耳机,以使所述耳机将所述第一目标语音数据转发至所述终端设备,由所述终端设备将所述第一目标语音数据发送至所述第二通讯用户的终端设备。
可选地,所述耳机包括:第一耳机和至少一个第二耳机,所述第二耳机和第一耳机,分别与所述耳机收纳装置连接;所述第一耳机由第一用户使用,所述第二耳机由至少一个第二用户使用;所述源语音数据是所述第一耳机采集的第一用户的语音数据;还包含进行执行如下操作的指令:所述耳机收纳装置将所述第一目标语音数据发送至第二耳机,由所述第二耳机播放所述第一目标语音数据。
可选地,所述耳机包括至少一个,所述耳机由至少一个第一用户使用,所述耳机收纳装置包括至少一个,所述耳机收纳装置由至少一个第二用户使用;所述源语音数据是所述耳机采集的第一用户的语音数据;还包含进行执行如下操作的指令:所述耳机收纳装置播放所述的第一目标语音数据。
可选地,还包含进行执行如下操作的指令:所述耳机收纳装置采集第二用户的语音数据;对所述第二用户的语音数据进行翻译,生成第二目标语音数据;将所述第二目标语音数据发送给所述耳机,由所述耳机播放所述第二目标语音数据。
可选地,还包含进行执行如下操作的指令:将所述第一目标语音数据发送至所述耳机,由所述耳机根据所述耳机的使用情况,控制所述耳机在播放语音数据时的声道分配,所述语音数据包括源语音数据和/或第一目标语音数据。
可选地,所述对所述源语音数据进行翻译,生成第一目标语音数据,包括:对所述源语音数据进行同声传译,生成第一目标语音数据。
可选地,所述耳机收纳装置还与服务器连接,所述对所述源语音数据进行翻译,生成目标语音数据,包括:依据所述源语音数据生成翻译请求,并将所述翻译请求发送至服务器,以使所述服务器依据所述翻译请求对所述源语音数据进行翻译,生成第一目标语音数据并返回;接收所述服务器返回的第一目标语音数据。
本发明实施例包括以下优点:
本发明实施例中,耳机可以获取源语音数据,然后将所述源语音数据发送至与其连接的耳机收纳装置,由耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据;进而用户只需采用耳机设备即可以实现翻译,无需采用专用翻译设备。
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明的一种耳机侧翻译方法实施例的步骤流程图;
图2是本发明的一种耳机收纳装置侧翻译方法实施例的步骤流程图;
图3a是本发明的一种通讯场景实施例的示意图;
图3b是本发明的一种翻译方法可选实施例的步骤流程图;
图4是本发明的又一种翻译方法可选实施例的步骤流程图;
图5是本发明的又一种翻译方法可选实施例的步骤流程图;
图6a是本发明的一种一对一翻译场景实施例的示意图;
图6b是本发明的又一种翻译方法可选实施例的步骤流程图;
图7a是本发明的又一种一对一翻译场景实施例的示意图;
图7b是本发明的又一种翻译方法可选实施例的步骤流程图;
图8是本发明的又一种翻译方法可选实施例的步骤流程图;
图9是本发明的又一种翻译方法可选实施例的步骤流程图;
图10是本发明的一种耳机侧翻译装置实施例的结构框图;
图11是本发明的一种耳机侧翻译装置可选实施例的结构框图;
图12是本发明的一种耳机收纳装置侧翻译装置实施例的结构框图;
图13是本发明的一种耳机收纳装置侧翻译装置可选实施例的结构框图;
图14根据一示例性实施例示出的一种用于翻译的电子设备的结构框图。
具体实施例
为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明。
随着计算机技术和通信技术的不断发展,人们的工作、生活也逐渐趋向电子化、信息化和网络化。终端设备是实现电子化、信息化和网络化的重要载体之一,例如采用终端设备进行办公、采用终端设备进行通讯等等;进而终端设备也被普遍使用。在很多场景下,用户会在终端设备中接入耳机:如在通讯的场景下,接入耳机不仅能够更清楚的听到对端的语音,还能够解放双手;又例如,在观看视频、听音乐、直播、视频/语音通话等等,接入耳机不仅能获取到高质量的音频,还能够保护隐私,降低对他人的干扰;这使得耳机也逐渐成为用户常用常备的外部设备之一。基于此,本发明实施例可以在耳机设备中增加实现翻译功能,然后基于耳机设备实现翻译,无需用户使用专用翻译设备进行翻译。
其中,所述耳机设备包括耳机和耳机收纳装置,所述耳机收纳装置与所述耳机连接。
以下对耳机侧的翻译方法进行说明。
参照图1,示出了本发明的一种耳机侧翻译方法实施例的步骤流程图,具体可以包括如下步骤:
步骤102、所述耳机获取源语音数据。
步骤104、所述耳机将所述源语音数据发送至所述耳机收纳装置,由所述耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据。
本发明实施例中,所述源语音数据可以是耳机采集的,也可以是与耳机连接的其他设备采集的,如终端设备,本发明实施例对此不作限制。其中,所述耳机可以内置声音采集模块如麦克风阵列,以使耳机可以采集语音数据。其中,所述源语音数据可以是指未被翻译的语音数据。
本发明实施例中,可以在所述耳机设备的耳机收纳装置中增加翻译功能,进而在耳机在获取到源语音数据后,可以将源语音数据发送给耳机收纳装置;由耳机收纳装置对源语音数据进行翻译,生成第一目标语音数据。其中,耳机收纳装置的翻译过程在后续进行说明。
其中,耳机收纳装置在生成第一目标语音数据后,可以由自身播放该第一目标语音数据,也可以发送给耳机播放该第一目标语音数据;还可以将该第一目标语音数据发送给耳机后,由耳机发送给对应的终端设备;具体可以根据应用场景确定,本发明实施例 对此不作限制。
综上,本发明实施例中,耳机可以获取源语音数据,然后将所述源语音数据发送至与其连接的耳机收纳装置,由耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据;进而用户只需采用耳机设备即可以实现翻译,无需采用专用翻译设备。
以下对耳机收纳装置侧的翻译方法进行说明。
参照图2,示出了本发明的一种耳机收纳装置侧翻译方法实施例的步骤流程图,具体可以包括如下步骤:
步骤202、所述耳机收纳装置接收所述耳机发送的源语音数据。
步骤204、所述耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据。
本发明实施例中,耳机收纳装置接收到与其连接的耳机发送的源语音数据后,可以对该源语音数据进行语音识别,确定对应的语音识别文本;然后将语音识别文本翻译为目标语言的翻译文本,再将目标语言的翻译文本转换为对应的第一目标语音数据。
其中,目标语言可以是使用该耳机的用户所使用的语言,也可以与使用该耳机的用户进行语音交流的其他用户所使用的语言,具体可以按照具有应用场景确定,本发明实施例对此不作限制。
在生成第一目标语音数据后,所述耳机收纳装置可以自身播放该第一目标语音数据,也可以将所述第一目标语音数据发送至耳机;具体可以根据应用场景确定,本发明实施例对此不作限制。
综上,本发明实施例中,耳机收纳装置在获取到耳机发送的源语音数据后,可以对所述源语音数据进行翻译,生成第一目标语音数据;进而用户只需采用耳机设备即可以实现翻译,无需采用专用翻译设备。
以下将耳机和耳机收纳装置结合说明本发明实施例的翻译方法。
本发明实施例中,所述耳机在与耳机收纳装置的连接的同时,还可以与终端设备连接。对应的,本发明实施例的一种应用场景可以是:使用不同语言的用户通讯的场景,可参照图3a,图3a中仅示出了两个用户通讯的场景。其中,所述通讯可以是指拨号进行的语音通话,也可以是通过即时通讯软件进行的语音/视频通话,本发明实施例对此不作限制。
其中,参与通讯的用户可以包括至少两个,各参与通讯的用户均使用所述耳机设备,且参与通讯的用户所使用的耳机设备中的耳机分别与其使用的终端设备连接。可以将任一使用所述耳机设备的用户称为第一通讯用户,将参与通讯的其他用户称为第二通讯用户;所述第二通讯用户包括至少一个,一个第二通讯用户可以使用一个终端设备,一个终端设备对应连接一套耳机设备中的耳机。
本发明实施例中,所述耳机可以是有线耳机,也可以是无线耳机,本发明实施例对此不作限制。所述耳机与耳机收纳装置、终端设备的连接方式可以按需求确定,如若耳机是无线耳机时,所述耳机与耳机收纳装置可以通过蓝牙连接,以及所述耳机与终端设备可以通过蓝牙连接;本发明实施例对此不作限制。
本发明的一个可选实施例中,所述耳机可以是TWS(True Wireless Stereo,真无线耳机)。
以下以第一通讯用户使用的耳机设备为例,说明本发明实施例的翻译方法。
参照图3b,示出了本发明的一种翻译方法可选实施例的步骤流程图。
步骤302、所述耳机接收所述终端设备发送的语音数据,作为源语音数据;其中,所 述终端设备发送的语音数据是所述第一通讯用户通过所述终端设备与至少一个第二通讯用户通讯过程中,所述终端设备接收到的用户的语音数据。
本发明实施例中,在所述第一通讯用户通过其终端设备与至少一个第二通讯用户通讯的场景下,任意一个第二通讯用户说话的过程中(为了便于本发明实施例的后续说明,可以将通讯过程中说话的第二通讯用户称为目标第二通讯用户),目标第二通讯用户的终端设备可以采集目标第二通讯用户的语音数据。当然,也可以是目标第二通讯用户对应的耳机采集目标第二通讯用户的语音数据,并发送给目标第二通讯用户的终端设备。然后由目标第二通讯用户的耳机将目标第二通讯用户的语音数据,发送至第一通讯用户的终端设备。
对应的,第一通讯用户的终端设备可以接收到目标第二通讯用户的终端设备发送的语音数据;然后将接收到的目标第二通讯用户的语音数据,发送至第一通讯用户使用的耳机。第一通讯用户使用的耳机接收到第一通讯用户的终端设备发送的语音数据后,可以将接收的语音数据,作为源语音数据。
步骤304、所述耳机将所述源语音数据发送至所述耳机收纳装置。
本发明的一个示例中,第一通讯用户使用的耳机可以依据源语音数据,判断第一通讯用户使用的语言与目标第二通讯用户使用的语言是否相同。其中,第一通讯用户使用的耳机可以依据所述源语音数据(也就是目标第二通讯用户的语音数据),确定目标第二通讯用户使用的语言;也可以根据第一通讯用户设置的目标第二通讯用户的语言,确定目标第二通讯用户使用的语言,本发明实施例对此不作限制。以及第一通讯用户使用的耳机可以通过获取第一通讯用户设置的第一通讯用户的语言,确定第一通讯用户使用的语言;也可以根据第一通讯用户对应终端设备的系统语言,确定第一通讯用户使用的语言,本发明实施例对此不作限制。
其中,第一通讯用户可以在耳机收纳装置中设置第一通讯用户的语言和目标第二通讯用户的语言,也可以在终端设备的耳机设备对应应用程序中,设置第一通讯用户的语言和第二通讯用户的语言,本发明实施例对此不作限制。若第一通讯用户使用的语言与目标第二通讯用户使用的语言相同,则无需对该源语音数据进行翻译,直接播放该源语音数据用即可。若第一通讯用户使用的语言与目标第二通讯用户使用的语言不同,则将源语音数据发送至对应的耳机收纳装置,由耳机收纳装置对源语音数据进行翻译。
本发明的一个示例中,所述第一通讯用户的耳机也可以无需判断第一通讯用户使用的语言与目标第二通讯用户使用的语言是否相同,直接将所述源语音数据发送至所述耳机收纳装置;由耳机收纳装置进行判断第一通讯用户使用的语言与目标第二通讯用户使用的语言是否相同。
步骤306、所述耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据。
步骤308、所述耳机收纳装置将所述第一目标语音数据发送至所述耳机。
本发明的一个示例中,当所述耳机已确定第一通讯用户使用的语言与目标第二通讯用户使用的语言不同时,所述耳机收纳装置可以对获取的源语音数据进行语音识别,确定对应的语音识别文本;然后将语音识别文本,翻译为第一通讯用户所使用的语言对应的翻译文本,再将该翻译文本转换为对应的第一目标语音数据并返回给第一通讯用户的耳机。其中,当用户是在终端设备的耳机设备对应应用程序中,设置的第一通讯用户的语言时,可以由耳机将第一通讯用户设置的第一通讯用户的语言发送至耳机收纳装置。以及当用户未设置其所使用的语言,可以由耳机将第一通讯用户对应终端设备的系统语 言,发送至耳机收纳装置。
本发明又一示例中,当所述耳机未判断第一通讯用户使用的语言与目标第二通讯用户使用的语言是否相同时;耳机收纳装置在接收到源语音数据后,可以依据所述源语音数据判断第一通讯用户使用的语言与目标第二通讯用户使用的语言是否相同。当第一通讯用户使用的语言与目标第二通讯用户使用的语言相同时,可以将源语音数据返回给第一通讯用户的耳机,第一通讯用户的耳机可以直接播放该源语音数据。当确定第一通讯用户使用的语言与目标第二通讯用户使用的语言不相同时,耳机收纳装置可以执行步骤306,生成第一目标语音数据。
步骤310、所述耳机播放所述第一目标语音数据。
然后第一通讯用户的耳机可以对所述第一目标语音数据进行播放。进而参与通讯的用户中,每个用户的耳机设备可以将参与通讯用户的语音数据进行翻译,生成本身所使用语言的语音数据并播放;从而实现使用不同语言用户在通讯过程中的跨语言沟通。
当然,本发明的一个可选实施例中,所述耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据后,也可以播放所述第一目标语音数据;进而无需将第一目标语音数据返回给耳机,提高了播放语音数据的效率,且还能够实现将翻译后的语音数据进行声音外放。
综上,本发明实施例中,在第一通讯用户通过所述终端设备与至少一个第二通讯用户通讯过程中,所述第一通讯用户的耳机可以将由第一通讯用户的终端设备发送的第二通讯用户的语音数据,作为源语音数据;然后将所述源语音数据发送至耳机收纳装置,由耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据并返回给第一通讯用户的耳机;再由第一通讯用户的耳机对第一目标语音数据进行播放,从而实现使用不同语言用户通讯过程中的跨语言沟通。此外,相对于现有技术在通讯过程中,需要开启功放后采用专用的翻译设备进行翻译而言,本发明实施例在通讯过程中无需开启功放,即可完成翻译;不仅可以保护隐私,还可以提高翻译的准确性。
可参照图3a的通讯场景,本发明实施例的又一种翻译方法如下。
以下以第一通讯用户使用的耳机为例,说明本发明实施例的翻译方法。
参照图4,示出了本发明的又一种翻译方法可选实施例的步骤流程图。
步骤402、所述耳机采集所述第一通讯用户的语音数据,作为源语音数据。
本发明实施例中,在所述第一通讯用户通过其终端设备与至少一个第二通讯用户通讯的场景下,第一通讯用户说话过程中,第一通讯用户的耳机可以采集的第一通讯用户的语音数据;并将采集到的第一通讯用户的语音数据作为源语音数据。
步骤404、所述耳机将所述源语音数据发送至所述耳机收纳装置。
本发明的一个示例中,当第一通讯用户使用的语言与各第二通讯用户使用的语言相同时,所述耳机可以直接将所述源语音数据发送至第一通讯用户的终端设备;由第一通讯用户的终端设备将所述源语音数据发送至各第二通讯用户的终端设备,再由各第二通讯用户的终端设备将源语音数据发送至各第二通讯用户使用的耳机,由各第二通讯用户使用的耳机播放源语音数据。当第一通讯用户的语言与至少一个第二通讯用户所使用的语言不相同时,所述耳机可以执行步骤404。其中,第一通讯用户使用的耳机判断第一通讯用户使用的语言和各第二通讯用户使用的语言是否相同的方式与上述类似,在此不再赘述。
本发明的另一个示例中,所述第一通讯用户的耳机可以无需判断第一通讯用户使用 的语言与各第二通讯用户使用的语言是否相同,直接将所述源语音数据发送至所述耳机收纳装置;由耳机收纳装置进行判断第一通讯用户使用的语言与第二通讯用户使用的语言是否相同。
步骤406、所述耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据。
步骤408、所述耳机收纳装置将所述第一目标语音数据返回至所述耳机。
本发明的一个示例中,当所述第一通讯用户的耳机已确定第一通讯用户使用的语言与至少一个第二通讯用户使用的语言不同时,所述耳机收纳装置可以对该源语音数据进行语音识别,确定对应的语音识别文本;然后将语音识别文本,翻译为第二通讯用户所使用的语言对应的翻译文本,再将该翻译文本转换为对应的第一目标语音数据并返回给耳机。
本发明又一示例中,当所述第一通讯用户的耳机未判断第一通讯用户使用的语言与第二通讯用户使用的语言是否相同时;耳机收纳装置在接收到源语音数据后,可以依据所述源语音数据,判断第一通讯用户使用的语言与各第二通讯用户使用的语言是否相同。当第一通讯用户使用的语言与各第二通讯用户使用的语言相同时,可以将源语音数据返回给第一通讯用户的耳机,第一通讯用户的耳机可以直接将源语音数据发送至第一通讯用户的终端设备。当第一通讯用户使用的语言与至少一个第二通讯用户使用的语言不相同时,所述耳机收纳装置可以执行步骤406,生成第一目标语音数据并返回给耳机。
其中,当参与通讯的用户包括多个,且与第一通讯用户使用的语言不同的第二通讯用户包括多个时,耳机收纳装置可以分别对源语音数据进行翻译,生成与第一通讯用户使用语言不同的各第二通讯用户所使用的语言对应的第一目标语音数据;再将各第一目标语音数据发送至第一通讯用户的耳机。
步骤410、所述耳机将所述第一目标语音数据发送至所述终端设备,以由所述终端设备将所述第一目标语音数据发送至所述第二通讯用户的终端设备。
第一通讯用户使用的耳机在得到第一目标语音数据后,可以将所述第一目标语音数据发送至第一通讯用户的终端设备。然后由第一通讯用户的终端设备,将所述第一目标语音数据发送至第二通讯用户的终端设备。进而第二通讯用户的终端设备可以将第一目标语音数据发送至第二通讯用户的耳机,由第二通讯用户的耳机对所述第一目标语音数据进行播放,从而实现通讯过程中的无障碍沟通。
其中,当第一通讯用户的耳机收纳装置将源语音数据翻译成了多个第一目标语音数据时,第一通讯用户的终端设备可以依次将第一目标语音数据发送至各第二通讯用户的终端设备;然后各第二通讯用户的终端设备依次将各第一目标语音数据,发送至对应的第二通讯用户使用的耳机,由第二通讯用户使用的耳机依次对各第一目标语音数据进行播放。进而参与通讯的各第二通讯用户可以从依次播放的多个第一目标语音数据中,获取到所能听懂的第一目标语音数据。当然,也可以是由各第二通讯用户使用的耳机从接收到的多个第一目标语音数据中,选取与对应第二通讯用户使用语言匹配的第一目标语音数据进行播放。
当然,当第一通讯用户的耳机收纳装置将源语音数据翻译成了多个第一目标语音数据时,第一通讯用户的终端设备也可以将各第一目标语音数据,分别发送至对应的第二通讯用户的终端设备;然后第二通讯用户的终端设备将接收到的第一目标语音数据,发送至对应的第二通讯用户使用的耳机,由第二通讯用户使用的耳机对接收到的第一目标语音数据进行播放。
此外,当多个第二通讯用户中存在与第一通讯用户使用语言相同的第二通讯用户时,第一通讯用户的耳机还可以将源语音数据发送至第一通讯用户对应的终端设备;由第一通讯用户对应的终端设备将源语音数据,发送与第一通讯用户使用语言相同的第二通讯用户的终端设备。
综上,本发明实施例中,所述耳机可以获取所述第一通讯用户的语音数据,作为源语音数据,并将所述源语音数据发送至耳机收纳装置;由所述耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据再返回给所述耳机,然后由所述耳机将所述第一目标语音数据发送至所述终端设备;第一通讯用户的终端设备再将所述第一目标语音数据发送至所述第二通讯用户的终端设备,第二通讯用户的终端设备将所述第一目标语音数据发送至第二通讯用户的耳机,由第二通讯用户的耳机播放所述第一目标语音数据;进而实现使用不同语言用户通讯过程中的跨语言沟通。此外,相对于现有技术在通讯过程中,需要开启功放后采用专用的翻译设备进行翻译而言,本发明实施例在通讯过程中无需开启功放,即可完成翻译;不仅可以保护隐私,还可以提高翻译的准确性。
本发明的一个实施例中,参与通讯的用户中可以仅存在部分用户使用所述耳机设备;然后结合上述步骤302-步骤310,与上述步骤402-步骤410,实现使用不同语言用户通讯过程中的跨语言沟通。其中,可以将任一使用所述耳机设备的用户称为第一通讯用户,将参与通讯的其他用户称为第二通讯用户。
参照图5、示出了本发明的又一个翻译方法可选实施例的步骤流程图。
步骤502、所述耳机接收所述终端设备发送的语音数据,作为源语音数据;其中,所述源语音数据是所述第一通讯用户通过所述终端设备与至少一个第二通讯用户通讯的过程中,所述终端设备接收到的第二通讯用户的语音数据。
步骤504、所述耳机将所述源语音数据发送至所述耳机收纳装置。
步骤506、所述耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据。
步骤508、所述耳机收纳装置将所述第一目标语音数据发送至所述耳机。
步骤510、所述耳机播放所述第一目标语音数据。
步骤512、所述耳机采集所述第一通讯用户的语音数据,作为源语音数据。
步骤514、所述耳机将所述源语音数据发送至所述耳机收纳装置。
步骤516、所述耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据。
步骤518、所述耳机收纳装置将所述第一目标语音数据返回至所述耳机。
步骤520、所述耳机将所述第一目标语音数据发送至所述终端设备,以由所述终端设备将所述目标语音数据发送至所述第二通讯用户的终端设备。
其中,步骤502-步骤510,与上述步骤302-步骤310类似,步骤512-步骤520,与上述步骤402-步骤410类似,在此不再赘述。
此外,本发明实施例不限制先执行步骤502-步骤510,还是先执行步骤512-步骤520。
综上,本发明实施例中,在所述第一通讯用户通过所述终端设备与第二通讯用户通讯过程中,可以由耳机将由第一通讯用户的终端设备发送的第二通讯用户的语音数据,作为源语音数据并发送至耳机收纳装置,由耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据并返回给所述耳机进行播放;以及可以由耳机获取所述第一通讯用户的语音数据,作为源语音数据并发送至耳机收纳装置,由耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据并返回给所述耳机;然后耳机将所述第一目标语音数据发送至第一通讯用户的终端设备,由第一通讯用户的终端设备将所述第一目标 语音数据发送至所述第二通讯用户的终端设备。其中,可以由至少一个第二通讯用户的终端设备播放所述第一目标语音数据,也可以是第二通讯用户的终端设备将所述第一目标语音数据发送至第二通讯用户的耳机,由第二通讯用户的耳机播放所述第一目标语音数据;还可以由第二通讯用户的耳机将所述第一目标语音数据发送至对应耳机收纳装置中,由第二通讯用户对应的耳机收纳装置播放第一目标语音数据;本发明实施例对此不作限制。进而即使在参与通讯的用户中存在部分用户未使用耳机设备,也能够实现使用不同语言用户通讯过程中的跨语言沟通。
本发明实施例的又一个场景可以是:多人翻译(包括一对一翻译);可参照图6a,图6a中仅示出了一对一翻译的场景。其中,所述耳机可以包括多个,其中,可以将其中的一个耳机称为第一耳机,其他的耳机称为第二耳机,所述第一耳机包括一个,所述第二耳机可以包括至少一个。即所述耳机可以包括:第一耳机和至少一个第二耳机,所述第一耳机和第二耳机分别与所述耳机收纳装置连接。所述第一耳机由第一用户使用,所述第二耳机由至少一个第二用户使用,一个第二用户可以使用一个第二耳机;进而可以通过第一耳机和第二耳机,实现面对面语音交流过程中的翻译。
当第二耳机为一个时,第一耳机和第二耳机可以是同一对耳机,也可以是不同对耳机。
其中,第一耳机、第二耳机与耳机收纳装置连接的方式可以包括多种,例如在终端设备的耳机设备对应应用程序中执行触控操作,连接第一耳机与耳机收纳装置,以及连接第二耳机与耳机收纳装置。也可以在耳机收纳装置中执行触控操作,连接第一耳机与耳机收纳装置,以及连接第二耳机与耳机收纳装置。还可以是发出语音连接指令,连接第一耳机与耳机收纳装置,以及连接第二耳机与耳机收纳装置,等等;本发明实施例对此不作限制。
参照图6b,示出了本发明的又一种翻译方法可选实施例的步骤流程图。
步骤602、所述第一耳机采集所述第一用户的语音数据,作为源语音数据。
步骤604、所述第一耳机将所述源语音数据发送至所述耳机收纳装置。
步骤606、所述耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据。
步骤608、所述耳机收纳装置将所述第一目标语音数据发送至第二耳机。
步骤610、所述第二耳机播放所述第一目标语音数据。
本发明实施例中,在第一用户和至少一个第二用户面对面语音交流的场景中,第一用户发言的过程中,第一耳机可以采集第一用户的语音数据,并将第一用户的语音数据作为源语音数据。
然后第一耳机可以将所述源语音数据发送至耳机收纳装置;耳机收纳装置接收到该源语音数据后,可以对该源语音数据进行语音识别,确定对应的语音识别文本;然后将语音识别文本翻译为第二用户对应语言的翻译文本,并将该翻译文本转换为对应的第一目标语音数据。再将所述第一目标语音数据发送至第二用户使用的第二耳机,由所述第二耳机播放所述第一目标语音数据。
其中,当第二用户包括多个时,耳机收纳装置可以将源语音数据翻译为多个第二用户所使用语言匹配的第一目标语音数据;此时,耳机收纳装置可以依次将第一目标语音数据发送至各第二用户的第二耳机;由各第二用户的第二耳机依次对各第一目标语音数据进行播放。进而面对面交流的各第二用户可以从依次播放的多个第一目标语音数据中,获取到所能听懂的第一目标语音数据。当然,也可以是由各第二用户使用的第二耳机从 接收到的多个第一目标语音数据中,选取与对应第二用户使用语言匹配的第一目标语音数据进行播放。
当然,当第二用户包括多个时,耳机收纳装置可以将源语音数据翻译为多个第二用户所使用语言匹配的第一目标语音数据;此时,耳机收纳装置也可以将各第一目标语音数据,分别发送至对应第二用户的第二耳机;然后各第二耳机可以对接收到的第一目标语音数据进行播放。
此外,当多个第二用户中存在与第一用户使用语言相同的第二用户时,耳机收纳装置还可以将源语音数据,发送至与第一用户使用语言相同的第二用户的第二耳机。与第一用户使用语言相同的第二用户的第二耳机直接播放源语音数据即可。
步骤612、所述第二耳机采集所述第二用户的语音数据,作为源语音数据。
步骤614、所述第二耳机将所述源语音数据发送至所述耳机收纳装置。
步骤616、所述耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据。
步骤618、所述耳机收纳装置将所述第一目标语音数据发送至第一耳机。
步骤620、所述第一耳机播放所述第一目标语音数据。
对应的,在第一用户和至少一个第二用户面对面语音交流的场景下,任意一个第二用户发言的过程中(为了便于本发明实施例后续说明,可以将发言的第二用户称为目标第二用户,目标第二用户对应的第二耳机可以称为目标第二耳机),目标第二耳机可以采集目标第二用户的语音数据,并将目标第二用户的语音数据作为源语音数据。
然后目标第二耳机可以将所述源语音数据发送至耳机收纳装置;耳机收纳装置接收到该源语音数据后,可以对该源语音数据进行语音识别,确定对应的语音识别文本;然后将语音识别文本翻译为第一用户对应语言的翻译文本,并将该翻译文本转换为对应的第一目标语音数据。再将所述第一目标语音数据发送至第一用户使用的第一耳机,由所述第一耳机播放所述第一目标语音数据。
当第二用户包括多个时,耳机收纳装置还可以将语音识别文本翻译为其他第二用户对应语言的翻译文本,并将该翻译文本转换为对应的第一目标语音数据;然后将所述第一目标语音数据发送至对应的其他第二用户使用的其他第二耳机,由其他第二耳机播放对应的第一目标语音数据。
当然,当耳机收纳装置生成了多个第一目标语音数据时,可以依次将第一目标语音数据发送至各其他第二用户的其他第二耳机,以及第一用户的第一耳机;由其他第二用户的其他第二耳机以及第一用户的第一耳机,依次对各第一目标语音数据进行播放。进而面对面交流的各其他第二用户和第一用户可以从依次播放的多个第一目标语音数据中,获取到所能听懂的第一目标语音数据。当然,也可以是由各其他第二用户使用的其他第二耳机从接收到的多个第一目标语音数据中,选取与对应第二用户使用语言匹配的第一目标语音数据进行播放。以及由第一用户的第一耳机,从接收到的多个第一目标语音数据中,选取与第一用户使用语言匹配的第一目标语音数据进行播放。
此外,当耳机收纳装置将源语音数据翻译成了多个第一目标语音数据时,耳机收纳装置也可以将各第一目标语音数据分别发送至对应的第二耳机/第一耳机;然后第二耳机/第一耳机可以接收到的第一目标语音数据并播放。
此外,当多个第二用户中存在与目标第二用户使用语言相同的其他第二用户时,耳机收纳装置还可以将源语音数据,发送至与目标第二用户使用语言相同的其他第二用户的其他第二耳机。与目标第二用户使用语言相同的其他第二用户的其他第二耳机直接播 放源语音数据即可。
其中,本发明实施例不限制先执行步骤602-步骤610,还是先执行步骤612-步骤620。
综上,本发明实施例中,在第一用户与至少一个第二用户面对面语音交流的场景下,在第一用户发言的过程中,所述第一耳机采集所述第一用户的语音数据,作为源语音数据并将所述源语音数据发送至耳机收纳装置,由耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据并发送至所述第二耳机,由所述第二耳机播放所述第一目标语音数据。对应的,在第二用户说话的过程中,所述第二耳机可以采集所述第二用户的语音数据,作为源语音数据并将所述源语音数据发送至耳机收纳装置,由耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据并发送至所述第一耳机,由所述第一耳机播放所述第一目标语音数据。进而本发明实施例可以基于耳机快速的实现多人翻译,无需交流各方不断的交换翻译设备查看翻译设备中针对对方的翻译结果,不仅能够提高翻译效率,且还能够提高用户体验。
本发明的一个实施例中,所述耳机由第一用户使用,所述耳机收纳装置由第二用户使用,进而通过耳机和耳机收纳装置实现翻译;可参照图7a,图7a仅示出了一对一翻译的场景。其中,所述耳机可以包括至少一个,所述耳机收纳装置可以包括至少一个,一个第一用户可以使用一个耳机,一个第二用户可以使用一个耳机收纳装置。
参照图7b、示出了本发明的又一种翻译方法实施例的步骤流程图。
步骤702、所述耳机采集所述第一用户的语音数据,作为源语音数据。
步骤704、所述耳机将所述源语音数据发送至所述耳机收纳装置。
步骤706、所述耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据。
步骤708、所述耳机收纳装置播放所述第一目标语音数据。
本发明实施例中,在多个用户(包括至少一个第一用户和至少一个第二用户)面对面语音交流的场景中,任意一个第一用户发言的过程中(为了便于本发明实施例的后续说明,后续将发言的第一用户称为目标第一用户,目标第一用户使用的耳机称为目标耳机),目标耳机可以采集目标第一用户的语音数据,并将目标第一用户的语音数据作为源语音数据。然后目标耳机可以将获取的源语音数据发送至各耳机收纳装置。
各耳机收纳装置可以对所述源语言数据进行语音识别,确定对应的语音识别文本;然后将语音识别文本翻译为使用该耳机收纳装置对应第二用户所使用语言的翻译文本,并将该翻译文本转换为对应的第一目标语音数据并播放。
当多个第二用户中存在与目标第一用户使用语言相同的用户时,与目标第一用户使用语言相同的第二用户的耳机收纳装置直接播放所述源语音数据即可。
其中,当第一用户包括多个时,任意一个耳机收纳装置还可以将源语音数据,翻译成其他第一用户所使用语言对应的多个第一目标语音数据;为了便于后续说明,可以将该耳机收纳装置称为目标耳机收纳装置。此时,目标耳机收纳装置可以依次将第一目标语音数据发送至各其他第一用户使用的其他耳机;由各其他第一用户的其他耳机依次对各第一目标语音数据进行播放。进而面对面交流的各其他第一用户可以从依次播放的多个第一目标语音数据中,获取到所能听懂的第一目标语音数据。当然,也可以是由各其他第一用户使用的其他耳机从接收到的多个第一目标语音数据中,选取与对应第一用户使用语言匹配的第一目标语音数据进行播放。
当然,当第一用户包括多个时,目标耳机收纳装置将源语音数据,翻译成各其他第一用户所使用语言对应的多个第一目标语音数据后,目标耳机收纳装置也可以将各第一 目标语音数据,分别发送至对应其他第一用户的其他耳机;其他第一用户的耳机可以接收到的第一目标语音数据并播放。
当其他第一用户中存在与目标第一用户用语言相同的用户时,目标耳机收纳装置还可以将源语音数据,发送至与目标第一用户使用语言相同的其他第一用户的其他耳机。与第一用户使用语言相同的其他第一用户的其他耳机可以直接播放源语音数据即可。
本发明的一个示例中,所述耳机收纳装置可以设置有显示屏。进而所述耳机收纳装置在播放所述第一目标语音数据的同时,还可以在显示屏中同步展示源语音数据的翻译文本,也就是与第一目标语音数据对应的文本;进而便于第二用户对第一目标语音数据的理解,进一步提高用户体验。
此外,所述耳机收纳装置还具有收纳功能,可以收到所述耳机。当所述耳机为无线耳机时,所述耳机收纳装置还可以为所述耳机充电。
步骤710、所述耳机收纳装置采集第二用户的语音数据。
步骤712、所述耳机收纳装置对所述第二用户的语音数据进行翻译,生成第二目标语音数据。
步骤714、所述耳机收纳装置将所述第二目标语音数据发送给所述耳机。
步骤716、所述耳机接收所述耳机收纳装置发送的第二目标语音数据。
步骤718、所述耳机播放所述第二目标语音数据。
在第一用户和至少一个第二用户面对面语音交流的场景下,任意一个第二用户发言的过程中(为了便于本发明实施例的后续说明,可以将发言的第二用户称为目标第二用户,目标第二用户对应的耳机收纳装置可以称为目标耳机收纳装置),所述目标耳机收纳装置可以采集目标第二用户的语音数据,并将目标第二用户的语音数据作为源语音数据。
然后所述目标耳机收纳装置可以对获取的源语音数据进行语音识别,确定对应的语音识别文本;然后将语音识别文本翻译为第一用户对应语言的翻译文本,再将该翻译文本转换为对应的第二目标语音数据。再将所述第二目标语音数据发送至第一用户使用的耳机,由所述耳机播放所述第二目标语音数据;进而使用耳机的第一用户可以听到第二用户的源语音数据的翻译结果
当所述第一用户包括多个时,目标耳机收纳装置可以将源语音数据,翻译为各第一用户所使用语言对应的第二目标语音数据。然后可以依次将第二目标语音数据发送至各第一用户使用的耳机;由各第一用户的耳机依次对各第二目标语音数据进行播放。进而面对面交流的各第一用户可以从依次播放的多个第二目标语音数据中,获取到所能听懂的第二目标语音数据。当然,也可以是由各第一用户使用的耳机从接收到的多个第二目标语音数据中,选取与对应第一用户使用语言匹配的第二目标语音数据进行播放。
当然,当第一用户包括多个时,目标耳机收纳装置将源语音数据,翻译成各第一用户所使用语言对应的多个第二目标语音数据后,目标耳机收纳装置也可以将各第二目标语音数据,分别发送至对应的第一用户的耳机;第一用户的耳机可以接收到的第二目标语音数据并播放。
当多个第一用户中存在与目标第二用户用语言相同的用户时,目标第二用户的目标耳机收纳装置还可以将源语音数据,发送至与目标第二用户使用语言相同的第一用户的耳机。与目标第二用户使用语言相同的第一用户的耳机可以直接播放源语音数据即可。
当第二用户包括多个时,目标耳机收纳装置还可以将源语音数据翻译为其他第二用 户所使用语言对应的第二目标语音数据;然后将各第二目标语音数据,发送至对应的其他第二用户的耳机收纳装置中,由各其他第二用户的耳机收纳装置对对应的目标语音数据进行播放。
其中,当目标耳机收纳装置生成了多个其他第二用户所使用语言对应的第二目标语音数据时,可以依次将第二目标语音数据发送至各其他第二用户的其他耳机收纳装置;由其他第二用户的其他耳机收纳装置,可以依次对各目标语音数据进行播放。进而面对面交流的各其他第二用户可以从依次播放的多个目标语音数据中,获取到所能听懂的目标语音数据。当然,也可以是由各其他第二用户使用的耳机收纳装置从接收到的多个第二目标语音数据中,选取与对应第二用户使用语言匹配的第二目标语音数据进行播放。
当然,第二用户包括多个时,目标耳机收纳装置还可以直接将源语言数据发送至其他第二用户的耳机收纳盒;由其他第二用户的耳机收纳盒将源语音数据,翻译为其对应的其他第二用户所使用语言对应的第二目标语音数据并播放。
此外,当其他第二用户中存在与目标第二用户使用语言相同的用户时,目标第二用户的目标耳机收纳装置还可以将源语音数据,发送至与目标第二用户使用语言相同的其他第二用户的耳机收纳装置。与目标第二用户使用语言相同的其他第二用户的耳机收纳装置可以直接播放源语音数据即可。
其中,本发明实施例不限制先执行步骤702-步骤708,还是先执行步骤710-步骤718。
综上,本发明实施例中,在第一用户和至少一个第二用户面对面语音交流场景下,在第一用户发言的过程中,所述第一用户的耳机采集所述第一用户的语音数据,作为源语音数据并发送至耳机收纳装置,由耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据并播放;进而使用耳机收纳装置的第二用户可以听到第一用户的源语音数据的翻译结果。对应的,在第二用户发言的过程中,所述耳机收纳装置可以采集所述第二用户的语音数据并进行翻译,生成第二目标语音数据;然后将所述第二目标语音数据发送至所述第一用户使用的耳机,由所述第一用户使用的耳机播放所述第二目标语音数据;进而使用耳机的第一用户可以听到第二用户的源语音数据的翻译结果。从而本发明实施例可以基于耳机和与耳机连接的耳机收纳装置快速的实现的翻译,无需交流各方不断的交换翻译设备查看翻译设备中针对对方的翻译结果,不仅可以提高翻译效率,还能够提高用户体验。此外,相对于使用一对耳机中的两个耳机进行一对一翻译而言,本发明实施例还可以避免双方交流过程中对卫生的顾虑,进一步提高用户体验。
本发明实施例中,所述耳机可以进行同声传译,以实时的对源语音数据进行翻译,提高用户体验。
参照图8,示出了本发明的又一种翻译方法实施例的步骤流程图。
步骤802、所述耳机获取源语音数据。
步骤804、所述耳机将所述源语音数据发送至所述耳机收纳装置。
步骤806、所述耳机收纳装置第一对所述源语音数据进行同声传译,生成第一目标语音数据。
本发明实施例中,无论是在上述通讯场景中,还是多人翻译场景中,所述耳机在获取源语音数据后,均可以对将所述源语音数据发送给耳机收纳装置进行同声传译,生成第一目标语音数据;以提高翻译的效率和沟通的流畅性。
当然,在其他场景中,所述耳机设备也可以进行同声传译。例如线上会议、线上采访/面试,观看外媒演讲、新闻、外媒影视等场景,耳机将终端设备发送的源语音数据发 送至耳机收纳装置,耳机收纳装置可以对终端设备发送的源语音数据进行同声传译,生成第一目标语音数据然后返回给耳机进行播放。又例如,参加国际会议/论坛时,耳机收纳装置自身可以采集源语音数据并进行同声传译,生成第一目标语音数据并返回给耳机进行播放。
综上,本发明实施例中,所述耳机获取源语音数据后,可以将所述源语音数据发送至所述耳机收纳装置,由耳机收纳装置对所述源语音数据进行同声传译,生成第一目标语音数据;进而能够实时的对源语音数据进行翻译,提高了翻译效率。耳机获取的源语音数据由终端设备发送的或耳机采集的,源语音数据的噪音小,能够提高同声传译的准确性,进一步提高用户体验。此外,在同声传译过程中,无论是耳机是与耳机收纳装置连接,还是与终端设备连接;相对于现有技术而言,本发明实施例能够实现更远距离的同声传译。
本发明的一个可选实施例中,所述耳机收纳装置还可以具备联网功能,进而耳机收纳装置可以通过服务器对源语音数据进行翻译,得到第一目标语音数据。
参照图9,示出了本发明的由一种翻译方法实施例的步骤流程图。
步骤902、所述耳机获取源语音数据。
步骤904、所述耳机将所述源语音数据发送至所述耳机收纳装置。
步骤906、所述耳机收纳装置依据所述源语音数据生成翻译请求,并将所述翻译请求发送至服务器,以使所述服务器依据所述翻译请求对所述源语音数据进行翻译,生成第一目标语音数据并返回。
步骤908、所述耳机收纳装置接收所述服务器返回的第一目标语音数据。
所述耳机可以包括组成一对的两个耳机。不同用户对耳机的使用习惯不同,例如有些用户习惯使用一对耳机中的一个,而有些用户习惯同时使用一对耳机。且同一用户在不同场景下对耳机的使用习惯也不同,例如在跑步时,习惯同时使用一对耳机;在语音通话时,习惯使用其中的一个耳机。对应的,所述耳机播放语音数据的一种方式可以是:所述耳机根据所述耳机的使用情况,控制所述耳机在播放语音数据时的声道分配,所述语音数据包括源语音数据和/或第一目标语音数据。进而能够根据用户使用耳机的情况,合理的分配耳机的声道,提高用户体验。
本发明的一个示例中,一种所述耳机根据所述耳机的使用情况,控制所述耳机在播放语音数据时的声道分配的方式可以是:当两个耳机均被使用时,两个耳机分别播放所述源语音数据和第一目标语音数据。其中,两个耳机中的源语音数据和第一目标语音数据可以是同步播放的。例如,可以在左耳对应使用的一个耳机中播放源语音数据,在右耳对应使用的一个耳机中播放第一目标语音数据。又例如,可以在右耳对应使用的一个耳机中播放源语音数据,在左耳对应使用的一个耳机中播放第一目标语音数据;本发明实施例对此不作限制。
由于不同用户用于听母语的耳朵不同,例如有些用户习惯采用右耳听母语,左耳听外语;而有些用户习惯采用左耳听母语,右耳听外语。因此为了更好的满足用户个性化需求,本发明实施例的耳机支持用户对两个耳机中播放的语音数据的种类进行切换。其中,用户可以针对耳机/耳机收纳装置执行切换操作,也可以在终端设备的与所述耳机设备对应的应用程序中执行切换操作;对应的,所述耳机接收用户的切换指令,切换两个耳机中播放的语音数据的种类。例如,若当前是在右耳对应使用的一个耳机中播放源语音数据,在左耳对应使用的一个耳机中播放第一目标语音数据;则在接收到切换指令后, 可以在左耳对应使用的一个耳机中播放源语音数据,以及在右耳对应使用的一个耳机中播放第一目标语音数据。其中,所述针对耳机/耳机收纳装置的切换操作可以是触控操作;也可以是用户发出的语音指令;还可以是用户使用耳机时头部的动作或用户针对耳机收纳装置的动作,本发明实施例对此不作限制。
本发明的一个实施例中,用户还可以针对所述耳机/耳机收纳装置执行音量调节操作,也可以在终端设备中执行音量调节操作,以调节耳机的播放音量。对应的,所述耳机可以接收用户的音量调节指令,调节所述音乐调节指令对应耳机的音量;进而可以分别对每个耳机的音量进行调节。其中,所述针对耳机/耳机收纳装置的音量调节操作可以是触控操作;也可以是用户发出的语音指令;还可以是用户使用耳机时头部的动作或用户针对耳机收纳装置的动作,本发明实施例对此不作限制。
本发明的一个实施例中,所述耳机可以接收用户的音量调节指令,调节两个耳机的音量;进而同时调节两个耳机的音量。
此外,有些用户可能不习惯两个耳机中播放不同语言的语音数据;对应的,所述耳机还可以提供种类选取的功能,用户可以针对耳机/耳机收纳装置执行种类选取操作,也可以在终端设备中与所述耳机对应的应用程序中执行切换操作,使两个耳机中播放同一语言的语音数据。待用户执行种类选取操作后,所述耳机接收用户的种类选取指令,所述两个耳机均播放所述第一目标语音数据或均播放源语音数据。其中,所述针对耳机/耳机收纳装置的种类选取操作可以是触控操作;也可以是用户发出的语音指令;还可以是用户使用耳机时头部的动作或用户针对耳机收纳装置的动作,本发明实施例对此不作限制。
本发明的另一个示例中,另一种所述耳机根据所述耳机的使用情况,控制所述耳机在播放语音数据时的声道分配的方式可以是:当其中一个耳机被使用时,被使用的耳机播放所述源语音数据和第一目标语音数据的混音。其中,可以将源语音数据和第一目标语音数据进行混音后,在所述耳机中播放该混音。后续用户可以调节混音中源语音数据和第一目标语音数据的音量,以及混音的整体音量,以更的满足用户个性化需求,提高用户体验。
需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明实施例所必须的。
本发明实施例还提供了一种翻译装置,应用于耳机中。
参照图10,示出了本发明的一种耳机侧翻译装置实施例的结构框图,具体可以包括如下模块:
获取模块1002,用于获取源语音数据;
第一发送模块1004,用于将所述源语音数据发送至所述耳机收纳装置,由所述耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据。
参照图11,示出了本发明的一种耳机侧翻译装置可选实施例的结构框图。
本发明一个可选的实施例中,所述耳机还与终端设备连接,所述耳机由所述终端设备对应的第一通讯用户使用;
所述获取模块1002,包括:语音数据接收子模块10022,用于接收所述终端设备发 送的语音数据,作为源语音数据;其中,所述终端设备发送的语音数据是所述第一通讯用户通过所述终端设备与至少一个第二通讯用户通讯过程中,所述终端设备接收到的第二通讯用户的语音数据;
所述的装置还包括:第一播放模块1006,用于接收所述耳机收纳装置发送的第一目标语音数据,并播放所述第一目标语音数据。
本发明一个可选的实施例中,所述耳机还与终端设备连接,所述耳机由所述终端设备对应的第一通讯用户使用;所述获取模块1002,包括:第一语音数据采集子模块10024,用于在所述第一通讯用户通过所述终端设备与至少一个第二通讯用户通讯的过程中,采集所述第一通讯用户的语音数据,作为源语音数据;所述的装置还包括:第一接收模块1008,用于接收所述耳机收纳装置发送的第一目标语音数据;第二发送模块1010,用于将所述第一目标语音数据发送至所述终端设备,以使所述终端设备将所述第一目标语音数据发送至所述第二通讯用户的终端设备。
本发明一个可选的实施例中,所述耳机包括:第一耳机和至少一个第二耳机,所述第二耳机和第一耳机,分别与所述耳机收纳装置连接;所述第一耳机由第一用户使用,所述第二耳机由至少一个第二用户使用;所述获取模块1002,包括:第二语音数据采集子模块10026,用于采集所述第一用户的语音数据,作为源语音数据;所述第一发送模块1004,用于调用所述第一耳机将所述源语音数据发送至所述耳机收纳装置,由所述耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据并发送至所述第二耳机;所述的装置还包括:第二播放模块1012,用于调用所述第二耳机接收所述耳机收纳装置发送的第一目标语音数据,并播放所述第一目标语音数据。
本发明一个可选的实施例中,所述耳机包括至少一个,所述耳机由至少一个第一用户使用,所述耳机收纳装置包括至少一个,所述耳机收纳装置由至少一个第二用户使用;所述获取模块1002,包括:第三语音数据采集子模块10028,用于采集所述第一用户的语音数据,作为源语音数据;其中,所述第一目标语音数据由所述耳机收纳装置播放。
本发明一个可选的实施例中,所述的装置还包括:第二接收模块1014,用于接收所述耳机收纳装置发送的第二目标语音数据,所述第二目标语音数据是所述耳机收纳装置针对其采集的第二用户的语音数据进行翻译后生成的;第三播放模块1016,用于播放所述第二目标语音数据。
本发明一个可选的实施例中,所述耳机包括两个,所述的装置还包括:第三接收模块1018,用于接收所述耳机收纳装置发送的第一目标语音数据;分配模块1020,用于根据所述耳机的使用情况,控制所述耳机在播放语音数据时的声道分配,所述语音数据包括源语音数据和/或第一目标语音数据。
本发明一个可选的实施例中,所述分配模块1020,包括:第一声道分配子模块10202,用于当两个耳机均被使用时,两个耳机分别播放所述源语音数据和第一目标语音数据。
本发明一个可选的实施例中,所述的装置还包括:切换模块1022,用于接收用户的切换指令,切换所述两个耳机中播放的语音数据的种类;调节模块1024,用于接收用户的音量调节指令,调节所述音乐调节操作对应耳机的音量;或选取模块1026,用于接收用户的种类选取指令,所述两个耳机均播放所述第一目标语音数据或均播放源语音数据。
本发明一个可选的实施例中,所述分配模块1020,包括:第二分配子模块10204,用于当其中一个耳机被使用时,被使用的耳机播放所述源语音数据和第一目标语音数据的混音。
综上,本发明实施例中,耳机可以获取源语音数据,然后将所述源语音数据发送至与其连接的耳机收纳装置,由耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据;进而用户只需采用耳机设备即可以实现翻译,无需采用专用翻译设备。
本发明实施例还提供了一种翻译装置,应用于耳机收纳装置中。
参照图12,示出了本发明的一种耳机收纳装置侧翻译装置实施例的结构框图,具体可以包括如下模块:
第四接收模块1202,用于接收所述耳机发送的源语音数据;
第一翻译模块1204,用于对所述源语音数据进行翻译,生成第一目标语音数据。
参照图13,示出了本发明的一种耳机收纳装置侧翻译装置可选实施例的结构框图。
本发明一个可选的实施例中,所述耳机还与终端设备连接,所述耳机由所述终端设备对应的第一通讯用户使用;所述源语音数据是所述第一通讯用户通过所述终端设备与至少一个第二通讯用户通讯过程中,所述终端设备接收到的第二通讯用户的语音数据并发送至所述耳机的;
所述的装置还包括:第三发送模块1206,用于将所述第一目标语音数据发送至所述耳机,由所述耳机播放所述第一目标语音数据;第四播放模块1208,用于播放所述第一目标语音数据。
本发明一个可选的实施例中,所述耳机还与终端设备连接,所述耳机由所述终端设备对应的第一通讯用户使用;所述源语音数据是所述第一通讯用户通过所述终端设备与至少一个第二通讯用户通讯过程中,所述耳机采集的所述第一通讯用户的语音数据;所述的装置还包括:第四发送模块1210,用于将所述第一目标语音数据发送至所述耳机,以使所述耳机将所述第一目标语音数据转发至所述终端设备,由所述终端设备将所述第一目标语音数据发送至所述第二通讯用户的终端设备。
本发明一个可选的实施例中,所述耳机包括:第一耳机和至少一个第二耳机,所述第二耳机和第一耳机,分别与所述耳机收纳装置连接;所述第一耳机由第一用户使用,所述第二耳机由至少一个第二用户使用;所述源语音数据是所述第一耳机采集的第一用户的语音数据;所述的装置还包括:第五发送模块1212,用于将所述第一目标语音数据发送至第二耳机,由所述第二耳机播放所述第一目标语音数据。
本发明一个可选的实施例中,所述耳机包括至少一个,所述耳机由至少一个第一用户使用,所述耳机收纳装置包括至少一个,所述耳机收纳装置由至少一个第二用户使用;所述源语音数据是所述耳机采集的第一用户的语音数据;所述的装置还包括:第五播放模块1214,用于播放所述的第一目标语音数据。
本发明一个可选的实施例中,所述的装置还包括:采集模块1216,用于采集第二用户的语音数据;第二翻译模块1218,用于对所述第二用户的语音数据进行翻译,生成第二目标语音数据;第六发送模块1220,用于将所述第二目标语音数据发送给所述耳机,由所述耳机播放所述第二目标语音数据。
本发明一个可选的实施例中,所述的装置还包括:第七发送模块1222,用于将所述第一目标语音数据发送至所述耳机,由所述耳机根据所述耳机的使用情况,控制所述耳机在播放语音数据时的声道分配,所述语音数据包括源语音数据和/或第一目标语音数据。
本发明一个可选的实施例中,所述第一翻译模块1204,用于对所述源语音数据进行同声传译,生成第一目标语音数据。本发明一个可选的实施例中,所述耳机收纳装置还 与服务器连接,所述第一翻译模块1204,用于依据所述源语音数据生成翻译请求,并将所述翻译请求发送至服务器,以使所述服务器依据所述翻译请求对所述源语音数据进行翻译,生成第一目标语音数据并返回;接收所述服务器返回的第一目标语音数据。
综上,本发明实施例中,耳机收纳装置在获取到耳机发送的源语音数据后,可以对所述源语音数据进行翻译,生成第一目标语音数据;进而用户只需采用耳机设备即可以实现翻译,无需采用专用翻译设备。
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
图14是根据一示例性实施例示出的一种用于数据处理的电子设备1400的结构框图。例如,电子设备1400可以是耳机、耳机收纳装置等。
参照图14,电子设备1400可以包括以下一个或多个组件:处理组件1402,存储器1404,电力组件1406,多媒体组件1408,音频组件1410,输入/输出(I/O)的接口1412,传感器组件1414,以及通信组件1416。
处理组件1402通常控制电子设备1400的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理元件1402可以包括一个或多个处理器1420来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件1402可以包括一个或多个模块,便于处理组件1402和其他组件之间的交互。例如,处理部件1402可以包括多媒体模块,以方便多媒体组件1408和处理组件1402之间的交互。
存储器1404被配置为存储各种类型的数据以支持在设备1400的操作。这些数据的示例包括用于在电子设备1400上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器1404可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
电力组件1406为电子设备1400的各种组件提供电力。电力组件1406可以包括电源管理系统,一个或多个电源,及其他与为电子设备1400生成、管理和分配电力相关联的组件。
多媒体组件1408包括在所述电子设备1400和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件1408包括一个前置摄像头和/或后置摄像头。当电子设备1400处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件1410被配置为输出和/或输入音频信号。例如,音频组件1410包括一个麦克风(MIC),当电子设备1400处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器1404或经由通信组件1416发送。在一些实施例中,音频组件1410还包括一个扬声器,用于输出音频信号。
I/O接口1412为处理组件1402和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。
传感器组件1414包括一个或多个传感器,用于为电子设备1400提供各个方面的状态评估。例如,传感器组件1414可以检测到设备1400的打开/关闭状态,组件的相对定位,例如所述组件为电子设备1400的显示器和小键盘,传感器组件1414还可以检测电子设备1400或电子设备1400一个组件的位置改变,用户与电子设备1400接触的存在或不存在,电子设备1400方位或加速/减速和电子设备1400的温度变化。传感器组件1414可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件1414还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件1414还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。
通信组件1416被配置为便于电子设备1400和其他设备之间有线或无线方式的通信。电子设备1400可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信部件1414经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信部件1414还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。
在示例性实施例中,电子设备1400可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器1404,上述指令可由电子设备1400的处理器1420执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。
一种耳机,包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:获取源语音数据;将所述源语音数据发送至所述耳机收纳装置,由所述耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据。
可选地,所述耳机还与终端设备连接,所述耳机由所述终端设备对应的第一通讯用户使用;所述耳机获取源语音数据,包括:所述耳机接收所述终端设备发送的语音数据,作为源语音数据;其中,所述终端设备发送的语音数据是所述第一通讯用户通过所述终端设备与至少一个第二通讯用户通讯过程中,所述终端设备接收到的第二通讯用户的语音数据;还包含进行执行如下操作的指令:所述耳机接收所述耳机收纳装置发送的第一目标语音数据,并播放所述第一目标语音数据。
可选地,所述耳机还与终端设备连接,所述耳机由所述终端设备对应的第一通讯用户使用;所述耳机获取源语音数据,包括:在所述第一通讯用户通过所述终端设备与至少一个第二通讯用户通讯的过程中,所述耳机采集所述第一通讯用户的语音数据,作为源语音数据;还包含进行执行如下操作的指令:所述耳机接收所述耳机收纳装置发送的 第一目标语音数据;所述耳机将所述第一目标语音数据发送至所述终端设备,以使所述终端设备将所述第一目标语音数据发送至所述第二通讯用户的终端设备。
可选地,所述耳机包括:第一耳机和至少一个第二耳机,所述第二耳机和第一耳机,分别与所述耳机收纳装置连接;所述第一耳机由第一用户使用,所述第二耳机由至少一个第二用户使用;所述耳机获取源语音数据,包括:所述第一耳机采集所述第一用户的语音数据,作为源语音数据;所述耳机将所述源语音数据发送至所述耳机收纳装置,包括:所述第一耳机将所述源语音数据发送至所述耳机收纳装置,由所述耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据并发送至所述第二耳机;还包含进行执行如下操作的指令:所述第二耳机接收所述耳机收纳装置发送的第一目标语音数据,并播放所述第一目标语音数据。
可选地,所述耳机包括至少一个,所述耳机由至少一个第一用户使用,所述耳机收纳装置包括至少一个,所述耳机收纳装置由至少一个第二用户使用;所述耳机获取源语音数据,包括:所述耳机采集所述第一用户的语音数据,作为源语音数据;其中,所述第一目标语音数据由所述耳机收纳装置播放。
可选地,还包含进行执行如下操作的指令:所述耳机接收所述耳机收纳装置发送的第二目标语音数据,所述第二目标语音数据是所述耳机收纳装置针对其采集的第二用户的语音数据进行翻译后生成的;所述耳机播放所述第二目标语音数据。
可选地,所述耳机包括两个,还包含进行执行如下操作的指令:所述耳机接收所述耳机收纳装置发送的第一目标语音数据;所述耳机根据所述耳机的使用情况,控制所述耳机在播放语音数据时的声道分配,所述语音数据包括源语音数据和/或第一目标语音数据。
可选地,所述耳机根据所述耳机的使用情况,控制所述耳机在播放语音数据时的声道分配,包括:当两个耳机均被使用时,两个耳机分别播放所述源语音数据和第一目标语音数据。
可选地,还包含进行执行如下操作的指令:接收用户的切换指令,切换所述两个耳机中播放的语音数据的种类;或接收用户的音量调节指令,调节所述音乐调节操作对应耳机的音量;或接收用户的种类选取指令,所述两个耳机均播放所述第一目标语音数据或均播放源语音数据。
可选地,所述耳机根据所述耳机的使用情况,控制所述耳机在播放语音数据时的声道分配,包括:当其中一个耳机被使用时,被使用的耳机播放所述源语音数据和第一目标语音数据的混音。
一种耳机收纳装置,包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:接收所述耳机发送的源语音数据;对所述源语音数据进行翻译,生成第一目标语音数据。
可选地,所述耳机还与终端设备连接,所述耳机由所述终端设备对应的第一通讯用户使用;所述源语音数据是所述第一通讯用户通过所述终端设备与至少一个第二通讯用户通讯过程中,所述终端设备接收到的第二通讯用户的语音数据并发送至所述耳机的;还包含进行执行如下操作的指令:所述耳机收纳装置将所述第一目标语音数据发送至所述耳机,由所述耳机播放所述第一目标语音数据;或,所述耳机收纳装置播放所述第一目标语音数据。
可选地,所述耳机还与终端设备连接,所述耳机由所述终端设备对应的第一通讯用户使用;所述源语音数据是所述第一通讯用户通过所述终端设备与至少一个第二通讯用户通讯过程中,所述耳机采集的所述第一通讯用户的语音数据;还包含进行执行如下操作的指令:将所述第一目标语音数据发送至所述耳机,以使所述耳机将所述第一目标语音数据转发至所述终端设备,由所述终端设备将所述第一目标语音数据发送至所述第二通讯用户的终端设备。
可选地,所述耳机包括:第一耳机和至少一个第二耳机,所述第二耳机和第一耳机,分别与所述耳机收纳装置连接;所述第一耳机由第一用户使用,所述第二耳机由至少一个第二用户使用;所述源语音数据是所述第一耳机采集的第一用户的语音数据;还包含进行执行如下操作的指令:所述耳机收纳装置将所述第一目标语音数据发送至第二耳机,由所述第二耳机播放所述第一目标语音数据。
可选地,所述耳机包括至少一个,所述耳机由至少一个第一用户使用,所述耳机收纳装置包括至少一个,所述耳机收纳装置由至少一个第二用户使用;所述源语音数据是所述耳机采集的第一用户的语音数据;还包含进行执行如下操作的指令:所述耳机收纳装置播放所述的第一目标语音数据。
可选地,还包含进行执行如下操作的指令:所述耳机收纳装置采集第二用户的语音数据;对所述第二用户的语音数据进行翻译,生成第二目标语音数据;将所述第二目标语音数据发送给所述耳机,由所述耳机播放所述第二目标语音数据。
可选地,还包含进行执行如下操作的指令:将所述第一目标语音数据发送至所述耳机,由所述耳机根据所述耳机的使用情况,控制所述耳机在播放语音数据时的声道分配,所述语音数据包括源语音数据和/或第一目标语音数据。
可选地,所述对所述源语音数据进行翻译,生成第一目标语音数据,包括:对所述源语音数据进行同声传译,生成第一目标语音数据。
可选地,所述耳机收纳装置还与服务器连接,所述对所述源语音数据进行翻译,生成目标语音数据,包括:依据所述源语音数据生成翻译请求,并将所述翻译请求发送至服务器,以使所述服务器依据所述翻译请求对所述源语音数据进行翻译,生成第一目标语音数据并返回;接收所述服务器返回的第一目标语音数据。
一种非临时性计算机可读存储介质,当所述存储介质中的指令由耳机的处理器执行时,使得耳机能够执行一种翻译方法,所述方法包括:所述耳机与耳机收纳装置连接,所述的方法包括:所述耳机获取源语音数据;所述耳机将所述源语音数据发送至所述耳机收纳装置,由所述耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据。
可选地,所述耳机还与终端设备连接,所述耳机由所述终端设备对应的第一通讯用户使用;所述耳机获取源语音数据,包括:所述耳机接收所述终端设备发送的语音数据,作为源语音数据;其中,所述终端设备发送的语音数据是所述第一通讯用户通过所述终端设备与至少一个第二通讯用户通讯过程中,所述终端设备接收到的第二通讯用户的语音数据;所述的方法还包括:所述耳机接收所述耳机收纳装置发送的第一目标语音数据,并播放所述第一目标语音数据。
可选地,所述耳机还与终端设备连接,所述耳机由所述终端设备对应的第一通讯用户使用;所述耳机获取源语音数据,包括:在所述第一通讯用户通过所述终端设备与至少一个第二通讯用户通讯的过程中,所述耳机采集所述第一通讯用户的语音数据,作为源语音数据;所述的方法还包括:所述耳机接收所述耳机收纳装置发送的第一目标语音 数据;所述耳机将所述第一目标语音数据发送至所述终端设备,以使所述终端设备将所述第一目标语音数据发送至所述第二通讯用户的终端设备。
可选地,所述耳机包括:第一耳机和至少一个第二耳机,所述第二耳机和第一耳机,分别与所述耳机收纳装置连接;所述第一耳机由第一用户使用,所述第二耳机由至少一个第二用户使用;所述耳机获取源语音数据,包括:所述第一耳机采集所述第一用户的语音数据,作为源语音数据;所述耳机将所述源语音数据发送至所述耳机收纳装置,包括:所述第一耳机将所述源语音数据发送至所述耳机收纳装置,由所述耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据并发送至所述第二耳机;所述的方法还包括:所述第二耳机接收所述耳机收纳装置发送的第一目标语音数据,并播放所述第一目标语音数据。
可选地,所述耳机包括至少一个,所述耳机由至少一个第一用户使用,所述耳机收纳装置包括至少一个,所述耳机收纳装置由至少一个第二用户使用;所述耳机获取源语音数据,包括:所述耳机采集所述第一用户的语音数据,作为源语音数据;其中,所述第一目标语音数据由所述耳机收纳装置播放。
可选地,所述的方法还包括:所述耳机接收所述耳机收纳装置发送的第二目标语音数据,所述第二目标语音数据是所述耳机收纳装置针对其采集的第二用户的语音数据进行翻译后生成的;所述耳机播放所述第二目标语音数据。
可选地,所述耳机包括两个,所述的方法还包括:所述耳机接收所述耳机收纳装置发送的第一目标语音数据;所述耳机根据所述耳机的使用情况,控制所述耳机在播放语音数据时的声道分配,所述语音数据包括源语音数据和/或第一目标语音数据。
可选地,所述耳机根据所述耳机的使用情况,控制所述耳机在播放语音数据时的声道分配,包括:当两个耳机均被使用时,两个耳机分别播放所述源语音数据和第一目标语音数据。
可选地,所述的方法还包括:接收用户的切换指令,切换所述两个耳机中播放的语音数据的种类;或接收用户的音量调节指令,调节所述音乐调节操作对应耳机的音量;或接收用户的种类选取指令,所述两个耳机均播放所述第一目标语音数据或均播放源语音数据。
可选地,所述耳机根据所述耳机的使用情况,控制所述耳机在播放语音数据时的声道分配,包括:当其中一个耳机被使用时,被使用的耳机播放所述源语音数据和第一目标语音数据的混音。
一种非临时性计算机可读存储介质,当所述存储介质中的指令由耳机收纳装置的处理器执行时,使得耳机收纳装置能够执行一种翻译方法,所述方法包括:所述耳机收纳装置接收所述耳机发送的源语音数据;所述耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据。
可选地,所述耳机还与终端设备连接,所述耳机由所述终端设备对应的第一通讯用户使用;所述源语音数据是所述第一通讯用户通过所述终端设备与至少一个第二通讯用户通讯过程中,所述终端设备接收到的第二通讯用户的语音数据并发送至所述耳机的;所述的方法还包括:所述耳机收纳装置将所述第一目标语音数据发送至所述耳机,由所述耳机播放所述第一目标语音数据;或,所述耳机收纳装置播放所述第一目标语音数据。
可选地,所述耳机还与终端设备连接,所述耳机由所述终端设备对应的第一通讯用户使用;所述源语音数据是所述第一通讯用户通过所述终端设备与至少一个第二通讯用 户通讯过程中,所述耳机采集的所述第一通讯用户的语音数据;所述的方法还包括:将所述第一目标语音数据发送至所述耳机,以使所述耳机将所述第一目标语音数据转发至所述终端设备,由所述终端设备将所述第一目标语音数据发送至所述第二通讯用户的终端设备。
可选地,所述耳机包括:第一耳机和至少一个第二耳机,所述第二耳机和第一耳机,分别与所述耳机收纳装置连接;所述第一耳机由第一用户使用,所述第二耳机由至少一个第二用户使用;所述源语音数据是所述第一耳机采集的第一用户的语音数据;所述的方法还包括:所述耳机收纳装置将所述第一目标语音数据发送至第二耳机,由所述第二耳机播放所述第一目标语音数据。
可选地,所述耳机包括至少一个,所述耳机由至少一个第一用户使用,所述耳机收纳装置包括至少一个,所述耳机收纳装置由至少一个第二用户使用;所述源语音数据是所述耳机采集的第一用户的语音数据;所述的方法还包括:所述耳机收纳装置播放所述的第一目标语音数据。
可选地,所述的方法还包括:所述耳机收纳装置采集第二用户的语音数据;对所述第二用户的语音数据进行翻译,生成第二目标语音数据;将所述第二目标语音数据发送给所述耳机,由所述耳机播放所述第二目标语音数据。
可选地,所述的方法还包括:将所述第一目标语音数据发送至所述耳机,由所述耳机根据所述耳机的使用情况,控制所述耳机在播放语音数据时的声道分配,所述语音数据包括源语音数据和/或第一目标语音数据。
可选地,所述对所述源语音数据进行翻译,生成第一目标语音数据,包括:对所述源语音数据进行同声传译,生成第一目标语音数据。
可选地,所述耳机收纳装置还与服务器连接,所述对所述源语音数据进行翻译,生成目标语音数据,包括:依据所述源语音数据生成翻译请求,并将所述翻译请求发送至服务器,以使所述服务器依据所述翻译请求对所述源语音数据进行翻译,生成第一目标语音数据并返回;接收所述服务器返回的第一目标语音数据。
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。
本发明实施例是参照根据本发明实施例的方法、终端设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程 和/或方框图一个方框或多个方框中指定的功能的步骤。
尽管已描述了本发明实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明实施例范围的所有变更和修改。
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。
以上对本发明所提供的一种翻译方法、一种翻译装置、一种耳机和一种耳机收纳装置,进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。

Claims (59)

  1. 一种翻译方法,其特征在于,应用于耳机中,所述耳机与耳机收纳装置连接,所述的方法包括:
    所述耳机获取源语音数据;
    所述耳机将所述源语音数据发送至所述耳机收纳装置,由所述耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据。
  2. 根据权利要求1所述的方法,其特征在于,所述耳机还与终端设备连接,所述耳机由所述终端设备对应的第一通讯用户使用;
    所述耳机获取源语音数据,包括:
    所述耳机接收所述终端设备发送的语音数据,作为源语音数据;其中,所述终端设备发送的语音数据是所述第一通讯用户通过所述终端设备与至少一个第二通讯用户通讯过程中,所述终端设备接收到的第二通讯用户的语音数据;
    所述的方法还包括:
    所述耳机接收所述耳机收纳装置发送的第一目标语音数据,并播放所述第一目标语音数据。
  3. 根据权利要求1所述的方法,其特征在于,所述耳机还与终端设备连接,所述耳机由所述终端设备对应的第一通讯用户使用;
    所述耳机获取源语音数据,包括:
    在所述第一通讯用户通过所述终端设备与至少一个第二通讯用户通讯的过程中,所述耳机采集所述第一通讯用户的语音数据,作为源语音数据;
    所述的方法还包括:
    所述耳机接收所述耳机收纳装置发送的第一目标语音数据;
    所述耳机将所述第一目标语音数据发送至所述终端设备,以使所述终端设备将所述第一目标语音数据发送至所述第二通讯用户的终端设备。
  4. 根据权利要求1所述的方法,其特征在于,所述耳机包括:第一耳机和至少一个第二耳机,所述第二耳机和第一耳机,分别与所述耳机收纳装置连接;所述第一耳机由第一用户使用,所述第二耳机由至少一个第二用户使用;
    所述耳机获取源语音数据,包括:
    所述第一耳机采集所述第一用户的语音数据,作为源语音数据;
    所述耳机将所述源语音数据发送至所述耳机收纳装置,包括:
    所述第一耳机将所述源语音数据发送至所述耳机收纳装置,由所述耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据并发送至所述第二耳机;
    所述的方法还包括:
    所述第二耳机接收所述耳机收纳装置发送的第一目标语音数据,并播放所述第一目标语音数据。
  5. 根据权利要求1所述的方法,其特征在于,所述耳机包括至少一个,所述耳机由至少一个第一用户使用,所述耳机收纳装置包括至少一个,所述耳机收纳装置由至少一个第二用户使用;
    所述耳机获取源语音数据,包括:
    所述耳机采集所述第一用户的语音数据,作为源语音数据;
    其中,所述第一目标语音数据由所述耳机收纳装置播放。
  6. 根据权利要求5所述的方法,其特征在于,所述的方法还包括:
    所述耳机接收所述耳机收纳装置发送的第二目标语音数据,所述第二目标语音数据是所述耳机收纳装置针对其采集的第二用户的语音数据进行翻译后生成的;
    所述耳机播放所述第二目标语音数据。
  7. 根据权利要求1所述的方法,其特征在于,所述耳机包括两个,所述的方法还包括:
    所述耳机接收所述耳机收纳装置发送的第一目标语音数据;
    所述耳机根据所述耳机的使用情况,控制所述耳机在播放语音数据时的声道分配,所述语音数据包括源语音数据和/或第一目标语音数据。
  8. 根据权利要求7所述的方法,其特征在于,所述耳机根据所述耳机的使用情况,控制所述耳机在播放语音数据时的声道分配,包括:
    当两个耳机均被使用时,两个耳机分别播放所述源语音数据和第一目标语音数据。
  9. 根据权利要求8所述的方法,其特征在于,所述的方法还包括:
    接收用户的切换指令,切换所述两个耳机中播放的语音数据的种类;或
    接收用户的音量调节指令,调节所述音乐调节操作对应耳机的音量;或
    接收用户的种类选取指令,所述两个耳机均播放所述第一目标语音数据或均播放源语音数据。
  10. 根据权利要求7所述的方法,其特征在于,所述耳机根据所述耳机的使用情况,控制所述耳机在播放语音数据时的声道分配,包括:
    当其中一个耳机被使用时,被使用的耳机播放所述源语音数据和第一目标语音数据的混音。
  11. 一种翻译方法,其特征在于,应用于耳机收纳装置中,所述耳机收纳装置与耳机连接,所述的方法包括:
    所述耳机收纳装置接收所述耳机发送的源语音数据;
    所述耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据。
  12. 根据权利要求11所述的方法,其特征在于,所述耳机还与终端设备连接,所述耳机由所述终端设备对应的第一通讯用户使用;所述源语音数据是所述第一通讯用户通过所述终端设备与至少一个第二通讯用户通讯过程中,所述终端设备接收到的第二通讯用户的语音数据并发送至所述耳机的;
    所述的方法还包括:
    所述耳机收纳装置将所述第一目标语音数据发送至所述耳机,由所述耳机播放所述第一目标语音数据;或,
    所述耳机收纳装置播放所述第一目标语音数据。
  13. 根据权利要求12所述的方法,其特征在于,所述耳机还与终端设备连接,所述耳机由所述终端设备对应的第一通讯用户使用;所述源语音数据是所述第一通讯用户通过所述终端设备与至少一个第二通讯用户通讯过程中,所述耳机采集的所述第一通讯用户的语音数据;
    所述的方法还包括:
    将所述第一目标语音数据发送至所述耳机,以使所述耳机将所述第一目标语音数据转发至所述终端设备,由所述终端设备将所述第一目标语音数据发送至所述第二通讯用户的终端设备。
  14. 根据权利要求11所述的方法,其特征在于,所述耳机包括:第一耳机和至少一个第二耳机,所述第二耳机和第一耳机,分别与所述耳机收纳装置连接;所述第一耳机由第一用户使用,所述第二耳机由至少一个第二用户使用;所述源语音数据是所述第一耳机采集的第一用户的语音数据;
    所述的方法还包括:
    所述耳机收纳装置将所述第一目标语音数据发送至第二耳机,由所述第二耳机播放所述第一目标语音数据。
  15. 根据权利要求11所述的方法,其特征在于,所述耳机包括至少一个,所述耳机由至少一个第一用户使用,所述耳机收纳装置包括至少一个,所述耳机收纳装置由至少一个第二用户使用;所述源语音数据是所述耳机采集的第一用户的语音数据;
    所述的方法还包括:
    所述耳机收纳装置播放所述的第一目标语音数据。
  16. 根据权利要求15所述的方法,其特征在于,所述的方法还包括:
    所述耳机收纳装置采集第二用户的语音数据;
    对所述第二用户的语音数据进行翻译,生成第二目标语音数据;
    将所述第二目标语音数据发送给所述耳机,由所述耳机播放所述第二目标语音数据。
  17. 根据权利要求11所述的方法,其特征在于,所述的方法还包括:
    将所述第一目标语音数据发送至所述耳机,由所述耳机根据所述耳机的使用情况,控制所述耳机在播放语音数据时的声道分配,所述语音数据包括源语音数据和/或第一目标语音数据。
  18. 根据权利要求11所述的方法,其特征在于,所述对所述源语音数据进行翻译,生成第一目标语音数据,包括:
    对所述源语音数据进行同声传译,生成第一目标语音数据。
  19. 根据权利要求11所述的方法,其特征在于,所述耳机收纳装置还与服务器连接,所述对所述源语音数据进行翻译,生成目标语音数据,包括:
    依据所述源语音数据生成翻译请求,并将所述翻译请求发送至服务器,以使所述服务器依据所述翻译请求对所述源语音数据进行翻译,生成第一目标语音数据并返回;
    接收所述服务器返回的第一目标语音数据。
  20. 一种翻译装置,其特征在于,应用于耳机中,所述耳机与耳机收纳装置连接,所述的装置包括:
    获取模块,用于获取源语音数据;
    第一发送模块,用于将所述源语音数据发送至所述耳机收纳装置,由所述耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据。
  21. 根据权利要求20所述的装置,其特征在于,所述耳机还与终端设备连接,所述耳机由所述终端设备对应的第一通讯用户使用;
    所述获取模块,包括:
    语音数据接收子模块,用于接收所述终端设备发送的语音数据,作为源语音数据;其中,所述终端设备发送的语音数据是所述第一通讯用户通过所述终端设备与至少一个第二通讯用户通讯过程中,所述终端设备接收到的第二通讯用户的语音数据;
    所述的装置还包括:
    第一播放模块,用于接收所述耳机收纳装置发送的第一目标语音数据,并播放所述 第一目标语音数据。
  22. 根据权利要求20所述的装置,其特征在于,所述耳机还与终端设备连接,所述耳机由所述终端设备对应的第一通讯用户使用;
    所述获取模块,包括:
    第一语音数据采集子模块,用于在所述第一通讯用户通过所述终端设备与至少一个第二通讯用户通讯的过程中,采集所述第一通讯用户的语音数据,作为源语音数据;
    所述的装置还包括:
    第一接收模块,用于接收所述耳机收纳装置发送的第一目标语音数据;
    第二发送模块,用于将所述第一目标语音数据发送至所述终端设备,以使所述终端设备将所述第一目标语音数据发送至所述第二通讯用户的终端设备。
  23. 根据权利要求20所述的装置,其特征在于,所述耳机包括:第一耳机和至少一个第二耳机,所述第二耳机和第一耳机,分别与所述耳机收纳装置连接;所述第一耳机由第一用户使用,所述第二耳机由至少一个第二用户使用;
    所述获取模块,包括:
    第二语音数据采集子模块,用于采集所述第一用户的语音数据,作为源语音数据;
    所述第一发送模块,用于调用所述第一耳机将所述源语音数据发送至所述耳机收纳装置,由所述耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据并发送至所述第二耳机;
    所述的装置还包括:
    第二播放模块,用于调用所述第二耳机接收所述耳机收纳装置发送的第一目标语音数据,并播放所述第一目标语音数据。
  24. 根据权利要求20所述的装置,其特征在于,所述耳机包括至少一个,所述耳机由至少一个第一用户使用,所述耳机收纳装置包括至少一个,所述耳机收纳装置由至少一个第二用户使用;
    所述获取模块,包括:
    第三语音数据采集子模块,用于采集所述第一用户的语音数据,作为源语音数据;其中,所述第一目标语音数据由所述耳机收纳装置播放。
  25. 根据权利要求24所述的装置,其特征在于,所述的装置还包括:
    第二接收模块,用于接收所述耳机收纳装置发送的第二目标语音数据,所述第二目标语音数据是所述耳机收纳装置针对其采集的第二用户的语音数据进行翻译后生成的;
    第三播放模块,用于播放所述第二目标语音数据。
  26. 根据权利要求20所述的装置,其特征在于,所述耳机包括两个,所述的装置还包括:
    第三接收模块,用于接收所述耳机收纳装置发送的第一目标语音数据;
    分配模块,用于根据所述耳机的使用情况,控制所述耳机在播放语音数据时的声道分配,所述语音数据包括源语音数据和/或第一目标语音数据。
  27. 根据权利要求26所述的装置,其特征在于,所述分配模块,包括:
    第一声道分配子模块,用于当两个耳机均被使用时,两个耳机分别播放所述源语音数据和第一目标语音数据。
  28. 根据权利要求27所述的装置,其特征在于,所述的装置还包括:
    切换模块,用于接收用户的切换指令,切换所述两个耳机中播放的语音数据的种类;
    调节模块,用于接收用户的音量调节指令,调节所述音乐调节操作对应耳机的音量;或
    选取模块,用于接收用户的种类选取指令,所述两个耳机均播放所述第一目标语音数据或均播放源语音数据。
  29. 根据权利要求26所述的装置,其特征在于,所述分配模块,包括:
    第二分配子模块,用于当其中一个耳机被使用时,被使用的耳机播放所述源语音数据和第一目标语音数据的混音。
  30. 一种翻译装置,其特征在于,应用于耳机收纳装置中,所述耳机收纳装置与耳机连接,所述的装置包括:
    第四接收模块,用于接收所述耳机发送的源语音数据;
    第一翻译模块,用于对所述源语音数据进行翻译,生成第一目标语音数据。
  31. 根据权利要求30所述的装置,其特征在于,所述耳机还与终端设备连接,所述耳机由所述终端设备对应的第一通讯用户使用;所述源语音数据是所述第一通讯用户通过所述终端设备与至少一个第二通讯用户通讯过程中,所述终端设备接收到的第二通讯用户的语音数据并发送至所述耳机的;
    所述的装置还包括:
    第三发送模块,用于将所述第一目标语音数据发送至所述耳机,由所述耳机播放所述第一目标语音数据;
    第四播放模块,用于播放所述第一目标语音数据。
  32. 根据权利要求31所述的装置,其特征在于,所述耳机还与终端设备连接,所述耳机由所述终端设备对应的第一通讯用户使用;所述源语音数据是所述第一通讯用户通过所述终端设备与至少一个第二通讯用户通讯过程中,所述耳机采集的所述第一通讯用户的语音数据;
    所述的装置还包括:
    第四发送模块,用于将所述第一目标语音数据发送至所述耳机,以使所述耳机将所述第一目标语音数据转发至所述终端设备,由所述终端设备将所述第一目标语音数据发送至所述第二通讯用户的终端设备。
  33. 根据权利要求30所述的装置,其特征在于,所述耳机包括:第一耳机和至少一个第二耳机,所述第二耳机和第一耳机,分别与所述耳机收纳装置连接;所述第一耳机由第一用户使用,所述第二耳机由至少一个第二用户使用;所述源语音数据是所述第一耳机采集的第一用户的语音数据;
    所述的装置还包括:
    第五发送模块,用于将所述第一目标语音数据发送至第二耳机,由所述第二耳机播放所述第一目标语音数据。
  34. 根据权利要求30所述的装置,其特征在于,所述耳机包括至少一个,所述耳机由至少一个第一用户使用,所述耳机收纳装置包括至少一个,所述耳机收纳装置由至少一个第二用户使用;所述源语音数据是所述耳机采集的第一用户的语音数据;
    所述的装置还包括:
    第五播放模块,用于播放所述的第一目标语音数据。
  35. 根据权利要求34所述的装置,其特征在于,所述的装置还包括:
    采集模块,用于采集第二用户的语音数据;
    第二翻译模块,用于对所述第二用户的语音数据进行翻译,生成第二目标语音数据;
    第六发送模块,用于将所述第二目标语音数据发送给所述耳机,由所述耳机播放所述第二目标语音数据。
  36. 根据权利要求30所述的装置,其特征在于,所述的装置还包括:
    第七发送模块,用于将所述第一目标语音数据发送至所述耳机,由所述耳机根据所述耳机的使用情况,控制所述耳机在播放语音数据时的声道分配,所述语音数据包括源语音数据和/或第一目标语音数据。
  37. 根据权利要求30所述的装置,其特征在于,
    所述第一翻译模块,用于对所述源语音数据进行同声传译,生成第一目标语音数据。
  38. 根据权利要求30所述的装置,其特征在于,所述耳机收纳装置还与服务器连接,
    所述第一翻译模块,用于依据所述源语音数据生成翻译请求,并将所述翻译请求发送至服务器,以使所述服务器依据所述翻译请求对所述源语音数据进行翻译,生成第一目标语音数据并返回;接收所述服务器返回的第一目标语音数据。
  39. 一种耳机,其特征在于,包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:
    获取源语音数据;
    将所述源语音数据发送至所述耳机收纳装置,由所述耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据。
  40. 根据权利要求39所述的耳机,其特征在于,所述耳机还与终端设备连接,所述耳机由所述终端设备对应的第一通讯用户使用;
    所述耳机获取源语音数据,包括:
    所述耳机接收所述终端设备发送的语音数据,作为源语音数据;其中,所述终端设备发送的语音数据是所述第一通讯用户通过所述终端设备与至少一个第二通讯用户通讯过程中,所述终端设备接收到的第二通讯用户的语音数据;
    还包含进行执行如下操作的指令:
    所述耳机接收所述耳机收纳装置发送的第一目标语音数据,并播放所述第一目标语音数据。
  41. 根据权利要求39所述的耳机,其特征在于,所述耳机还与终端设备连接,所述耳机由所述终端设备对应的第一通讯用户使用;
    所述耳机获取源语音数据,包括:
    在所述第一通讯用户通过所述终端设备与至少一个第二通讯用户通讯的过程中,所述耳机采集所述第一通讯用户的语音数据,作为源语音数据;
    还包含进行执行如下操作的指令:
    所述耳机接收所述耳机收纳装置发送的第一目标语音数据;
    所述耳机将所述第一目标语音数据发送至所述终端设备,以使所述终端设备将所述第一目标语音数据发送至所述第二通讯用户的终端设备。
  42. 根据权利要求39所述的耳机,其特征在于,所述耳机包括:第一耳机和至少一个第二耳机,所述第二耳机和第一耳机,分别与所述耳机收纳装置连接;所述第一耳机由第一用户使用,所述第二耳机由至少一个第二用户使用;
    所述耳机获取源语音数据,包括:
    所述第一耳机采集所述第一用户的语音数据,作为源语音数据;
    所述耳机将所述源语音数据发送至所述耳机收纳装置,包括:
    所述第一耳机将所述源语音数据发送至所述耳机收纳装置,由所述耳机收纳装置对所述源语音数据进行翻译,生成第一目标语音数据并发送至所述第二耳机;
    还包含进行执行如下操作的指令:
    所述第二耳机接收所述耳机收纳装置发送的第一目标语音数据,并播放所述第一目标语音数据。
  43. 根据权利要求39所述的耳机,其特征在于,所述耳机包括至少一个,所述耳机由至少一个第一用户使用,所述耳机收纳装置包括至少一个,所述耳机收纳装置由至少一个第二用户使用;
    所述耳机获取源语音数据,包括:
    所述耳机采集所述第一用户的语音数据,作为源语音数据;
    其中,所述第一目标语音数据由所述耳机收纳装置播放。
  44. 根据权利要求43所述的耳机,其特征在于,还包含进行执行如下操作的指令:
    所述耳机接收所述耳机收纳装置发送的第二目标语音数据,所述第二目标语音数据是所述耳机收纳装置针对其采集的第二用户的语音数据进行翻译后生成的;
    所述耳机播放所述第二目标语音数据。
  45. 根据权利要求39所述的耳机,其特征在于,所述耳机包括两个,还包含进行执行如下操作的指令:
    所述耳机接收所述耳机收纳装置发送的第一目标语音数据;
    所述耳机根据所述耳机的使用情况,控制所述耳机在播放语音数据时的声道分配,所述语音数据包括源语音数据和/或第一目标语音数据。
  46. 根据权利要求45所述的耳机,其特征在于,所述耳机根据所述耳机的使用情况,控制所述耳机在播放语音数据时的声道分配,包括:
    当两个耳机均被使用时,两个耳机分别播放所述源语音数据和第一目标语音数据。
  47. 根据权利要求46所述的耳机,其特征在于,还包含进行执行如下操作的指令:
    接收用户的切换指令,切换所述两个耳机中播放的语音数据的种类;或
    接收用户的音量调节指令,调节所述音乐调节操作对应耳机的音量;或
    接收用户的种类选取指令,所述两个耳机均播放所述第一目标语音数据或均播放源语音数据。
  48. 根据权利要求45所述的耳机,其特征在于,所述耳机根据所述耳机的使用情况,控制所述耳机在播放语音数据时的声道分配,包括:
    当其中一个耳机被使用时,被使用的耳机播放所述源语音数据和第一目标语音数据的混音。
  49. 一种耳机收纳装置,其特征在于,包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:
    接收所述耳机发送的源语音数据;
    对所述源语音数据进行翻译,生成第一目标语音数据。
  50. 根据权利要求49所述的耳机收纳装置,其特征在于,所述耳机还与终端设备连接,所述耳机由所述终端设备对应的第一通讯用户使用;所述源语音数据是所述第一通 讯用户通过所述终端设备与至少一个第二通讯用户通讯过程中,所述终端设备接收到的第二通讯用户的语音数据并发送至所述耳机的;
    还包含进行执行如下操作的指令:
    所述耳机收纳装置将所述第一目标语音数据发送至所述耳机,由所述耳机播放所述第一目标语音数据;或,
    所述耳机收纳装置播放所述第一目标语音数据。
  51. 根据权利要求50所述的耳机收纳装置,其特征在于,所述耳机还与终端设备连接,所述耳机由所述终端设备对应的第一通讯用户使用;所述源语音数据是所述第一通讯用户通过所述终端设备与至少一个第二通讯用户通讯过程中,所述耳机采集的所述第一通讯用户的语音数据;
    还包含进行执行如下操作的指令:
    将所述第一目标语音数据发送至所述耳机,以使所述耳机将所述第一目标语音数据转发至所述终端设备,由所述终端设备将所述第一目标语音数据发送至所述第二通讯用户的终端设备。
  52. 根据权利要求49所述的耳机收纳装置,其特征在于,所述耳机包括:第一耳机和至少一个第二耳机,所述第二耳机和第一耳机,分别与所述耳机收纳装置连接;所述第一耳机由第一用户使用,所述第二耳机由至少一个第二用户使用;所述源语音数据是所述第一耳机采集的第一用户的语音数据;
    还包含进行执行如下操作的指令:
    所述耳机收纳装置将所述第一目标语音数据发送至第二耳机,由所述第二耳机播放所述第一目标语音数据。
  53. 根据权利要求49所述的耳机收纳装置,其特征在于,所述耳机包括至少一个,所述耳机由至少一个第一用户使用,所述耳机收纳装置包括至少一个,所述耳机收纳装置由至少一个第二用户使用;所述源语音数据是所述耳机采集的第一用户的语音数据;
    还包含进行执行如下操作的指令:
    所述耳机收纳装置播放所述的第一目标语音数据。
  54. 根据权利要求53所述的耳机收纳装置,其特征在于,还包含进行执行如下操作的指令:
    所述耳机收纳装置采集第二用户的语音数据;
    对所述第二用户的语音数据进行翻译,生成第二目标语音数据;
    将所述第二目标语音数据发送给所述耳机,由所述耳机播放所述第二目标语音数据。
  55. 根据权利要求49所述的耳机收纳装置,其特征在于,还包含进行执行如下操作的指令:
    将所述第一目标语音数据发送至所述耳机,由所述耳机根据所述耳机的使用情况,控制所述耳机在播放语音数据时的声道分配,所述语音数据包括源语音数据和/或第一目标语音数据。
  56. 根据权利要求49所述的耳机收纳装置,其特征在于,所述对所述源语音数据进行翻译,生成第一目标语音数据,包括:
    对所述源语音数据进行同声传译,生成第一目标语音数据。
  57. 根据权利要求49所述的耳机收纳装置,其特征在于,所述耳机收纳装置还与服务器连接,所述对所述源语音数据进行翻译,生成目标语音数据,包括:
    依据所述源语音数据生成翻译请求,并将所述翻译请求发送至服务器,以使所述服务器依据所述翻译请求对所述源语音数据进行翻译,生成第一目标语音数据并返回;
    接收所述服务器返回的第一目标语音数据。
  58. 一种可读存储介质,其特征在于,当所述存储介质中的指令由耳机的处理器执行时,使得耳机能够执行如方法权利要求1-10任一所述的翻译方法。
  59. 一种可读存储介质,其特征在于,当所述存储介质中的指令由耳机收纳装置的处理器执行时,使得耳机收纳装置能够执行如方法权利要求11-19任一所述的翻译方法。
PCT/CN2021/087836 2020-06-05 2021-04-16 一种翻译方法、装置、耳机和耳机收纳装置 WO2021244159A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010508213.0A CN111696554B (zh) 2020-06-05 2020-06-05 一种翻译方法、装置、耳机和耳机收纳装置
CN202010508213.0 2020-06-05

Publications (1)

Publication Number Publication Date
WO2021244159A1 true WO2021244159A1 (zh) 2021-12-09

Family

ID=72479612

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/087836 WO2021244159A1 (zh) 2020-06-05 2021-04-16 一种翻译方法、装置、耳机和耳机收纳装置

Country Status (2)

Country Link
CN (1) CN111696554B (zh)
WO (1) WO2021244159A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111696554B (zh) * 2020-06-05 2022-04-26 北京搜狗科技发展有限公司 一种翻译方法、装置、耳机和耳机收纳装置
CN112331179A (zh) * 2020-11-11 2021-02-05 北京搜狗科技发展有限公司 一种数据处理方法和耳机收纳装置
CN112506331A (zh) * 2020-12-11 2021-03-16 北京搜狗科技发展有限公司 一种数据处理方法和耳机收纳装置

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107333200A (zh) * 2017-07-24 2017-11-07 歌尔科技有限公司 一种翻译耳机收纳盒、无线翻译耳机和无线翻译系统
CN108810708A (zh) * 2018-07-25 2018-11-13 中译语通科技(青岛)有限公司 一种附带收纳盒的tws蓝牙耳机的翻译系统
CN208353534U (zh) * 2018-02-26 2019-01-08 深圳市百泰实业股份有限公司 一种翻译耳机系统
CN109275057A (zh) * 2018-08-31 2019-01-25 歌尔科技有限公司 一种翻译耳机语音输出方法、系统及翻译耳机和存储介质
WO2019136068A1 (en) * 2018-01-03 2019-07-11 Google Llc Using auxiliary device case for translation
CN209517430U (zh) * 2019-01-21 2019-10-18 科大讯飞股份有限公司 翻译机拾音扩展装置、传译系统以及麦克风阵列底座
JP3225366U (ja) * 2019-10-29 2020-02-27 鋒霖科技股▲ふん▼有限公司Jetvox Acoustic Corp. イヤホン収納ケース装置
CN210225714U (zh) * 2019-11-05 2020-03-31 葛东峰 一种翻译耳机收纳盒
CN111696554A (zh) * 2020-06-05 2020-09-22 北京搜狗科技发展有限公司 一种翻译方法、装置、耳机和耳机收纳装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018008227A1 (ja) * 2016-07-08 2018-01-11 パナソニックIpマネジメント株式会社 翻訳装置および翻訳方法
CN108509428B (zh) * 2018-02-26 2023-04-18 深圳市百泰实业股份有限公司 耳机翻译方法和系统
CN109614628A (zh) * 2018-11-16 2019-04-12 广州市讯飞樽鸿信息技术有限公司 一种基于智能硬件的翻译方法与翻译系统
CN110602675A (zh) * 2019-08-22 2019-12-20 歌尔股份有限公司 一种用于耳机对的翻译方法、装置、耳机对及翻译系统
CN110765786B (zh) * 2019-10-12 2023-11-03 深圳动听汽车经纪有限公司 翻译系统、耳机翻译方法及翻译设备

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107333200A (zh) * 2017-07-24 2017-11-07 歌尔科技有限公司 一种翻译耳机收纳盒、无线翻译耳机和无线翻译系统
WO2019136068A1 (en) * 2018-01-03 2019-07-11 Google Llc Using auxiliary device case for translation
CN208353534U (zh) * 2018-02-26 2019-01-08 深圳市百泰实业股份有限公司 一种翻译耳机系统
CN108810708A (zh) * 2018-07-25 2018-11-13 中译语通科技(青岛)有限公司 一种附带收纳盒的tws蓝牙耳机的翻译系统
CN109275057A (zh) * 2018-08-31 2019-01-25 歌尔科技有限公司 一种翻译耳机语音输出方法、系统及翻译耳机和存储介质
CN209517430U (zh) * 2019-01-21 2019-10-18 科大讯飞股份有限公司 翻译机拾音扩展装置、传译系统以及麦克风阵列底座
JP3225366U (ja) * 2019-10-29 2020-02-27 鋒霖科技股▲ふん▼有限公司Jetvox Acoustic Corp. イヤホン収納ケース装置
CN210225714U (zh) * 2019-11-05 2020-03-31 葛东峰 一种翻译耳机收纳盒
CN111696554A (zh) * 2020-06-05 2020-09-22 北京搜狗科技发展有限公司 一种翻译方法、装置、耳机和耳机收纳装置

Also Published As

Publication number Publication date
CN111696554B (zh) 2022-04-26
CN111696554A (zh) 2020-09-22

Similar Documents

Publication Publication Date Title
WO2021244159A1 (zh) 一种翻译方法、装置、耳机和耳机收纳装置
WO2017156954A1 (zh) 视频直播的方法及装置
CN106454644B (zh) 音频播放方法及装置
WO2017181551A1 (zh) 视频处理方法及装置
JP2013511194A (ja) モバイル端末機、ディスプレイ装置及びその制御方法
JP2016517253A (ja) 音声通話方法、音声再生方法、装置、プログラム、及び記録媒体
WO2021244135A1 (zh) 一种翻译方法、装置和耳机
CN105635846B (zh) 设备控制方法及装置
CN109360549B (zh) 一种数据处理方法、穿戴设备和用于数据处理的装置
CN106657585B (zh) 对讲机的频率调节方法及装置
JP2017528929A (ja) イベント通知方法及び装置
CN111583952A (zh) 音频处理方法、装置、电子设备及存储介质
WO2023151526A1 (zh) 音频采集方法、装置、电子设备及外设组件
CN111739538B (zh) 一种翻译方法、装置、耳机和服务器
US20220210501A1 (en) Method and apparatus for playing data
CN114513571A (zh) 设备连接方法、装置、电子设备及可读储存介质
US20210089726A1 (en) Data processing method, device and apparatus for data processing
CN110767203B (zh) 音频处理方法、装置及移动终端及存储介质
CN104682908A (zh) 控制音量的方法及装置
CN117896487A (zh) 音视频会议直播方法及装置、电子设备、介质和程序产品
WO2018058331A1 (zh) 控制音量的方法及装置
CN116758896A (zh) 会议音频语种调整方法、装置、电子设备和存储介质
CN114531425B (zh) 一种处理方法和处理装置
WO2023216119A1 (zh) 音频信号编码方法、装置、电子设备和存储介质
CN110213531B (zh) 监控录像处理方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21818726

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 17.03.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21818726

Country of ref document: EP

Kind code of ref document: A1