WO2020078330A1 - Voice call-based translation method and electronic device - Google Patents

Voice call-based translation method and electronic device Download PDF

Info

Publication number
WO2020078330A1
WO2020078330A1 PCT/CN2019/111120 CN2019111120W WO2020078330A1 WO 2020078330 A1 WO2020078330 A1 WO 2020078330A1 CN 2019111120 W CN2019111120 W CN 2019111120W WO 2020078330 A1 WO2020078330 A1 WO 2020078330A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
voice
electronic device
translation
language
Prior art date
Application number
PCT/CN2019/111120
Other languages
French (fr)
Chinese (zh)
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 WO2020078330A1 publication Critical patent/WO2020078330A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/40Processing or translation of natural language
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72433User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for voice messaging, e.g. dictaphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Definitions

  • the present application relates to the technical field of terminals, in particular to a translation method and electronic equipment based on voice calls.
  • the embodiments of the present application provide a voice call-based translation method and an electronic device, which help to improve the communication efficiency of users who use different languages when using electronic devices for communication.
  • an embodiment of the present application provides a voice call-based translation method.
  • the method includes:
  • the first electronic device establishes a voice call connection with the second electronic device; when the voice call translation function of the first electronic device is turned on, the first electronic device collects the voice of the first user and reports the first A user's voice, and receiving the translation result of the first user's voice sent by the translation server, and sending the translation result of the first user's voice to the second electronic device; and receiving the first The second user's voice sent by the two electronic devices reports the second user's voice to the translation server, and receives the translation result of the second user's voice sent by the translation server, and broadcasts the second The translation result of the user's voice.
  • the first electronic device since the first electronic device can realize the translation of the double-ended voice during the user's call, it helps to improve the communication efficiency of users using different languages.
  • the first electronic device communicates with the translation server through a network, and the first electronic device collects the voice of the first user when the network signal strength is less than or equal to a preset threshold Then, translate the voice of the first user to obtain a translation result of the voice of the first user; after receiving the voice of the second user, translate the voice of the second user to obtain the The translation result of the second user's voice.
  • the first electronic device when the network signal strength is less than or equal to the preset threshold, the first electronic device prompts the first user to switch the network, or automatically switches to the first electronic device to perform Voice translation, or automatically switch to a network with a network signal strength greater than the preset threshold. This helps reduce the possibility of speech translation failure due to network signal deterioration.
  • the first electronic device determines the translation server according to the local language and the peer language, and then reports the voice of the first user or the second user to the translation server Voice.
  • the local language is the language used by the first user
  • the peer language is the language used by the second user. Therefore, it helps to enable the first electronic device to select a more appropriate translation server to translate the speech, and improve the reliability of speech translation.
  • the voice call translation function is automatically turned on. Helps simplify user operations.
  • the first electronic device activates the voice call translation function in response to the user's first operation. It helps to improve the interaction between the first electronic device and the user.
  • the first electronic device sends a prompt message to the second electronic device that the voice call translation function of the first electronic device has been turned on, and the language used for the prompt message is the language Peer language. It helps to improve the interaction between the first electronic device and the user.
  • the first electronic device acquires the local language and the opposite language; wherein, the local language is the system language, or the first user and the first language The language used by the first user in the last call record of the two users, or the native language of the place where the phone number of the first user belongs, or the place where the communication network accessed by the first electronic device is located Native language, or language set in response to user operation; the peer language is the native language of the place where the phone number of the second user belongs, or the last call record of the first user and the second user The language used by the second user, or the native language of the home area where the communication network accessed by the second electronic device is located, or the language set in response to user operation. Help to simplify the way of acquiring the local language and the opposite language.
  • the first electronic device broadcasts the translation result of the second user's voice. Helps reduce the possibility of overlapping or incomplete voice announcements.
  • the first electronic device obtains when the second user's voice is received and the translation result of the second user's voice sent by the translation server is not received within the first duration
  • the network signal strength when the network signal strength is greater than a preset threshold, the second user is prompted to reduce the speech rate. It helps reduce the possibility that the translation server cannot recognize the voice for translation because the user's speech speed is too fast.
  • the first electronic device displays first prompt information on a display screen, and the first prompt information is used to prompt the first user to notify the second reduced speech rate; or, The first electronic device sends a first voice to a second electronic device, the first voice is used to prompt the second user to reduce the speech rate; or, the first electronic device plays a second voice to the first user Voice, and the second voice is used to prompt the first user to notify the second user to reduce the speech rate. Helps simplify the way to notify users to slow down.
  • the translation result of the second user's voice buffered by the first electronic device exceeds a preset number, the translation result of the second user's voice is broadcast. Helps reduce the possibility of packet loss in the translation of speech.
  • the first electronic device broadcasts the translation result of the voice of the first user.
  • the first electronic device displays the text of the voice recording of the conversation between the first user and the second user and the text of the translation result of the voice on the display screen. It helps users understand what the other party is saying.
  • the local language is used to play or display a prompt message that the voice call translation function is turned on. It helps to remind users that the voice call translation function is turned on.
  • an electronic device provided by an embodiment of the present application includes: one or more processors, memory, multiple application programs, and one or more computer programs; where one or more computer programs are stored in In the memory, when the computer program is executed by the electronic device, the foregoing first aspect and any possible design method related to the first aspect of the embodiments of the present application are implemented.
  • a chip provided by an embodiment of the present application is coupled to a memory in an electronic device, so that the chip calls a computer program stored in the memory when the chip is running, to implement the first aspect of the embodiment of the present application And any possible design method involved in the first aspect.
  • a computer storage medium stores a computer program, and when the computer program runs on an electronic device, the electronic device causes the electronic device to execute the first aspect and the first aspect of the embodiment of the present application Any possible design method involved in the aspect.
  • a computer program product when the computer program product runs on an electronic device, causes the electronic device to perform the above-mentioned first aspect and any tasks related to the first aspect of the embodiment of the present application A possible design method.
  • FIG. 1 is a schematic structural diagram of a communication system to which an embodiment of this application is applicable;
  • FIG. 2 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a user interface for making a call according to an embodiment of the application
  • FIG. 6 is a schematic diagram of a user interface for setting a peer language according to an embodiment of the present application.
  • FIG. 7 is a schematic diagram of system language setting according to an embodiment of the present application.
  • FIG. 8 is a schematic diagram of an application scenario of an embodiment of this application.
  • FIG. 9 is a schematic flowchart of a voice call-based translation method according to an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a user interface prompting the user to slow down the speech rate according to an embodiment of the present application
  • FIG. 11 is a schematic flowchart of a voice broadcast method according to an embodiment of the present application.
  • FIG. 12 is a schematic diagram of a queue according to an embodiment of this application.
  • FIG. 13 is a schematic diagram of a user interface for text display in an embodiment of the present application.
  • FIG. 14 is a schematic diagram of another user interface according to an embodiment of the present application.
  • 15 is a schematic diagram of another user interface according to an embodiment of the present application.
  • 16 is a schematic diagram of a system setting interface of an embodiment of this application.
  • 17 is a schematic diagram of a user interface for caller ID display according to an embodiment of the present application.
  • FIG. 18 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
  • At least one refers to one or more, and “multiple” refers to two or more than two.
  • “And / or” describes the relationship of the related objects, indicating that there can be three relationships.
  • a and / or B can represent the following three relationships: A exists alone, A and B exist simultaneously, and B exists alone.
  • a and B can be singular or plural.
  • the character “/” generally indicates that the related object is a "or” relationship.
  • At least one (item) of the following” or similar expressions refer to any combination of these items, including any combination of a single item (s) or a plurality of items (s).
  • At least one (a) of a, b, or c can represent: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c It can be single or multiple.
  • the embodiments of the present application provide a translation method based on voice calls.
  • the communication system architecture shown in FIG. 1 includes an electronic device 100, an electronic device 200, and a mobile communication network.
  • the electronic device 100 and the electronic device 200 can communicate through a mobile communication network.
  • the mobile communication network may be a second generation mobile communication (2nd-generation, 2G) network, or a third generation mobile communication (3rd-generation, 3G) network, or a fourth generation mobile communication (4th-generation, 4G) ) Network, you can also the fifth-generation mobile communication (5th-generation, 5G) network, etc.
  • user A uses electronic device 100 and user B uses electronic device 200.
  • user A and user B uses electronic device 200.
  • user A and user B cannot communicate, for example, user A uses language 1 and user B uses language 2.
  • electronic device A can translate the collected voice of user A using language 1 into language 2 during the conversation between user A and user B, and then translate into language 2 through the mobile communication network
  • the voice of is sent to the electronic device 200, so that the electronic device 200 can directly play the voice translated into the language 2 to the user B.
  • the electronic device 200 can send the collected voice of the user B using language 2 to the electronic device 100 through the mobile communication network.
  • the electronic device 100 After receiving the voice sent by the electronic device 200, the electronic device 100 translates the received voice into language 1. Then play it to user A, which helps user A and user B to communicate without language.
  • the electronic device 100 After receiving the voice of "I want to buy ticket” sent by the electronic device 200, the electronic device 100 obtains the translation result of the voice of the user B "I want to buy a ticket” and replaces "I want to buy a ticket” Is played to user A, so that user A can understand the meaning of user B without understanding English.
  • the electronic device 100 may also send the collected voice uttered by user A using language 1 to the electronic device 200 through the mobile communication network, so that the electronic device 200 can play the voice uttered by user A using language 1 to User B.
  • the electronic device 100 in the embodiment of the present application may also play the voice using the language 2 to the user A.
  • the communication system architecture shown in FIG. 1 further includes a translation server.
  • the electronic device 100 may send the collected voice of the user A or the received voice of the user B collected from the electronic device 200 to the translation server for translation.
  • the translation server for translating the voice of user A collected by the electronic device 100 and the translation server for translating the voice of user B received by the electronic device 100 may be the same translation server or different translations. Server, the embodiment of the present application does not limit the number of translation servers in the communication system. It should be understood that the electronic device 100 may communicate with the translation server through wireless fidelity (Wi-Fi), Bluetooth, or a mobile communication network.
  • Wi-Fi wireless fidelity
  • Bluetooth Bluetooth
  • the electronic device 100 and the electronic device 200 in the embodiment of the present application may only have one party, for example, the electronic device 100 supports the voice call translation function during the conversation between the user A and the user B.
  • the electronic device 200 may support the voice call
  • the translation function may not support the voice call translation function, which is not limited.
  • the electronic device 100 in the embodiment of the present application may be a portable electronic device, such as a mobile phone, a tablet computer, a wearable device (such as a smart watch) with a wireless communication function, an in-vehicle device, and the like.
  • portable electronic devices include, but are not limited to Or portable electronic devices of other operating systems.
  • the above-mentioned portable electronic device may also be, for example, a laptop computer having a touch-sensitive surface (for example, a touch panel).
  • the electronic device 100 may also be a desktop computer with a touch-sensitive surface (such as a touch panel).
  • FIG. 2 is a schematic diagram of a hardware structure of a possible electronic device 100. It should be understood that the illustrated hardware structure of the electronic device 100 is only an example. Also, the electronic device 100 may have more or fewer components than shown in the figure, may combine two or more components, or may have different component configurations. The various components shown in the figures can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application specific integrated circuits.
  • the electronic device 100 includes a processor 110, an internal memory 121, an external memory interface 122, an antenna 1, a mobile communication module 131, an antenna 2, a wireless communication module 132, an audio module 140, a speaker 140A, a receiver 140B, a microphone 140C, headset interface 140D, display screen 151, subscriber identification module (SIM) card interface 152, camera 153, button 154, sensor module 160, universal serial bus (USB) interface 170, charging management Module 180, power management module 181 and battery 182.
  • the electronic device 100 may further include a motor, an indicator, and the like.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (ISP), a controller, and a video Codec, digital signal processor (DSP), baseband processor, and / or neural-network processor (NPU), etc.
  • application processor application processor
  • AP application processor
  • modem processor graphics processor
  • ISP image signal processor
  • controller a controller
  • video Codec video Codec
  • DSP digital signal processor
  • NPU neural-network processor
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in the processor 110 may be a cache memory.
  • the memory may be used to store instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. The repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
  • the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area may store an operating system, at least one function required application programs (such as sound playback function, image playback function, etc.).
  • the storage data area may store data (such as audio data, phone book, etc.) created during use of the electronic device 100 and the like.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and so on.
  • a non-volatile memory such as at least one disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and so on.
  • the external memory interface 122 may be used to connect an external memory card (for example, a Micro SD card) to achieve expansion of the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 122 to realize the data storage function. For example, save music, video and other files in an external memory card.
  • Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 131 can provide a wireless communication solution including 2G / 3G / 4G / 5G and the like applied to the electronic device 100.
  • the mobile communication module 131 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), and so on.
  • the mobile communication module 131 can receive the electromagnetic wave signal from the antenna 1 and filter, amplify, etc. the received electromagnetic wave signal, and transmit it to the modem processor for demodulation.
  • the mobile communication module 131 can also amplify the signal modulated by the modulation and demodulation processor and convert it into an electromagnetic wave signal through the antenna 1 to radiate it out.
  • at least part of the functional modules of the mobile communication module 131 may be provided in the processor 110.
  • the mobile communication module 131 and at least part of the modules of the processor 110 may be provided in the same device.
  • the mobile communication module 131 may send voice to the electronic device 200, or may receive voice sent by the electronic device 200.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low-frequency baseband signal to be transmitted into a high-frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is processed by the baseband processor and then passed to the application processor.
  • the application processor outputs a sound signal through an audio device (not limited to a speaker 140A, a receiver 140B, etc.), or displays an image or video through a display screen 151.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 110, and may be set in the same device as the mobile communication module 131 or other functional modules.
  • the wireless communication module 132 can provide wireless local area networks (wireless local area networks, WLAN) (such as Wi-Fi networks), Bluetooth (bluetooth, BT), and global navigation satellite systems (GNSS) that are applied to the electronic device 100. ), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR) and other wireless communication solutions.
  • the wireless communication module 132 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 132 receives the electromagnetic wave signal via the antenna 2, frequency-modulates and filters the electromagnetic wave signal, and sends the processed signal to the processor 110.
  • the wireless communication module 132 may also receive the signal to be transmitted from the processor 110, frequency-modulate it, amplify it, and convert it to electromagnetic waves through the antenna 2 to radiate it out.
  • the wireless communication module 132 can send the voice of the user A using the language 1 collected by the electronic device 100 to the translation server, or can send the voice of the user B using the language 2 collected by the electronic device 200 that the mobile communication module 131 receives
  • the server can also receive the translation result of the voice sent by the translation server. It should be understood that in the embodiment of the present application, the speech translation result is a piece of audio.
  • the antenna 1 of the electronic device 100 is coupled to the mobile communication module 131, and the antenna 2 is coupled to the wireless communication module 132 so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include a global mobile communication system (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Wideband code division multiple access (WCDMA), time division code division multiple access (time-division code division multiple access (TD-SCDMA), long-term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and / or IR technology, etc.
  • GSM global system for mobile communications
  • general packet radio service general packet radio service
  • GPRS general packet radio service
  • code division multiple access code division multiple access
  • WCDMA broadband Wideband code division multiple access
  • time division code division multiple access time-division code division multiple access
  • LTE long-term evolution
  • BT GNSS
  • the GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a beidou navigation system (BDS), and a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and / or satellite-based augmentation system (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS beidou navigation system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation system
  • the electronic device 100 may implement audio functions through an audio module 140, a speaker 140A, a receiver 140B, a microphone 140C, a headphone interface 140D, an application processor, and the like. For example, music playback, recording, etc.
  • the audio module 140 can be used to convert digital audio information into an analog audio signal output and also to convert analog audio input into a digital audio signal.
  • the audio module 140 may also be used to encode and decode audio signals.
  • the audio module 140 may be disposed in the processor 110, or some functional modules of the audio module 140 may be disposed in the processor 110.
  • the speaker 140A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 140A or answer hands-free calls.
  • the receiver 140B also known as "handset" is used to convert audio electrical signals into sound signals.
  • the electronic device 100 answers a call or a voice message, it can answer the voice by holding the receiver 140B close to the ear.
  • the microphone 140C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the microphone 140C can be used to collect the voice of the user A, and then convert the voice of the user A into an electrical signal.
  • the electronic device 100 may be provided with at least one microphone 140C. In other embodiments, the electronic device 100 may be provided with two microphones 140C. In addition to collecting sound signals, it may also implement a noise reduction function. In other embodiments, the electronic device 100 may also be provided with three, four, or more microphones 140C to achieve sound signal collection, noise reduction, identify sound sources, and implement directional recording functions.
  • the headset interface 140D is used to connect wired headsets.
  • the earphone interface 140D may be a USB interface 130, or a 3.5mm open mobile electronic device platform (OMTP) standard interface, the American Telecommunications Industry Association (cellular telecommunications industry association of the USA, CTIA) standard interface, etc. .
  • OMTP open mobile electronic device platform
  • CTIA cellular telecommunications industry association of the USA, CTIA
  • the electronic device 100 can realize a display function through a GPU, a display screen 151, an application processor, and the like.
  • the GPU is a microprocessor for image processing, and connects the display screen 151 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations, and is used for graphics rendering.
  • the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 151 can be used to display images, videos, and the like.
  • the display screen 151 may include a display panel.
  • the display panel may use a liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active matrix organic light-emitting diode (active-matrix organic light) emitting diodes (AMOLED), flexible light-emitting diodes (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (QLED), etc.
  • the electronic device 100 may include 1 or N display screens 151, where N is a positive integer greater than 1.
  • the electronic device 100 can realize a shooting function through a camera 153, an ISP, a video codec, a GPU, a display screen 151, an application processor, and the like.
  • the ISP can be used to process the data fed back by the camera 153. For example, when taking a picture, the shutter is opened, and the optical signal is collected by the camera 153, and then the camera 153 converts the collected optical signal into an electrical signal, and transmits the electrical signal to an ISP for processing, which is converted into an image visible to the naked eye.
  • ISP can also optimize the algorithm of image noise, brightness and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be set in the camera 193.
  • the camera 153 may be used to capture still images or video.
  • the camera 153 includes a lens and an image sensor.
  • the object generates an optical image through the lens and projects it to the image sensor.
  • the image sensor may be a charge coupled device (charge coupled device, CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CCD charge coupled device
  • CMOS complementary metal-oxide-semiconductor
  • the image sensor converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other image signals.
  • the electronic device 100 may include 1 or N cameras 153, where N is a positive integer greater than 1.
  • the key 154 may include a power-on key, a volume key, and the like.
  • the key 154 may be a mechanical key. It can also be a touch button.
  • the electronic device 100 can receive key input and generate key signal input related to user settings and function control of the electronic device 100.
  • the sensor module 160 may include one or more sensors.
  • the sensor module 160 may further include an environment sensor, a distance sensor, a proximity light sensor, a bone conduction sensor, and the like.
  • the touch sensor 160A may also be referred to as a “touch panel”.
  • the touch sensor 160A may be provided on the display screen 151, and the touch sensor 160A and the display screen 151 constitute a touch screen, also called a "touch screen”.
  • the touch sensor 160A is used to detect a touch operation acting on or near it.
  • the touch sensor 160A may pass the detected touch operation to the application processor to determine the type of touch event.
  • the visual output related to the touch operation can be provided through the display screen 151.
  • the touch sensor 160A may also be disposed on the surface of the electronic device 100, which is different from the location where the display screen 151 is located.
  • the fingerprint sensor 160 may be used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access to application locks, fingerprint taking pictures, fingerprint answering calls, and the like.
  • the gyro sensor 160C may be used to determine the movement posture of the electronic device 100.
  • the angular velocity of the electronic device 100 around three axes ie, x, y, and z axes
  • the gyro sensor 160C can be used for shooting anti-shake.
  • the gyro sensor 160C detects the shaking angle of the electronic device 100, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to cancel the shaking of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 160C can also be used for navigation and somatosensory game scenes.
  • the pressure sensor 160D is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 160D may be provided on the display screen 151.
  • the capacitive pressure sensor may be at least two parallel plates with conductive material. When force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
  • the electronic device 100 determines the intensity of the pressure according to the change in capacitance.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position based on the detection signal of the pressure sensor 180A.
  • touch operations that act on the same touch position but have different touch operation intensities may correspond to different operation instructions. For example, when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
  • the acceleration sensor 160E can detect the magnitude of acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used for recognizing the posture of electronic devices, and used in applications such as horizontal and vertical screen switching and pedometers.
  • the processor 110 may also include one or more interfaces.
  • the interface may be a SIM card interface 152.
  • the interface may also be a USB interface 170.
  • the interface may also be an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit integrated audio (inter-integrated circuit, sound, I2S) interface, a pulse code modulation (pulse code modulation (PCM) interface, a universal asynchronous transceiver transmission (Universal asynchronous receiver / transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input / output (GPIO) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit integrated audio
  • PCM pulse code modulation
  • UART universal asynchronous transceiver transmission
  • mobile industry processor interface mobile industry processor interface
  • MIPI mobile industry processor interface
  • GPIO general-purpose input / output
  • the processor 110 may be connected to different modules of the electronic device 100 through an interface, so that the electronic device 100 can implement different functions. For example, taking pictures and processing. It should be noted that the embodiment of the present application does not limit the connection method of the interface in the electronic device 100.
  • the SIM card interface 152 may be used to connect the SIM card.
  • the SIM card can be inserted into or removed from the SIM card interface 152 to achieve contact and separation with the electronic device 100.
  • the electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the SIM card interface 152 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple SIM cards can be inserted into the same SIM card interface 152 at the same time. The types of the multiple cards may be the same or different.
  • the SIM card interface 152 can also be compatible with different types of SIM cards.
  • the SIM card interface 152 can also be compatible with external memory cards.
  • the electronic device 100 interacts with the network through a SIM card to realize functions such as call and data communication.
  • the electronic device 100 uses eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
  • the USB interface 170 is an interface conforming to the USB standard specification.
  • the USB interface 170 may include a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
  • the USB interface 170 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through the headphones.
  • the USB interface 170 can also be used to connect with other electronic devices, such as augmented reality (AR) devices.
  • AR augmented reality
  • the charging management module 180 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 180 may receive the charging input of the wired charger through the USB interface 170.
  • the charging management module 180 may receive wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 182, it can also supply power to the electronic device through the power management module 181.
  • the power management module 181 is used to connect the battery 182, the charging management module 180 and the processor 110.
  • the power management module 181 receives input from the battery 182 and / or the charging management module 180, and supplies power to the processor 110, internal memory 121, external memory, display screen 151, camera 153, mobile communication module 131, wireless communication module 132, and the like.
  • the power management module 181 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters.
  • the power management module 181 may also be disposed in the processor 110.
  • the power management module 181 and the charging management module 180 may also be set in the same device.
  • the following uses the electronic device 100 as an example to describe in detail the translation method based on the voice call in the embodiment of the present application.
  • the electronic device 100 includes an interaction module, a voice collection module, a broadcast module, a communication module, and a translation module.
  • the interaction module is used to realize the interaction between the user and the electronic device 100.
  • the interaction module can be used to display a user interface.
  • the interaction module may be implemented by the display screen 151 in the hardware architecture of the electronic device 100 shown in FIG. 2, or may be implemented by the display screen 151 and the touch sensor in the hardware architecture of the electronic device 100 shown in FIG. 160A to achieve.
  • the voice collection module is used to collect voice.
  • the voice collection module may be implemented by the microphone 140C in the hardware architecture of the electronic device 100 shown in FIG. 2.
  • the broadcast module is used to broadcast voice, such as the translation result of voice during a call, or untranslated voice, etc.
  • the broadcast module may be implemented by a receiver 140B, a speaker 140A, or a headset connected to the headset interface 140D in the hardware architecture of the electronic device 100 shown in FIG. 2.
  • the communication module is used to communicate between the electronic device and other electronic devices or translation servers.
  • the communication module can be used to receive voice sent by other electronic devices, can also be used to send the voice collected by the voice collection module to the translation server, or can be used to send the voice received by the communication module to the translation server, and can also be used to receive the translation server Translated results of sent voice etc.
  • the communication protocols that the communication module may support include WiFi, Bluetooth, LTE, WCDMA, GSM, next-generation radio (NR), and so on.
  • the communication module may be implemented by the mobile communication module 131 and / or the wireless communication module 132 in the hardware architecture of the electronic device 100 shown in FIG. 2.
  • the translation module is used to obtain voice translation results.
  • the translation module may include an access unit, a local translation unit, a peer translation unit, a coordination unit, a main control unit, a broadcast control unit, and a voice detection unit.
  • the access unit may be used to implement the selection of translation services.
  • the access unit adopts offline translation and performs translation through a translation engine pre-configured in the electronic device 100.
  • the translation engine pre-configured in the electronic device 100 may be a software program or command for implementing voice translation, and may be stored in the internal memory 121 or the external memory 110.
  • the translation engine When the electronic device When translating the voice, the translation engine is called to obtain the translation result of the voice.
  • the access unit adopts online translation, and further selects a corresponding translation server based on a pre-configured strategy.
  • the local translation unit may be used to obtain the voice collected by the voice collection module and cache the translation result of the voice collected by the voice collection module.
  • the peer translation unit may be used to obtain the speech received by the communication module and buffer the translation result of the speech received by the communication module.
  • the broadcast control unit may be used to control the broadcast module to broadcast the translation result.
  • the local translation unit or the peer translation unit may also send the cached translation result of the voice to the broadcast module to automatically delete the translation result of the voice, and may also store the translation result of the voice to the internal memory 121 Or in an external memory connected to the external memory interface 122.
  • the voice detection unit can be used to detect whether there is currently a voice input.
  • the coordination unit can be used to coordinate the translation process and control the rhythm of voice playback.
  • the main control unit can be used to receive user's operation instructions and coordinate various unit modules to realize the voice call translation function.
  • the translation module in the embodiment of the present application may be implemented by the processor 110 in the hardware architecture of the electronic device 100 shown in FIG. 2.
  • the translation module may be implemented by an application processor in the processor 110.
  • the translation module may also be a dedicated processor, integrated in the processor 110, or not integrated in the processor 110.
  • the application scenarios of the voice call-based translation method provided in the embodiments of the present application will be described below accordingly.
  • the translation method based on the voice call in the embodiment of the present application can be applied to an application scenario where the electronic device 100 is the calling terminal and the electronic device 200 is the called terminal, and can also be applied to the electronic device 100 as the called terminal and the electronic device 200 as the calling terminal Application scenarios.
  • the translation method based on the voice call in the embodiment of the present application will be described in detail, in which the user A uses the electronic device 100.
  • User B uses the electronic device 200.
  • the electronic device 100 in the embodiment of the present application may acquire the translation result of the voice of the user A after collecting the voice of the user A, and send the translation result of the voice of the user A to the electronic device 200, and the electronic device 100 may receive After reaching the voice of the user B sent by the electronic device 200, the translation result of the voice of the user B is obtained, and the translation result of the voice of the user B is played.
  • the electronic device 100 determines a device for voice translation and then obtains it from the device for voice translation The translation result of user A's voice and / or the translation result of user B's voice.
  • the device used for voice translation may be the electronic device 100 itself or a translation server.
  • the device for voice translation may be one translation server or multiple translation servers.
  • the device for translating the voice of user A and the device for translating the voice of user B may be the same device, or may be different devices.
  • the electronic device 100 may determine a device for voice translation before initiating a call to user B.
  • the electronic device 100 may determine the device for user voice translation before determining to initiate a call to user B, and before initiating a call to user B.
  • the electronic device 100 may also determine a device for voice translation after initiating a call to user B.
  • the electronic device 100 may initiate a call to user B in response to the dialing operation of the phone number of user B.
  • the display screen 151 of the electronic device 100 displays the user interface 400.
  • the user interface 400 includes a phone icon 401.
  • the user interface 400 may also include other application icons, such as a settings icon, WeChat icon, gallery icon, mailbox icon, camera icon, and so on.
  • the electronic device 100 detects an operation on the phone icon 401, it may display a user interface 410 on the display screen 151 in response to the operation on the phone icon 401.
  • the user interface 410 includes a contact list 411 and a function bar 412.
  • the contact list 411 is stored by user A according to his own needs.
  • the function bar 412 includes function buttons for creating new contacts, scanning business cards, and more.
  • the electronic device 100 displays the user interface 420 on the display screen 151 in response to the user's operation on the user B in the contact list 411.
  • the user interface 420 may include user B's name, phone number, mailbox, and other information, and may also include function buttons such as send information, add to favorites, and block incoming call numbers.
  • the electronic device 100 may initiate a call to the user B in response to the operation of the phone number 12345659876, and display the user interface 430 on the display screen 151.
  • the operation on the phone number 12345659876 may be a touch operation on the phone number 12345659876. Other operations are also possible.
  • user A can also initiate a call to user B by directly inputting user B's phone number on user interface 500 of electronic device 100.
  • the display screen 151 of the electronic device 100 displays a user interface 500 including a dial keypad, an input phone number “12345659876”, and a dial button 501.
  • the electronic device 100 initiates a call to the user B in response to the operation of the dial button 501, and displays the user interface 430 shown in FIG. 4 on the display screen 151.
  • user A may also use the electronic device 100 to initiate a call to user B through other methods, for example, to initiate a call to user B through voice.
  • the electronic device 100 may determine the device for voice translation according to the network signal strength. Wherein, when the network signal strength is greater than a preset threshold, the electronic device 100 determines a device for voice translation from at least one preset translation server.
  • the translation servers of different manufacturers have different accuracy for language translation. For example, the translation server provided by the manufacturer S is more accurate for the translation of languages in Southeast Asian languages. For another example, the translation server provided by the manufacturer M is more accurate for the language translation of the European language family. Therefore, in order to improve the accuracy of voice translation, when using the translation server, the electronic device 100 can determine the translation server for voice translation according to the preset local language and peer language, for example, when Chinese and Vietnamese translate each other, Select the translation server of vendor S.
  • the local language is the language used by user A
  • the opposite language is the language used by user B.
  • the electronic device 100 determines to perform voice translation through a translation engine configured in the electronic device 100 in advance. Through the above technical solution, it helps to improve the real-time performance of obtaining voice translation results under the condition of poor network signal.
  • the preset threshold may be pre-configured in the electronic device 100, or may be determined by the electronic device 100 according to a pre-configured algorithm.
  • the electronic device 100 may establish communication with the translation server through a mobile communication network (eg, 4G network, 5G network, etc.), and may also establish communication with the translation server through a WiFi network.
  • the preset threshold when the electronic device 100 communicates with the translation server through the mobile communication network, the preset threshold may be set as the first threshold.
  • the preset threshold may be set as the second threshold.
  • the first threshold and the second threshold are thresholds set according to different networks, and the sizes of the first threshold and the second threshold are not limited herein.
  • the electronic device 100 may send the voice to the determined translation server through the mobile communication network when the signal strength of the mobile communication network is greater than the first threshold.
  • the electronic device 100 uses the WiFi network to communicate with the translation server. Thereby helping to save costs.
  • the electronic device 100 uses the mobile communication network to communicate with the translation server. This helps to reduce the communication delay between the electronic device 100 and the translation server.
  • the main control unit of the electronic device 100 receives the operation reported by the interaction module to initiate a call to user B or receives the operation reported by the interaction module to input the phone number of user B, and then sends the translation service access to the access unit Notice. It should be noted that the main control unit may directly send the notification of the translation service access to the access unit, or may send the notification of the translation service access to the access unit through the coordination unit, etc., which is not limited. After receiving the notification of the translation service access, the access unit obtains the network signal strength from the communication module, and determines the device for voice translation according to the network signal strength.
  • the electronic device 100 when the electronic device 100 turns on the WiFi network and the mobile communication network, and the electronic device 100 sends a voice to the translation server through the WiFi network or the mobile communication network, when the network signal strength of the WiFi network is less than or equal to the second threshold and moves When the network signal strength of the communication network is less than or equal to the first threshold, it is determined to use a translation engine pre-configured in the electronic device 100 to translate the speech. For another example, the electronic device 100 may determine that the device used for voice translation is the translation server when the network signal strength of the WiFi network is greater than the second threshold.
  • the access unit of the electronic device 100 acquires the preset local language and peer language, and then determines the usage according to the local language and peer language A server for voice translation.
  • the electronic device 100 may store the preset local language and the peer language in the public storage space, and the access unit may directly obtain the preset local language and the peer language from the public storage space.
  • the local language and the peer language set in advance can also be obtained from the public storage space through the main control unit.
  • the local language and the opposite language may be manually configured by the user in advance, or may be automatically configured by the electronic device 100.
  • user A may set the peer language through the language setting 422 in the user interface 420.
  • the electronic device 100 may respond to the user A's operation on the language setting 422, as shown in FIG. 6, a language list 600 is displayed on the display screen 151.
  • the electronic device 100 displays English in the language setting 422 and hides the language list 600 in response to the operation of selecting “English”. It should be understood that user A may display different languages by sliding up and down in the area of language list 600.
  • the language included in the language list 600 is a language supported by a translation server capable of communicating with the electronic device 100 and / or a translation engine pre-configured in the electronic device 100, which may be the electronic device 100 before delivery What is set in the electronic device 100 may also be obtained from the translation server after detecting the operation of detecting the stored contact for the first time.
  • the electronic device 100 may also automatically set the language of the language setting 422. For example, the electronic device 100 may automatically set the language of the language setting 422 based on the home of the stored phone number of the user B. For example, if the electronic device 100 detects that the attribution of the user B's phone number is London, it automatically sets the language setting 422 to English.
  • the electronic device 100 may also set the language setting 422 according to the language used by the user B during the conversation between the user A and the user B.
  • the electronic device 100 may also set the language setting 422 to a pre-configured default language, for example, the default language is English.
  • the default language may be configured by the electronic device 100 before leaving the factory, or may be set by the user as needed.
  • the local language involved in the embodiments of the present application may be the system language of the electronic device 100.
  • the display screen 151 of the electronic device 100 displays the user interface 400.
  • the user interface 400 includes a setting icon 700.
  • the electronic device 100 displays the system setting user interface 710 on the display screen 151 in response to the operation of the setting icon 700.
  • the system setting interface 710 includes language and region 711.
  • the system setting interface 711 may also include setting buttons for other functions, such as enabling cloud backup and screen lock.
  • the electronic device 100 displays the user interface 720 on the display screen 151 in response to the operation on the language and region 711.
  • the user interface 720 includes a system language setting button 721.
  • the user interface 720 may further include a region setting button.
  • the electronic device 100 may display a user interface 730 on the display screen 151 in response to the operation of the system language setting button 721, and the user interface 730 includes a language list 731.
  • the language list 731 includes the languages supported by the electronic device 100.
  • the user interface 730 may further include a search box 732.
  • the electronic device 100 may find “Simplified Chinese” from the languages included in the language list 731 in response to the “Simplified Chinese” input by the user A in the search box 732.
  • the electronic device 100 may set the system language to simplified Chinese in response to the operation of selecting “Simplified Chinese” from the language list 732.
  • the electronic device 100 may also be automatically set according to the attribution of the local number stored by the user. For example, when the electronic device 100 detects that the locality of the local number is Beijing, it automatically sets the system language to Chinese. For another example, when the electronic device 100 detects that the locality of the local number is Taiwan, it automatically sets the system language to traditional Chinese. It should be noted that in the embodiment of the present application, the user can set the local number on the user interface 410 shown in FIG. 4.
  • the user interface 430 may further include a voice translation button 431.
  • the electronic device 100 may also display the user interface 800 on the display screen 151 in response to the operation of the voice translation button 431.
  • the user interface 800 includes a local language setting 803 and a peer language setting 802.
  • the electronic device 100 may set the local language in response to the operation of the local language setting 803 by the user A, and set the local language in response to the operation of the remote language setting 802 by the user A.
  • the electronic device 100 may also automatically set the language setting of the local language setting 803 and the remote language setting 802. For example, the electronic device 100 may automatically set the local language setting 803 to the system language and automatically set the peer language setting 802 to the language set by the language setting 422 in the user interface 420 in response to the operation of making a call to user B.
  • the electronic device 100 may also set the language of the local language setting 803 based on the attribution of the local number. For specific implementation, please refer to the automatic setting of the system language mentioned above.
  • the electronic device 100 may also set the language setting of the local language setting 803 according to the home location where the mobile communication network accessed by the electronic device 100 is located. For example, if the mobile communication network accessed by the electronic device 100 is China Mobile, the local language is automatically set to Chinese.
  • the electronic device 100 may also set the language setting of the peer language setting 802 based on the attribution of the user B's phone number.
  • the electronic device 100 may also obtain the most recent call record between user A and user B according to the local number and the phone number used when initiating a call to user B, and set the local language setting 803 to user A in the call record For the language used, set the peer language 802 to the language used by user B in the call log.
  • the electronic device 100 may also set the language setting of the peer language setting 803 according to the home location where the communication network accessed by the electronic device 200 is located. For example, if the electronic device 100 acquires that the home of the communication network accessed by the electronic device 200 is the United States, the peer language is automatically set to English.
  • the main control unit of the electronic device 100 may respond to the operation of selecting user B or inputting the phone number of user B, Send a language setting notification to the access unit. After receiving the language setting notification, the access unit obtains the call record with user B. According to the call record with user B, the local language setting 803 and the remote language setting 802 are set accordingly.
  • the access unit does not obtain the call record with user B, it can obtain the home of the phone number of user B and the home of the phone number of user A through the communication module, and based on the home of the phone number of user B
  • the language setting 802 is set, and the local language setting 803 is set based on the attribution of the user A's phone number. It should be understood that if the access unit does not obtain a call record with user B, it may also set the local language setting 803 based on the system language. If the access unit cannot obtain the home location of the user B's phone number, it can also set the peer language setting 802 as the default language.
  • the access unit may also send a notification to the main control unit that the automatic setting of the peer language setting 803 has failed.
  • the main control unit prompts the user to manually set the peer language setting 803.
  • the main control unit may prompt the user to manually set the end language setting 803 by triggering the display screen 151 to display prompt information.
  • the main control unit may also prompt the user by triggering the announcement module to play the prompt information that the user manually sets the end language setting 803.
  • the embodiment of the present application does not limit the method of prompting the user to manually set the end language setting 803.
  • the local language setting 803 and the peer language setting 802 in the embodiment of the present application may also be set on the user interface 430.
  • the electronic device 100 may not need to translate the voice.
  • the electronic device 100 may directly send the electronic to the electronic device 200 when the local language and the peer language are the same.
  • the voice of the user A collected by the device 100 the electronic device 100 receives the voice of the user B sent by the electronic device 200, and plays the voice of the user B. This helps to improve the processing method of the simplified electronic device 100.
  • the electronic device 100 can automatically start the voice call translation function when the local language and the peer language are different, and perform the translation process of the voice of the user A and the voice of the user B.
  • the access unit After the access unit automatically sets the local language and the remote language, or obtains the local language and the remote language set by the user, if it detects that the local language and the remote language are different, it executes the determination for voice translation.
  • the process of the server Specifically, the process that the access unit executes to determine the server for voice translation can refer to the foregoing embodiment, and details are not described herein again. If the access unit detects that the local language and the peer language are the same, there is no need to perform the process of determining the server for voice translation.
  • the electronic device 100 after receiving the voice of the user B sent by the electronic device 200, the electronic device 100 broadcasts the voice of the user B.
  • the voice sent by the user B to the electronic device 100 using the electronic device 200 is "Hello, This Mike is speaking.”
  • the electronic device 100 After receiving "Hello, This is Mike speaking.”, Broadcast “Hello, This Is Mike Mike speaking.” To user A, and obtained the translation result of "Hello, This Is Mike Mike speaking.” "Hello, this is Mike. ", Broadcast” Hello, I'm Mike "to user A.
  • the electronic device 100 also broadcasts the translation result of the voice of the user A.
  • the voice of user A collected by the electronic device 100 is "Hello, I want to buy a flight ticket.”
  • the translation result of "Hello, I want to buy a flight ticket.” Is obtained "Hello, I want to buy a ticket. ”, not only to send the translation result“ Hello, I want to buy ticket. ”to the electronic device 200, but also to broadcast the translation result“ Hello, I want to buy a ticket. ”
  • the electronic device 100 may also send the collected voice of the user A to the electronic device 200. After receiving the voice of the user A sent by the electronic device 100, the electronic device 200 broadcasts the voice of the user A.
  • the electronic device 200 After receiving the translation result of the voice of the user A sent by the electronic device 100, the electronic device 200 broadcasts the translation result of the voice of the user A. In other embodiments, the electronic device 100 may also send the translation result of the voice of the user B to the electronic device 200. After receiving the translation result of the voice of the user B, the electronic device 200 may also broadcast the translation result of the voice of the user B.
  • the electronic device 100 When the electronic device 100 receives the voice of user B sent by the electronic device 200, it directly broadcasts the voice of user B. In this case, if the electronic device 100 receives the voice translation result of user A, the translation result of user A's voice is broadcast. , It will cause the announcement of the voice of user B and the announcement of the translation result of the voice of user A to overlap.
  • the broadcast module may announce the result of the voice translation of the user A, which may cause the broadcasted voice to mean Incomplete.
  • the electronic device 100 after receiving the voice translation result, broadcasts the received voice translation result if no voice input is detected. In other embodiments, if the electronic device 100 detects that there is currently a voice input, it waits to detect the translation result of the received voice when no voice input is detected. This helps to reduce the possibility of conflict with the voice of the broadcast user B and the possibility of incomplete translation of the voice of the broadcast voice of the user A. In addition, in other embodiments, when the received translation result is the translation result of the voice of the user A, the electronic device 100 sends the translation result of the voice of the user A to the electronic device 200 when no voice input is detected. Therefore, it helps to reduce the possibility of overlapping voice announcements of the electronic device 200.
  • the electronic device 100 detects the voice input includes two cases: one is that the voice collection module of the electronic device 100 collects the voice of the user A, and the other is that the communication module of the electronic device 100 receives the collection of the electronic device 200 Voice of user B.
  • the embodiment of the present application refers to that the voice collection module of the electronic device 100 does not collect the voice of the user A, and the communication module does not receive the voice of the user B collected by the electronic device 200.
  • the electronic device 100 first acquires voice.
  • the electronic device 100 may obtain the voice of the user A through the voice collection module, or may receive the voice of the user B through the communication module, and then send the obtained voice to the communication module through the access unit, and then the communication module reports the voice to the translation
  • the server then translates the voice by the translation server, and returns the translation result to the communication module, and finally broadcasts the translation result of the voice through the broadcast module.
  • the electronic device 100 may coordinate voice acquisition and voice translation based on voice acquisition and voice translation to coordinate voice acquisition and translation results. Broadcast control.
  • the control method for broadcasting the translation result of the voice of the user A is specifically described below.
  • the main control unit After detecting that the electronic device 200 answers the call initiated by the electronic device 100 to the user B, the main control unit notifies the voice detection unit to monitor whether the voice acquisition module collects the voice of the user A, and whether the communication module receives the user B's voice.
  • the voice detection unit may report the voice detection result to the coordination unit in real time, or may report the voice detection result to the coordination unit every preset time period, and may also detect that the user A ’s When the voice and communication module does not receive the voice of user B, the voice detection result is sent to the coordination unit.
  • the voice collection module sends the collected user A's voice to the local translation unit.
  • the local translation unit sends the voice of user A to the access unit, and then the access unit sends the voice of user A to the translation server through the communication module.
  • the translation server After translating the voice of user A, the translation server returns the translation result of the voice of user A to the electronic device 100.
  • the electronic device 100 receives the translation result of the voice of the user A sent by the translation server by the communication module, and sends the translation result of the voice of the user A to the local end through the access unit after the communication module receives the translation result of the voice of the user A
  • the translation unit stores the translation result of user A's voice by the local translation unit. For example, the local translation unit may save the translation result of the voice of the user A into the first queue set in advance.
  • the local translation unit After receiving the translation result of user A's voice, the local translation unit reports the local voice translation result notification to the coordination unit. After the coordination unit receives the local voice translation result notification, if it is determined according to the voice detection result reported by the voice detection unit If there is no voice input, a notification is sent to the broadcast control unit to allow the voice translation result to be broadcast. It should be understood that, in the embodiment of the present application, the coordination unit may directly send a notification that allows the voice translation result to be broadcast to the broadcast control unit, or may send the notification that the voice translation result is broadcast to the broadcast control unit through the main control unit.
  • the broadcast control unit After the broadcast control unit receives the notification that the voice translation result is allowed to be broadcast, it notifies the broadcast module to obtain the voice translation result of user A for broadcast. In addition, if the coordination unit determines that there is no voice input according to the voice detection result reported by the voice detection unit, it also notifies the communication module to send the translation result of the voice of the user A to the electronic device 200.
  • the coordination unit After receiving the local voice translation result notification, if the coordination unit determines that there is a voice input according to the voice detection result reported by the voice detection unit, it sends a notification to the broadcast control unit to suspend the translation result. Therefore, the broadcast control unit can realize the control of the broadcast result of the speech translation module of the broadcast module. In the embodiment of the present application, if the coordination unit determines that there is a voice input according to the voice detection result reported by the voice detection unit, it may not send a notification to the broadcast control unit. After the coordination unit determines that there is no voice input according to the voice detection result reported by the voice detection unit, Then send a notification to the broadcast control unit to allow the voice translation result to be broadcast.
  • the coordination unit determines that the voice input is monitored according to the voice detection result reported by the voice detection unit, the communication module does not send the translation result of the voice of the user A to the electronic device 200.
  • the coordination unit may realize that the communication module does not send the translation result of the voice of the user A to the electronic device 200 by sending a notification to the communication module that the sending of the local voice translation result to the electronic device 200 is suspended.
  • the communication module may not send the translation result of the voice of the user A to the electronic device 200 when the notification that the local end voice translation result is allowed to be sent to the electronic device 200 is not received.
  • the electronic device 100 when the electronic device 100 realizes the voice translation of the user A through the translation server, the electronic device 100 may not be able to obtain the translation result of the voice of the user A due to a network signal or a speed of speech.
  • the poor network signal may cause the electronic device 100 to fail to upload the voice of the user A to the translation server, or may cause the translation server to fail
  • the translation result of the voice of the user A is returned to the electronic device 100 in time.
  • the electronic device 100 when the electronic device 100 detects the voice input of the user A, if the translation result of the voice of the user A is not received within the first period of time, the current network signal strength of the electronic device 100 is obtained.
  • the strength is the signal strength of the network used by the electronic device 100 to communicate with the translation server, which is used to translate the speech of the user A.
  • the first duration may be pre-configured in the electronic device 100, or may be determined by the electronic device 100 according to a preset algorithm. Take the network used by the electronic device 100 to communicate with the translation server as a mobile communication network as an example.
  • the electronic device 100 switches to a translation engine pre-configured in the electronic device 100 for voice translation, switches to a serving cell with a good network signal, or prompts the user to switch the network, as in the electronic
  • the device 100 is pre-configured with at least two SIM cards respectively using different mobile communication networks, it automatically switches to another mobile communication network and uses another mobile communication network to communicate with the translation server, or when the electronic device 100 turns on the WiFi network, automatically Switch to a WiFi network whose signal strength of the WiFi network is greater than the second threshold, etc. Therefore, the above technical solution helps to reduce the possibility that speech translation is blocked due to the deterioration of the network signal.
  • the electronic device 100 when the network signal strength of the mobile communication network is greater than the first threshold or the WiFi network signal strength is greater than the second threshold, the electronic device 100 prompts the user A to slow down.
  • the electronic device 100 may prompt the user to reduce the speech rate by displaying prompt information 1000 on the display screen 151.
  • the prompt information 900 may be "please speak slowly".
  • the electronic device 100 detects that the electronic device 100 is blank, it may prompt the user A to slow down by playing a prompt tone.
  • the prompt sound may be a "didi" prompt sound, or a "please slow down” voice.
  • the prompt sound may be pre-configured in the electronic device 100. Therefore, through the above technical solution, it helps to reduce the possibility of translation disorder caused by the user's speech speed being too fast.
  • the coordination unit of the electronic device 100 determines that the voice collection module has a voice input according to the received voice detection result reported by the voice detection unit, but if the coordination unit does not receive it within the preset first time period For notification of the local voice translation result, the coordination unit sends a notification of network signal strength detection to the access unit. After receiving the notification of network signal strength detection, the access unit obtains the network signal strength from the communication module. It should be understood that the network signal strength acquired by the access unit from the communication module is the signal strength of the network used by the electronic device 100 to communicate with the translation server. The translation server is used to translate the voice of user A.
  • a network normal notification is sent to the coordination unit.
  • the coordination unit After receiving the network normal notification, the coordination unit sends The control unit sends a notification prompting user A to reduce the speech rate. After receiving the notification prompting the user A to reduce the speech rate, the main control unit prompts the user A to reduce the speech rate.
  • the access unit may send a notification of network abnormality to the coordination unit, and then the coordination unit sends the notification of network abnormality to the main control unit.
  • the main control unit After receiving the notification of network abnormality, the main control unit prompts the user to switch the network, or automatically switches the network. For example, the main control unit may display the current network abnormality through the display screen 151 to prompt the user to switch the network.
  • the access unit may also automatically switch the voice translation service to the translation engine pre-configured in the electronic device 100. When the access unit detects that the network is normal, it can switch to the translation server again for voice translation.
  • the electronic device 100 When the electronic device 100 detects that there is no voice input for a long time, but receives the translation result of the voice of the user A, it may also be caused by the poor network signal strength or the user's speech speed being too fast. Therefore, in some embodiments, the electronic device 100 obtains the current network signal strength of the electronic device 100 when it detects that there is no voice input within the second duration but receives the translation result of the voice of the user A, the network signal strength is electronic The device 100 is used for the signal strength of the network communicating with the translation server, which is used to translate the speech of the user A.
  • the electronic device 100 for the manner in which the electronic device 100 achieves coordination according to the strength of the network signal, refer to the electronic device 100 when the voice input of the user A is detected and the translation result of the voice of the user A is not received within the first period of time.
  • a way to achieve network signal strength coordination refer to the electronic device 100 when the voice input of the user A is detected and the translation result of the voice of the user A is not received within the first period of time.
  • the coordination unit of the electronic device 100 determines that the voice collection module has no voice input within the second duration according to the voice detection result reported by the voice detection unit, the coordination unit receives the local voice translation result , The coordination unit sends a notification of network signal strength detection to the access unit.
  • the coordination unit sends a notification of network signal strength detection to the access unit. For the subsequent execution steps after the access unit receives the notification of network signal strength detection, you can refer to the case where the coordination unit does not receive the local voice translation result notification within the preset first time period when the voice acquisition module has voice input The subsequent execution steps after the access unit receives the notification of network signal strength detection will not be repeated here.
  • the first queue is used to cache the translation results of the voice of user A
  • the preset number is the maximum number of translation results that can be stored in the first queue.
  • the local translation unit when the local translation unit detects that the number of cached translation results of the voice of the user A exceeds a preset number, it sends a notification to preferentially broadcast the translation results to the coordination unit. After receiving the notification of preferentially broadcasting the local voice translation result, the coordination unit sends a notification of broadcasting the local voice translation result to the broadcasting control unit, so that the broadcasting module broadcasts the translation result of the voice of the user A.
  • the control method of the broadcast of the translation result of the voice of the user B is specifically described below.
  • the communication module is used to receive the voice of the user B collected by the electronic device 200 and send the received voice of the user B collected by the electronic device 200 to the opposite translation unit.
  • the peer translation unit sends the voice of user B to the access unit. Then the access unit sends the voice of user B to the translation server through the communication module. After translating the voice of user B, the translation server returns the translation result to the electronic device 100.
  • the electronic device 100 receives the user B's voice translation result sent by the translation server from the communication module, and after the communication module receives the user B's voice translation result, sends the user B's voice translation result to the peer translation through the access unit unit.
  • the translation result of the voice of user B is saved by the peer translation unit. For example, the peer translation unit may save the translation result of user B's voice into a pre-set second queue.
  • the peer translation unit After receiving the translation result of the voice of the user B, the peer translation unit reports the notification of the peer voice translation result to the coordinating unit. If there is no voice input, a notification is sent to the broadcast control unit to allow the voice translation result to be broadcast. It should be understood that, in the embodiment of the present application, the coordination unit may directly send a notification that allows the voice translation result to be broadcast to the broadcast control unit, or may send the notification that the voice translation result is broadcast to the broadcast control unit through the main control unit.
  • the broadcast control unit After the broadcast control unit receives the notification that the voice translation result is allowed to be broadcast, it notifies the broadcast module to obtain the voice translation result of user B for broadcast. In addition, if the coordination unit determines that there is no voice input according to the voice detection result reported by the voice detection unit, it also notifies the communication module to send the translation result of the voice of the user B to the electronic device 200.
  • the coordination unit After receiving the notification of the voice translation result from the peer end, if the coordination unit determines that there is a voice input according to the voice detection result reported by the voice detection unit, it sends a notification to the broadcast control unit to suspend the translation result. Therefore, the broadcast control unit can realize the control of the broadcast result of the speech translation module of the broadcast module. In the embodiment of the present application, if the coordination unit determines that there is a voice input according to the voice detection result reported by the voice detection unit, it may not send a notification to the broadcast control unit, and then the coordination unit determines that no voice input has been received according to the voice detection result reported by the voice detection unit , And then send a notification to the broadcast control unit to allow the announcement of speech translation results.
  • the coordination unit may also not transmit the translation result of the voice of the user A to the electronic device 200 when it is determined that there is a voice input according to the voice detection result reported by the voice detection unit.
  • the coordination unit may realize that the communication module does not send the translation result of the voice of the user B to the electronic device 200 by sending a notification to the communication module to suspend the sending of the peer voice translation result to the electronic device 200, or may not receive permission from the communication module Sending the notification of the translation result of the peer voice to the electronic device 200, so that the communication module does not send the translation result of the voice of the user B to the electronic device 200.
  • the electronic device 100 when the electronic device 100 realizes the voice translation of the user B through the translation server, the electronic device 100 may not be able to obtain the translation result of the voice of the user B due to a network signal or a speed of speech.
  • the poor network signal may cause the electronic device 100 to fail to upload the voice of the user A to the translation server, or may cause the translation server to fail
  • the translation result of the voice of the user B is returned to the electronic device 100 in time.
  • the electronic device 100 obtains the current network signal of the electronic device 100 when the user B's voice sent by the electronic device 200 is received but the translation result of the user B's voice is not received within the third duration
  • the network signal strength is the signal strength of the network used by the electronic device 100 to communicate with the translation server, and the translation server is used to translate user B's speech.
  • the third duration may be pre-configured in the electronic device 100, or may be determined by the electronic device 100 according to a preset algorithm.
  • the network used by the electronic device 100 for communication with the translation server is a mobile communication network as an example.
  • the electronic device 100 switches to a translation engine pre-configured in the electronic device 100 for voice translation, or prompts the user to switch the network, or automatically switches to a network signal strength greater than the first threshold Mobile communication network, or automatically switch to a wireless communication network with a network signal strength greater than a first threshold. This helps to reduce the possibility that the network signal becomes worse and the speech translation is blocked.
  • the electronic device 100 prompts the user B to slow down. This helps to reduce the possibility of translation disorder due to the user's rapid speech rate.
  • the electronic device 100 may prompt the user A to notify the user B to reduce the speech rate by displaying prompt information on the display screen 151.
  • the electronic device 100 sends the translation result of the speech speed-reduced speech that the user A prompts the user B to the electronic device 200, so as to achieve the purpose of prompting the user B to reduce the speech rate.
  • the electronic device 100 may also prompt the user A to notify the user B to slow down the speech by playing a prompt tone when the electronic device 100 detects a black screen.
  • the prompt sound may be a "didi" prompt sound, or a "please slow down" voice.
  • the prompt sound may be pre-configured in the electronic device 100.
  • the electronic device 100 may also automatically send a prompt tone to the electronic device 200, so that the electronic device 200 can play the prompt tone to the user B to achieve the purpose of prompting the user B to reduce the speech rate.
  • the coordination unit of the electronic device 100 determines that the communication module receives the voice from the electronic device 200 according to the received voice detection result reported by the voice detection unit, but if the coordination unit presets the third duration If the notification of the result of the voice translation of the peer end is not received, the coordination unit sends a notification of network signal strength detection to the access unit. After receiving the notification of network signal strength detection, the access unit obtains the network signal strength from the communication module. If the network signal strength is greater than the first threshold, it sends a network normal notification to the coordination unit. After the coordination unit receives the network normal notification, Send a notification to the main control unit prompting user B to reduce the speech rate.
  • the main control unit After receiving the notification prompting user B to decrease the speech rate, the main control unit prompts user B to decrease the speech rate. For example, after receiving the notification prompting the user B to reduce the speech rate, the main control unit may automatically send a prompt tone to the electronic device 200 through the communication module to prompt the user B to reduce the speech rate. For another example, the main control unit may also prompt the user of the peer end to speak too fast by displaying prompt information on the display screen 151 or playing a prompt sound to the user A through the broadcast module.
  • the access unit may send a notification of network abnormality to the coordination unit, and then the coordination unit sends the notification of network abnormality to the main control unit.
  • the main control unit switches to the network to the prompt. For example, the main control unit may display the current network abnormality through the display screen 151 to prompt the user to switch the network.
  • the access unit may also automatically switch the voice translation service to the translation engine pre-configured in the electronic device 100.
  • the access unit detects that the network is normal, it can also switch the voice translation service to the translation server again.
  • the electronic device 100 When the electronic device 100 detects that there is no voice input for a long time, but receives the translation result of the voice of the user B, it may also be caused by the poor network signal strength or the user's speech speed being too fast. Therefore, in some embodiments, the electronic device 100 obtains the current network signal strength of the electronic device 100 when it detects that there is no voice input within the fourth duration but receives the translation result of the voice of the user B, the network signal strength is electronic The signal strength of the network used by the device 100 to communicate with the translation server. It should be noted that the fourth duration may be pre-configured in the electronic device 100, or may be determined by the electronic device 100 according to a preset algorithm.
  • the electronic device 100 for the manner in which the electronic device 100 achieves coordination according to the strength of the network signal, refer to the electronic device 100 when the voice input of the user A is detected and the translation result of the voice of the user A is not received within the first period of time.
  • a way to achieve network signal strength coordination helps to improve the reliability of voice translation during calls.
  • the coordination unit of the electronic device 100 determines that the communication module within the fourth time period does not receive the voice from the electronic device 200 according to the voice detection result reported by the voice detection unit, but the coordination unit receives For the notification of the voice translation result of the peer end, the coordination unit sends a notification of network signal strength detection to the access unit.
  • the coordination unit For the subsequent execution steps after the access unit receives the notification of network signal strength detection, you can refer to the case where the coordination unit does not receive the local voice translation result notification within the preset first time period when the voice acquisition module has voice input The subsequent execution steps after the access unit receives the notification of network signal strength detection will not be repeated here.
  • the peer translation unit sends a notification of preferential broadcast of the peer voice translation result to the coordination unit. After receiving the notification of preferential broadcast of the peer voice translation result, the coordination unit sends the broadcast of the peer voice to the broadcast control unit The notification of the translation result causes the broadcast module to broadcast the translation result of user B's voice.
  • FIG. 11 it is a schematic flowchart of a method for broadcasting voice according to an embodiment of the present application.
  • the electronic device 100 executes the following steps.
  • a new voice translation result is received.
  • the translation result of the new voice may include the translation result of the voice of the user A or the translation result of the voice of the user B.
  • the translation result of the voice of the user A is the translation result of the local end voice
  • the translation result of the voice of the user B is the translation result of the opposite end voice.
  • step 1102 it is judged whether the translation result of the buffered voice exceeds a preset threshold, if yes, step 1104 is executed, otherwise step 1103 is executed.
  • step 1103 it is judged whether there is a voice input. If yes, step 1105 is executed; otherwise, step 1104 is executed.
  • voice input refers to that the electronic device 100 collects the voice of the user A and / or the electronic device 100 receives the voice of the user B sent by the electronic device 200. No voice input means that the electronic device 100 does not collect the voice of the user A, nor receives the voice of the user B sent by the electronic device 200.
  • Step 1104 the translation result of the voice is broadcasted, and the process ends.
  • the translation result of the broadcasted speech is the translation result of the earliest cached speech.
  • voice translation results can be cached in the queue.
  • a queue diagram for buffering translation results of speech is shown in FIG. 12, when the queue is empty, the electronic device 100 may store the translation result of the untranslated speech that has been translated first to position 1 in the queue, and then After receiving the translation result of the new speech, if the translation result of the speech stored in the queue at position 1 has not yet been broadcast, the new speech translation result is stored at position 2 in the queue, and so on. The electronic device broadcasts the speech translation result from position 1 in the queue shown in FIG. 12.
  • Step 1105 when the input voice is the peer voice, broadcast the peer voice and obtain the translation result of the peer voice, and re-execute step 1101, when the input voice is the local voice, obtain the translation of the local voice As a result, step 1101 is re-executed, and the flow ends.
  • the electronic device 100 displays the text corresponding to the voice of the real-time call record of the user A and the user B and the translation result of the corresponding voice on the display screen 151 during the call between the user A and the user B Text. Therefore, it helps users A and B to understand the meanings expressed by each other when the language is not available.
  • the electronic device 100 may display the text corresponding to the voice of the real-time call of the user A and the user B and the text of the translation result of the corresponding voice on the user interface 800.
  • the user interface 800 may include a call log text display area 804, and the text of the real-time call log of the user A and the user B is displayed through the call log text display area 804.
  • the voice of the user A collected by the electronic device 100 is "Hello, I want to buy a ticket.”
  • the voice of the received electronic device B is "OK, which day do you prefer” and the voice of the user A obtained
  • the translation result is "Hello, I want to buy ticket”
  • the translation result of the obtained user B's voice is "OK, which day do you want to order?”
  • the text corresponding to the voice of the real-time call record of user A and user B and the text of the translation result of the corresponding voice may be obtained by the electronic device 100 based on voice recognition, or the electronic device 100
  • the voice of the real-time call record of user B and the translation result of the corresponding voice are reported to the voice translation server, and the voice translation server converts the voice into text and sends it to the electronic device 100.
  • the embodiment of the present application does not limit the manner in which the electronic device 100 acquires text.
  • a prompt tone for the voice call translation function that has been turned on is configured in the electronic device 100 in advance, for example, pre-configured in the electronic device
  • the language used for the prompt tone of the voice call translation function in 100 can be the system language or the set local language. When the system language or the local language changes, the voice configured in the electronic device 100 is pre-configured The language used for the prompt tone of the call translation function changes accordingly.
  • the electronic device 100 After detecting that user B answers the call of user A, the electronic device 100 broadcasts the prompt tone of the voice call translation function pre-configured in the electronic device 100, and The electronic device 200 sends the translation result of the prompt sound that the voice call translation function is turned on.
  • the language used for the translation result of the prompt tone with the voice call translation function turned on is the set opposite language.
  • the electronic device 200 After receiving the translation result of the prompt tone that the voice call translation function is turned on, the electronic device 200 plays the prompt tone that the voice call translation function is turned on, so that the user B knows that the voice call translation function of the electronic device 100 is turned on.
  • the electronic device 100 may also display a text on the display screen 151 that the voice call translation function has been activated. Take the text of the prompt tone that the voice call translation function is turned on as "Hello, welcome to use the voice call translation service. Please start the call after the voice broadcast is completed.” For example, the electronic device 100 detects that user B answers user A After the call, the user interface 800 displays "Hello, welcome to use the voice call translation service, please start the call after the voice broadcast is completed.”, As shown in Figure 14.
  • the electronic device 100 sets the local language setting 803 and the remote language setting 802
  • the electronic device 100 saves the current language settings 803 and The settings made by the peer language setting 802.
  • a virtual button for turning on or off a voice call translation function may also be set on the electronic device 100. This helps users to control whether to turn on or off the voice call translation function.
  • the user can turn on or off the voice call translation function by operating the virtual button, or the electronic device 100 can automatically determine whether to turn on or off the voice call translation service to set the virtual button.
  • the user interface 800 includes a virtual button 1400, which is used to turn on or off the voice call translation function.
  • the electronic device 100 turns off the voice call translation function; when the virtual button 1200 is turned on, the electronic device 100 turns on the voice call translation function.
  • the local language setting 803 and the peer language setting can be hidden or grayed out in the user interface 800.
  • a voice translation setting button 1601 may also be added to the system setting interface 1600, where the voice translation setting button 1601 is used to turn on or off the voice call translation function.
  • the electronic device 100 may display the system setting interface 1600 in response to operating the setting icon.
  • the electronic device 100 when the electronic device 100 serves as the called terminal and the electronic device 200 serves as the calling terminal, if the electronic device 200 does not have the voice call translation function, if the electronic device 100 has the voice call translation function, the electronic device 100 After receiving the call from user B, the translation process based on the voice call can be performed. Specifically, the electronic device 100 performs a translation method based on a voice call. For details, refer to the electronic device 100 as a calling end and the electronic device 200 as a called end to perform a translation method based on a voice call, which will not be repeated here.
  • the electronic device 100 may display the user interface 1700 on the display screen 151.
  • the user interface 1700 includes a voice translation button 1701.
  • the electronic device 100 may display the user interface 800 shown in FIG. 8 on the display screen 151 in response to the operation of the voice translation button 1701.
  • the electronic device 100 may also turn on or off the voice call translation function in response to the operation of the voice translation button 1701. This helps users turn on voice call translation.
  • the translation method based on voice calls in the embodiments of the present application can also be applied to other applications that can perform real-time voice communication, such as WeChat.
  • the above-mentioned embodiments of the present application are described only for two-person conversations, and the embodiments of the present application can also be applied to application scenarios of multi-person conversations, such as telephone conferences.
  • the method provided by the embodiments of the present application is introduced from the perspective of an electronic device as an execution subject.
  • the electronic device may include a hardware structure and / or a software module, and the above functions are implemented in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether one of the above functions is executed in a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application of the technical solution and design constraints.
  • FIG. 18 shows an electronic device 1800 provided by the present application.
  • the electronic device 1800 includes at least one processor 1810, memory 1820, and transceiver 1830.
  • the processor 1810 is coupled to the memory 1820 and the transceiver 1830.
  • the coupling in the embodiments of the present application is an indirect coupling or communication connection between devices, units, or modules, which may be electrical, mechanical, or other forms used for devices , Information exchange between units or modules.
  • the memory 1820 is used to store program instructions.
  • the transceiver 1830 is used to receive or transmit data.
  • the processor 1810 is configured to call the program instructions stored in the memory 1820, so that the electronic device 1800 executes the voice call-based translation method provided in the embodiment of the present application.
  • the electronic device 1800 may be used to implement a voice call-based translation method according to an embodiment of the present application.
  • voice call-based translation method may be used to implement a voice call-based translation method according to an embodiment of the present application.
  • Computer-readable media includes computer storage media and communication media, where communication media includes any medium that facilitates transfer of a computer program from one place to another.
  • a storage medium may be any available medium that can be accessed by a computer.
  • computer-readable media may include RAM, ROM, electrically erasable programmable read-only memory (electrically erasable programmable read only memory, EEPROM), compact disc read-only (memory, CD- ROM) or other optical disk storage, magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store a desired program code in the form of instructions or data structures and that can be accessed by a computer. Also. Any connection can become a computer-readable medium as appropriate.
  • disks and discs include compact discs (CDs), laser discs, optical discs, digital video discs (DVDs), floppy disks, and Blu-ray discs, where Disks usually copy data magnetically, while disks use lasers to copy data optically.
  • CDs compact discs
  • DVDs digital video discs
  • floppy disks floppy disks
  • Blu-ray discs where Disks usually copy data magnetically, while disks use lasers to copy data optically.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Human Computer Interaction (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Environmental & Geological Engineering (AREA)
  • Telephone Function (AREA)

Abstract

A voice call-based translation method and an electronic device, which relate to the technical field of terminals, the method comprising: a first electronic device establishing a voice call connection with a second electronic device; when a voice call translation function of the first electronic device is started, the first electronic device acquiring a voice of a first user, reporting the voice of the first user to a translation server, receiving a translation result for the voice of the first user that is sent by the translation server, and sending the translation result for the voice of the first user to the second electronic device; receiving a voice of a second user that is sent by the second electronic device, reporting the voice of the second user to the translation server, receiving a translation result for the voice of the second user that is sent by the translation server, and broadcasting the translation result for the voice of the second user. Therefore, such a technical solution helps to improve communication efficiency between users speaking different languages.

Description

一种基于语音通话的翻译方法及电子设备Translation method based on voice call and electronic equipment
本申请要求于2018年10月15日提交中国国家知识产权局、申请号为201811198715.7、发明名称为“一种基于语音通话的翻译方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires the priority of the Chinese patent application submitted to the State Intellectual Property Office of China on October 15, 2018 with the application number 201811198715.7 and the invention titled "A Translation Method and Electronic Equipment Based on Voice Conversation." The reference is incorporated in this application.
技术领域Technical field
本申请涉及终端技术领域,特别涉及一种基于语音通话的翻译方法及电子设备。The present application relates to the technical field of terminals, in particular to a translation method and electronic equipment based on voice calls.
背景技术Background technique
手机等电子设备的普及使得人与人之间的通信不再受时间和空间的制约,为人们的生活和工作带来了极大的便利。但是,受地域的影响,通信双方可能因语言不同,而导致沟通障碍。The popularity of mobile phones and other electronic devices has made communication between people no longer restricted by time and space, which has brought great convenience to people's lives and work. However, due to geographical influence, the communication between the two parties may cause communication barriers due to different languages.
因此,对于如何使得使用不同语言的通信双方通过手机实现无障碍沟通的研究,具有重要的实用价值。Therefore, it is of great practical value to study how to enable communication parties using different languages to achieve barrier-free communication through mobile phones.
发明内容Summary of the invention
本申请实施例提供一种基于语音通话的翻译方法及电子设备,有助于提高使用不同语言的用户在使用电子设备进行通信时的沟通效率。The embodiments of the present application provide a voice call-based translation method and an electronic device, which help to improve the communication efficiency of users who use different languages when using electronic devices for communication.
第一方面,本申请实施例提供了一种基于语音通话的翻译方法,所述方法包括:In a first aspect, an embodiment of the present application provides a voice call-based translation method. The method includes:
第一电子设备与第二电子设备建立语音通话连接;当所述第一电子设备的语音通话翻译功能已开启时,所述第一电子设备采集第一用户的语音,向翻译服务器上报所述第一用户的语音,以及接收所述翻译服务器发送的所述第一用户的语音的翻译结果,并将所述第一用户的语音的翻译结果发送给所述第二电子设备;以及接收所述第二电子设备发送的第二用户的语音,向所述翻译服务器上报所述第二用户的语音,以及接收所述翻译服务器发送的所述第二用户的语音的翻译结果,并播报所述第二用户的语音的翻译结果。The first electronic device establishes a voice call connection with the second electronic device; when the voice call translation function of the first electronic device is turned on, the first electronic device collects the voice of the first user and reports the first A user's voice, and receiving the translation result of the first user's voice sent by the translation server, and sending the translation result of the first user's voice to the second electronic device; and receiving the first The second user's voice sent by the two electronic devices reports the second user's voice to the translation server, and receives the translation result of the second user's voice sent by the translation server, and broadcasts the second The translation result of the user's voice.
本申请实施例中由于第一电子设备能够实现对用户通话过程中双端语音的翻译,从而有助于提高使用不同语言的用户的沟通效率。In the embodiment of the present application, since the first electronic device can realize the translation of the double-ended voice during the user's call, it helps to improve the communication efficiency of users using different languages.
在一种可能的设计中,所述第一电子设备与所述翻译服务器通过网络通信,所述第一电子设备当网络信号强度小于或者等于预设阈值时,采集到所述第一用户的语音后,对所述第一用户的语音进行翻译,得到所述第一用户的语音的翻译结果;接收到所述第二用户的语音后,对所述第二用户的语音进行翻译,得到所述第二用户的语音的翻译结果。通过上述技术方案,有助于降低因网络信号变差,导致语音翻译失败的可能性。In a possible design, the first electronic device communicates with the translation server through a network, and the first electronic device collects the voice of the first user when the network signal strength is less than or equal to a preset threshold Then, translate the voice of the first user to obtain a translation result of the voice of the first user; after receiving the voice of the second user, translate the voice of the second user to obtain the The translation result of the second user's voice. Through the above technical solutions, it helps to reduce the possibility of speech translation failure due to the deterioration of the network signal.
在一种可能的设计中,所述第一电子设备当所述网络信号强度小于或者等于所述预设阈值时,提示所述第一用户切换网络,或者自动切换到所述第一电子设备进行语音翻译,或者自动切换到网络信号强度大于所述预设阈值的网络上。从而有助于降低因网络信号变差,导致语音翻译失败的可能性。In a possible design, when the network signal strength is less than or equal to the preset threshold, the first electronic device prompts the first user to switch the network, or automatically switches to the first electronic device to perform Voice translation, or automatically switch to a network with a network signal strength greater than the preset threshold. This helps reduce the possibility of speech translation failure due to network signal deterioration.
在一种可能的设计中,所述第一电子设备根据本端语言和对端语言,确定所述翻译服务器,然后向所述翻译服务器上报所述第一用户的语音或上报所述第二用户的语音。其中,所述本端语言为所述第一用户所使用的语言,所述对端语言为所述第二用户所使用的语言。从而有助于使得第一电子设备能够选择更合适的翻译服务器对语音进行翻译,提高语音翻译的可靠性。In a possible design, the first electronic device determines the translation server according to the local language and the peer language, and then reports the voice of the first user or the second user to the translation server Voice. Wherein, the local language is the language used by the first user, and the peer language is the language used by the second user. Therefore, it helps to enable the first electronic device to select a more appropriate translation server to translate the speech, and improve the reliability of speech translation.
在一种可能的设计中,所述第一电子设备与所述第二电子设备建立语音通话连接中或者所述第一电子设备与所述第二电子设备建立语音通话连接之后,当所述本端语言和所述对端语言不同时,自动开启语音通话翻译功能。有助于简化用户的操作。In a possible design, when the first electronic device establishes a voice call connection with the second electronic device or after the first electronic device establishes a voice call connection with the second electronic device, when the When the end language is different from the peer language, the voice call translation function is automatically turned on. Helps simplify user operations.
在一种可能的设计中,所述第一电子设备响应于用户的第一操作,开启语音通话翻译功能。有助于提高第一电子设备与用户的交互。In a possible design, the first electronic device activates the voice call translation function in response to the user's first operation. It helps to improve the interaction between the first electronic device and the user.
在一种可能的设计中,所述第一电子设备向所述第二电子设备发送所述第一电子设备的语音通话翻译功能已开启的提示信息,所述提示信息所使用的语言为所述对端语言。有助于提高第一电子设备与用户的交互。In a possible design, the first electronic device sends a prompt message to the second electronic device that the voice call translation function of the first electronic device has been turned on, and the language used for the prompt message is the language Peer language. It helps to improve the interaction between the first electronic device and the user.
在一种可能的设计中,所述第一电子设备获取所述本端语言和所述对端语言;其中,所述本端语言为所述系统语言、或者所述第一用户和所述第二用户的最近一次的通话记录中所述第一用户所使用的语言、或者所述第一用户的电话号码归属地的母语、或者所述第一电子设备接入的通信网络所在的归属地的母语、或者响应于用户操作设置的语言;所述对端语言为所述第二用户的电话号码归属地的母语、或者所述第一用户和所述第二用户的最近一次的通话记录中所述第二用户所使用的语言、或者所述第二电子设备接入的通信网络所在的归属地的母语、或者响应于用户操作设置的语言。有助于简化本端语言和对端语言的获取方式。In a possible design, the first electronic device acquires the local language and the opposite language; wherein, the local language is the system language, or the first user and the first language The language used by the first user in the last call record of the two users, or the native language of the place where the phone number of the first user belongs, or the place where the communication network accessed by the first electronic device is located Native language, or language set in response to user operation; the peer language is the native language of the place where the phone number of the second user belongs, or the last call record of the first user and the second user The language used by the second user, or the native language of the home area where the communication network accessed by the second electronic device is located, or the language set in response to user operation. Help to simplify the way of acquiring the local language and the opposite language.
在一种可能的设计中,所述第一电子设备当未采集到所述第一用户的语音以及未接收到所述第二用户的语音时,播报所述第二用户的语音的翻译结果。有助于降低语音播报时的叠音或者不完整的可能性。In a possible design, when the first user's voice is not collected and the second user's voice is not collected, the first electronic device broadcasts the translation result of the second user's voice. Helps reduce the possibility of overlapping or incomplete voice announcements.
在一种可能的设计中,所述第一电子设备当接收到第二用户的语音、且第一时长内未接收到所述翻译服务器发送的所述第二用户的语音的翻译结果时,获取所述网络信号强度;当所述网络信号强度大于预设阈值时,提示所述第二用户降低语速。有助于降低因用户语速过快导致翻译服务器无法识别语音进行翻译的可能性。In a possible design, the first electronic device obtains when the second user's voice is received and the translation result of the second user's voice sent by the translation server is not received within the first duration The network signal strength; when the network signal strength is greater than a preset threshold, the second user is prompted to reduce the speech rate. It helps reduce the possibility that the translation server cannot recognize the voice for translation because the user's speech speed is too fast.
在一种可能的设计中,所述第一电子设备在显示屏上显示第一提示信息,所述第一提示信息用于提示所述第一用户通知所述第二降低语速;或者,所述第一电子设备通过向第二电子设备发送第一语音,所述第一语音用于提示所述第二用户降低语速;或者,所述第一电子设备向所述第一用户播放第二语音,第二语音用于提示所述第一用户通知所述第二用户降低语速。有助于简化通知用户放慢语速的方式。In a possible design, the first electronic device displays first prompt information on a display screen, and the first prompt information is used to prompt the first user to notify the second reduced speech rate; or, The first electronic device sends a first voice to a second electronic device, the first voice is used to prompt the second user to reduce the speech rate; or, the first electronic device plays a second voice to the first user Voice, and the second voice is used to prompt the first user to notify the second user to reduce the speech rate. Helps simplify the way to notify users to slow down.
在一种可能的设计中,所述第一电子设备缓存的所述第二用户的语音的翻译结果超过预设数量时,播报所述第二用户的语音的翻译结果。有助于降低语音的翻译结果丢包的可能性。In a possible design, when the translation result of the second user's voice buffered by the first electronic device exceeds a preset number, the translation result of the second user's voice is broadcast. Helps reduce the possibility of packet loss in the translation of speech.
在一种可能的设计中,所述第一电子设备播报所述第一用户的语音的翻译结果。In a possible design, the first electronic device broadcasts the translation result of the voice of the first user.
在一种可能的设计中,所述第一电子设备在显示屏上显示所述第一用户与所述第二用户的通话语音记录的文本以及语音的翻译结果的文本。有助于帮助用户理解对方所表达的 意思。In a possible design, the first electronic device displays the text of the voice recording of the conversation between the first user and the second user and the text of the translation result of the voice on the display screen. It helps users understand what the other party is saying.
在一种可能的设计中,所述第一电子设备与第二电子设备建立语音通话连接之后,使用所述本端语言播放或者显示语音通话翻译功能已开启的提示信息。有助于提示用户语音通话翻译功能已开启。In a possible design, after the first electronic device establishes a voice call connection with the second electronic device, the local language is used to play or display a prompt message that the voice call translation function is turned on. It helps to remind users that the voice call translation function is turned on.
第二方面,本申请实施例提供的一种电子设备,包括:一个或多个处理器、存储器、多个应用程序、以及一个或多个计算机程序;其中,一个或多个计算机程序被存储在存储器中,当计算机程序被电子设备执行时,实现本申请实施例上述第一方面以及第一方面涉及的任一可能设计的方法。In a second aspect, an electronic device provided by an embodiment of the present application includes: one or more processors, memory, multiple application programs, and one or more computer programs; where one or more computer programs are stored in In the memory, when the computer program is executed by the electronic device, the foregoing first aspect and any possible design method related to the first aspect of the embodiments of the present application are implemented.
第三方面,本申请实施例提供的一种芯片,所述芯片与电子设备中的存储器耦合,使得所述芯片在运行时调用所述存储器中存储的计算机程序,实现本申请实施例第一方面以及第一方面涉及的任一可能设计的方法。In a third aspect, a chip provided by an embodiment of the present application is coupled to a memory in an electronic device, so that the chip calls a computer program stored in the memory when the chip is running, to implement the first aspect of the embodiment of the present application And any possible design method involved in the first aspect.
第四方面,本申请实施例的一种计算机存储介质,该计算机存储介质存储有计算机程序,当所述计算机程序在电子设备上运行时,使得电子设备执行本申请实施例第一方面以及第一方面涉及的任一可能设计的方法。According to a fourth aspect, a computer storage medium according to an embodiment of the present application stores a computer program, and when the computer program runs on an electronic device, the electronic device causes the electronic device to execute the first aspect and the first aspect of the embodiment of the present application Any possible design method involved in the aspect.
第五方面,本申请实施例的一种计算机程序产品,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行实现本申请实施例上述第一方面以及第一方面涉及的任一可能设计的方法。In a fifth aspect, a computer program product according to an embodiment of the present application, when the computer program product runs on an electronic device, causes the electronic device to perform the above-mentioned first aspect and any tasks related to the first aspect of the embodiment of the present application A possible design method.
另外,第二方面至第五方面中任一种可能设计方式所带来的技术效果可参见方法部分相关中不同设计方式所带来的技术效果,此处不再赘述。In addition, for the technical effects brought by any of the possible design methods in the second aspect to the fifth aspect, please refer to the technical effects brought by different design methods in the method section, which will not be repeated here.
附图说明BRIEF DESCRIPTION
图1为本申请实施例适用的一种通信系统的架构示意图;FIG. 1 is a schematic structural diagram of a communication system to which an embodiment of this application is applicable;
图2为本申请实施例提供的一种电子设备的硬件结构示意图;2 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application;
图3为本申请实施例提供的一种电子设备的具体的结构示意图;3 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
图4为本申请实施例应用场景的示意图;4 is a schematic diagram of an application scenario of an embodiment of this application;
图5为本申请实施例拨打电话的用户界面的示意图;5 is a schematic diagram of a user interface for making a call according to an embodiment of the application;
图6为本申请实施例对端语言设置的用户界面的示意图;6 is a schematic diagram of a user interface for setting a peer language according to an embodiment of the present application;
图7为本申请实施例系统语言设置的示意图;7 is a schematic diagram of system language setting according to an embodiment of the present application;
图8为本申请实施例的应用场景的示意图;8 is a schematic diagram of an application scenario of an embodiment of this application;
图9为本申请实施例的基于语音通话的翻译方法的流程示意图;9 is a schematic flowchart of a voice call-based translation method according to an embodiment of the present application;
图10为本申请实施例提示用户放慢语速的用户界面的示意图;10 is a schematic diagram of a user interface prompting the user to slow down the speech rate according to an embodiment of the present application;
图11为本申请实施例一种语音播报方法的流程示意图;11 is a schematic flowchart of a voice broadcast method according to an embodiment of the present application;
图12为本申请实施例一种队列的示意图;12 is a schematic diagram of a queue according to an embodiment of this application;
图13为本申请实施例文本显示的用户界面的示意图;13 is a schematic diagram of a user interface for text display in an embodiment of the present application;
图14为本申请实施例另一种用户界面的示意图;14 is a schematic diagram of another user interface according to an embodiment of the present application;
图15为本申请实施例另一种用户界面的示意图;15 is a schematic diagram of another user interface according to an embodiment of the present application;
图16为本申请实施例系统设置界面的示意图;16 is a schematic diagram of a system setting interface of an embodiment of this application;
图17为本申请实施例来电显示的用户界面的示意图;17 is a schematic diagram of a user interface for caller ID display according to an embodiment of the present application;
图18为本申请实施例另一种电子设备的结构示意图。18 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
具体实施方式detailed description
应理解,本申请实施例中“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系。例如,A和/或B,可以表示以下三种关系:单独存在A,同时存在A和B,单独存在B。其中A、B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一(项)个”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a、b或c中的至少一项(个),可以表示:a,b,c,a和b,a和c,b和c,或a、b和c,其中a、b、c可以是单个,也可以是多个。It should be understood that in the embodiments of the present application, "at least one" refers to one or more, and "multiple" refers to two or more than two. "And / or" describes the relationship of the related objects, indicating that there can be three relationships. For example, A and / or B can represent the following three relationships: A exists alone, A and B exist simultaneously, and B exists alone. A and B can be singular or plural. The character "/" generally indicates that the related object is a "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of a single item (s) or a plurality of items (s). For example, at least one (a) of a, b, or c can represent: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c It can be single or multiple.
为了使得使用不同语言的通信双方(例如母语不同的通信双方)通过电子设备实现无障碍沟通,本申请实施例提供了一种基于语音通话的翻译方法。In order to enable communication parties using different languages (for example, communication parties with different mother tongues) to achieve barrier-free communication through electronic devices, the embodiments of the present application provide a translation method based on voice calls.
如图1所示,为本申请实施例适用的一种通信系统的架构示意图。具体的,图1所示的通信系统架构包括电子设备100、电子设备200和移动通信网络。电子设备100和电子设备200可以通过移动通信网络进行通信。其中,移动通信网络可以为第二代移动通信(2nd-generation,2G)网络、或者第三代移动通信(3rd-generation,3G)网络,又可以为第四代移动通信(4th-generation,4G)网络,还可以第五代移动通信(5th-generation,5G)网络等。As shown in FIG. 1, it is a schematic structural diagram of a communication system to which embodiments of the present application are applicable. Specifically, the communication system architecture shown in FIG. 1 includes an electronic device 100, an electronic device 200, and a mobile communication network. The electronic device 100 and the electronic device 200 can communicate through a mobile communication network. Among them, the mobile communication network may be a second generation mobile communication (2nd-generation, 2G) network, or a third generation mobile communication (3rd-generation, 3G) network, or a fourth generation mobile communication (4th-generation, 4G) ) Network, you can also the fifth-generation mobile communication (5th-generation, 5G) network, etc.
如图1所示,用户A使用电子设备100,用户B使用电子设备200,在用户A和用户B语言不通的情况下,例如用户A使用语言1,用户B使用语言2,为了便于用户A和用户B的沟通,本申请实施例中电子设备A可以在用户A和用户B通话过程中,将采集的用户A使用语言1发出的语音翻译为语言2,然后通过移动通信网络将翻译为语言2的语音发送给电子设备200,从而使得电子设备200能够直接向用户B播放翻译为语言2的语音。而电子设备200可以将采集的用户B使用语言2发出的语音通过移动通信网络发送给电子设备100,电子设备100在接收到电子设备200发送的语音后,将接收到的语音翻译为语言1,然后播放给用户A,从而有助于用户A与用户B在语言不通的情况下进行沟通。As shown in FIG. 1, user A uses electronic device 100 and user B uses electronic device 200. In the case where user A and user B cannot communicate, for example, user A uses language 1 and user B uses language 2. For the communication of user B, in the embodiment of the present application, electronic device A can translate the collected voice of user A using language 1 into language 2 during the conversation between user A and user B, and then translate into language 2 through the mobile communication network The voice of is sent to the electronic device 200, so that the electronic device 200 can directly play the voice translated into the language 2 to the user B. The electronic device 200 can send the collected voice of the user B using language 2 to the electronic device 100 through the mobile communication network. After receiving the voice sent by the electronic device 200, the electronic device 100 translates the received voice into language 1. Then play it to user A, which helps user A and user B to communicate without language.
以语言1为中文,语言2为英文为例。例如,电子设备100采集的用户A的语音为“我是露西,有什么需要帮助您的吗?”,则获取的用户A的语音的翻译结果为“This is Lucy speaking,may I help you?”,并将“This is Lucy speaking,may I help you?”的语音发送给电子设备200,以使得电子设备200向用户B播放“This is Lucy speaking,may I help you?”的语音,从而使得用户B在不懂中文的情况下,可以明白用户A所表达的意思。电子设备200在采集到用户B的语音“I want to buy a ticket”后,将用户B的语音“I want to buy a ticket”通过移动通信网络发送给电子设备100。电子设备100在接收到电子设备200发送的“I want to buy a ticket”的语音后,获取用户B的语音的翻译结果“我想买一张票”,并将“我想买一张票”的语音播放给用户A,从而使得用户A在不懂英文的情况下,可以明白用户B所表达的意思。Take language 1 as Chinese and language 2 as English as an example. For example, if the voice of user A collected by the electronic device 100 is "I am Lucy, do you need any help?", The translation result of the voice of user A obtained is "This is Lucy speaking, may I help you?" ", And the voice of" This is Lucy speaking, may I help you? "Is sent to the electronic device 200, so that the electronic device 200 plays the voice of" This is Lucy speaking, may I help you? "To the user B, so that User B can understand the meaning expressed by user A without understanding Chinese. After collecting the voice "I want to buy ticket" of user B, the electronic device 200 sends the voice "I want to buy ticket" of user B to the electronic device 100 through the mobile communication network. After receiving the voice of "I want to buy ticket" sent by the electronic device 200, the electronic device 100 obtains the translation result of the voice of the user B "I want to buy a ticket" and replaces "I want to buy a ticket" Is played to user A, so that user A can understand the meaning of user B without understanding English.
在另一些实施例中,电子设备100还可以将采集的用户A使用语言1发出的语音通过移动通信网络发送给电子设备200,从而使得电子设备200能够将用户A使用语言1发出的语音播放给用户B。此外,在又一些实施例中,本申请实施例中电子设备100在通过移动通信网络接收到电子设备200发送的使用语言2的语音后,还可以向用户A播放使用语言2的语音。In some other embodiments, the electronic device 100 may also send the collected voice uttered by user A using language 1 to the electronic device 200 through the mobile communication network, so that the electronic device 200 can play the voice uttered by user A using language 1 to User B. In addition, in some other embodiments, after receiving the voice using the language 2 sent by the electronic device 200 through the mobile communication network, the electronic device 100 in the embodiment of the present application may also play the voice using the language 2 to the user A.
为了降低对电子设备100处理性能的要求,在一些实施例中,图1所示的通信系统架构还包括翻译服务器。电子设备100可以将采集到的用户A的语音或者接收到的来自电子设备200采集的用户B的语音发送到翻译服务器上进行翻译。需要说明的是,用于翻译电子设备100采集的用户A的语音的翻译服务器和用于翻译电子设备100接收到的用户B的语音的翻译服务器可以为同一个翻译服务器,也可以为不同的翻译服务器,本申请实施例对通信系统中翻译服务器的个数不作限定。应理解,电子设备100可以通过无线保真(wireless-fidelity,Wi-Fi)、蓝牙、或者移动通信网络等与翻译服务器通信。In order to reduce the requirements on the processing performance of the electronic device 100, in some embodiments, the communication system architecture shown in FIG. 1 further includes a translation server. The electronic device 100 may send the collected voice of the user A or the received voice of the user B collected from the electronic device 200 to the translation server for translation. It should be noted that the translation server for translating the voice of user A collected by the electronic device 100 and the translation server for translating the voice of user B received by the electronic device 100 may be the same translation server or different translations. Server, the embodiment of the present application does not limit the number of translation servers in the communication system. It should be understood that the electronic device 100 may communicate with the translation server through wireless fidelity (Wi-Fi), Bluetooth, or a mobile communication network.
本申请实施例中的电子设备100和电子设备200在用户A和用户B通话过程中,可以只有一方例如电子设备100支持语音通话翻译功能即可,本申请实施例中电子设备200可以支持语音通话翻译功能,也可以不支持语音通话翻译功能,对此不作限定。The electronic device 100 and the electronic device 200 in the embodiment of the present application may only have one party, for example, the electronic device 100 supports the voice call translation function during the conversation between the user A and the user B. In the embodiment of the present application, the electronic device 200 may support the voice call The translation function may not support the voice call translation function, which is not limited.
应理解,本申请实施例中电子设备100可以是便携式电子设备,诸如手机、平板电脑、具备无线通讯功能的可穿戴设备(如智能手表)、车载设备等。便携式电子设备的示例性实施例包括但不限于搭载
Figure PCTCN2019111120-appb-000001
或者其它操作系统的便携式电子设备。上述便携式电子设备也可以是诸如具有触敏表面(例如触控面板)的膝上型计算机(Laptop)等。还应当理解的是,在本申请其他一些实施例中,电子设备100也可以是具有触敏表面(例如触控面板)的台式计算机。
It should be understood that the electronic device 100 in the embodiment of the present application may be a portable electronic device, such as a mobile phone, a tablet computer, a wearable device (such as a smart watch) with a wireless communication function, an in-vehicle device, and the like. Exemplary embodiments of portable electronic devices include, but are not limited to
Figure PCTCN2019111120-appb-000001
Or portable electronic devices of other operating systems. The above-mentioned portable electronic device may also be, for example, a laptop computer having a touch-sensitive surface (for example, a touch panel). It should also be understood that, in some other embodiments of the present application, the electronic device 100 may also be a desktop computer with a touch-sensitive surface (such as a touch panel).
示例性的,如图2所示为一种可能的电子设备100的硬件结构示意图。应理解,图示电子设备100的硬件结构仅是一个示例。并且,电子设备100可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。Exemplarily, FIG. 2 is a schematic diagram of a hardware structure of a possible electronic device 100. It should be understood that the illustrated hardware structure of the electronic device 100 is only an example. Also, the electronic device 100 may have more or fewer components than shown in the figure, may combine two or more components, or may have different component configurations. The various components shown in the figures can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application specific integrated circuits.
如图2所示,电子设备100包括处理器110、内部存储器121、外部存储器接口122、天线1、移动通信模块131、天线2、无线通信模块132、音频模块140、扬声器140A、受话器140B、麦克风140C、耳机接口140D、显示屏151、用户标识模块(subscriber identification module,SIM)卡接口152、摄像头153、按键154、传感器模块160、通用串行总线(universal serial bus,USB)接口170、充电管理模块180、电源管理模块181和电池182。在另一些实施例中,电子设备100还可以包括马达、指示器等。As shown in FIG. 2, the electronic device 100 includes a processor 110, an internal memory 121, an external memory interface 122, an antenna 1, a mobile communication module 131, an antenna 2, a wireless communication module 132, an audio module 140, a speaker 140A, a receiver 140B, a microphone 140C, headset interface 140D, display screen 151, subscriber identification module (SIM) card interface 152, camera 153, button 154, sensor module 160, universal serial bus (USB) interface 170, charging management Module 180, power management module 181 and battery 182. In other embodiments, the electronic device 100 may further include a motor, an indicator, and the like.
其中,处理器110可以包括一个或多个处理单元。例如:处理器110可以包括应用处理器(application processor,AP)、调制解调处理器、图形处理器(graphics processing unit,GPU)、图像信号处理器(image signal processor,ISP)、控制器、视频编解码器、数字信号处理器(digital signal processor,DSP)、基带处理器、和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (ISP), a controller, and a video Codec, digital signal processor (DSP), baseband processor, and / or neural-network processor (NPU), etc. Among them, different processing units may be independent devices, or may be integrated in one or more processors.
在一些实施例中,处理器110中还可以设置存储器,用于存储指令和数据。示例的,处理器110中的存储器可以为高速缓冲存储器。该存储器可以用于保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从该存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。In some embodiments, a memory may also be provided in the processor 110 for storing instructions and data. Exemplarily, the memory in the processor 110 may be a cache memory. The memory may be used to store instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. The repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应 用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据、电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、通用闪存存储器(universal flash storage,UFS)等。The internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. Among them, the storage program area may store an operating system, at least one function required application programs (such as sound playback function, image playback function, etc.). The storage data area may store data (such as audio data, phone book, etc.) created during use of the electronic device 100 and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and so on.
外部存储器接口122可以用于连接外部存储卡(例如,Micro SD卡),实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口122与处理器110通信,实现数据存储功能。例如将音乐、视频等文件保存在外部存储卡中。The external memory interface 122 may be used to connect an external memory card (for example, a Micro SD card) to achieve expansion of the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 122 to realize the data storage function. For example, save music, video and other files in an external memory card.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。 Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, the antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
移动通信模块131可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块131可以包括至少一个滤波器、开关、功率放大器、低噪声放大器(low noise amplifier,LNA)等。移动通信模块131可以由天线1接收电磁波信号,并对接收的电磁波信号进行滤波、放大等处理,传送至调制解调处理器进行解调。移动通信模块131还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波信号辐射出去。在一些实施例中,移动通信模块131的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块131的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。例如,移动通信模块131可以向电子设备200发送语音,也可以接收电子设备200发送的语音。The mobile communication module 131 can provide a wireless communication solution including 2G / 3G / 4G / 5G and the like applied to the electronic device 100. The mobile communication module 131 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), and so on. The mobile communication module 131 can receive the electromagnetic wave signal from the antenna 1 and filter, amplify, etc. the received electromagnetic wave signal, and transmit it to the modem processor for demodulation. The mobile communication module 131 can also amplify the signal modulated by the modulation and demodulation processor and convert it into an electromagnetic wave signal through the antenna 1 to radiate it out. In some embodiments, at least part of the functional modules of the mobile communication module 131 may be provided in the processor 110. In some embodiments, at least part of the functional modules of the mobile communication module 131 and at least part of the modules of the processor 110 may be provided in the same device. For example, the mobile communication module 131 may send voice to the electronic device 200, or may receive voice sent by the electronic device 200.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器140A、受话器140B等)输出声音信号,或通过显示屏151显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块131或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be transmitted into a high-frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is processed by the baseband processor and then passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 140A, a receiver 140B, etc.), or displays an image or video through a display screen 151. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110, and may be set in the same device as the mobile communication module 131 or other functional modules.
无线通信模块132可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如Wi-Fi网络)、蓝牙(bluetooth,BT)、全球导航卫星系统(global navigation satellite system,GNSS)、调频(frequency modulation,FM)、近距离无线通信技术(near field communication,NFC)、红外技术(infrared,IR)等无线通信的解决方案。无线通信模块132可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块132经由天线2接收电磁波信号,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块132还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。例如,无线通信模块132可以将电子设备100采集的用户A使用语言1的语音发送给翻译服务器,也可以将移动通信模块131接收到的电子设备200采集的用户B使用语言2的语音发送给翻译服务器,还可以接收翻译服务器发送语音的翻译结果。应理解,在本申请实施例中语音的翻译结果为一段音频。The wireless communication module 132 can provide wireless local area networks (wireless local area networks, WLAN) (such as Wi-Fi networks), Bluetooth (bluetooth, BT), and global navigation satellite systems (GNSS) that are applied to the electronic device 100. ), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR) and other wireless communication solutions. The wireless communication module 132 may be one or more devices integrating at least one communication processing module. The wireless communication module 132 receives the electromagnetic wave signal via the antenna 2, frequency-modulates and filters the electromagnetic wave signal, and sends the processed signal to the processor 110. The wireless communication module 132 may also receive the signal to be transmitted from the processor 110, frequency-modulate it, amplify it, and convert it to electromagnetic waves through the antenna 2 to radiate it out. For example, the wireless communication module 132 can send the voice of the user A using the language 1 collected by the electronic device 100 to the translation server, or can send the voice of the user B using the language 2 collected by the electronic device 200 that the mobile communication module 131 receives The server can also receive the translation result of the voice sent by the translation server. It should be understood that in the embodiment of the present application, the speech translation result is a piece of audio.
在一些实施例中,电子设备100的天线1和移动通信模块131耦合,天线2和无线通 信模块132耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM)、通用分组无线服务(general packet radio service,GPRS)、码分多址接入(code division multiple access,CDMA)、宽带码分多址(wideband code division multiple access,WCDMA)、时分码分多址(time-division code division multiple access,TD-SCDMA)、长期演进(long term evolution,LTE)、BT、GNSS、WLAN、NFC、FM、和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS)、全球导航卫星系统(global navigation satellite system,GLONASS)、北斗卫星导航系统(beidou navigation satellite system,BDS)、准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 131, and the antenna 2 is coupled to the wireless communication module 132 so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include a global mobile communication system (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Wideband code division multiple access (WCDMA), time division code division multiple access (time-division code division multiple access (TD-SCDMA), long-term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and / or IR technology, etc. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a beidou navigation system (BDS), and a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and / or satellite-based augmentation system (SBAS).
电子设备100可以通过音频模块140、扬声器140A、受话器140B、麦克风140C、耳机接口140D以及应用处理器等实现音频功能。例如音乐播放、录音等。The electronic device 100 may implement audio functions through an audio module 140, a speaker 140A, a receiver 140B, a microphone 140C, a headphone interface 140D, an application processor, and the like. For example, music playback, recording, etc.
音频模块140可以用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块140还可以用于对音频信号编码和解码。在一些实施例中,音频模块140可以设置于处理器110中,或将音频模块140的部分功能模块设置于处理器110中。The audio module 140 can be used to convert digital audio information into an analog audio signal output and also to convert analog audio input into a digital audio signal. The audio module 140 may also be used to encode and decode audio signals. In some embodiments, the audio module 140 may be disposed in the processor 110, or some functional modules of the audio module 140 may be disposed in the processor 110.
扬声器140A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器140A收听音乐、或接听免提通话。The speaker 140A, also called "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music through the speaker 140A or answer hands-free calls.
受话器140B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器140B靠近人耳接听语音。The receiver 140B, also known as "handset", is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a call or a voice message, it can answer the voice by holding the receiver 140B close to the ear.
麦克风140C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风140C发声,麦克风140C可以用于采集用户A的声音,然后,将用户A的声音转换为电信号。电子设备100可以设置至少一个麦克风140C。在另一些实施例中,电子设备100可以设置两个麦克风140C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个、四个或更多麦克风140C,实现声音信号采集、降噪、还可以识别声音来源,实现定向录音功能等。The microphone 140C, also called "microphone", "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can approach the microphone 140C through the person's mouth to make a sound. The microphone 140C can be used to collect the voice of the user A, and then convert the voice of the user A into an electrical signal. The electronic device 100 may be provided with at least one microphone 140C. In other embodiments, the electronic device 100 may be provided with two microphones 140C. In addition to collecting sound signals, it may also implement a noise reduction function. In other embodiments, the electronic device 100 may also be provided with three, four, or more microphones 140C to achieve sound signal collection, noise reduction, identify sound sources, and implement directional recording functions.
耳机接口140D用于连接有线耳机。耳机接口140D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口、美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口等。The headset interface 140D is used to connect wired headsets. The earphone interface 140D may be a USB interface 130, or a 3.5mm open mobile electronic device platform (OMTP) standard interface, the American Telecommunications Industry Association (cellular telecommunications industry association of the USA, CTIA) standard interface, etc. .
电子设备100可以通过GPU、显示屏151、以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏151和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 can realize a display function through a GPU, a display screen 151, an application processor, and the like. The GPU is a microprocessor for image processing, and connects the display screen 151 and the application processor. The GPU is used to perform mathematical and geometric calculations, and is used for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
显示屏151可以用于显示图像、视频等。显示屏151可以包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD)、有机发光二极管(organic light-emitting diode,OLED)、有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED)、柔性发光二极管(flex light-emitting diode,FLED)、Miniled、 MicroLed、Micro-oLed、量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏151,N为大于1的正整数。The display screen 151 can be used to display images, videos, and the like. The display screen 151 may include a display panel. The display panel may use a liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active matrix organic light-emitting diode (active-matrix organic light) emitting diodes (AMOLED), flexible light-emitting diodes (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 151, where N is a positive integer greater than 1.
电子设备100可以通过摄像头153、ISP、视频编解码器、GPU、显示屏151以及应用处理器等实现拍摄功能。The electronic device 100 can realize a shooting function through a camera 153, an ISP, a video codec, a GPU, a display screen 151, an application processor, and the like.
ISP可以用于处理摄像头153反馈的数据。例如,拍照时,打开快门,通过摄像头153采集光信号,然后摄像头153将采集的光信号转换为电信号,并将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点、亮度、肤色进行算法优化。ISP还可以对拍摄场景的曝光、色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP can be used to process the data fed back by the camera 153. For example, when taking a picture, the shutter is opened, and the optical signal is collected by the camera 153, and then the camera 153 converts the collected optical signal into an electrical signal, and transmits the electrical signal to an ISP for processing, which is converted into an image visible to the naked eye. ISP can also optimize the algorithm of image noise, brightness and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be set in the camera 193.
摄像头153可以用于捕获静态图像或视频。通常情况下,摄像头153包括镜头和图像传感器。其中,物体通过镜头生成光学图像投射到图像传感器。图像传感器可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。图像传感器把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB、YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头153,N为大于1的正整数。The camera 153 may be used to capture still images or video. Generally, the camera 153 includes a lens and an image sensor. Among them, the object generates an optical image through the lens and projects it to the image sensor. The image sensor may be a charge coupled device (charge coupled device, CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The image sensor converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. DSP converts digital image signals into standard RGB, YUV and other image signals. In some embodiments, the electronic device 100 may include 1 or N cameras 153, where N is a positive integer greater than 1.
按键154可以包括开机键、音量键等。按键154可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The key 154 may include a power-on key, a volume key, and the like. The key 154 may be a mechanical key. It can also be a touch button. The electronic device 100 can receive key input and generate key signal input related to user settings and function control of the electronic device 100.
传感器模块160可以包括一个或多个传感器。例如,触摸传感器160A、指纹传感器160B、陀螺仪传感器160C、压力传感器160D、加速度传感器160E等。在一些实施例中,传感器模块160还可以包括环境传感器、距离传感器、接近光传感器、骨传导传感器等。The sensor module 160 may include one or more sensors. For example, the touch sensor 160A, the fingerprint sensor 160B, the gyro sensor 160C, the pressure sensor 160D, the acceleration sensor 160E, and the like. In some embodiments, the sensor module 160 may further include an environment sensor, a distance sensor, a proximity light sensor, a bone conduction sensor, and the like.
触摸传感器160A,也可称为“触控面板”。触摸传感器160A可以设置于显示屏151,由触摸传感器160A与显示屏151组成触摸屏,也称“触控屏”。触摸传感器160A用于检测作用于其上或附近的触摸操作。触摸传感器160A可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏151提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器160A也可以设置于电子设备100的表面,与显示屏151所处的位置不同。The touch sensor 160A may also be referred to as a “touch panel”. The touch sensor 160A may be provided on the display screen 151, and the touch sensor 160A and the display screen 151 constitute a touch screen, also called a "touch screen". The touch sensor 160A is used to detect a touch operation acting on or near it. The touch sensor 160A may pass the detected touch operation to the application processor to determine the type of touch event. The visual output related to the touch operation can be provided through the display screen 151. In other embodiments, the touch sensor 160A may also be disposed on the surface of the electronic device 100, which is different from the location where the display screen 151 is located.
指纹传感器160可以用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁、访问应用锁、指纹拍照、指纹接听来电等。The fingerprint sensor 160 may be used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access to application locks, fingerprint taking pictures, fingerprint answering calls, and the like.
陀螺仪传感器160C可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器160C确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器160C可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器160C检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器160C还可以用于导航、体感游戏场景。The gyro sensor 160C may be used to determine the movement posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (ie, x, y, and z axes) may be determined by the gyro sensor 160C. The gyro sensor 160C can be used for shooting anti-shake. Exemplarily, when the shutter is pressed, the gyro sensor 160C detects the shaking angle of the electronic device 100, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to cancel the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 160C can also be used for navigation and somatosensory game scenes.
压力传感器160D用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器160D可以设置于显示屏151。压力传感器160D的种类很多,如电阻式压力传感器、电感式压力传感器、电容式压力传感器等。电容式压力传感器可以是包括至少 两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 160D is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 160D may be provided on the display screen 151. There are many types of pressure sensors 160D, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. The capacitive pressure sensor may be at least two parallel plates with conductive material. When force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation is applied to the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 may also calculate the touched position based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch position but have different touch operation intensities may correspond to different operation instructions. For example, when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
加速度传感器160E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换、计步器等应用。The acceleration sensor 160E can detect the magnitude of acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used for recognizing the posture of electronic devices, and used in applications such as horizontal and vertical screen switching and pedometers.
在另一些实施例中,处理器110还可以包括一个或多个接口。例如,接口可以为SIM卡接口152。又例如,接口还可以为USB接口170。再例如,接口还可以为集成电路(inter-integrated circuit,I2C)接口、集成电路内置音频(inter-integrated circuit sound,I2S)接口、脉冲编码调制(pulse code modulation,PCM)接口、通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口、移动产业处理器接口(mobile industry processor interface,MIPI)、通用输入输出(general-purpose input/output,GPIO)接口等。可以理解的是,本申请实施例处理器110可以通过接口连接电子设备100的不同模块,从而使得电子设备100能够实现不同的功能。例如拍照、处理等。需要说明的是,本申请实施例对电子设备100中接口的连接方式不作限定。In other embodiments, the processor 110 may also include one or more interfaces. For example, the interface may be a SIM card interface 152. For another example, the interface may also be a USB interface 170. As another example, the interface may also be an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit integrated audio (inter-integrated circuit, sound, I2S) interface, a pulse code modulation (pulse code modulation (PCM) interface, a universal asynchronous transceiver transmission (Universal asynchronous receiver / transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input / output (GPIO) interface, etc. It can be understood that, in the embodiment of the present application, the processor 110 may be connected to different modules of the electronic device 100 through an interface, so that the electronic device 100 can implement different functions. For example, taking pictures and processing. It should be noted that the embodiment of the present application does not limit the connection method of the interface in the electronic device 100.
其中,SIM卡接口152可以用于连接SIM卡。SIM卡可以通过插入SIM卡接口152,或从SIM卡接口152拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口152可以支持Nano SIM卡、Micro SIM卡、SIM卡等。同一个SIM卡接口152可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口152也可以兼容不同类型的SIM卡。SIM卡接口152也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。Among them, the SIM card interface 152 may be used to connect the SIM card. The SIM card can be inserted into or removed from the SIM card interface 152 to achieve contact and separation with the electronic device 100. The electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 152 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple SIM cards can be inserted into the same SIM card interface 152 at the same time. The types of the multiple cards may be the same or different. The SIM card interface 152 can also be compatible with different types of SIM cards. The SIM card interface 152 can also be compatible with external memory cards. The electronic device 100 interacts with the network through a SIM card to realize functions such as call and data communication. In some embodiments, the electronic device 100 uses eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
USB接口170是符合USB标准规范的接口。例如,USB接口170可以包括Mini USB接口、Micro USB接口、USB Type C接口等。USB接口170可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。USB接口170还可以用于连接其他电子设备,例如增强现实技术(augmented reality,AR)设备等。The USB interface 170 is an interface conforming to the USB standard specification. For example, the USB interface 170 may include a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on. The USB interface 170 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through the headphones. The USB interface 170 can also be used to connect with other electronic devices, such as augmented reality (AR) devices.
充电管理模块180用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块180可以通过USB接口170接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块180可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池182充电的同时,还可以通过电源管理模块181为电子设备供电。The charging management module 180 is used to receive charging input from the charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 180 may receive the charging input of the wired charger through the USB interface 170. In some wireless charging embodiments, the charging management module 180 may receive wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 182, it can also supply power to the electronic device through the power management module 181.
电源管理模块181用于连接电池182,充电管理模块180与处理器110。电源管理模块181接收电池182和/或充电管理模块180的输入,为处理器110、内部存储器121、外 部存储器、显示屏151、摄像头153、移动通信模块131和无线通信模块132等供电。电源管理模块181还可以用于监测电池容量、电池循环次数、电池健康状态(漏电、阻抗)等参数。在其他一些实施例中,电源管理模块181也可以设置于处理器110中。在另一些实施例中,电源管理模块181和充电管理模块180也可以设置于同一个器件中。The power management module 181 is used to connect the battery 182, the charging management module 180 and the processor 110. The power management module 181 receives input from the battery 182 and / or the charging management module 180, and supplies power to the processor 110, internal memory 121, external memory, display screen 151, camera 153, mobile communication module 131, wireless communication module 132, and the like. The power management module 181 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters. In some other embodiments, the power management module 181 may also be disposed in the processor 110. In other embodiments, the power management module 181 and the charging management module 180 may also be set in the same device.
下面以电子设备100为例对本申请实施例中基于语音通话的翻译方法进行详细说明。The following uses the electronic device 100 as an example to describe in detail the translation method based on the voice call in the embodiment of the present application.
如图3所示,为本申请实施例电子设备100的一种具体的架构示意图。具体的,电子设备100包括交互模块、语音采集模块、播报模块、通信模块和翻译模块。As shown in FIG. 3, it is a schematic structural diagram of an electronic device 100 according to an embodiment of the present application. Specifically, the electronic device 100 includes an interaction module, a voice collection module, a broadcast module, a communication module, and a translation module.
其中,交互模块用于实现用户与电子设备100之间的交互。例如,交互模块可以用于显示用户界面。在一些实施例中,交互模块可以通过图2所示的电子设备100的硬件架构中的显示屏151实现,也可以通过图2所示的电子设备100的硬件架构中的显示屏151和触摸传感器160A实现。语音采集模块用于采集语音。在一些实施例中,语音采集模块可以通过图2所示的电子设备100的硬件架构中的麦克风140C实现。播报模块用于播报语音,例如通话过程中语音的翻译结果、或者未翻译的语音等。需要说明的是,播报模块可以通过图2所示的电子设备100的硬件架构中的受话器140B、或者扬声器140A、或者与耳机接口140D连接的耳机等实现。通信模块用于实现电子设备与其它电子设备或者翻译服务器的通信。例如,通信模块可以用于接收其它电子设备发送的语音,也可以用于向翻译服务器发送语音采集模块采集的语音、或者用于向翻译服务器发送通信模块接收的语音,还可以用于接收翻译服务器发送的语音的翻译结果等。示例的,通信模块可以支持的通信协议包括WiFi、蓝牙、LTE、WCDMA、GSM、下一代无线通信(next radio,NR)等。在本申请实施例中,通信模块可以通过图2所示的电子设备100的硬件架构中的移动通信模块131和/或无线通信模块132实现。Among them, the interaction module is used to realize the interaction between the user and the electronic device 100. For example, the interaction module can be used to display a user interface. In some embodiments, the interaction module may be implemented by the display screen 151 in the hardware architecture of the electronic device 100 shown in FIG. 2, or may be implemented by the display screen 151 and the touch sensor in the hardware architecture of the electronic device 100 shown in FIG. 160A to achieve. The voice collection module is used to collect voice. In some embodiments, the voice collection module may be implemented by the microphone 140C in the hardware architecture of the electronic device 100 shown in FIG. 2. The broadcast module is used to broadcast voice, such as the translation result of voice during a call, or untranslated voice, etc. It should be noted that the broadcast module may be implemented by a receiver 140B, a speaker 140A, or a headset connected to the headset interface 140D in the hardware architecture of the electronic device 100 shown in FIG. 2. The communication module is used to communicate between the electronic device and other electronic devices or translation servers. For example, the communication module can be used to receive voice sent by other electronic devices, can also be used to send the voice collected by the voice collection module to the translation server, or can be used to send the voice received by the communication module to the translation server, and can also be used to receive the translation server Translated results of sent voice etc. Exemplarily, the communication protocols that the communication module may support include WiFi, Bluetooth, LTE, WCDMA, GSM, next-generation radio (NR), and so on. In the embodiment of the present application, the communication module may be implemented by the mobile communication module 131 and / or the wireless communication module 132 in the hardware architecture of the electronic device 100 shown in FIG. 2.
翻译模块用于获取语音的翻译结果。在一些实施例中,如图3所示,翻译模块可以包括接入单元、本端翻译单元、对端翻译单元、协调单元、主控单元、播报控制单元和语音检测单元。示例的,接入单元可以用于实现翻译服务的选择。例如,在网络情况断开或者信号较差的情况下,接入单元采用离线翻译,通过预先配置在电子设备100中的翻译引擎进行翻译。需要说明的是,预先配置在电子设备100中的翻译引擎可以为用于实现对语音翻译的软件程序或命令等,可以存储在内部存储器121中,也可以存储在外部存储器110中,当电子设备对语音进行翻译时,调用翻译引擎,获取语音的翻译结果。又例如,在网络信号较好的情况下,接入单元采用在线翻译,进一步基于预先配置的策略选择相应的翻译服务器。本端翻译单元可以用于获取语音采集模块采集的语音、以及缓存语音采集模块采集的语音的翻译结果。对端翻译单元可以用于获取通信模块接收到的语音、以及缓存通信模块接收到的语音的翻译结果。播报控制单元可以用于控制播报模块播报翻译结果。在一些实施例中,本端翻译单元或者对端翻译单元还可以将缓存的语音的翻译结果发送给播报模块播报后,自动删除语音的翻译结果,也可以将语音的翻译结果存储到内部存储器121或者与外部存储器接口122连接的外部存储器中。语音检测单元可以用于检测当前是否有语音输入。协调单元可以用于协调翻译进程,控制语音的播放节奏。主控单元可以用于接收用户的操作指令,以及协调各个单元模块,从而实现语音通话翻译功能。需要说明的是,本申请实施例中翻译模块可以通过图2所示的电子设备100的硬件架构中的处理器110实现。示例的,翻译模块可以通过处理器110中的应用处理器实现。又示例的,翻译 模块还可以为专用处理器,集成在处理器110中,也可不集成在处理器110中。The translation module is used to obtain voice translation results. In some embodiments, as shown in FIG. 3, the translation module may include an access unit, a local translation unit, a peer translation unit, a coordination unit, a main control unit, a broadcast control unit, and a voice detection unit. For example, the access unit may be used to implement the selection of translation services. For example, when the network is disconnected or the signal is poor, the access unit adopts offline translation and performs translation through a translation engine pre-configured in the electronic device 100. It should be noted that the translation engine pre-configured in the electronic device 100 may be a software program or command for implementing voice translation, and may be stored in the internal memory 121 or the external memory 110. When the electronic device When translating the voice, the translation engine is called to obtain the translation result of the voice. For another example, when the network signal is good, the access unit adopts online translation, and further selects a corresponding translation server based on a pre-configured strategy. The local translation unit may be used to obtain the voice collected by the voice collection module and cache the translation result of the voice collected by the voice collection module. The peer translation unit may be used to obtain the speech received by the communication module and buffer the translation result of the speech received by the communication module. The broadcast control unit may be used to control the broadcast module to broadcast the translation result. In some embodiments, the local translation unit or the peer translation unit may also send the cached translation result of the voice to the broadcast module to automatically delete the translation result of the voice, and may also store the translation result of the voice to the internal memory 121 Or in an external memory connected to the external memory interface 122. The voice detection unit can be used to detect whether there is currently a voice input. The coordination unit can be used to coordinate the translation process and control the rhythm of voice playback. The main control unit can be used to receive user's operation instructions and coordinate various unit modules to realize the voice call translation function. It should be noted that the translation module in the embodiment of the present application may be implemented by the processor 110 in the hardware architecture of the electronic device 100 shown in FIG. 2. For example, the translation module may be implemented by an application processor in the processor 110. For another example, the translation module may also be a dedicated processor, integrated in the processor 110, or not integrated in the processor 110.
下面对本申请实施例提供的基于语音通话的翻译方法的应用场景进行相应的介绍。本申请实施例基于语音通话的翻译方法可以应用于电子设备100作为主叫端,电子设备200作为被叫端的应用场景中,也可以应用于电子设备100作为被叫端,电子设备200作为主叫端的应用场景中。以电子设备100作为主叫端、电子设备200作为被叫端来实现用户A与用户B之间的通信为例,对本申请实施例基于语音通话的翻译方法进行详细说明,其中用户A使用电子设备100,用户B使用电子设备200。The application scenarios of the voice call-based translation method provided in the embodiments of the present application will be described below accordingly. The translation method based on the voice call in the embodiment of the present application can be applied to an application scenario where the electronic device 100 is the calling terminal and the electronic device 200 is the called terminal, and can also be applied to the electronic device 100 as the called terminal and the electronic device 200 as the calling terminal Application scenarios. Taking the electronic device 100 as the calling terminal and the electronic device 200 as the called terminal to realize the communication between the user A and the user B as an example, the translation method based on the voice call in the embodiment of the present application will be described in detail, in which the user A uses the electronic device 100. User B uses the electronic device 200.
本申请实施例中的电子设备100可以在采集到用户A的语音后,获取用户A的语音的翻译结果,并将用户A的语音的翻译结果发送给电子设备200,以及电子设备100可以在接收到电子设备200发送的用户B的语音后,获取用户B的语音的翻译结果,并播放用户B的语音的翻译结果。The electronic device 100 in the embodiment of the present application may acquire the translation result of the voice of the user A after collecting the voice of the user A, and send the translation result of the voice of the user A to the electronic device 200, and the electronic device 100 may receive After reaching the voice of the user B sent by the electronic device 200, the translation result of the voice of the user B is obtained, and the translation result of the voice of the user B is played.
为了便于电子设备100获取用户A的语音的翻译结果和用户B的语音的翻译结果,在一些实施例中,电子设备100确定用于进行语音翻译的设备,然后从用于进行语音翻译的设备获取用户A的语音的翻译结果和/或用户B的语音的翻译结果。需要说明的是,用于进行语音翻译的设备可以为电子设备100本身,也可以为翻译服务器。当用于进行语音翻译的设备为翻译服务器时,用于进行语音翻译的设备可以为一个翻译服务器,也可以为多个翻译服务器。另外,用于对用户A的语音进行翻译的设备和用于对用户B的语音进行翻译的设备可以为同一个设备,也可以为不同的设备。示例的,电子设备100可以在向用户B发起呼叫之前,确定用于进行语音翻译的设备。例如,电子设备100可以在确定向用户B发起呼叫,在向用户B发起呼叫之前,确定用户进行语音翻译的设备。又示例的,电子设备100也可以在向用户B发起呼叫之后,确定用于进行语音翻译的设备。In order to facilitate the electronic device 100 to obtain the translation result of the voice of the user A and the translation result of the voice of the user B, in some embodiments, the electronic device 100 determines a device for voice translation and then obtains it from the device for voice translation The translation result of user A's voice and / or the translation result of user B's voice. It should be noted that the device used for voice translation may be the electronic device 100 itself or a translation server. When the device for voice translation is a translation server, the device for voice translation may be one translation server or multiple translation servers. In addition, the device for translating the voice of user A and the device for translating the voice of user B may be the same device, or may be different devices. Exemplarily, the electronic device 100 may determine a device for voice translation before initiating a call to user B. For example, the electronic device 100 may determine the device for user voice translation before determining to initiate a call to user B, and before initiating a call to user B. For another example, the electronic device 100 may also determine a device for voice translation after initiating a call to user B.
其中,本申请实施例中电子设备100可以响应于对用户B的电话号码的拨打操作,向用户B发起呼叫。In the embodiment of the present application, the electronic device 100 may initiate a call to user B in response to the dialing operation of the phone number of user B.
示例的,如图4所示,电子设备100的显示屏151显示用户界面400。其中,用户界面400包括电话图标401。在另一些实施例中,用户界面400还可以包括其它应用图标,例如设置图标、微信图标、图库图标、邮箱图标、相机图标等。电子设备100检测到对电话图标401的操作时,可以响应于对电话图标401的操作,在显示屏151显示用户界面410。用户界面410包括联系人列表411和功能栏412。其中联系人列表411是用户A根据自身的需要存储的。功能栏412包括新建联系人、扫名片和更多等功能按钮。例如,电子设备100响应于用户对联系人列表411中的用户B的操作,在显示屏151显示用户界面420。其中,用户界面420可以包括用户B的名称、电话号码、邮箱等信息,以及还可以包括发送信息、添加到收藏、阻止来电号码等功能按钮。电子设备100可以响应于对电话号码12345659876的操作,向用户B发起呼叫,并在显示屏151显示用户界面430。示例的,对电话号码12345659876的操作可以为对电话号码12345659876的触摸操作。也可以为其它操作。Exemplarily, as shown in FIG. 4, the display screen 151 of the electronic device 100 displays the user interface 400. Among them, the user interface 400 includes a phone icon 401. In other embodiments, the user interface 400 may also include other application icons, such as a settings icon, WeChat icon, gallery icon, mailbox icon, camera icon, and so on. When the electronic device 100 detects an operation on the phone icon 401, it may display a user interface 410 on the display screen 151 in response to the operation on the phone icon 401. The user interface 410 includes a contact list 411 and a function bar 412. The contact list 411 is stored by user A according to his own needs. The function bar 412 includes function buttons for creating new contacts, scanning business cards, and more. For example, the electronic device 100 displays the user interface 420 on the display screen 151 in response to the user's operation on the user B in the contact list 411. The user interface 420 may include user B's name, phone number, mailbox, and other information, and may also include function buttons such as send information, add to favorites, and block incoming call numbers. The electronic device 100 may initiate a call to the user B in response to the operation of the phone number 12345659876, and display the user interface 430 on the display screen 151. For example, the operation on the phone number 12345659876 may be a touch operation on the phone number 12345659876. Other operations are also possible.
此外,用户A还可以通过直接在电子设备100的用户界面500上输入用户B的电话号码来向用户B发起呼叫。例如,如图5所示,电子设备100的显示屏151显示用户界面500,用户界面500包括拨号键盘、输入的电话号码“12345659876”以及拨号按钮501。当输入的电话号码为用户B的电话号码时,电子设备100响应于对拨号按钮501的操作, 向用户B发起呼叫,并在显示屏151显示图4中所示的用户界面430。需要说明的是,本申请实施例中用户A还可以使用电子设备100通过其它方式向用户B发起呼叫,例如通过语音的方式向用户B发起呼叫。In addition, user A can also initiate a call to user B by directly inputting user B's phone number on user interface 500 of electronic device 100. For example, as shown in FIG. 5, the display screen 151 of the electronic device 100 displays a user interface 500 including a dial keypad, an input phone number “12345659876”, and a dial button 501. When the input telephone number is the telephone number of the user B, the electronic device 100 initiates a call to the user B in response to the operation of the dial button 501, and displays the user interface 430 shown in FIG. 4 on the display screen 151. It should be noted that, in the embodiment of the present application, user A may also use the electronic device 100 to initiate a call to user B through other methods, for example, to initiate a call to user B through voice.
在一些实施例中,电子设备100可以根据网络信号强度,确定用于进行语音翻译的设备。其中,电子设备100当网络信号强度大于预设阈值时,从预设的至少一个翻译服务器中确定用于进行语音翻译的设备。然而,不同厂商的翻译服务器对于语言翻译的准确性有不同。例如,厂商S提供的翻译服务器对于东南亚语系的语言翻译的更加准确。又例如,厂商M提供的翻译服务器对于欧洲语系的语言翻译更加准确。因此为了提高语音翻译的准确性,电子设备100在使用翻译服务器时,可以根据预先设置的本端语言和对端语言,确定用于进行语音翻译的翻译服务器,如中文与越南语相互翻译时,选择厂商S的翻译服务器。需要说明的是,本端语言为用户A使用的语言,对端语言为用户B使用的语言。电子设备100当网络信号强度小于或等于预设阈值时,确定通过预先配置在电子设备100中的翻译引擎进行语音翻译。通过上述技术方案,有助于在网络信号较差的情况下,提高获取语音翻译结果的实时性。In some embodiments, the electronic device 100 may determine the device for voice translation according to the network signal strength. Wherein, when the network signal strength is greater than a preset threshold, the electronic device 100 determines a device for voice translation from at least one preset translation server. However, the translation servers of different manufacturers have different accuracy for language translation. For example, the translation server provided by the manufacturer S is more accurate for the translation of languages in Southeast Asian languages. For another example, the translation server provided by the manufacturer M is more accurate for the language translation of the European language family. Therefore, in order to improve the accuracy of voice translation, when using the translation server, the electronic device 100 can determine the translation server for voice translation according to the preset local language and peer language, for example, when Chinese and Vietnamese translate each other, Select the translation server of vendor S. It should be noted that the local language is the language used by user A, and the opposite language is the language used by user B. When the network signal strength is less than or equal to a preset threshold, the electronic device 100 determines to perform voice translation through a translation engine configured in the electronic device 100 in advance. Through the above technical solution, it helps to improve the real-time performance of obtaining voice translation results under the condition of poor network signal.
需要说明的是,本申请实施例中,预设阈值可以预先配置在电子设备100中,也可以由电子设备100根据预先配置的算法来确定。另外,本申请实施例中电子设备100可以通过移动通信网络(例如4G网络、5G网络等)与翻译服务器建立通信,也可以通过WiFi网络与翻译服务器建立通信。本申请实施例中当电子设备100与翻译服务器通过移动通信网络通信时,可以将预设阈值设置为第一阈值。当电子设备100与翻译服务器通过WiFi与翻译服务器通信时,可以将预设阈值设置为第二阈值。需要说明的是,第一阈值和第二阈值是根据不同网络设置的阈值,第一阈值和第二阈值的大小,在此不作限定。示例的,当电子设备100打开移动通信网络,未打开WiFi网络时,电子设备100可以在移动通信网络的信号强度大于第一阈值时,通过移动通信网络将语音发送给确定的翻译服务器。又示例的,当电子设备100既打开移动通信网络,又打开WiFi网络,当WiFi网络的网络信号强度大于第二阈值时,在一些实施例中,电子设备100采用WiFi网络与翻译服务器通信。从而有助于节省费用。又示例的,当移动通信网络的网络信号强度大于第一阈值、WiFi网络的网络信号强度小于或等于第二阈值时,在一些实施例中,电子设备100采用移动通信网络与翻译服务器通信。从而有助于降低电子设备100和翻译服务器之间的通信时延。It should be noted that, in the embodiment of the present application, the preset threshold may be pre-configured in the electronic device 100, or may be determined by the electronic device 100 according to a pre-configured algorithm. In addition, in the embodiment of the present application, the electronic device 100 may establish communication with the translation server through a mobile communication network (eg, 4G network, 5G network, etc.), and may also establish communication with the translation server through a WiFi network. In the embodiment of the present application, when the electronic device 100 communicates with the translation server through the mobile communication network, the preset threshold may be set as the first threshold. When the electronic device 100 and the translation server communicate with the translation server through WiFi, the preset threshold may be set as the second threshold. It should be noted that the first threshold and the second threshold are thresholds set according to different networks, and the sizes of the first threshold and the second threshold are not limited herein. For example, when the electronic device 100 turns on the mobile communication network and does not turn on the WiFi network, the electronic device 100 may send the voice to the determined translation server through the mobile communication network when the signal strength of the mobile communication network is greater than the first threshold. For another example, when the electronic device 100 turns on both the mobile communication network and the WiFi network, and when the network signal strength of the WiFi network is greater than the second threshold, in some embodiments, the electronic device 100 uses the WiFi network to communicate with the translation server. Thereby helping to save costs. For another example, when the network signal strength of the mobile communication network is greater than the first threshold and the network signal strength of the WiFi network is less than or equal to the second threshold, in some embodiments, the electronic device 100 uses the mobile communication network to communicate with the translation server. This helps to reduce the communication delay between the electronic device 100 and the translation server.
下面结合图3所示的电子设备100的架构对电子设备100根据网络信号强度确定用于进行语音翻译的设备进行具体说明。The following specifically describes the electronic device 100 determining a device for voice translation according to the network signal strength in conjunction with the architecture of the electronic device 100 shown in FIG. 3.
示例的,电子设备100的主控单元接收到交互模块上报的向用户B发起呼叫的操作或者接收到交互模块上报的输入用户B的电话号码的操作后,向接入单元发送翻译服务接入的通知。需要说明的是,主控单元可以直接向接入单元发送翻译服务接入的通知,也可以通过协调单元将翻译服务接入的通知发送给接入单元等,对此不作限定。接入单元接收到翻译服务接入的通知后,从通信模块获取网络信号强度,并根据网络信号强度,确定用于进行语音翻译的设备。Exemplarily, the main control unit of the electronic device 100 receives the operation reported by the interaction module to initiate a call to user B or receives the operation reported by the interaction module to input the phone number of user B, and then sends the translation service access to the access unit Notice. It should be noted that the main control unit may directly send the notification of the translation service access to the access unit, or may send the notification of the translation service access to the access unit through the coordination unit, etc., which is not limited. After receiving the notification of the translation service access, the access unit obtains the network signal strength from the communication module, and determines the device for voice translation according to the network signal strength.
示例的,当电子设备100打开WiFi网络和移动通信网络,电子设备100在通过WiFi网络或移动通信网络向翻译服务器发送语音的情况下,当WiFi网络的网络信号强度小于 或者等于第二阈值且移动通信网络的网络信号强度小于等于第一阈值时,确定使用预先配置在电子设备100中的翻译引擎对语音进行翻译。又示例的,电子设备100可以在WiFi网络的网络信号强度大于第二阈值时,确定用于进行语音翻译的设备为翻译服务器。在具体实现时,示例的,电子设备100的接入单元在WiFi网络信号强度大于第二阈值时,获取预先设置的本端语言和对端语言,然后根据本端语言和对端语言,确定用于进行语音翻译的服务器。在一些实施例中,电子设备100可以将预先设置的本端语言和对端语言存储到公共存储空间中,接入单元可以直接从公共存储空间中获取预先设置的本端语言和对端语言,也可以通过主控单元从公共存储空间中获取预先设置的本端语言和对端语言。For example, when the electronic device 100 turns on the WiFi network and the mobile communication network, and the electronic device 100 sends a voice to the translation server through the WiFi network or the mobile communication network, when the network signal strength of the WiFi network is less than or equal to the second threshold and moves When the network signal strength of the communication network is less than or equal to the first threshold, it is determined to use a translation engine pre-configured in the electronic device 100 to translate the speech. For another example, the electronic device 100 may determine that the device used for voice translation is the translation server when the network signal strength of the WiFi network is greater than the second threshold. In a specific implementation, for example, when the WiFi network signal strength is greater than the second threshold, the access unit of the electronic device 100 acquires the preset local language and peer language, and then determines the usage according to the local language and peer language A server for voice translation. In some embodiments, the electronic device 100 may store the preset local language and the peer language in the public storage space, and the access unit may directly obtain the preset local language and the peer language from the public storage space. The local language and the peer language set in advance can also be obtained from the public storage space through the main control unit.
其中,本端语言和对端语言可以是用户预先手动配置的,也可以为电子设备100自动配置的。The local language and the opposite language may be manually configured by the user in advance, or may be automatically configured by the electronic device 100.
例如,如图4所示,用户A可以通过在用户界面420中的语言设置422设置对端语言。例如,用户B的母语为英语,电子设备100可以响应于用户A对语言设置422的操作,如图6,在显示屏151显示语言列表600。电子设备100响应于选中“英文”的操作,在语言设置422中显示英文,并隐藏语言列表600。应理解,用户A可以在语言列表600的区域内通过上下滑动显示不同的语言。还需要说明的是,语言列表600所包括的语言为能够与电子设备100通信的翻译服务器和/或预先配置在电子设备100中的翻译引擎所支持的语言,可以是电子设备100在出厂之前预先设置在电子设备100中的,也可以为当检测首次检测到存储联系人的操作后,再从翻译服务器中获取。此外,本申请实施例中电子设备100还可以自动对语言设置422的语言进行设置。示例的,电子设备100可以基于存储的用户B的电话号码的归属地,自动设置语言设置422的语言。例如,电子设备100检测到用户B的电话号码的归属地为伦敦,则自动设置将语言设置422设置为英文。又示例的,电子设备100还可以根据用户A与用户B的通话过程中用户B使用的语言对语言设置422进行设置。再示例的,电子设备100还可以将语言设置422设置为预先配置的默认语言,例如默认语言为英文。默认语言可以为电子设备100在出厂之前配置,也可以为用户根据需要设置的。For example, as shown in FIG. 4, user A may set the peer language through the language setting 422 in the user interface 420. For example, if the native language of the user B is English, the electronic device 100 may respond to the user A's operation on the language setting 422, as shown in FIG. 6, a language list 600 is displayed on the display screen 151. The electronic device 100 displays English in the language setting 422 and hides the language list 600 in response to the operation of selecting “English”. It should be understood that user A may display different languages by sliding up and down in the area of language list 600. It should also be noted that the language included in the language list 600 is a language supported by a translation server capable of communicating with the electronic device 100 and / or a translation engine pre-configured in the electronic device 100, which may be the electronic device 100 before delivery What is set in the electronic device 100 may also be obtained from the translation server after detecting the operation of detecting the stored contact for the first time. In addition, in the embodiment of the present application, the electronic device 100 may also automatically set the language of the language setting 422. For example, the electronic device 100 may automatically set the language of the language setting 422 based on the home of the stored phone number of the user B. For example, if the electronic device 100 detects that the attribution of the user B's phone number is London, it automatically sets the language setting 422 to English. For another example, the electronic device 100 may also set the language setting 422 according to the language used by the user B during the conversation between the user A and the user B. For another example, the electronic device 100 may also set the language setting 422 to a pre-configured default language, for example, the default language is English. The default language may be configured by the electronic device 100 before leaving the factory, or may be set by the user as needed.
而本申请实施例中涉及的本端语言可以为电子设备100的系统语言。示例的,如图7所示,电子设备100的显示屏151显示用户界面400。用户界面400包括设置图标700。电子设备100响应于对设置图标700的操作,在显示屏151显示系统设置用户界面710。系统设置界面710包括语言与地区711。此外,系统设置界面711还可以包括其它功能的设置按钮,例如开启云备份、屏幕锁定等。电子设备100响应于对语言与地区711的操作,在显示屏151显示用户界面720。用户界面720包括系统语言设置按钮721。另外,在一些实施例中,用户界面720还可以包括地区设置按钮。电子设备100可以响应于对系统语言设置按钮721的操作,在显示屏151显示用户界面730,用户界面730包括语言列表731。语言列表731包括语言为电子设备100所支持语言。在一些实施例中,为了便于用户从语言列表731所包括的语言中查找用户需要的语言,用户界面730还可以包括搜索框732。例如,电子设备100可以响应于用户A在搜索框732中输入的“简体中文”,从语言列表731所包括的语言中查找到“简体中文”。电子设备100可以响应于从语言列表732选中“简体中文”的操作,将系统语言设置为简体中文。在另一些实施例中,电子设备100还可以根据用户存储的本机号码所属的归属地自动设置。例如,电子设备100检测到本机号 码的归属地为北京,则自动将系统语言设置为中文。再例如,电子设备100检测到本机号码的归属地为台湾,则自动将系统语言设置为繁体中文。需要说明的是,本申请实施例中用户可以通过在图4所示的用户界面410上设置本机号码。The local language involved in the embodiments of the present application may be the system language of the electronic device 100. Exemplarily, as shown in FIG. 7, the display screen 151 of the electronic device 100 displays the user interface 400. The user interface 400 includes a setting icon 700. The electronic device 100 displays the system setting user interface 710 on the display screen 151 in response to the operation of the setting icon 700. The system setting interface 710 includes language and region 711. In addition, the system setting interface 711 may also include setting buttons for other functions, such as enabling cloud backup and screen lock. The electronic device 100 displays the user interface 720 on the display screen 151 in response to the operation on the language and region 711. The user interface 720 includes a system language setting button 721. In addition, in some embodiments, the user interface 720 may further include a region setting button. The electronic device 100 may display a user interface 730 on the display screen 151 in response to the operation of the system language setting button 721, and the user interface 730 includes a language list 731. The language list 731 includes the languages supported by the electronic device 100. In some embodiments, in order to facilitate the user to find the language required by the user from the languages included in the language list 731, the user interface 730 may further include a search box 732. For example, the electronic device 100 may find “Simplified Chinese” from the languages included in the language list 731 in response to the “Simplified Chinese” input by the user A in the search box 732. The electronic device 100 may set the system language to simplified Chinese in response to the operation of selecting “Simplified Chinese” from the language list 732. In some other embodiments, the electronic device 100 may also be automatically set according to the attribution of the local number stored by the user. For example, when the electronic device 100 detects that the locality of the local number is Beijing, it automatically sets the system language to Chinese. For another example, when the electronic device 100 detects that the locality of the local number is Taiwan, it automatically sets the system language to traditional Chinese. It should be noted that in the embodiment of the present application, the user can set the local number on the user interface 410 shown in FIG. 4.
此外,在一些实施例中,用户界面430上还可以包括语音翻译按钮431。从而有助于进一步简化用户的操作。例如,电子设备100还可以响应于对语音翻译按钮431的操作,在显示屏151显示用户界面800。其中,用户界面800包括本端语言设置803和对端语言设置802。电子设备100可以响应于用户A对本端语言设置803的操作,来设置本端语言,响应于用户A对对端语言设置802的操作,来设置对端语言。电子设备100响应于用户A对本端语言设置803的操作设置本端语言、以及响应于用户A对对端语言设置802的操作设置对端语言的具体实现方式,可以参见电子设备100响应于用户A对用户界面420上的语言设置422的操作,实现设置语言的方式,在此不再赘述。此外,本申请实施例中电子设备100还可以自动对本端语言设置803和对端语言设置802进行语言设置。例如,电子设备100可以响应于向用户B拨打电话的操作,自动将本端语言设置803设置为系统语言,以及自动将对端语言设置802设置为用户界面420中语言设置422所设置的语言。又例如,电子设备100还可以基于本机号码的归属地对本端语言设置803进行语言设置。具体实现方式可参见上述系统语言的自动设置方式。又例如,电子设备100还可以根据电子设备100接入的移动通信网络所在的归属地,对本端语言设置803进行语言设置。例如,电子设备100接入的移动通信网络为中国移动,则自动将本端语言设置为中文。再例如,电子设备100还可以基于用户B的电话号码的归属地对对端语言设置802进行语言设置。又例如,电子设备100还可以根据本机号码和向用户B发起呼叫时所使用的电话号码,获取最近一次用户A与用户B的通话记录,将本端语言设置803设置为通话记录中用户A所使用的语言,将对端语言设置802为通话记录中用户B所使用的语言。又例如,电子设备100还可以根据电子设备200接入的通信网络所在的归属地,对对端语言设置803进行语言设置。例如,电子设备100获取到电子设备200接入的通信网络所在的归属地为美国,则自动将对端语言设置为英文。In addition, in some embodiments, the user interface 430 may further include a voice translation button 431. This helps to further simplify user operations. For example, the electronic device 100 may also display the user interface 800 on the display screen 151 in response to the operation of the voice translation button 431. The user interface 800 includes a local language setting 803 and a peer language setting 802. The electronic device 100 may set the local language in response to the operation of the local language setting 803 by the user A, and set the local language in response to the operation of the remote language setting 802 by the user A. The specific implementation of the electronic device 100 setting the local language in response to the operation of the local language setting 803 by the user A, and setting the local language in response to the operation of the remote language setting 802 by the user A, see the electronic device 100 responding to the user A For the operation of the language setting 422 on the user interface 420, the manner of setting the language is implemented, which will not be repeated here. In addition, in the embodiment of the present application, the electronic device 100 may also automatically set the language setting of the local language setting 803 and the remote language setting 802. For example, the electronic device 100 may automatically set the local language setting 803 to the system language and automatically set the peer language setting 802 to the language set by the language setting 422 in the user interface 420 in response to the operation of making a call to user B. For another example, the electronic device 100 may also set the language of the local language setting 803 based on the attribution of the local number. For specific implementation, please refer to the automatic setting of the system language mentioned above. For another example, the electronic device 100 may also set the language setting of the local language setting 803 according to the home location where the mobile communication network accessed by the electronic device 100 is located. For example, if the mobile communication network accessed by the electronic device 100 is China Mobile, the local language is automatically set to Chinese. For another example, the electronic device 100 may also set the language setting of the peer language setting 802 based on the attribution of the user B's phone number. For another example, the electronic device 100 may also obtain the most recent call record between user A and user B according to the local number and the phone number used when initiating a call to user B, and set the local language setting 803 to user A in the call record For the language used, set the peer language 802 to the language used by user B in the call log. For another example, the electronic device 100 may also set the language setting of the peer language setting 803 according to the home location where the communication network accessed by the electronic device 200 is located. For example, if the electronic device 100 acquires that the home of the communication network accessed by the electronic device 200 is the United States, the peer language is automatically set to English.
需要说明的是,为了保证自动确定的本端语言和对端语言的可靠性,在一些实施例中,电子设备100的主控单元可以响应于选中用户B或者输入用户B的电话号码的操作,向接入单元发送语言设置通知。接入单元接收到语言设置通知后,获取与用户B的通话记录。并根据与用户B的通话记录,对本端语言设置803和对端语言设置802进行相应的设置。接入单元若未获取到与用户B的通话记录,则可以通过通信模块获取用户B电话号码的归属地和用户A的电话号码的归属地,并基于用户B的电话号码的归属地对对端语言设置802进行设置,以及基于用户A的电话号码的归属地对本端语言设置803进行设置。应理解,接入单元若未获取到与用户B的通话记录时,还可以基于系统语言对本端语言设置803进行设置。接入单元若无法获取到用户B电话号码的归属地,也可以将对端语言设置802设置为默认语言。需要说明的是,接入单元若无法获取到用户B电话号码的归属地时,还可以向主控单元发送自动设置对端语言设置803失败的通知。主控单元接收到自动设置对端语言设置803失败的通知后,提示用户手动对端语言设置803进行设置。例如,主控单元可以通过触发显示屏151显示提示信息,来提示用户手动对端语言设置803进行设置。又例如,主控单元还可以通过触发播报模块播放用户手动对端语言设置803进行设置的提 示信息来提示用户。本申请实施例对提示用户手动对端语言设置803进行设置的方式不作限定。It should be noted that, in order to ensure the reliability of the automatically determined local language and the peer language, in some embodiments, the main control unit of the electronic device 100 may respond to the operation of selecting user B or inputting the phone number of user B, Send a language setting notification to the access unit. After receiving the language setting notification, the access unit obtains the call record with user B. According to the call record with user B, the local language setting 803 and the remote language setting 802 are set accordingly. If the access unit does not obtain the call record with user B, it can obtain the home of the phone number of user B and the home of the phone number of user A through the communication module, and based on the home of the phone number of user B The language setting 802 is set, and the local language setting 803 is set based on the attribution of the user A's phone number. It should be understood that if the access unit does not obtain a call record with user B, it may also set the local language setting 803 based on the system language. If the access unit cannot obtain the home location of the user B's phone number, it can also set the peer language setting 802 as the default language. It should be noted that if the access unit cannot obtain the home location of the user B's phone number, it may also send a notification to the main control unit that the automatic setting of the peer language setting 803 has failed. After receiving the notification that the automatic setting of the peer language setting 803 has failed, the main control unit prompts the user to manually set the peer language setting 803. For example, the main control unit may prompt the user to manually set the end language setting 803 by triggering the display screen 151 to display prompt information. For another example, the main control unit may also prompt the user by triggering the announcement module to play the prompt information that the user manually sets the end language setting 803. The embodiment of the present application does not limit the method of prompting the user to manually set the end language setting 803.
还需要说明的是,为了便于用户查找,本申请实施例中本端语言设置803和对端语言设置802还可以设置在用户界面430上。It should also be noted that, in order to facilitate user search, the local language setting 803 and the peer language setting 802 in the embodiment of the present application may also be set on the user interface 430.
当本端语言和对端语言相同时,电子设备100可以无需对语音进行翻译操作,在一些实施例中,电子设备100可以在本端语言和对端语言相同时,直接向电子设备200发送电子设备100采集的用户A的语音,电子设备100接收到电子设备200发送的用户B的语音,播放用户B的语音。从而有助于提高简化电子设备100的处理方式。电子设备100可以在本端语言和对端语言不同时,自动开启语音通话翻译功能,执行用户A的语音和用户B的语音的翻译过程。When the local language and the peer language are the same, the electronic device 100 may not need to translate the voice. In some embodiments, the electronic device 100 may directly send the electronic to the electronic device 200 when the local language and the peer language are the same. The voice of the user A collected by the device 100, the electronic device 100 receives the voice of the user B sent by the electronic device 200, and plays the voice of the user B. This helps to improve the processing method of the simplified electronic device 100. The electronic device 100 can automatically start the voice call translation function when the local language and the peer language are different, and perform the translation process of the voice of the user A and the voice of the user B.
例如。接入单元在自动设置本端语言和对端语言、或者获取到用户设置的本端语言和对端语言后,若检测到本端语言和对端语言不同,则执行确定用于进行语音翻译的服务器的过程。具体的,接入单元执行确定用于进行语音翻译的服务器的过程可参见上述实施例,在此不再赘述。接入单元若检测到本端语言和对端语言相同,则无需执行确定用于进行语音翻译的服务器的过程。E.g. After the access unit automatically sets the local language and the remote language, or obtains the local language and the remote language set by the user, if it detects that the local language and the remote language are different, it executes the determination for voice translation. The process of the server. Specifically, the process that the access unit executes to determine the server for voice translation can refer to the foregoing embodiment, and details are not described herein again. If the access unit detects that the local language and the peer language are the same, there is no need to perform the process of determining the server for voice translation.
为了提高用户体验,在另一些实施例中,电子设备100接收到电子设备200发送的用户B的语音后,还播报用户B的语音。例如,电子设备100预先设置的本端语言为简体中文,对端语言为英文,若用户B使用电子设备200向电子设备100发送的语音为“Hello,This is Mike speaking.”,则电子设备100接收到“Hello,This is Mike speaking.”后,向用户A播报“Hello,This is Mike speaking.”,并在获取到“Hello,This is Mike speaking.”的翻译结果“你好,我是麦克”后,向用户A播报“你好,我是麦克”。在一些实施例中,电子设备100还播报用户A的语音的翻译结果。例如,电子设备100采集的用户A的语音为“你好,我想买张机票。”,则在获取到“你好,我想买张机票。”的翻译结果“Hello,I want to buy a ticket.”后,不仅要将翻译结果“Hello,I want to buy a ticket.”发送给电子设备200,而且向用户A播报用户A的语音的翻译结果“Hello,I want to buy a ticket.”此外,在一些实施例中,电子设备100还可以将采集的用户A的语音发送给电子设备200。电子设备200接收到电子设备100发送的用户A语音后,播报用户A的语音。电子设备200在接收到电子设备100发送的用户A的语音的翻译结果后,播报用户A的语音翻译结果。在另一些实施例中,电子设备100还可以将用户B的语音的翻译结果发送给电子设备200。电子设备200在接收到用户B的语音的翻译结果后,还可以播报用户B的语音的翻译结果。In order to improve the user experience, in other embodiments, after receiving the voice of the user B sent by the electronic device 200, the electronic device 100 broadcasts the voice of the user B. For example, if the local language preset in the electronic device 100 is simplified Chinese and the opposite language is English, if the voice sent by the user B to the electronic device 100 using the electronic device 200 is "Hello, This Mike is speaking.", The electronic device 100 After receiving "Hello, This is Mike speaking.", Broadcast "Hello, This Is Mike Mike speaking." To user A, and obtained the translation result of "Hello, This Is Mike Mike speaking." "Hello, this is Mike. ", Broadcast" Hello, I'm Mike "to user A. In some embodiments, the electronic device 100 also broadcasts the translation result of the voice of the user A. For example, the voice of user A collected by the electronic device 100 is "Hello, I want to buy a flight ticket." Then the translation result of "Hello, I want to buy a flight ticket." Is obtained "Hello, I want to buy a ticket. ”, not only to send the translation result“ Hello, I want to buy ticket. ”to the electronic device 200, but also to broadcast the translation result“ Hello, I want to buy a ticket. ” In addition, in some embodiments, the electronic device 100 may also send the collected voice of the user A to the electronic device 200. After receiving the voice of the user A sent by the electronic device 100, the electronic device 200 broadcasts the voice of the user A. After receiving the translation result of the voice of the user A sent by the electronic device 100, the electronic device 200 broadcasts the translation result of the voice of the user A. In other embodiments, the electronic device 100 may also send the translation result of the voice of the user B to the electronic device 200. After receiving the translation result of the voice of the user B, the electronic device 200 may also broadcast the translation result of the voice of the user B.
当电子设备100接收到电子设备200发送的用户B的语音时,直接播报用户B的语音,在这种情况下若电子设备100接收到用户A的语音翻译结果,播报用户A的语音的翻译结果,则会导致用户B的语音的播报和用户A的语音的翻译结果的播报重叠。而当电子设备100采集到用户A的语音时,若接收到用户A的语音的翻译结果,在这种情况下,播报模块播报用户A的语音翻译结果有可能导致播报的语音所表达的意思是不完整的。When the electronic device 100 receives the voice of user B sent by the electronic device 200, it directly broadcasts the voice of user B. In this case, if the electronic device 100 receives the voice translation result of user A, the translation result of user A's voice is broadcast. , It will cause the announcement of the voice of user B and the announcement of the translation result of the voice of user A to overlap. When the electronic device 100 collects the voice of the user A, if the translation result of the voice of the user A is received, in this case, the broadcast module may announce the result of the voice translation of the user A, which may cause the broadcasted voice to mean Incomplete.
因此,在一些实施例中,电子设备100在接收到语音的翻译结果后,若检测到无语音输入,则播报接收到的语音的翻译结果。在另一些实施例中,电子设备100若检测到当前有语音输入,则等待检测到无语音输入时,播报接收到的语音的翻译结果。从而有助于降 低与播报用户B的语音发生冲突的可能性,以及降低播报的用户A的语音的翻译结果不完整的可能性。此外,在另一些实施例中,电子设备100在接收到的翻译结果为用户A的语音的翻译结果时,则在检测到无语音输入时,向电子设备200发送用户A的语音的翻译结果。从而有助于降低电子设备200语音播报重叠的可能性。Therefore, in some embodiments, after receiving the voice translation result, the electronic device 100 broadcasts the received voice translation result if no voice input is detected. In other embodiments, if the electronic device 100 detects that there is currently a voice input, it waits to detect the translation result of the received voice when no voice input is detected. This helps to reduce the possibility of conflict with the voice of the broadcast user B and the possibility of incomplete translation of the voice of the broadcast voice of the user A. In addition, in other embodiments, when the received translation result is the translation result of the voice of the user A, the electronic device 100 sends the translation result of the voice of the user A to the electronic device 200 when no voice input is detected. Therefore, it helps to reduce the possibility of overlapping voice announcements of the electronic device 200.
需要说明的是,电子设备100检测到语音输入包括两种情况:一种是电子设备100的语音采集模块采集到用户A的语音,另一种是电子设备100的通信模块接收到电子设备200采集的用户B的语音。当电子设备100检测到未有语音输入时,本申请实施例中指的是电子设备100的语音采集模块未采集到用户A的语音、且通信模块未接收到电子设备200采集的用户B的语音。It should be noted that the electronic device 100 detects the voice input includes two cases: one is that the voice collection module of the electronic device 100 collects the voice of the user A, and the other is that the communication module of the electronic device 100 receives the collection of the electronic device 200 Voice of user B. When the electronic device 100 detects that there is no voice input, the embodiment of the present application refers to that the voice collection module of the electronic device 100 does not collect the voice of the user A, and the communication module does not receive the voice of the user B collected by the electronic device 200.
下面以图3所示的电子设备100的架构对本申请实施例中播报语音以及语音翻译结果的方式进行详细介绍。The manner of broadcasting speech and speech translation results in the embodiment of the present application will be described in detail below with the architecture of the electronic device 100 shown in FIG. 3.
如图9所示,电子设备100首先获取语音。例如,电子设备100可以通过语音采集模块获取用户A的语音,也可以通过通信模块接收用户B的语音,然后通过接入单元将获取的语音发送给通信模块,再由通信模块将语音上报到翻译服务器,然后由翻译服务器对语音进行翻译,并将翻译结果返回给通信模块,最后通过播报模块播报语音的翻译结果。为了保证语音获取和语音播报的节奏,在一些实施例中,电子设备100可以根据语音获取的情况和语音翻译情况,通过协同语音的获取情况和语音翻译的情况来对语音的获取和翻译结果的播报进行控制。As shown in FIG. 9, the electronic device 100 first acquires voice. For example, the electronic device 100 may obtain the voice of the user A through the voice collection module, or may receive the voice of the user B through the communication module, and then send the obtained voice to the communication module through the access unit, and then the communication module reports the voice to the translation The server then translates the voice by the translation server, and returns the translation result to the communication module, and finally broadcasts the translation result of the voice through the broadcast module. In order to ensure the rhythm of voice acquisition and voice broadcast, in some embodiments, the electronic device 100 may coordinate voice acquisition and voice translation based on voice acquisition and voice translation to coordinate voice acquisition and translation results. Broadcast control.
下面对用户A的语音的翻译结果的播报的控制方式进行具体介绍。The control method for broadcasting the translation result of the voice of the user A is specifically described below.
主控单元在检测电子设备200接听电子设备100发起的向用户B的呼叫后,通知语音检测单元监听语音采集模块是否采集到用户A的语音,以及监听通信模块是否接收到用户B的语音。本申请实施例中,语音检测单元可以实时将语音检测结果上报给协调单元,也可以每隔预设时长将语音检测结果上报给协调单元,还可以当监听到语音采集模块未采集到用户A的语音、通信模块未接收到用户B的语音时,向协调单元发送语音检测结果。After detecting that the electronic device 200 answers the call initiated by the electronic device 100 to the user B, the main control unit notifies the voice detection unit to monitor whether the voice acquisition module collects the voice of the user A, and whether the communication module receives the user B's voice. In the embodiment of the present application, the voice detection unit may report the voice detection result to the coordination unit in real time, or may report the voice detection result to the coordination unit every preset time period, and may also detect that the user A ’s When the voice and communication module does not receive the voice of user B, the voice detection result is sent to the coordination unit.
语音采集模块将采集的用户A的语音发送给本端翻译单元。由本端翻译单元将用户A的语音发送给接入单元,然后接入单元通过通信模块将用户A的语音发送给翻译服务器。翻译服务器对用户A的语音进行翻译后,将用户A的语音的翻译结果返回给电子设备100。电子设备100由通信模块接收翻译服务器发送的用户A的语音的翻译结果,并在通信模块接收到用户A的语音的翻译结果后,通过接入单元将用户A的语音的翻译结果发送给本端翻译单元,由本端翻译单元保存用户A的语音的翻译结果。例如,本端翻译单元可以将用户A的语音的翻译结果保存到预先设置的第一队列中。The voice collection module sends the collected user A's voice to the local translation unit. The local translation unit sends the voice of user A to the access unit, and then the access unit sends the voice of user A to the translation server through the communication module. After translating the voice of user A, the translation server returns the translation result of the voice of user A to the electronic device 100. The electronic device 100 receives the translation result of the voice of the user A sent by the translation server by the communication module, and sends the translation result of the voice of the user A to the local end through the access unit after the communication module receives the translation result of the voice of the user A The translation unit stores the translation result of user A's voice by the local translation unit. For example, the local translation unit may save the translation result of the voice of the user A into the first queue set in advance.
本端翻译单元在接收到用户A的语音的翻译结果后,向协调单元上报本端语音翻译结果通知,协调单元接收到本端语音翻译结果通知后,若根据语音检测单元上报的语音检测结果确定没有语音输入,则向播报控制单元发送允许播报语音翻译结果的通知。应理解,本申请实施例中协调单元可以直接向播报控制单元发送允许播报语音翻译结果的通知,也可以通过主控单元将允许播报语音翻译结果的通知发送给播报控制单元。After receiving the translation result of user A's voice, the local translation unit reports the local voice translation result notification to the coordination unit. After the coordination unit receives the local voice translation result notification, if it is determined according to the voice detection result reported by the voice detection unit If there is no voice input, a notification is sent to the broadcast control unit to allow the voice translation result to be broadcast. It should be understood that, in the embodiment of the present application, the coordination unit may directly send a notification that allows the voice translation result to be broadcast to the broadcast control unit, or may send the notification that the voice translation result is broadcast to the broadcast control unit through the main control unit.
播报控制单元接收到允许播报语音翻译结果的通知后,通知播报模块获取用户A的语音翻译结果进行播报。此外,协调单元若根据语音检测单元上报的语音检测结果确定没有语音输入,还通知通信模块向电子设备200发送用户A的语音的翻译结果。After the broadcast control unit receives the notification that the voice translation result is allowed to be broadcast, it notifies the broadcast module to obtain the voice translation result of user A for broadcast. In addition, if the coordination unit determines that there is no voice input according to the voice detection result reported by the voice detection unit, it also notifies the communication module to send the translation result of the voice of the user A to the electronic device 200.
协调单元当接收到本端语音翻译结果通知后,若根据语音检测单元上报的语音检测结果确定有语音输入,则向播报控制单元发送暂停播报翻译结果的通知。从而使得播报控制单元可以实现对播报模块对语音的翻译结果进行播报的控制。本申请实施例中,协调单元若根据语音检测单元上报的语音检测结果确定有语音输入,可以不向播报控制单元发送通知,在协调单元根据语音检测单元上报的语音检测结果确定没有语音输入后,再向播报控制单元发送允许播报语音翻译结果的通知。此外,协调单元若根据语音检测单元上报的语音检测结果确定监听到语音输入时,通信模块不向电子设备200发送用户A的语音的翻译结果。例如,协调单元可以通过向通信模块发送暂停向电子设备200发送本端语音翻译结果的通知来实现通信模块不向电子设备200发送用户A的语音的翻译结果。又例如,通信模块还可以在未接收到允许向电子设备200发送本端语音翻译结果的通知时,不向电子设备200发送用户A的语音的翻译结果。After receiving the local voice translation result notification, if the coordination unit determines that there is a voice input according to the voice detection result reported by the voice detection unit, it sends a notification to the broadcast control unit to suspend the translation result. Therefore, the broadcast control unit can realize the control of the broadcast result of the speech translation module of the broadcast module. In the embodiment of the present application, if the coordination unit determines that there is a voice input according to the voice detection result reported by the voice detection unit, it may not send a notification to the broadcast control unit. After the coordination unit determines that there is no voice input according to the voice detection result reported by the voice detection unit, Then send a notification to the broadcast control unit to allow the voice translation result to be broadcast. In addition, if the coordination unit determines that the voice input is monitored according to the voice detection result reported by the voice detection unit, the communication module does not send the translation result of the voice of the user A to the electronic device 200. For example, the coordination unit may realize that the communication module does not send the translation result of the voice of the user A to the electronic device 200 by sending a notification to the communication module that the sending of the local voice translation result to the electronic device 200 is suspended. For another example, the communication module may not send the translation result of the voice of the user A to the electronic device 200 when the notification that the local end voice translation result is allowed to be sent to the electronic device 200 is not received.
此外,电子设备100当通过翻译服务器实现用户A的语音翻译时,有可能会由于网络信号或者语速的原因,导致电子设备100可能无法获取到用户A的语音的翻译结果。例如若电子设备100与翻译服务器之间是通过网络建立通信连接的,有可能会由于网络信号较差时,会导致电子设备100无法将用户A的语音上传到翻译服务器,也有可能导致翻译服务器无法将用户A的语音的翻译结果及时返回给电子设备100。In addition, when the electronic device 100 realizes the voice translation of the user A through the translation server, the electronic device 100 may not be able to obtain the translation result of the voice of the user A due to a network signal or a speed of speech. For example, if the communication connection is established between the electronic device 100 and the translation server through the network, the poor network signal may cause the electronic device 100 to fail to upload the voice of the user A to the translation server, or may cause the translation server to fail The translation result of the voice of the user A is returned to the electronic device 100 in time.
在另一些实施例中,电子设备100当检测到有用户A的语音输入时,若第一时长内未接收到用户A的语音的翻译结果,获取当前电子设备100的网络信号强度,该网络信号强度为电子设备100用于与翻译服务器通信的网络的信号强度,该翻译服务器用于对用户A的语音进行翻译。需要说明的是,第一时长可以预先配置在电子设备100中,也可以由电子设备100根据预设算法确定。以电子设备100用于与翻译服务器通信的网络为移动通信网络为例。若网络信号强度小于或等于第一阈值,则电子设备100切换到预先配置在电子设备100中的翻译引擎中进行语音翻译,切换到网络信号好的服务小区,或者提示用户切换网络,如在电子设备100预先配置有至少两个SIM卡分别使用不同的移动通信网络时,自动切换到另一移动通信网络,使用另一移动通信网络与翻译服务器通信,或者在电子设备100打开WiFi网络时,自动切换到WiFi网络信号强度大于第二阈值的WiFi网络等。因而,通过上述技术方案有助于降低因网络信号变差导致语音翻译受阻的可能性。在一些实施例中,当移动通信网络的网络信号强度大于第一阈值或WiFi网络信号强度大于第二阈值,则电子设备100提示用户A放慢语速。示例的,如图10所示,电子设备100可以通过在显示屏151上显示提示信息1000,来提示用户降低语速。例如,提示信息900可以为“请放慢语速”等。又示例的,电子设备100还可以在检测到电子设备100黑屏时,通过播放提示音来提示用户A放慢语速。例如提示音可以为“滴滴”的提示音,也可以为“请放慢语速”的语音等。该提示音可以预先配置在电子设备100中。因而,通过上述技术方案,有助于降低因用户语速过快导致翻译紊乱的可能性。In some other embodiments, when the electronic device 100 detects the voice input of the user A, if the translation result of the voice of the user A is not received within the first period of time, the current network signal strength of the electronic device 100 is obtained. The strength is the signal strength of the network used by the electronic device 100 to communicate with the translation server, which is used to translate the speech of the user A. It should be noted that the first duration may be pre-configured in the electronic device 100, or may be determined by the electronic device 100 according to a preset algorithm. Take the network used by the electronic device 100 to communicate with the translation server as a mobile communication network as an example. If the network signal strength is less than or equal to the first threshold, the electronic device 100 switches to a translation engine pre-configured in the electronic device 100 for voice translation, switches to a serving cell with a good network signal, or prompts the user to switch the network, as in the electronic When the device 100 is pre-configured with at least two SIM cards respectively using different mobile communication networks, it automatically switches to another mobile communication network and uses another mobile communication network to communicate with the translation server, or when the electronic device 100 turns on the WiFi network, automatically Switch to a WiFi network whose signal strength of the WiFi network is greater than the second threshold, etc. Therefore, the above technical solution helps to reduce the possibility that speech translation is blocked due to the deterioration of the network signal. In some embodiments, when the network signal strength of the mobile communication network is greater than the first threshold or the WiFi network signal strength is greater than the second threshold, the electronic device 100 prompts the user A to slow down. Exemplarily, as shown in FIG. 10, the electronic device 100 may prompt the user to reduce the speech rate by displaying prompt information 1000 on the display screen 151. For example, the prompt information 900 may be "please speak slowly". For another example, when the electronic device 100 detects that the electronic device 100 is blank, it may prompt the user A to slow down by playing a prompt tone. For example, the prompt sound may be a "didi" prompt sound, or a "please slow down" voice. The prompt sound may be pre-configured in the electronic device 100. Therefore, through the above technical solution, it helps to reduce the possibility of translation disorder caused by the user's speech speed being too fast.
在具体实现时,在一些示例中,电子设备100的协调单元若根据接收到语音检测单元上报的语音检测结果确定语音采集模块有语音输入,但是协调单元若预设的第一时长内未接收到本端语音翻译结果的通知,则协调单元向接入单元发送网络信号强度检测的通知。接入单元接收到网络信号强度检测的通知后,从通信模块获取网络信号强度。应理解,接入单元从通信模块获取的网络信号强度为电子设备100用于与翻译服务器通信的网络的 信号强度。该翻译服务器用于对用户A的语音进行翻译。以电子设备100用于与翻译服务器通信的网络为移动通信网络为例,若网络信号强度大于第一阈值,则向协调单元发送网络正常的通知,协调单元接收到网络正常的通知后,向主控单元发送提示用户A降低语速的通知。主控单元接收到提示用户A降低语速的通知后,向用户A提示降低语速。接入单元当从通信模块获取的网络信号强度不大于第一阈值时,可以向协调单元发送网络异常的通知,然后协调单元将网络异常的通知发送给主控单元。主控单元在接收到网络异常的通知后,提示用户切换网络,或者自动切换网络。例如,主控单元可以通过显示屏151在显示当前网络异常,提示用户切换网络的信息。另外,在一些实施例中,接入单元当从通信模块获取的网络信号强度不大于第一阈值时,还可以自动将语音翻译服务切换到预先配置在电子设备100中的翻译引擎上。当接入单元检测到网络正常后,还可以重新切换到翻译服务器上进行语音翻译。In a specific implementation, in some examples, if the coordination unit of the electronic device 100 determines that the voice collection module has a voice input according to the received voice detection result reported by the voice detection unit, but if the coordination unit does not receive it within the preset first time period For notification of the local voice translation result, the coordination unit sends a notification of network signal strength detection to the access unit. After receiving the notification of network signal strength detection, the access unit obtains the network signal strength from the communication module. It should be understood that the network signal strength acquired by the access unit from the communication module is the signal strength of the network used by the electronic device 100 to communicate with the translation server. The translation server is used to translate the voice of user A. Taking the network used by the electronic device 100 to communicate with the translation server as a mobile communication network as an example, if the network signal strength is greater than the first threshold, a network normal notification is sent to the coordination unit. After receiving the network normal notification, the coordination unit sends The control unit sends a notification prompting user A to reduce the speech rate. After receiving the notification prompting the user A to reduce the speech rate, the main control unit prompts the user A to reduce the speech rate. When the network signal strength acquired from the communication module is not greater than the first threshold, the access unit may send a notification of network abnormality to the coordination unit, and then the coordination unit sends the notification of network abnormality to the main control unit. After receiving the notification of network abnormality, the main control unit prompts the user to switch the network, or automatically switches the network. For example, the main control unit may display the current network abnormality through the display screen 151 to prompt the user to switch the network. In addition, in some embodiments, when the network signal strength acquired from the communication module is not greater than the first threshold, the access unit may also automatically switch the voice translation service to the translation engine pre-configured in the electronic device 100. When the access unit detects that the network is normal, it can switch to the translation server again for voice translation.
电子设备100当检测到长时间内无语音输入,但接收到用户A的语音的翻译结果时,也有可能是因为网络信号强度较差或者用户语速过快导致的。因此,在一些实施例中,电子设备100当检测到第二时长内无语音输入,但接收到用户A的语音的翻译结果时,获取当前电子设备100的网络信号强度,该网络信号强度为电子设备100用于与翻译服务器通信的网络的信号强度,该翻译服务器用于对用户A的语音进行翻译。具体的,电子设备100根据网络信号强度实现协调的方式,可以参见电子设备100当检测到有用户A的语音输入、第一时长内未接收到用户A的语音的翻译结果时,电子设备100根据网络信号强度实现协调的方式。When the electronic device 100 detects that there is no voice input for a long time, but receives the translation result of the voice of the user A, it may also be caused by the poor network signal strength or the user's speech speed being too fast. Therefore, in some embodiments, the electronic device 100 obtains the current network signal strength of the electronic device 100 when it detects that there is no voice input within the second duration but receives the translation result of the voice of the user A, the network signal strength is electronic The device 100 is used for the signal strength of the network communicating with the translation server, which is used to translate the speech of the user A. Specifically, for the manner in which the electronic device 100 achieves coordination according to the strength of the network signal, refer to the electronic device 100 when the voice input of the user A is detected and the translation result of the voice of the user A is not received within the first period of time. A way to achieve network signal strength coordination.
在具体实现时,在一些实施例中,电子设备100的协调单元若根据语音检测单元上报的语音检测结果确定第二时长内语音采集模块未有语音输入,但是协调单元接收到本端语音翻译结果的通知,则协调单元向接入单元发送网络信号强度检测的通知。接入单元接收到网络信号强度检测的通知后的后续执行步骤,可以参见协调单元在语音采集模块有语音输入、但预设的第一时长内未接收到本端语音翻译结果的通知的情况下,接入单元接收到网络信号强度检测的通知后的后续执行步骤,在此不再赘述。During specific implementation, in some embodiments, if the coordination unit of the electronic device 100 determines that the voice collection module has no voice input within the second duration according to the voice detection result reported by the voice detection unit, the coordination unit receives the local voice translation result , The coordination unit sends a notification of network signal strength detection to the access unit. For the subsequent execution steps after the access unit receives the notification of network signal strength detection, you can refer to the case where the coordination unit does not receive the local voice translation result notification within the preset first time period when the voice acquisition module has voice input The subsequent execution steps after the access unit receives the notification of network signal strength detection will not be repeated here.
需要说明的是,当电子设备100缓存的用户A的语音的翻译结果的数量超过预设数量时,则无需考虑电子设备100当前是否采集到用户A的语音或者接收到用户B的语音,直接播报用户A的语音的翻译结果。从而有助于避免电子设备100缓存的用户A的语音翻译结果溢出,造成信息的丢失。例如,第一队列用于缓存用户A的语音的翻译结果,预设数量为第一队列的最大能够存储翻译结果的数量。示例的,在具体实现时,本端翻译单元当检测到缓存的用户A的语音的翻译结果的数量超过预设数量时,向协调单元发送优先播报翻译结果的通知。协调单元接收到优先播报本端语音翻译结果的通知后,向播报控制单元发送播报本端语音翻译结果的通知,使得播报模块播报用户A的语音的翻译结果。It should be noted that when the number of translation results of the voice of the user A cached by the electronic device 100 exceeds the preset number, it is not necessary to consider whether the electronic device 100 currently collects the voice of the user A or receives the voice of the user B, and directly broadcasts The translation result of user A's voice. Therefore, it helps to avoid that the voice translation result of the user A cached by the electronic device 100 overflows, resulting in the loss of information. For example, the first queue is used to cache the translation results of the voice of user A, and the preset number is the maximum number of translation results that can be stored in the first queue. Exemplarily, in a specific implementation, when the local translation unit detects that the number of cached translation results of the voice of the user A exceeds a preset number, it sends a notification to preferentially broadcast the translation results to the coordination unit. After receiving the notification of preferentially broadcasting the local voice translation result, the coordination unit sends a notification of broadcasting the local voice translation result to the broadcasting control unit, so that the broadcasting module broadcasts the translation result of the voice of the user A.
下面对用户B的语音的翻译结果的播报的控制方式进行具体介绍。The control method of the broadcast of the translation result of the voice of the user B is specifically described below.
通信模块用于接收电子设备200采集的用户B的语音,并将接收到的电子设备200采集的用户B的语音发送给对端翻译单元。由对端翻译单元将用户B的语音发送给接入单元。然后接入单元通过通信模块将用户B的语音发送给翻译服务器。翻译服务器对用户B的语音进行翻译后,将翻译结果返回给电子设备100。电子设备100由通信模块接收翻译服务器发送的用户B的语音翻译结果,并在通信模块接收到用户B的语音的翻译结果 后,通过接入单元将用户B的语音的翻译结果发送给对端翻译单元。由对端翻译单元保存用户B的语音的翻译结果。例如,对端翻译单元可以将用户B的语音的翻译结果保存到预先设置的第二队列中。The communication module is used to receive the voice of the user B collected by the electronic device 200 and send the received voice of the user B collected by the electronic device 200 to the opposite translation unit. The peer translation unit sends the voice of user B to the access unit. Then the access unit sends the voice of user B to the translation server through the communication module. After translating the voice of user B, the translation server returns the translation result to the electronic device 100. The electronic device 100 receives the user B's voice translation result sent by the translation server from the communication module, and after the communication module receives the user B's voice translation result, sends the user B's voice translation result to the peer translation through the access unit unit. The translation result of the voice of user B is saved by the peer translation unit. For example, the peer translation unit may save the translation result of user B's voice into a pre-set second queue.
对端翻译单元在接收到用户B的语音的翻译结果后,向协调单元上报对端语音翻译结果通知,协调单元接收到对端语音翻译结果通知后,若根据语音检测单元上报的语音检测结果确定没有语音输入,则向播报控制单元发送允许播报语音翻译结果的通知。应理解,本申请实施例中协调单元可以直接向播报控制单元发送允许播报语音翻译结果的通知,也可以通过主控单元将允许播报语音翻译结果的通知发送给播报控制单元。After receiving the translation result of the voice of the user B, the peer translation unit reports the notification of the peer voice translation result to the coordinating unit. If there is no voice input, a notification is sent to the broadcast control unit to allow the voice translation result to be broadcast. It should be understood that, in the embodiment of the present application, the coordination unit may directly send a notification that allows the voice translation result to be broadcast to the broadcast control unit, or may send the notification that the voice translation result is broadcast to the broadcast control unit through the main control unit.
播报控制单元接收到允许播报语音翻译结果的通知后,通知播报模块获取用户B的语音翻译结果进行播报。此外,协调单元若根据语音检测单元上报的语音检测结果确定没有语音输入,还通知通信模块向电子设备200发送用户B的语音的翻译结果。After the broadcast control unit receives the notification that the voice translation result is allowed to be broadcast, it notifies the broadcast module to obtain the voice translation result of user B for broadcast. In addition, if the coordination unit determines that there is no voice input according to the voice detection result reported by the voice detection unit, it also notifies the communication module to send the translation result of the voice of the user B to the electronic device 200.
协调单元当接收到对端语音翻译结果通知后,若根据语音检测单元上报的语音检测结果确定有语音输入,则向播报控制单元发送暂停播报翻译结果的通知。从而使得播报控制单元可以实现对播报模块对语音的翻译结果进行播报的控制。本申请实施例中,协调单元若根据语音检测单元上报的语音检测结果确定有语音输入,可以不向播报控制单元发送通知,再协调单元根据语音检测单元上报的语音检测结果确定没有到语音输入后,再向播报控制单元发送允许播报语音翻译结果的通知。此外,在一些实施例中,协调单元还可以当根据语音检测单元上报的语音检测结果确定有语音输入时,通信模块不向电子设备200发送用户A的语音的翻译结果。例如,协调单元可以通过向通信模块发送暂停向电子设备200发送对端语音翻译结果的通知来实现通信模块不向电子设备200发送用户B的语音的翻译结果,也可以通过通信模块未接收到允许向电子设备200发送对端语音翻译结果的通知,来实现通信模块不向电子设备200发送用户B的语音的翻译结果。After receiving the notification of the voice translation result from the peer end, if the coordination unit determines that there is a voice input according to the voice detection result reported by the voice detection unit, it sends a notification to the broadcast control unit to suspend the translation result. Therefore, the broadcast control unit can realize the control of the broadcast result of the speech translation module of the broadcast module. In the embodiment of the present application, if the coordination unit determines that there is a voice input according to the voice detection result reported by the voice detection unit, it may not send a notification to the broadcast control unit, and then the coordination unit determines that no voice input has been received according to the voice detection result reported by the voice detection unit , And then send a notification to the broadcast control unit to allow the announcement of speech translation results. In addition, in some embodiments, the coordination unit may also not transmit the translation result of the voice of the user A to the electronic device 200 when it is determined that there is a voice input according to the voice detection result reported by the voice detection unit. For example, the coordination unit may realize that the communication module does not send the translation result of the voice of the user B to the electronic device 200 by sending a notification to the communication module to suspend the sending of the peer voice translation result to the electronic device 200, or may not receive permission from the communication module Sending the notification of the translation result of the peer voice to the electronic device 200, so that the communication module does not send the translation result of the voice of the user B to the electronic device 200.
此外,电子设备100当通过翻译服务器实现用户B的语音翻译时,有可能会由于网络信号或者语速的原因,导致电子设备100可能无法获取到用户B的语音的翻译结果。例如若电子设备100与翻译服务器之间是通过网络建立通信连接的,有可能会由于网络信号较差时,会导致电子设备100无法将用户A的语音上传到翻译服务器,也有可能导致翻译服务器无法将用户B的语音的翻译结果及时返回给电子设备100。In addition, when the electronic device 100 realizes the voice translation of the user B through the translation server, the electronic device 100 may not be able to obtain the translation result of the voice of the user B due to a network signal or a speed of speech. For example, if the communication connection is established between the electronic device 100 and the translation server through the network, the poor network signal may cause the electronic device 100 to fail to upload the voice of the user A to the translation server, or may cause the translation server to fail The translation result of the voice of the user B is returned to the electronic device 100 in time.
因此,在另一些实施例中,电子设备100当接收到电子设备200发送的用户B的语音,但第三时长内未接收到用户B的语音的翻译结果时,获取当前电子设备100的网络信号强度,该网络信号强度为电子设备100用于与翻译服务器之前的通信的网络的信号强度,该翻译服务器用于对用户B的语音进行翻译。需要说明的是,第三时长可以预先配置在电子设备100中,也可以由电子设备100根据预设算法确定。下面以电子设备100用于与翻译服务器之前的通信的网络为移动通信网络为例。电子设备100当网络信号强度小于或等于第一阈值时,则切换到预先配置在电子设备100中的翻译引擎中进行语音翻译,或者提示用户切换网络,或者自动切换到网络信号强度大于第一阈值的移动通信网络、或者自动切换到网络信号强度大于第一阈值的无线通信网络等。从而有助于降低网络信号变差导致语音翻译受阻的可能性。在另一些实施例中,电子设备100当网络信号强度大于第一阈值时,则提示用户B放慢语速。从而有助于降低因用户语速过快导致翻译紊乱的可能性。示例的,电子设备100可以通过在显示屏151上显示提示信息,来提示用户A通知用户B降低语 速。由电子设备100将用户A提示用户B的降低语速的语音的翻译结果发送给电子设备200,以达到提示用户B降低语速的目的。又示例的,电子设备100还可以在检测到电子设备100黑屏时,通过播放提示音来提示用户A通知用户B放慢语速。例如提示音可以为“滴滴”的提示音,也可以为“请放慢语速”的语音等。该提示音可以预先配置在电子设备100中。再示例的,电子设备100还可以通过自动将提示音发送给电子设备200,使得电子设备200能够播放提示音给用户B达到提示用户B降低语速的目的。Therefore, in some other embodiments, the electronic device 100 obtains the current network signal of the electronic device 100 when the user B's voice sent by the electronic device 200 is received but the translation result of the user B's voice is not received within the third duration The network signal strength is the signal strength of the network used by the electronic device 100 to communicate with the translation server, and the translation server is used to translate user B's speech. It should be noted that the third duration may be pre-configured in the electronic device 100, or may be determined by the electronic device 100 according to a preset algorithm. In the following, the network used by the electronic device 100 for communication with the translation server is a mobile communication network as an example. When the network signal strength is less than or equal to the first threshold, the electronic device 100 switches to a translation engine pre-configured in the electronic device 100 for voice translation, or prompts the user to switch the network, or automatically switches to a network signal strength greater than the first threshold Mobile communication network, or automatically switch to a wireless communication network with a network signal strength greater than a first threshold. This helps to reduce the possibility that the network signal becomes worse and the speech translation is blocked. In other embodiments, when the network signal strength is greater than the first threshold, the electronic device 100 prompts the user B to slow down. This helps to reduce the possibility of translation disorder due to the user's rapid speech rate. Exemplarily, the electronic device 100 may prompt the user A to notify the user B to reduce the speech rate by displaying prompt information on the display screen 151. The electronic device 100 sends the translation result of the speech speed-reduced speech that the user A prompts the user B to the electronic device 200, so as to achieve the purpose of prompting the user B to reduce the speech rate. For another example, the electronic device 100 may also prompt the user A to notify the user B to slow down the speech by playing a prompt tone when the electronic device 100 detects a black screen. For example, the prompt sound may be a "didi" prompt sound, or a "please slow down" voice. The prompt sound may be pre-configured in the electronic device 100. For another example, the electronic device 100 may also automatically send a prompt tone to the electronic device 200, so that the electronic device 200 can play the prompt tone to the user B to achieve the purpose of prompting the user B to reduce the speech rate.
在具体实现时,在一些示例中,电子设备100的协调单元若根据接收到语音检测单元上报的语音检测结果确定通信模块接收到来自电子设备200的语音,但是协调单元若预设的第三时长内未接收到对端语音翻译结果的通知,则协调单元向接入单元发送网络信号强度检测的通知。接入单元接收到网络信号强度检测的通知后,从通信模块获取网络信号强度,若网络信号强度大于第一阈值,则向协调单元发送网络正常的通知,协调单元接收到网络正常的通知后,向主控单元发送提示用户B降低语速的通知。主控单元接收到提示用户B降低语速的通知后,提示用户B降低语速。示例的,主控单元可以接收到提示用户B降低语速的通知后,自动通过通信模块向电子设备200发送提示音,来提示用户B降低语速。又示例的,主控单元还可以通过在显示屏151上显示提示信息或通过播报模块播放提示音给用户A,提示对端用户语速过快。用户A在查看到提示信息或听到提示音后,口头提示用户B降低语速,由电子设备100将用户A提示用户B的降低语速的语音的翻译结果发送给电子设备200,以达到提示用户B降低语速的目的。接入单元当从通信模块获取的网络信号强度不大于第一阈值时,可以向协调单元发送网络异常的通知,然后协调单元将网络异常的通知发送给主控单元。主控单元在接收到网络异常的通知后,向提示切换网络。例如,主控单元可以通过显示屏151在显示当前网络异常,提示用户切换网络的信息。另外,在一些实施例中,接入单元当从通信模块获取的网络信号强度不大于第一阈值时,还可以自动将语音翻译服务切换到预先配置在电子设备100中的翻译引擎上。当接入单元检测到网络正常后,还可以将语音翻译服务重新切换到翻译服务器上。In specific implementation, in some examples, the coordination unit of the electronic device 100 determines that the communication module receives the voice from the electronic device 200 according to the received voice detection result reported by the voice detection unit, but if the coordination unit presets the third duration If the notification of the result of the voice translation of the peer end is not received, the coordination unit sends a notification of network signal strength detection to the access unit. After receiving the notification of network signal strength detection, the access unit obtains the network signal strength from the communication module. If the network signal strength is greater than the first threshold, it sends a network normal notification to the coordination unit. After the coordination unit receives the network normal notification, Send a notification to the main control unit prompting user B to reduce the speech rate. After receiving the notification prompting user B to decrease the speech rate, the main control unit prompts user B to decrease the speech rate. For example, after receiving the notification prompting the user B to reduce the speech rate, the main control unit may automatically send a prompt tone to the electronic device 200 through the communication module to prompt the user B to reduce the speech rate. For another example, the main control unit may also prompt the user of the peer end to speak too fast by displaying prompt information on the display screen 151 or playing a prompt sound to the user A through the broadcast module. After the user A sees the prompt information or hears the prompt sound, he orally prompts the user B to reduce the speech rate, and the electronic device 100 sends the translation result of the speech speed-reduced speech that the user A prompts the user B to the electronic device 200 to achieve the prompt The purpose of user B to reduce the speaking rate. When the network signal strength acquired from the communication module is not greater than the first threshold, the access unit may send a notification of network abnormality to the coordination unit, and then the coordination unit sends the notification of network abnormality to the main control unit. After receiving the notification of network abnormality, the main control unit switches to the network to the prompt. For example, the main control unit may display the current network abnormality through the display screen 151 to prompt the user to switch the network. In addition, in some embodiments, when the network signal strength acquired from the communication module is not greater than the first threshold, the access unit may also automatically switch the voice translation service to the translation engine pre-configured in the electronic device 100. When the access unit detects that the network is normal, it can also switch the voice translation service to the translation server again.
电子设备100当检测到长时间内无语音输入,但接收到用户B的语音的翻译结果时,也有可能是因为网络信号强度较差或者用户语速过快导致的。因此,在一些实施例中,电子设备100当检测到第四时长内无语音输入,但接收到用户B的语音的翻译结果时,获取当前电子设备100的网络信号强度,该网络信号强度为电子设备100用于与翻译服务器通信的网络的信号强度。需要说明的是,第四时长可以预先配置在电子设备100中,也可以由电子设备100根据预设算法确定。具体的,电子设备100根据网络信号强度实现协调的方式,可以参见电子设备100当检测到有用户A的语音输入、第一时长内未接收到用户A的语音的翻译结果时,电子设备100根据网络信号强度实现协调的方式。从而有助于提高通话过程中语音翻译的可靠性。When the electronic device 100 detects that there is no voice input for a long time, but receives the translation result of the voice of the user B, it may also be caused by the poor network signal strength or the user's speech speed being too fast. Therefore, in some embodiments, the electronic device 100 obtains the current network signal strength of the electronic device 100 when it detects that there is no voice input within the fourth duration but receives the translation result of the voice of the user B, the network signal strength is electronic The signal strength of the network used by the device 100 to communicate with the translation server. It should be noted that the fourth duration may be pre-configured in the electronic device 100, or may be determined by the electronic device 100 according to a preset algorithm. Specifically, for the manner in which the electronic device 100 achieves coordination according to the strength of the network signal, refer to the electronic device 100 when the voice input of the user A is detected and the translation result of the voice of the user A is not received within the first period of time. A way to achieve network signal strength coordination. This helps to improve the reliability of voice translation during calls.
在具体实现时,在一些实施例中,电子设备100的协调单元若根据语音检测单元上报的语音检测结果确定第四时长内通信模块为未接收到来自电子设备200的语音,但是协调单元接收到对端语音翻译结果的通知,则协调单元向接入单元发送网络信号强度检测的通知。接入单元接收到网络信号强度检测的通知后的后续执行步骤,可以参见协调单元在语音采集模块有语音输入、但预设的第一时长内未接收到本端语音翻译结果的通知的情况下,接入单元接收到网络信号强度检测的通知后的后续执行步骤,在此不再赘述。In specific implementation, in some embodiments, if the coordination unit of the electronic device 100 determines that the communication module within the fourth time period does not receive the voice from the electronic device 200 according to the voice detection result reported by the voice detection unit, but the coordination unit receives For the notification of the voice translation result of the peer end, the coordination unit sends a notification of network signal strength detection to the access unit. For the subsequent execution steps after the access unit receives the notification of network signal strength detection, you can refer to the case where the coordination unit does not receive the local voice translation result notification within the preset first time period when the voice acquisition module has voice input The subsequent execution steps after the access unit receives the notification of network signal strength detection will not be repeated here.
需要说明的是,当电子设备100缓存的用户B的语音的翻译结果的数量超过预设数量时,无需考虑电子设备100当前是否采集到用户A的语音或者接收到用户B的语音,直接播报用户B的语音的翻译结果。从而有助于避免电子设备100缓存的用户B的语音翻译结果溢出,造成信息的丢失。例如,第二队列用于缓存用户B的语音的翻译结果,预设数量为第二队列的最大能够存储翻译结果的数量。示例的,在具体实现时,对端翻译单元向协调单元发送优先播报对端语音翻译结果的通知,协调单元接收到优先播报对端语音翻译结果的通知后,向播报控制单元发送播报对端语音翻译结果的通知,使得播报模块播报用户B的语音的翻译结果。It should be noted that when the number of translation results of the voice of the user B cached by the electronic device 100 exceeds the preset number, it is not necessary to consider whether the electronic device 100 currently collects the voice of the user A or receives the voice of the user B, and directly broadcasts the user The translation result of B's voice. Therefore, it helps to avoid that the voice translation result of the user B cached by the electronic device 100 overflows, resulting in the loss of information. For example, the second queue is used to cache the translation results of the voice of user B, and the preset number is the maximum number of translation results that can be stored in the second queue. Exemplarily, in a specific implementation, the peer translation unit sends a notification of preferential broadcast of the peer voice translation result to the coordination unit. After receiving the notification of preferential broadcast of the peer voice translation result, the coordination unit sends the broadcast of the peer voice to the broadcast control unit The notification of the translation result causes the broadcast module to broadcast the translation result of user B's voice.
示例的,如图11所示,为本申请实施例播报语音的方法的流程示意图。由电子设备100执行以下步骤。Exemplarily, as shown in FIG. 11, it is a schematic flowchart of a method for broadcasting voice according to an embodiment of the present application. The electronic device 100 executes the following steps.
步骤1101,接收到新的语音的翻译结果。应理解,新的语音的翻译结果可以包括用户A的语音的翻译结果,也可以包括用户B的语音的翻译结果。其中,用户A的语音的翻译结果为本端语音的翻译结果,用户B的语音的翻译结果为对端语音的翻译结果。In step 1101, a new voice translation result is received. It should be understood that the translation result of the new voice may include the translation result of the voice of the user A or the translation result of the voice of the user B. The translation result of the voice of the user A is the translation result of the local end voice, and the translation result of the voice of the user B is the translation result of the opposite end voice.
步骤1102,判断缓存的语音的翻译结果是否超过预设阈值,若是,则执行步骤1104,否则执行步骤1103。In step 1102, it is judged whether the translation result of the buffered voice exceeds a preset threshold, if yes, step 1104 is executed, otherwise step 1103 is executed.
步骤1103,判断是否有语音输入,若是则执行步骤1105,否则执行步骤1104。应理解,有语音输入指的是电子设备100采集到用户A的语音和/或电子设备100接收到电子设备200发送的用户B的语音。无语音输入指的是,电子设备100未采集到用户A的语音,也未接收到电子设备200发送的用户B的语音。In step 1103, it is judged whether there is a voice input. If yes, step 1105 is executed; otherwise, step 1104 is executed. It should be understood that voice input refers to that the electronic device 100 collects the voice of the user A and / or the electronic device 100 receives the voice of the user B sent by the electronic device 200. No voice input means that the electronic device 100 does not collect the voice of the user A, nor receives the voice of the user B sent by the electronic device 200.
步骤1104,播报语音的翻译结果,本流程结束。示例的,播报的语音的翻译结果为最早缓存的语音的翻译结果。Step 1104, the translation result of the voice is broadcasted, and the process ends. For example, the translation result of the broadcasted speech is the translation result of the earliest cached speech.
示例的,语音的翻译结果可以缓存到队列中。例如,用于缓存语音的翻译结果的队列图如图12所示,当队列为空时,电子设备100可以将先翻译好的未播报的语音的翻译结果存储到队列中的位置1,然后当在接收到新的语音的翻译结果后,若存储在队列中为位置1的语音的翻译结果还未播报,则将新的语音翻译结果存储到队列中的位置2,以此类推。电子设备从图12中所示的队列中的位置1开始播报语音翻译结果。For example, voice translation results can be cached in the queue. For example, a queue diagram for buffering translation results of speech is shown in FIG. 12, when the queue is empty, the electronic device 100 may store the translation result of the untranslated speech that has been translated first to position 1 in the queue, and then After receiving the translation result of the new speech, if the translation result of the speech stored in the queue at position 1 has not yet been broadcast, the new speech translation result is stored at position 2 in the queue, and so on. The electronic device broadcasts the speech translation result from position 1 in the queue shown in FIG. 12.
步骤1105,当输入的语音为对端语音时,则播报对端语音,并获取对端语音的翻译结果,重新执行步骤1101,当输入的语音为本端语音时,则获取本端语音的翻译结果,重新执行步骤1101,本流程结束。Step 1105, when the input voice is the peer voice, broadcast the peer voice and obtain the translation result of the peer voice, and re-execute step 1101, when the input voice is the local voice, obtain the translation of the local voice As a result, step 1101 is re-executed, and the flow ends.
此外,在又一些实施例中,电子设备100在用户A与用户B的通话过程中,在显示屏151显示用户A和用户B的实时的通话记录的语音对应的文本以及对应的语音的翻译结果的文本。从而有助于用户A和用户B在语言不通的情况下的能够理解对方所表达的意思。在一些实施例中,电子设备100可以在用户界面800显示用户A和用户B的实时的通话的语音对应的文本以及对应的语音的翻译结果的文本。示例的,用户界面800可以包括通话记录文本显示区域804,通过通话记录文本显示区域804来显示用户A和用户B的实时的通话记录的文本。例如,电子设备100采集的用户A的语音为“你好,我想买张机票。”,接收到的电子设备B的语音为“OK,which day do you prefer”以及获取的用户A的语音的翻译结果为“Hello,I want to buy a ticket”,获取的用户B的语音的翻译结果为“好的,你想订哪天的?”,则可以如图13所示,在通话记录文本显示区域804显示“你 好,我想买张机票。”的文本、“Hello,I want to buy a ticket”的文本、“OK,which day do you prefer”的文本和“好的,你想订哪天的?”的文本。In addition, in some embodiments, the electronic device 100 displays the text corresponding to the voice of the real-time call record of the user A and the user B and the translation result of the corresponding voice on the display screen 151 during the call between the user A and the user B Text. Therefore, it helps users A and B to understand the meanings expressed by each other when the language is not available. In some embodiments, the electronic device 100 may display the text corresponding to the voice of the real-time call of the user A and the user B and the text of the translation result of the corresponding voice on the user interface 800. For example, the user interface 800 may include a call log text display area 804, and the text of the real-time call log of the user A and the user B is displayed through the call log text display area 804. For example, the voice of the user A collected by the electronic device 100 is "Hello, I want to buy a ticket." The voice of the received electronic device B is "OK, which day do you prefer" and the voice of the user A obtained The translation result is "Hello, I want to buy ticket", and the translation result of the obtained user B's voice is "OK, which day do you want to order?", As shown in Figure 13, in the call log text display Area 804 displays the text "Hello, I want to buy a ticket.", The text "Hello, I want to buy ticket", the text "OK, which do you prefer", and "Okay, where do you want to book?" The text? "
需要说明的是,用户A和用户B的实时的通话记录的语音对应的文本以及对应的语音的翻译结果的文本可以由电子设备100基于语音识别获取的,也可以是电子设备100将用户A和用户B的实时的通话记录的语音以及对应的语音的翻译结果上报给语音翻译服务器,由语音翻译服务器将语音转化为文本后发送给电子设备100的。本申请实施例对电子设备100获取文本的方式不作限定。It should be noted that the text corresponding to the voice of the real-time call record of user A and user B and the text of the translation result of the corresponding voice may be obtained by the electronic device 100 based on voice recognition, or the electronic device 100 The voice of the real-time call record of user B and the translation result of the corresponding voice are reported to the voice translation server, and the voice translation server converts the voice into text and sends it to the electronic device 100. The embodiment of the present application does not limit the manner in which the electronic device 100 acquires text.
在另一些实施例中,为了便于用户A和用户B双方确定电子设备100开启了语音翻译服务,则预先在电子设备100中配置语音通话翻译功能已开启的提示音,例如,预先配置在电子设备100中的语音通话翻译功能已开启的提示音所使用的语言可以为系统语言,也可以为设置的本端语言,当系统语言或本端语言发生变化后,预先配置在电子设备100中的语音通话翻译功能已开启的提示音所使用的语言相应变化,电子设备100在检测到用户B接听用户A的来电后,播报预先配置在电子设备100中的语音通话翻译功能已开启的提示音,以及向电子设备200发送语音通话翻译功能已开启的提示音的翻译结果。其中,语音通话翻译功能已开启的提示音的翻译结果的使用的语言为设置的对端语言。电子设备200接收到语音通话翻译功能已开启的提示音的翻译结果后,播放语音通话翻译功能已开启的提示音,以便于用户B获知电子设备100的语音通话翻译功能已开启。In other embodiments, in order to facilitate the determination of both the user A and the user B that the electronic device 100 has enabled the voice translation service, a prompt tone for the voice call translation function that has been turned on is configured in the electronic device 100 in advance, for example, pre-configured in the electronic device The language used for the prompt tone of the voice call translation function in 100 can be the system language or the set local language. When the system language or the local language changes, the voice configured in the electronic device 100 is pre-configured The language used for the prompt tone of the call translation function changes accordingly. After detecting that user B answers the call of user A, the electronic device 100 broadcasts the prompt tone of the voice call translation function pre-configured in the electronic device 100, and The electronic device 200 sends the translation result of the prompt sound that the voice call translation function is turned on. Among them, the language used for the translation result of the prompt tone with the voice call translation function turned on is the set opposite language. After receiving the translation result of the prompt tone that the voice call translation function is turned on, the electronic device 200 plays the prompt tone that the voice call translation function is turned on, so that the user B knows that the voice call translation function of the electronic device 100 is turned on.
电子设备100在检测到用户B接听用户A的来电后,还可以在显示屏151上显示语音通话翻译功能已开启提示音的文本。以语音通话翻译功能已开启的提示音的文本可以为“你好,欢迎使用语音通话翻译服务,请在语音播报完毕后开始通话。”为例,电子设备100在检测到用户B接听用户A的来电后,在用户界面800上下显示“你好,欢迎使用语音通话翻译服务,请在语音播报完毕后开始通话。”,如图14所示。After detecting that the user B answers the call of the user A, the electronic device 100 may also display a text on the display screen 151 that the voice call translation function has been activated. Take the text of the prompt tone that the voice call translation function is turned on as "Hello, welcome to use the voice call translation service. Please start the call after the voice broadcast is completed." For example, the electronic device 100 detects that user B answers user A After the call, the user interface 800 displays "Hello, welcome to use the voice call translation service, please start the call after the voice broadcast is completed.", As shown in Figure 14.
为了便于下次电子设备100对本端语言设置803和对端语言设置802进行设置,电子设备100在检测到与用户B的通话结束后,保存用户A和用户B本次通话对本端语言设置803和对端语言设置802进行的设置。In order to facilitate the next time the electronic device 100 sets the local language setting 803 and the remote language setting 802, the electronic device 100 saves the current language settings 803 and The settings made by the peer language setting 802.
本申请实施例中还可以在电子设备100上设置用于开启或关闭语音通话翻译功能的虚拟按钮。从而有助于用户能够控制开启或关闭语音通话翻译功能。用户可以通过对虚拟按钮操作开启或关闭语音通话翻译功能,也可以由电子设备100自动确定是否开启或关闭语音通话翻译服务对虚拟按钮进行设置。In the embodiment of the present application, a virtual button for turning on or off a voice call translation function may also be set on the electronic device 100. This helps users to control whether to turn on or off the voice call translation function. The user can turn on or off the voice call translation function by operating the virtual button, or the electronic device 100 can automatically determine whether to turn on or off the voice call translation service to set the virtual button.
示例的,如图15所示,用户界面800包括虚拟按钮1400,虚拟按钮1400用于开启或关闭语音通话翻译功能。具体的,虚拟按钮1200关闭(OFF)时,电子设备100关闭语音通话翻译功能;虚拟按钮1200开启(ON)时,电子设备100开启语音通话翻译功能。另外,还需要说明的是,虚拟按钮1200OFF时,可以在用户界面800隐藏或置灰本端语言设置803和对端语言设置。又示例的,如图16所示,还可以在系统设置界面1600增加开启语音翻译设置按钮1601,其中开启语音翻译设置按钮1601用于开启或关闭语音通话翻译功能。其中,电子设备100可以响应于对设置图标操作,显示系统设置界面1600。For example, as shown in FIG. 15, the user interface 800 includes a virtual button 1400, which is used to turn on or off the voice call translation function. Specifically, when the virtual button 1200 is turned off, the electronic device 100 turns off the voice call translation function; when the virtual button 1200 is turned on, the electronic device 100 turns on the voice call translation function. In addition, it should be noted that when the virtual button 1200 is turned off, the local language setting 803 and the peer language setting can be hidden or grayed out in the user interface 800. For another example, as shown in FIG. 16, a voice translation setting button 1601 may also be added to the system setting interface 1600, where the voice translation setting button 1601 is used to turn on or off the voice call translation function. Among them, the electronic device 100 may display the system setting interface 1600 in response to operating the setting icon.
需要说明的是,当电子设备100作为被叫端,电子设备200作为主叫端,在电子设备200不具有语音通话翻译功能的情况下,电子设备100若具有语音通话翻译功能,则电子设备100接收到用户B的来电后,可以执行基于语音通话的翻译过程。具体的,电子设备 100执行基于语音通话的翻译方法,可参见电子设备100作为主叫端,电子设备200作为被叫端时执行基于语音通话的翻译方法,在此不再赘述。It should be noted that when the electronic device 100 serves as the called terminal and the electronic device 200 serves as the calling terminal, if the electronic device 200 does not have the voice call translation function, if the electronic device 100 has the voice call translation function, the electronic device 100 After receiving the call from user B, the translation process based on the voice call can be performed. Specifically, the electronic device 100 performs a translation method based on a voice call. For details, refer to the electronic device 100 as a calling end and the electronic device 200 as a called end to perform a translation method based on a voice call, which will not be repeated here.
例如,如图17所示,电子设备100接收到用户B的来电后,可以在显示屏151显示用户界面1700。用户界面1700上包括语音翻译按钮1701。电子设备100可以响应于对语音翻译按钮1701的操作,在显示屏151显示图8所示的用户界面800。又例如,电子设备100还可以响应于对语音翻译按钮1701的操作,开启或关闭语音通话翻译功能。从而有助于用户开启语音通话翻译功能。For example, as shown in FIG. 17, after receiving the call from user B, the electronic device 100 may display the user interface 1700 on the display screen 151. The user interface 1700 includes a voice translation button 1701. The electronic device 100 may display the user interface 800 shown in FIG. 8 on the display screen 151 in response to the operation of the voice translation button 1701. For another example, the electronic device 100 may also turn on or off the voice call translation function in response to the operation of the voice translation button 1701. This helps users turn on voice call translation.
此外,本申请实施例基于语音通话的翻译方法还可应用于其它可以进行实时语音通信的应用中,例如微信等。另外,本申请上述实施例仅以两人通话为进行的说明,本申请实施例还可以应用于多人通话的应用场景,例如电话会议等。In addition, the translation method based on voice calls in the embodiments of the present application can also be applied to other applications that can perform real-time voice communication, such as WeChat. In addition, the above-mentioned embodiments of the present application are described only for two-person conversations, and the embodiments of the present application can also be applied to application scenarios of multi-person conversations, such as telephone conferences.
本申请涉及的各个实施例可以单独使用,也可以相互结合使用,以实现不同的技术效果。The various embodiments involved in this application may be used alone or in combination with each other to achieve different technical effects.
上述本申请提供的实施例中,从电子设备作为执行主体的角度对本申请实施例提供的方法进行了介绍。为了实现上述本申请实施例提供的方法中的各功能,电子设备可以包括硬件结构和/或软件模块,以硬件结构、软件模块、或硬件结构加软件模块的形式来实现上述各功能。上述各功能中的某个功能以硬件结构、软件模块、还是硬件结构加软件模块的方式来执行,取决于技术方案的特定应用和设计约束条件。In the above embodiments provided by the present application, the method provided by the embodiments of the present application is introduced from the perspective of an electronic device as an execution subject. In order to realize each function in the method provided by the embodiments of the present application, the electronic device may include a hardware structure and / or a software module, and the above functions are implemented in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether one of the above functions is executed in a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application of the technical solution and design constraints.
基于相同的构思,图18所示为本申请提供的一种电子设备1800。电子设备1800包括至少一个处理器1810、存储器1820和收发器1830。其中,处理器1810与存储器1820和收发器1830耦合,本申请实施例中的耦合是装置、单元或模块之间的间接耦合或通信连接,可以是电性,机械或其它的形式,用于装置、单元或模块之间的信息交互。Based on the same concept, FIG. 18 shows an electronic device 1800 provided by the present application. The electronic device 1800 includes at least one processor 1810, memory 1820, and transceiver 1830. The processor 1810 is coupled to the memory 1820 and the transceiver 1830. The coupling in the embodiments of the present application is an indirect coupling or communication connection between devices, units, or modules, which may be electrical, mechanical, or other forms used for devices , Information exchange between units or modules.
具体的,存储器1820用于存储程序指令。Specifically, the memory 1820 is used to store program instructions.
收发器1830用于接收或发送数据。The transceiver 1830 is used to receive or transmit data.
处理器1810用于调用存储器1820中存储的程序指令,使得电子设备1800执行本申请实施例提供的基于语音通话的翻译方法。The processor 1810 is configured to call the program instructions stored in the memory 1820, so that the electronic device 1800 executes the voice call-based translation method provided in the embodiment of the present application.
应理解,该电子设备1800可以用于实现本申请实施例基于语音通话的翻译方法,相关特征可以参照上文,此处不再赘述。It should be understood that the electronic device 1800 may be used to implement a voice call-based translation method according to an embodiment of the present application. For related features, reference may be made to the foregoing, and details are not described herein again.
所属领域的技术人员可以清楚地了解到本申请实施例可以用硬件实现,或固件实现,或它们的组合方式来实现。当使用软件实现时,可以将上述功能存储在计算机可读介质中或作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是计算机能够存取的任何可用介质。以此为例但不限于:计算机可读介质可以包括RAM、ROM、电可擦可编程只读存储器(electrically erasable programmable read only memory,EEPROM)、只读光盘(compact disc read-Only memory,CD-ROM)或其他光盘存储、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质。此外。任何连接可以适当的成为计算机可读介质。例如,如果软件是使用同轴电缆、光纤光缆、双绞线、数字用户线(digital subscriber line,DSL)或者诸如红外线、无线电和微波之类的无线技术从网站、服务器或者其他远程源传输的,那么同轴电缆、光纤光缆、双绞线、 DSL或者诸如红外线、无线和微波之类的无线技术包括在所属介质的定影中。如本申请实施例所使用的,盘(disk)和碟(disc)包括压缩光碟(compact disc,CD)、激光碟、光碟、数字通用光碟(digital video disc,DVD)、软盘和蓝光光碟,其中盘通常磁性的复制数据,而碟则用激光来光学的复制数据。上面的组合也应当包括在计算机可读介质的保护范围之内。Those skilled in the art can clearly understand that the embodiments of the present application can be implemented by hardware, firmware, or a combination thereof. When implemented in software, the above functions may be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media includes computer storage media and communication media, where communication media includes any medium that facilitates transfer of a computer program from one place to another. A storage medium may be any available medium that can be accessed by a computer. Take this as an example, but not limited to: computer-readable media may include RAM, ROM, electrically erasable programmable read-only memory (electrically erasable programmable read only memory, EEPROM), compact disc read-only (memory, CD- ROM) or other optical disk storage, magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store a desired program code in the form of instructions or data structures and that can be accessed by a computer. Also. Any connection can become a computer-readable medium as appropriate. For example, if the software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, Then coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, wireless, and microwave are included in the fixing of the associated media. As used in embodiments of the present application, disks and discs include compact discs (CDs), laser discs, optical discs, digital video discs (DVDs), floppy disks, and Blu-ray discs, where Disks usually copy data magnetically, while disks use lasers to copy data optically. The above combination should also be included in the protection scope of the computer-readable medium.
总之,以上所述仅为本申请的实施例而已,并非用于限定本申请的保护范围。凡根据本申请的揭露,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。In short, the above is only an embodiment of the present application, and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made according to the disclosure of this application shall be included in the protection scope of this application.

Claims (14)

  1. 一种基于语音通话的翻译方法,其特征在于,所述方法包括:A translation method based on voice calls, characterized in that the method includes:
    第一电子设备与第二电子设备建立语音通话连接;The first electronic device establishes a voice call connection with the second electronic device;
    所述第一电子设备当语音通话翻译功能已开启时,采集第一用户的语音,向翻译服务器上报所述第一用户的语音,以及接收所述翻译服务器发送的所述第一用户的语音的翻译结果,并将所述第一用户的语音的翻译结果发送给所述第二电子设备,接收所述第二电子设备发送的第二用户的语音,向所述翻译服务器上报所述第二用户的语音,以及接收所述翻译服务器发送的所述第二用户的语音的翻译结果,并播报所述第二用户的语音的翻译结果。When the voice call translation function is turned on, the first electronic device collects the first user's voice, reports the first user's voice to the translation server, and receives the first user's voice sent by the translation server Translate the result, and send the translation result of the voice of the first user to the second electronic device, receive the voice of the second user sent by the second electronic device, and report the second user to the translation server , And receive the translation result of the second user's voice sent by the translation server, and broadcast the translation result of the second user's voice.
  2. 如权利要求1所述的方法,其特征在于,所述第一电子设备与所述翻译服务器通过网络通信,所述方法还包括:The method of claim 1, wherein the first electronic device and the translation server communicate via a network, the method further comprising:
    所述第一电子设备当网络信号强度小于或者等于预设阈值时,采集到所述第一用户的语音后,对所述第一用户的语音进行翻译,得到所述第一用户的语音的翻译结果;接收到所述第二用户的语音后,对所述第二用户的语音进行翻译,得到所述第二用户的语音的翻译结果。When the network signal strength is less than or equal to a preset threshold, the first electronic device collects the voice of the first user and translates the voice of the first user to obtain a translation of the voice of the first user Results; after receiving the voice of the second user, translate the voice of the second user to obtain a translation result of the voice of the second user.
  3. 如权利要求1或2所述的方法,其特征在于,所述第一电子设备向翻译服务器上报所述第一用户的语音或上报所述第二用户的语音之前,所述方法还包括:The method according to claim 1 or 2, wherein before the first electronic device reports the voice of the first user or the voice of the second user to the translation server, the method further comprises:
    所述第一电子设备根据本端语言和对端语言,确定所述翻译服务器,所述本端语言为所述第一用户所使用的语言,所述对端语言为所述第二用户所使用的语言。The first electronic device determines the translation server according to the local language and the peer language, the local language is the language used by the first user, and the peer language is used by the second user language.
  4. 如权利要求3所述的方法,其特征在于,所述方法还包括:The method of claim 3, wherein the method further comprises:
    所述第一电子设备与所述第二电子设备建立语音通话连接中或者所述第一电子设备与所述第二电子设备建立语音通话连接之后,当所述本端语言和所述对端语言不同时,自动开启所述语音通话翻译功能。When the first electronic device establishes a voice call connection with the second electronic device or after the first electronic device establishes a voice call connection with the second electronic device, when the local language and the peer language When different, the voice call translation function is automatically turned on.
  5. 如权利要求1至3任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 3, wherein the method further comprises:
    所述第一电子设备响应于用户的第一操作,开启所述语音通话翻译功能。The first electronic device activates the voice call translation function in response to the user's first operation.
  6. 如权利要求4或5所述的方法,其特征在于,所述方法还包括:The method according to claim 4 or 5, wherein the method further comprises:
    所述第一电子设备向所述第二电子设备发送所述第一电子设备的语音通话翻译功能已开启的提示信息,所述提示信息所使用的语言为所述对端语言。The first electronic device sends to the second electronic device a prompt message that the voice call translation function of the first electronic device is turned on, and the language used in the prompt message is the peer language.
  7. 如权利要求3至6任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 3 to 6, wherein the method further comprises:
    所述第一电子设备获取所述本端语言和所述对端语言;The first electronic device acquires the local language and the peer language;
    其中,所述本端语言为所述系统语言、或者所述第一用户和所述第二用户的最近一次的通话记录中所述第一用户所使用的语言、或者所述第一用户的电话号码归属地的母语、或者所述第一电子设备接入的通信网络所在的归属地的母语、或者响应于用户操作设置的语言;Wherein, the local language is the system language, or the language used by the first user in the last call record of the first user and the second user, or the phone of the first user The native language of the place where the number belongs, or the native language of the place where the communication network accessed by the first electronic device is located, or the language set in response to the user operation;
    所述对端语言为所述第二用户的电话号码归属地的母语、或者所述第一用户和所述第二用户的最近一次的通话记录中所述第二用户所使用的语言、或者所述第二电子设备接入的通信网络所在的归属地的母语、或者响应于用户操作设置的语言。The peer language is the native language of the place where the phone number of the second user belongs, or the language or the language used by the second user in the most recent call records of the first user and the second user The native language of the home place where the communication network accessed by the second electronic device is located, or the language set in response to user operation.
  8. 如权利要求1至7任一所述的方法,其特征在于,所述第一电子设备播报所述第 二用户的语音的翻译结果,包括:The method according to any one of claims 1 to 7, wherein the first electronic device broadcasts the translation result of the voice of the second user, including:
    所述第一电子设备当未采集到所述第一用户的语音以及未接收到所述第二用户的语音时,播报所述第二用户的语音的翻译结果。When the voice of the first user is not collected and the voice of the second user is not received, the first electronic device broadcasts the translation result of the voice of the second user.
  9. 如权利要求2所述的方法,其特征在于,所述方法还包括:The method of claim 2, wherein the method further comprises:
    所述第一电子设备当接收到所述第二用户的语音、且第一时长内未接收到所述翻译服务器发送的所述第二用户的语音的翻译结果时,获取所述网络信号强度;The first electronic device acquires the network signal strength when it receives the voice of the second user and does not receive the translation result of the voice of the second user sent by the translation server within the first time duration;
    所述第一电子设备当所述网络信号强度大于所述预设阈值时,提示所述第二用户降低语速。When the network signal strength is greater than the preset threshold, the first electronic device prompts the second user to decrease the speech rate.
  10. 如权利要求9所述的方法,其特征在于,所述第一电子设备提示所述第二用户降低语速,包括:The method of claim 9, wherein the first electronic device prompting the second user to decrease the speech rate includes:
    所述第一电子设备在显示屏上显示第一提示信息,所述第一提示信息用于提示所述第一用户通知所述第二降低语速;或者,The first electronic device displays first prompt information on the display screen, and the first prompt information is used to prompt the first user to notify the second reduced speech rate; or,
    所述第一电子设备通过向第二电子设备发送第一语音,所述第一语音用于提示所述第二用户降低语速;或者,The first electronic device sends a first voice to the second electronic device, and the first voice is used to prompt the second user to decrease the speech rate; or,
    所述第一电子设备向所述第一用户播放第二语音,第二语音用于提示所述第一用户通知所述第二用户降低语速。The first electronic device plays a second voice to the first user, and the second voice is used to prompt the first user to notify the second user to decrease the speech rate.
  11. 如权利要求1至10所述的方法,其特征在于,所述第一电子设备播报所述第二用户的语音的翻译结果,包括:The method according to claims 1 to 10, wherein the first electronic device broadcasts the translation result of the second user's voice, including:
    所述第一电子设备缓存的所述第二用户的语音的翻译结果超过预设数量时,播报所述第二用户的语音的翻译结果。When the translation result of the second user's voice buffered by the first electronic device exceeds a preset number, the translation result of the second user's voice is broadcast.
  12. 一种电子设备,其特征在于,包括:一个或多个处理器和存储器;An electronic device, characterized by comprising: one or more processors and memory;
    多个应用程序;Multiple applications;
    以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中,当所述计算机程序被所述电子设备执行时,使得所述电子设备实现如权利要求1至11任一所述的方法。And one or more computer programs, wherein the one or more computer programs are stored in the memory, and when the computer program is executed by the electronic device, the electronic device is implemented as claimed in claims 1 to 11 Any of the described methods.
  13. 一种芯片,其特征在于,所述芯片与电子设备中的存储器耦合,使得所述芯片在运行时调用所述存储器中存储的计算机程序,实现如权利要求1至11任一所述的方法。A chip, characterized in that, the chip is coupled with a memory in an electronic device, so that the chip calls a computer program stored in the memory during operation to implement the method according to any one of claims 1 to 11.
  14. 一种计算机存储介质,其特征在于,所述计算机可读存储介质包括计算机程序,当计算机程序在电子设备上运行时,使得所述电子设备执行如权利要求1至11任一所述的方法。A computer storage medium, wherein the computer-readable storage medium includes a computer program, and when the computer program is run on an electronic device, the electronic device is caused to perform the method according to any one of claims 1 to 11.
PCT/CN2019/111120 2018-10-15 2019-10-15 Voice call-based translation method and electronic device WO2020078330A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811198715.7A CN109582976A (en) 2018-10-15 2018-10-15 A kind of interpretation method and electronic equipment based on voice communication
CN201811198715.7 2018-10-15

Publications (1)

Publication Number Publication Date
WO2020078330A1 true WO2020078330A1 (en) 2020-04-23

Family

ID=65920108

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/111120 WO2020078330A1 (en) 2018-10-15 2019-10-15 Voice call-based translation method and electronic device

Country Status (2)

Country Link
CN (1) CN109582976A (en)
WO (1) WO2020078330A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109582976A (en) * 2018-10-15 2019-04-05 华为技术有限公司 A kind of interpretation method and electronic equipment based on voice communication
CN109327613B (en) * 2018-10-15 2020-09-29 华为技术有限公司 Negotiation method based on voice call translation capability and electronic equipment
CN110267309B (en) * 2019-06-26 2022-09-23 广州三星通信技术研究有限公司 Method and equipment for translating call voice in real time
CN110765787A (en) * 2019-10-21 2020-02-07 深圳传音控股股份有限公司 Information interaction real-time translation method, medium and terminal
CN110956950A (en) * 2019-12-02 2020-04-03 联想(北京)有限公司 Data processing method and device and electronic equipment
CN111415665A (en) * 2020-04-07 2020-07-14 浙江国贸云商控股有限公司 Voice processing method and device for video call and electronic equipment
CN114095906A (en) * 2021-10-14 2022-02-25 华为技术有限公司 Short-distance communication method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170149961A1 (en) * 2015-11-25 2017-05-25 Samsung Electronics Co., Ltd. Electronic device and call service providing method thereof
CN107247711A (en) * 2017-06-28 2017-10-13 努比亚技术有限公司 A kind of two-way translation method, mobile terminal and computer-readable recording medium
CN107343113A (en) * 2017-06-26 2017-11-10 深圳市沃特沃德股份有限公司 Audio communication method and device
CN107465816A (en) * 2017-07-25 2017-12-12 广西定能电子科技有限公司 A kind of call terminal and method of instant original voice translation of conversing
CN109582976A (en) * 2018-10-15 2019-04-05 华为技术有限公司 A kind of interpretation method and electronic equipment based on voice communication

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104754536A (en) * 2013-12-27 2015-07-01 中国移动通信集团公司 Method and system for realizing communication between different languages
US20150347399A1 (en) * 2014-05-27 2015-12-03 Microsoft Technology Licensing, Llc In-Call Translation
CN106657543B (en) * 2016-10-31 2020-02-07 北京小米移动软件有限公司 Voice information processing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170149961A1 (en) * 2015-11-25 2017-05-25 Samsung Electronics Co., Ltd. Electronic device and call service providing method thereof
CN107343113A (en) * 2017-06-26 2017-11-10 深圳市沃特沃德股份有限公司 Audio communication method and device
CN107247711A (en) * 2017-06-28 2017-10-13 努比亚技术有限公司 A kind of two-way translation method, mobile terminal and computer-readable recording medium
CN107465816A (en) * 2017-07-25 2017-12-12 广西定能电子科技有限公司 A kind of call terminal and method of instant original voice translation of conversing
CN109582976A (en) * 2018-10-15 2019-04-05 华为技术有限公司 A kind of interpretation method and electronic equipment based on voice communication

Also Published As

Publication number Publication date
CN109582976A (en) 2019-04-05

Similar Documents

Publication Publication Date Title
CN110138937B (en) Call method, device and system
WO2020078330A1 (en) Voice call-based translation method and electronic device
US20220400305A1 (en) Content continuation method and electronic device
CN110087012B (en) Camera control method and electronic equipment
CN110784830B (en) Data processing method, Bluetooth module, electronic device and readable storage medium
CN109327613B (en) Negotiation method based on voice call translation capability and electronic equipment
CN110198362B (en) Method and system for adding intelligent household equipment into contact
CN111371949A (en) Application program switching method and device, storage medium and touch terminal
CN110602312B (en) Call method, electronic device and computer readable storage medium
CN113395685A (en) Bluetooth communication system and wireless communication system
WO2021000817A1 (en) Ambient sound processing method and related device
CN114115770A (en) Display control method and related device
CN112789934B (en) Bluetooth service query method and electronic equipment
CN113301544B (en) Method and equipment for voice intercommunication between audio equipment
CN112532508B (en) Video communication method and video communication device
WO2020051852A1 (en) Method for recording and displaying information in communication process, and terminals
CN115525366A (en) Screen projection method and related device
CN114697438B (en) Method, device, equipment and storage medium for carrying out call by utilizing intelligent equipment
CN116981108B (en) Wireless screen-throwing connection method, mobile terminal and computer readable storage medium
WO2024001735A1 (en) Network connection method, electronic device, and storage medium
WO2024022117A1 (en) Communication sharing method and system, and related apparatus
WO2023093778A1 (en) Screenshot capture method and related apparatus
CN117014843A (en) Mobile communication method and electronic equipment
CN115033149A (en) Message reply method and device
CN115515112A (en) Bluetooth communication method and system

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: 19873175

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 23.08.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19873175

Country of ref document: EP

Kind code of ref document: A1