WO2020034227A1 - Multimedia content synchronization method and electronic device - Google Patents
Multimedia content synchronization method and electronic device Download PDFInfo
- Publication number
- WO2020034227A1 WO2020034227A1 PCT/CN2018/101202 CN2018101202W WO2020034227A1 WO 2020034227 A1 WO2020034227 A1 WO 2020034227A1 CN 2018101202 W CN2018101202 W CN 2018101202W WO 2020034227 A1 WO2020034227 A1 WO 2020034227A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- electronic device
- clock synchronization
- text information
- time
- interface
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 116
- 230000004044 response Effects 0.000 claims abstract description 40
- 230000015654 memory Effects 0.000 claims description 33
- 238000004590 computer program Methods 0.000 claims description 19
- 238000003860 storage Methods 0.000 claims description 14
- 238000004891 communication Methods 0.000 description 57
- 238000012545 processing Methods 0.000 description 49
- 230000006870 function Effects 0.000 description 38
- 230000008569 process Effects 0.000 description 35
- 238000010586 diagram Methods 0.000 description 34
- 238000007726 management method Methods 0.000 description 25
- 238000013461 design Methods 0.000 description 15
- 230000001360 synchronised effect Effects 0.000 description 14
- 241001342895 Chorus Species 0.000 description 13
- HAORKNGNJCEJBX-UHFFFAOYSA-N cyprodinil Chemical compound N=1C(C)=CC(C2CC2)=NC=1NC1=CC=CC=C1 HAORKNGNJCEJBX-UHFFFAOYSA-N 0.000 description 13
- 238000010295 mobile communication Methods 0.000 description 13
- 230000005236 sound signal Effects 0.000 description 13
- 238000004364 calculation method Methods 0.000 description 11
- 238000005516 engineering process Methods 0.000 description 11
- 210000000988 bone and bone Anatomy 0.000 description 9
- 230000000694 effects Effects 0.000 description 8
- 230000004927 fusion Effects 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 6
- 230000008859 change Effects 0.000 description 6
- 238000004422 calculation algorithm Methods 0.000 description 5
- 238000001514 detection method Methods 0.000 description 5
- 230000001755 vocal effect Effects 0.000 description 4
- 229920001621 AMOLED Polymers 0.000 description 3
- 240000001417 Vigna umbellata Species 0.000 description 3
- 235000011453 Vigna umbellata Nutrition 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 3
- 230000009471 action Effects 0.000 description 3
- 238000013528 artificial neural network Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 230000002452 interceptive effect Effects 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 235000021251 pulses Nutrition 0.000 description 3
- 230000009467 reduction Effects 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 238000010009 beating Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000036772 blood pressure Effects 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000001914 filtration Methods 0.000 description 2
- 238000005304 joining Methods 0.000 description 2
- 238000002156 mixing Methods 0.000 description 2
- 239000000203 mixture Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 238000003825 pressing Methods 0.000 description 2
- 238000003672 processing method Methods 0.000 description 2
- 230000005855 radiation Effects 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 230000006641 stabilisation Effects 0.000 description 2
- 238000011105 stabilization Methods 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 101000969688 Homo sapiens Macrophage-expressed gene 1 protein Proteins 0.000 description 1
- 102100021285 Macrophage-expressed gene 1 protein Human genes 0.000 description 1
- 230000003321 amplification Effects 0.000 description 1
- 230000003416 augmentation Effects 0.000 description 1
- 238000013529 biological neural network Methods 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 239000004020 conductor Substances 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 210000005069 ears Anatomy 0.000 description 1
- 238000007499 fusion processing Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000036541 health Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000001939 inductive effect Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 239000010985 leather Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 210000002569 neuron Anatomy 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 239000002096 quantum dot Substances 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000003238 somatosensory effect Effects 0.000 description 1
- 230000001629 suppression Effects 0.000 description 1
- 238000005406 washing Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/40—Support for services or applications
Definitions
- the present application relates to the technical field of terminals, and in particular, to a multimedia content synchronization method and an electronic device.
- K song is gradually moving into people's daily life, and the application software with K song function is also increasingly abundant.
- the application software with the K song function is a combination of a music player and recording software, which can play the original vocal, or record the user's song, and mix the recorded song with the accompaniment to obtain a music file.
- the user can also convert the above Music files are uploaded to the Internet so that more people can hear their songs.
- the present application provides a multimedia content synchronization method and an electronic device, so as to realize that the lyrics played by the first electronic device can be synchronized with the music accompaniment played by the second electronic device, thereby providing users with a better singing experience.
- an embodiment of the present application provides a multimedia content synchronization method.
- the method is applicable to a first electronic device.
- the method includes: the first electronic device establishes a network connection with the second electronic device, and when the first electronic device A first operation of the user is detected, and in response to the first operation, the first electronic device displays a first interface and sends an instruction to play an audio file to the second electronic device, wherein the first interface includes text information, the text information and The audio files are associated, and then the first electronic device adjusts the text information according to a network delay between the first electronic device and the second electronic device, so that the text information is played in synchronization with the audio file.
- the first electronic device adjusts the text information according to the network delay, and finally realizes synchronous playback of the text information and the audio file, thereby providing a better singing experience to the user.
- the first electronic device before detecting the first operation of the user, sends a first clock synchronization request to the second electronic device, and then the first electronic device receives the first clock sent by the second electronic device A synchronization response, wherein the first clock synchronization response includes a time when the second electronic device receives the first clock synchronization request and a time when the second electronic device sends the first clock synchronization response;
- the sending time at which the first electronic device sends the first clock synchronization request, the receiving time at which the first electronic device receives the first clock synchronization response, and the receiving time at which the second electronic device receives the first clock synchronization request And the sending time at which the second electronic device sends the first clock synchronization response, to determine a network delay between the first electronic device and the second electronic device.
- the first electronic device may further be based on a sending time when the first electronic device sends the first clock synchronization request, and a receiving time when the first electronic device receives the first clock synchronization response. And the receiving time when the second electronic device receives the first clock synchronization request and the sending time when the second electronic device sends the first clock synchronization response, determining the first electronic device and the second electronic device Clock difference between devices. If the clock difference is not zero, the text information is adjusted according to a network delay and a clock difference between the first electronic device and the second electronic device.
- the first electronic device may receive a scheduled playback instruction sent by the second electronic device, because the scheduled playback instruction includes that the second electronic device starts to play the preset playback time after a preset waiting time after the first moment.
- the audio file is described.
- the first electronic device may determine the first duration according to the network delay, the first time, and the preset waiting time between the first electronic device and the second electronic device, and then according to receiving the appointment Adjusting the text information at the second moment of the playback instruction and the first duration.
- the first electronic device receives audio file playback progress information sent by the second electronic device, and then adjusts the text information according to network delay and audio file playback progress information.
- the first electronic device may also establish a network connection with the third electronic device.
- the first electronic device receives the recorded first
- the second sound information recorded by the first electronic device is sent to the second electronic device together with the first sound information, so that the second electronic device plays the second sound information and the first sound information.
- an embodiment of the present application provides a multimedia content synchronization method.
- the method is applicable to a third electronic device.
- the method includes: the third electronic device establishes a network connection with the first electronic device, and then the third electronic device Receiving an instruction for playing text information sent by the first electronic device, the instruction including progress information of the text information currently being played by the first electronic device; and finally, the third electronic device according to a network between the first electronic device and the third electronic device The time delay and the progress information, and adjusting the text information of the third electronic device, so that the text information of the third electronic device is played in synchronization with the text information of the first electronic device.
- the third electronic device adjusts the text information according to the network delay, and finally realizes synchronous playback of the text information between the third electronic device and the first electronic device, thereby providing a better singing experience to the user.
- the third electronic device may further send a second clock synchronization request to the first electronic device, and then receive a second clock synchronization response sent by the first electronic device, because the clock synchronization response includes the third electronic device
- the time when the device receives the clock synchronization request and the time when the first electronic device sends the clock synchronization response so the third electronic device sends the second clock synchronization request according to the sending time of the second electronic device and the first
- the receiving time at which the three electronic devices receive the clock synchronization response, the receiving time at which the first electronic device receives the clock synchronization request, and the sending time at which the first electronic device sends the clock synchronization response determine the first A network delay between the electronic device and the third electronic device.
- the third electronic device may further according to a sending time when the third electronic device sends the second clock synchronization request and a receiving time when the third electronic device receives the clock synchronization response, And a receiving time at which the first electronic device receives a clock synchronization request, and a sending time at which the first electronic device sends the clock synchronization response, to determine a clock difference between the first electronic device and the third electronic device . If the clock difference is not zero, the third electronic device is based on the network delay between the first electronic device and the third electronic device, and the clock difference between the first electronic device and the third electronic device. The text information currently played by the first electronic device is adjusted, and the text information is adjusted.
- an embodiment of the present application provides a method for synchronizing multimedia content.
- the method is applicable to a second electronic device.
- the method includes: the second electronic device establishes a network connection with the first electronic device, and then the second electronic device Receive an instruction to play an audio file sent by the first electronic device, the audio file is associated with text information, and then the second electronic device sends a scheduled playback instruction to the first electronic device, because the scheduled playback instruction includes the second
- the electronic device starts playing the audio file after a preset waiting time after the fourth time, so that the first electronic device is based on the network delay between the first electronic device and the second electronic device, the fourth time And adjusting the text information by the preset waiting time.
- the second electronic device can implement playing the text information and the audio file in synchronization with the first electronic device, thereby improving the user experience.
- an embodiment of the present application provides a multimedia content synchronization method.
- the method is applicable to a second electronic device.
- the method includes: the second electronic device establishes a network connection with the first electronic device, and then the second electronic device Receiving the instruction of the first electronic device to send the audio file, because the audio file is associated with the text information, the second electronic device sends the playback progress information of the audio file to the first electronic device, so that the first electronic device according to the first electronic device and Adjust the text information by the network delay between the second electronic device and the audio file playback progress information.
- the second electronic device can implement playing the text information and the audio file in synchronization with the first electronic device, thereby improving the user experience.
- an embodiment of the present application provides an electronic device including a processor and a memory.
- the memory is used to store one or more computer programs; when the one or more computer programs stored in the memory are executed by a processor, the electronic device can implement any one of the possible design methods of the foregoing aspects.
- an embodiment of the present application further provides an apparatus, which includes a module / unit that executes any one of the possible design methods of the foregoing aspects.
- modules / units can be implemented by hardware, and can also be implemented by hardware executing corresponding software.
- an embodiment of the present application further provides a computer-readable storage medium, where 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 execute any of the foregoing aspects Any of the possible design methods.
- an embodiment of the present application further provides a method including a computer program product, when the computer program product runs on a terminal, causing the electronic device to execute any one of the possible designs of the foregoing aspects.
- FIG. 1 is a schematic diagram of an interconnection scenario according to an embodiment of the present application.
- FIG. 2 is a schematic structural diagram of a mobile phone according to an embodiment of the present application.
- FIG. 3 is a schematic structural diagram of an Android operating system according to an embodiment of the present application.
- FIG. 4 is a schematic diagram of a K song scene provided by an embodiment of the present application.
- FIG. 5 is a schematic diagram of a group of interfaces according to an embodiment of the present application.
- FIG. 6 is a schematic diagram of another K song scene provided by an embodiment of the present application.
- FIG. 7 is a schematic diagram of another group of interfaces according to an embodiment of the present application.
- FIG. 8 is a schematic diagram of another group of interfaces according to an embodiment of the present application.
- FIG. 9 is a schematic diagram of another group of interfaces according to an embodiment of the present application.
- FIG. 10 is a schematic diagram of another group of interfaces according to an embodiment of the present application.
- FIG. 11 is a schematic diagram of another group of interfaces according to an embodiment of the present application.
- FIG. 12 is a schematic diagram of another group of interfaces according to an embodiment of the present application.
- FIG. 13 is a schematic diagram of another group of interfaces according to an embodiment of the present application.
- FIG. 14 is a schematic diagram of a smart speaker according to an embodiment of the present application.
- FIG. 15 is a schematic diagram of another group of interfaces according to an embodiment of the present application.
- FIG. 16-1 is a schematic diagram of another group of interfaces according to an embodiment of the present application.
- 16-2 is a schematic diagram of another group of interfaces provided by an embodiment of the present application.
- FIG. 17 is a schematic diagram of another K song scene provided by an embodiment of the present application.
- FIG. 18 is a schematic flowchart of a multimedia content synchronization method according to an embodiment of the present application.
- 21 is a flowchart of another synchronization process according to an embodiment of the present application.
- 22 is a schematic diagram of another group of interfaces according to an embodiment of the present application.
- FIG. 23 is a schematic structural diagram of a mobile phone and a smart speaker according to an embodiment of the present application.
- FIG. 24 is a schematic diagram of another K song implementation process provided by an embodiment of the present application.
- FIG. 25 is a schematic diagram of another K song implementation process provided by an embodiment of the present application.
- FIG. 26a is a schematic flowchart of another multimedia content synchronization method according to an embodiment of the present application.
- 26b is a schematic diagram of another K song implementation process provided by an embodiment of the present application.
- FIG. 27 is a schematic diagram of another K song implementation process provided by an embodiment of the present application.
- FIG. 28 is a schematic diagram of another K song implementation process provided by an embodiment of the present application.
- FIG. 29 is a schematic diagram of another K song scene provided by an embodiment of the present application.
- FIG. 30 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
- FIG. 31 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
- FIG. 32 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
- FIG. 33 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
- Multimedia is the integration of multiple media, generally including text, sound, and images.
- K song also known as karaoke
- Singers can participate in singing with pre-recorded music accompaniment. It can beautify and retouch the singer's voice through sound processing. When it is organically combined with music accompaniment, it becomes an integrated stereo song. This style of accompaniment brings great convenience and joy to singing lovers. It is a way for people to entertain and entertain and is loved by the masses.
- the multimedia content synchronization method provided in the embodiment of the present application can be applied to a scenario where multiple electronic devices 100 shown in FIG. 1 are interconnected based on a communication network.
- the communication network may be a local area network or a wide area network transferred through a relay device.
- the communication network may be a short distance communication network such as a wifi hotspot network, a wifi P2P network, a Bluetooth network, a zigbee network, or a near field communication (NFC) network.
- the communication network may be a 3rd-generation wireless communication technology (3G) network, a 4th generation mobile communication technology (4G) ) Networks, 5th-generation mobile communication technology (5G) networks, public land mobile networks (PLMN) or the Internet that are evolving in the future.
- 3G 3rd-generation wireless communication technology
- 4G 4th generation mobile communication technology
- 5G 5th-generation mobile communication technology
- PLMN public land mobile networks
- different electronic devices can exchange data through a communication network, such as interactive pictures, text, and videos, or results of interactive electronic devices processing objects such as pictures, text, or videos.
- the electronic device 100 shown in FIG. 1 may be a portable electronic device that further includes other functions such as a personal digital assistant and / or a music player function, such as a mobile phone, a tablet computer, and a wireless communication function Wearable devices (such as smart watches).
- portable electronic devices include, but are not limited to, carrying Or portable electronic devices with other operating systems.
- the aforementioned portable electronic device may also be other portable electronic devices, such as a laptop computer having a touch-sensitive surface (eg, a touch panel), or the like.
- the electronic device 100 may not be a portable electronic device, but a desktop computer with a touch-sensitive surface (such as a touch panel).
- the embodiment is specifically described below by taking the electronic device 100 as an example.
- the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a USB interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, and a wireless communication module 160 , Audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, pointer 192, camera 193, display 194, and SIM card interface 195, etc.
- a processor 110 an external memory interface 120, an internal memory 121, a USB interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, and a wireless communication module 160 , Audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, pointer 192, camera 193, display 194, and SIM card interface 195, etc
- the sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
- the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100.
- the electronic device 100 may include more or fewer parts than shown, or some parts may be combined, or some parts may be split, or different parts may be arranged.
- the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
- the processor 110 may include one or more processing units.
- the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image, signal processor, ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU) Wait.
- AP application processor
- modem processor graphics processing unit
- GPU graphics processing unit
- image signal processor image, signal processor, ISP
- controller memory
- video codec digital signal processor
- DSP digital signal processor
- NPU neural network processing unit
- different processing units may be independent devices or integrated in one or more processors.
- the controller may be a nerve center and a command center of the electronic device 100.
- the controller can generate operation control signals according to the instruction operation code and timing signals, and complete the control of fetching and executing instructions.
- the processor 110 may further include a memory for storing instructions and data.
- the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or used cyclically. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
- the processor 110 may include one or more interfaces.
- the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit (inter-integrated circuit, sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver receiver / transmitter (UART) interface, mobile industry processor interface (MIPI), general-purpose input / output (GPIO) interface, subscriber identity module (SIM) interface, and / Or universal serial bus (universal serial bus, USB) interface.
- I2C integrated circuit
- I2S integrated circuit
- PCM pulse code modulation
- UART universal asynchronous transceiver receiver / transmitter
- MIPI mobile industry processor interface
- GPIO general-purpose input / output
- SIM subscriber identity module
- USB universal serial bus
- the I2C interface is a two-way synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL).
- the processor 110 may include multiple sets of I2C buses.
- the processor 110 may be respectively coupled to a touch sensor 180K, a charger, a flash, a camera 193, and the like through different I2C bus interfaces.
- the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to implement the touch function of the electronic device 100.
- the I2S interface can be used for audio communication.
- the processor 110 may include multiple sets of I2S buses.
- the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170.
- the audio module 170 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to implement a function of receiving a call through a Bluetooth headset.
- the PCM interface can also be used for audio communications, sampling, quantizing, and encoding analog signals.
- the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
- the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to implement the function of receiving calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
- the UART interface is a universal serial data bus for asynchronous communication.
- the bus may be a two-way communication bus. It converts the data to be transferred between serial and parallel communications.
- a UART interface is generally used to connect the processor 110 and the wireless communication module 160.
- the processor 110 communicates with a Bluetooth module in the wireless communication module 160 through a UART interface to implement a Bluetooth function.
- the audio module 170 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to implement a function of playing music through a Bluetooth headset.
- the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display 194, the camera 193, and the like.
- the MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), and the like.
- CSI camera serial interface
- DSI display serial interface
- the processor 110 and the camera 193 communicate through a CSI interface to implement a shooting function of the electronic device 100.
- the processor 110 and the display screen 194 communicate through a DSI interface to implement a display function of the electronic device 100.
- the GPIO interface can be configured by software.
- the GPIO interface can be configured as a control signal or as a data signal.
- the GPIO interface may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like.
- GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
- the USB interface 130 is an interface that complies with the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
- the USB interface 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 a peripheral device. It can also be used to connect headphones and play audio through headphones. This interface can also be used to connect other electronic devices, such as AR devices.
- the interface connection relationship between the modules illustrated in the embodiments of the present invention is only a schematic description, and does not constitute a limitation on the structure of the electronic device 100.
- the electronic device 100 may also adopt different interface connection modes or a combination of multiple interface connection modes in the above embodiments.
- the charging management module 140 is configured to receive a charging input from a charger.
- the charger may be a wireless charger or a wired charger.
- the charging management module 140 may receive a charging input of a wired charger through a USB interface.
- the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100. While the charge management module 140 is charging the battery 142, the power management module 141 can also provide power to the electronic device.
- the power management module 141 is used to connect the battery 142, the charge management module 140 and the processor 110.
- the power management module 141 receives inputs from the battery 142 and / or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, and the wireless communication module 160.
- the power management module 141 can also be used to monitor parameters such as battery capacity, number of battery cycles, battery health (leakage, impedance) and other parameters.
- the power management module 141 may also be disposed in the processor 110.
- the power management module 141 and the charge management module 140 may be provided in the same device.
- the wireless communication function of the electronic device 100 may be implemented by the antenna module 1, the antenna module 2 mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
- the antenna 1 and the antenna 2 are used for transmitting and receiving 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 multiplexed to improve antenna utilization. For example, a cellular network antenna can be multiplexed into a wireless LAN diversity antenna. In other embodiments, the antenna may be used in conjunction with a tuning switch.
- the mobile communication module 150 may provide a wireless communication solution including 2G / 3G / 4G / 5G and the like applied on the electronic device 100.
- the mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like.
- the mobile communication module 150 may receive the electromagnetic wave by the antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic wave, and transmit it to the modem processor for demodulation.
- the mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic wave radiation through the antenna 1.
- at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
- at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110.
- the modem processor may include a modulator and a demodulator.
- the modulator is configured to modulate a 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 the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194.
- the modem processor may be a separate device.
- the modem processor may be independent of the processor 110 and disposed in the same device as the mobile communication module 150 or other functional modules.
- the wireless communication module 160 can provide wireless local area networks (WLAN), Bluetooth (Bluetooth, BT), global navigation satellite system (GNSS), frequency modulation (frequency modulation) FM), near field communication technology (NFC), infrared technology (infrared, IR) and other wireless communication solutions.
- the wireless communication module 160 may be one or more devices that integrate at least one communication processing module.
- the wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
- the wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency-modulate it, amplify it, and convert it into electromagnetic wave radiation through the antenna 2.
- the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, 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 (GSM), a general packet radio service (GPRS), a code division multiple access (CDMA), and broadband. Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and / or IR technology.
- 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 systems (SBAS).
- GPS global positioning system
- GLONASS global navigation satellite system
- BDS beidou navigation system
- QZSS quasi-zenith satellite system
- SBAS satellite-based augmentation systems
- the electronic device 100 implements a display function through a GPU, a display screen 194, and an application processor.
- the GPU is a microprocessor for image processing and is connected to the display 194 and an application processor.
- the GPU is used to perform mathematical and geometric calculations 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 194 is used to display images, videos, and the like.
- the display screen 194 includes a display panel.
- the display panel can adopt LCD (liquid crystal display), OLED (organic light-emitting diode), active matrix organic light-emitting diode or active-matrix organic light-emitting diode emitting diodes (AMOLED), flexible light-emitting diodes (FLEDs), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (QLEDs), etc.
- the electronic device 100 may include one or N display screens, where N is a positive integer greater than 1.
- the electronic device 100 may implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
- the ISP processes the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and the light is transmitted to the light receiving element of the camera through the lens. The light signal is converted into an electrical signal, and the light receiving element of the camera passes the electrical signal to the ISP for processing and converts the image to the naked eye. ISP can also optimize the image's noise, brightness, and skin tone. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, an ISP may be provided in the camera 193.
- the camera 193 is used to capture still images or videos.
- An object generates an optical image through a lens and projects it onto a photosensitive element.
- the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
- CMOS complementary metal-oxide-semiconductor
- the photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to convert it into a digital image signal.
- the ISP outputs digital image signals to the DSP for processing.
- DSP converts digital image signals into image signals in standard RGB, YUV and other formats.
- the electronic device 100 may include one or N cameras, where N is a positive integer greater than 1.
- a digital signal processor is used to process digital signals. In addition to digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform a Fourier transform on the frequency point energy and the like.
- Video codecs are used to compress or decompress digital video.
- the electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as: MPEG1, MPEG2, MPEG3, MPEG4, and so on.
- NPU is a neural-network (NN) computing processor.
- NN neural-network
- the NPU can realize applications such as intelligent recognition of the electronic device 100, such as image recognition, face recognition, speech recognition, text understanding, and the like.
- the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the storage capacity of the electronic device 100.
- the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, save music, videos and other files on an external memory card.
- 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 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 application required by a function (such as a sound playback function, an image playback function, etc.) and the like.
- the storage data area may store data (such as audio data, phone book, etc.) created during the use of the electronic device 100.
- the memory 121 may include a high-speed random access memory, and may further include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like.
- UFS universal flash memory
- the electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone interface 170D, and an application processor. Such as music playback, recording, etc.
- the audio module 170 is configured to convert digital audio information into an analog audio signal and output, and is also used to convert an analog audio input into a digital audio signal.
- the audio module 170 may also be used to encode and decode audio signals.
- the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.
- the speaker 170A also called a "horn" is used to convert audio electrical signals into sound signals.
- the electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
- the receiver 170B also referred to as the "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 170B close to the human ear.
- the microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
- the user can make a sound through the mouth near the microphone 170C, and input a sound signal into the microphone 170C.
- the electronic device 100 may be provided with at least one microphone 170C.
- the electronic device 100 may be provided with two microphones, in addition to collecting sound signals, it may also implement a noise reduction function.
- the electronic device 100 may also be provided with three, four or more microphones to achieve sound signal collection, noise reduction, identification of sound sources, and directional recording.
- the headset interface 170D is used to connect a wired headset.
- the earphone interface can be a USB interface or a 3.5mm open mobile electronic platform (OMTP) standard interface, and the American Cellular Telecommunications Industry Association (of the United States, CTIA) standard interface.
- OMTP open mobile electronic platform
- CTIA American Cellular Telecommunications Industry Association
- the pressure sensor 180A is used to sense a pressure signal, and can convert the pressure signal into an electrical signal.
- the pressure sensor 180A may be disposed on the display screen 194.
- the capacitive pressure sensor may be at least two parallel plates having a conductive material. When a 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 acting on the same touch position but different touch operation intensities may correspond to different operation instructions. For example, when a touch operation with a touch operation intensity lower than the first pressure threshold is applied to the short message application icon, an instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold is applied to the short message application icon, an instruction for creating a short message is executed.
- the gyro sensor 180B may be used to determine a movement posture of the electronic device 100.
- the angular velocity of the electronic device 100 around three axes ie, the x, y, and z axes
- the gyro sensor 180B can be used for image stabilization.
- the gyro sensor 180B detects the angle of the electronic device 100 shake, and calculates the distance that the lens module needs to compensate according to the angle, so that the lens cancels the shake of the electronic device 100 through the backward movement to achieve image stabilization.
- the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
- the barometric pressure sensor 180C is used to measure air pressure.
- the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C, and assists in positioning and navigation.
- the magnetic sensor 180D includes a Hall sensor.
- the electronic device 100 can detect the opening and closing of the flip leather case by using the magnetic sensor 180D.
- the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. Further, according to the opened and closed state of the holster or the opened and closed state of the flip cover, characteristics such as automatic unlocking of the flip cover are set.
- the acceleration sensor 180E can detect the magnitude of acceleration of the electronic device 100 in various directions (generally three axes).
- the magnitude and direction of gravity can be detected when the electronic device 100 is stationary. It can also be used to recognize the posture of electronic devices, and is used in applications such as switching between horizontal and vertical screens, and pedometers.
- the electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F to measure the distance to achieve fast focusing.
- the proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode.
- the light emitting diode may be an infrared light emitting diode.
- the electronic device 100 emits infrared light through a light emitting diode.
- the electronic device 100 uses a photodiode to detect infrared reflected light from a nearby object. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficiently reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100.
- the electronic device 100 may use the proximity light sensor 180G to detect that the user is holding the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
- the proximity light sensor 180G can also be used in holster mode, and the pocket mode automatically unlocks and locks the screen.
- the ambient light sensor 180L is used to sense ambient light brightness.
- the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
- Ambient light sensor 180L can also be used to automatically adjust white balance when taking pictures.
- the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touch.
- the fingerprint sensor 180H is used to collect fingerprints.
- the electronic device 100 may use the collected fingerprint characteristics to realize fingerprint unlocking, access application lock, fingerprint photographing, fingerprint answering an incoming call, and the like.
- the temperature sensor 180J is used to detect the temperature.
- the electronic device 100 executes a temperature processing strategy using the temperature detected by the temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds the threshold, the electronic device 100 performs a performance reduction of a processor located near the temperature sensor 180J so as to reduce power consumption and implement thermal protection.
- the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid the abnormal shutdown of the electronic device 100 caused by the low temperature.
- the electronic device 100 when the temperature is lower than another threshold, performs a boost on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
- the touch sensor 180K is also called “touch panel”. Can be set on display 194. Used to detect touch operations on or near it. The detected touch operation may be passed to the application processor to determine the type of touch event, and a corresponding visual output is provided through the display screen 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100, which is different from the position where the display screen 194 is located.
- the bone conduction sensor 180M can acquire vibration signals.
- the bone conduction sensor 180M can acquire a vibration signal of a human voice oscillating bone mass.
- Bone conduction sensor 180M can also contact the human pulse and receive blood pressure beating signals.
- the bone conduction sensor 180M may also be provided in the headset.
- the audio module 170 may analyze a voice signal based on the vibration signal of the oscillating bone mass of the vocal part obtained by the bone conduction sensor 180M to implement a voice function.
- the application processor may analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M to implement a heart rate detection function.
- the keys 190 include a power-on key, a volume key, and the like.
- the keys can be mechanical keys. It can also be a touch button.
- the electronic device 100 may receive a key input, and generate a key signal input related to user settings and function control of the electronic device 100.
- the motor 191 may generate a vibration alert.
- the motor 191 can be used for vibration alert for incoming calls, and can also be used for touch vibration feedback.
- the touch operation applied to different applications can correspond to different vibration feedback effects.
- Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects.
- Different application scenarios (such as time reminders, receiving information, alarm clocks, games, etc.) can also correspond to different vibration feedback effects.
- Touch vibration feedback effect can also support customization.
- the indicator 192 can be an indicator light, which can be used to indicate the charging status, power change, and can also be used to indicate messages, missed calls, notifications, and so on.
- the SIM card interface 195 is used to connect to a subscriber identity module (SIM).
- SIM subscriber identity module
- the SIM card can be contacted and separated from the electronic device 100 by inserting or removing the SIM card interface.
- the electronic device 100 may support one or N SIM card interfaces, and N is a positive integer greater than 1.
- SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card, etc. Multiple SIM cards can be inserted into the same SIM card interface at the same time. The types of the multiple cards may be the same or different.
- the SIM card interface 195 may also be compatible with different types of SIM cards.
- the SIM card interface 195 is also compatible with external memory cards.
- the electronic device 100 interacts with the network through a SIM card to implement functions such as calling and data communication.
- the electronic device 100 uses an 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 software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture.
- the embodiment of the present invention takes the layered architecture Android system as an example, and exemplifies the software structure of the electronic device 100.
- FIG. 3 is a software structural block diagram of an electronic device 100 according to an embodiment of the present invention.
- the layered architecture divides the software into several layers, each of which has a clear role and division of labor.
- the layers communicate with each other through a software interface.
- the Android system is divided into four layers, which are an application layer, an application framework layer, an Android runtime and system libraries, and a kernel layer from top to bottom.
- the application layer can include a series of application packages.
- the application package can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, SMS, etc.
- the application framework layer provides an application programming interface (API) and a programming framework for applications at the application layer.
- API application programming interface
- the application framework layer includes some predefined functions.
- the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
- the window manager is used to manage window programs.
- the window manager can obtain the display size, determine whether there is a status bar, lock the screen, take a screenshot, etc.
- Content providers are used to store and retrieve data and make it accessible to applications.
- the data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, and so on.
- the view system includes visual controls, such as controls that display text, controls that display pictures, and so on.
- the view system can be used to build applications.
- the display interface can consist of one or more views.
- the display interface including the SMS notification icon may include a view that displays text and a view that displays pictures.
- the phone manager is used to provide a communication function of the electronic device 100. For example, management of call status (including connection, hang up, etc.).
- the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
- the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages that can disappear automatically after a short stay without user interaction.
- the notification manager is used to inform download completion, message reminders, etc.
- the notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window.
- text messages are displayed in the status bar, sounds are emitted, electronic equipment vibrates, and the indicator light flashes.
- Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
- the core library contains two parts: one is the functional functions that the Java language needs to call, and the other is the Android core library.
- the application layer and the application framework layer run in a virtual machine.
- the virtual machine executes the java files of the application layer and the application framework layer as binary files.
- Virtual machines are used to perform object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
- the system library can include multiple functional modules. For example: surface manager (media manager), media library (Media library), three-dimensional graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL) and so on.
- surface manager media manager
- media library Media library
- Three-dimensional graphics processing library for example: OpenGL ES
- 2D graphics engine for example: SGL
- the Surface Manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
- the media library supports a variety of commonly used audio and video formats for playback and recording, as well as still image files.
- the media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
- the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
- the 2D graphics engine is a graphics engine for 2D graphics.
- the kernel layer is the layer between hardware and software.
- the kernel layer contains at least a display driver, a camera driver, an audio driver, and a sensor driver.
- the following describes the workflow of the software and hardware of the electronic device 100 by way of example in conjunction with capturing a photographing scene.
- a corresponding hardware interrupt is sent to the kernel layer.
- the kernel layer processes touch operations into raw input events (including touch coordinates, time stamps of touch operations, and other information). Raw input events are stored at the kernel level.
- the application framework layer obtains the original input event from the kernel layer and identifies the control corresponding to the input event. Taking the touch operation as a touch and click operation, and the control corresponding to the click operation is the control of the camera application icon as an example, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer. The camera captures still images or videos.
- the following embodiments can all be implemented in the electronic device 100 having the above-mentioned hardware structure.
- the following embodiment will take the electronic device 100 as an example to describe the multimedia content synchronization method provided by the embodiment of the present application.
- the multimedia content synchronization method provided in the embodiment of the present application can enable multiple electronic devices connected to each other to display the lyrics synchronized with the accompaniment music when the electronic device plays the accompaniment music.
- the electronic device may be a smart device such as a mobile phone, a smart speaker, or a smart TV.
- the smart speaker is an upgrade of the traditional speaker.
- the user can control the smart speaker through voice commands to implement functions such as on-demand songs and weather forecasting.
- the electronic device 1 mainly taking the interconnection between the electronic device 1 and the smart speaker as an example, the electronic device 1 establishes a network connection with the smart speaker in the room.
- the electronic device 1 detects the user's K song request operation, the electronic device 1 Send an instruction to play the audio file to the smart speaker, the instruction may include an audio file, or may include access link information of the audio file.
- the electronic device 1 also stores text information related to the audio file, such as lyrics.
- the electronic device 1 adjusts the text information according to the network delay with the smart speaker.
- the text information displayed in the electronic device 1 is synchronized with the audio file in the smart speaker.
- the electronic device 1 displays an interface as shown in FIG. 5b, which includes two options of a single mode and a chorus mode.
- FIG. 5b when the electronic device 1 detects an operation (for example, clicking) performed by the user 1 on the single-player mode 502 in FIG. 5b, the electronic device 1 displays an interface as shown in FIG. 5c.
- the interface includes two favorites of the user 1
- the entries of the song are kiss farewell and red beans.
- the electronic device 1 detects an operation (for example, clicking) performed by the user 1 on the farewell option 503 in FIG. 5c
- the electronic device 1 displays the interface shown in FIG. 5d, which scrolls the lyrics, reminds the progress of the lyrics, and the smart speaker
- the playback progress of the accompaniment audio file is synchronized.
- the electronic device 1 and the electronic device 2 establish a network connection with the smart speaker in the room.
- the electronic device 1 detects a K song request operation input by the user 1, the electronic device 1 sends a smart speaker to play the audio file.
- the instruction may include an audio file, or may include access link information of the audio file.
- Clock synchronization is performed between the electronic device 1, the electronic device 2 and the smart speaker.
- the smart speaker plays an audio file, the electronic device 1 and the electronic device 2 adjust the lyrics according to the network delay, so that the lyrics displayed in the electronic device 1 and the electronic device 2 The reminder progress is synchronized with the playback progress of the accompaniment audio file in the smart speaker.
- the electronic device 1 when the electronic device 1 detects an operation (for example, clicking) performed by the user 1 on the chorus mode 701 in FIG. 7b, the electronic device 1 displays an interface as shown in FIG. 7b.
- the interface includes two options for creating and joining.
- the electronic device 1 when the electronic device 1 detects an operation (for example, clicking) performed by the user 1 on the creation 702 in FIG. 7b, the electronic device 1 displays an interface as shown in FIG. 7c. Huawei P20, and displays the QR code information of K song group created by electronic device 1.
- the electronic device 1 displays an interface as shown in FIG. 7d, which displays that the friend is waiting to join the K song group.
- the device name corresponding to device 2 is Apple 6S.
- the electronic device 1 displays an interface as shown in FIG. 7e.
- the interface in Figure 7e includes: There are two members in the K song group, and the device names are Huawei P20 and Apple 6S.
- the favorite songs include two song entries, which are kiss farewell and red beans.
- the embodiment of the present application also provides a way for the electronic device 1 to invite the electronic device 2 to join the K song group.
- the electronic device 1 detects an operation (such as clicking) performed by the user 1 on the creation 801 in FIG. 8 a, referring to FIG. 8 a, the electronic device 1 displays an interface as shown in FIG. 8 b.
- the interface shows that the electronic device 1 is searching for nearby electronic devices, and the electronic device 2 has been searched.
- the device name of the electronic device 2 is Apple 6s.
- the electronic device 1 detects that the user 1 acts on the avatar 802 corresponding to the Apple 6s, the electronic device 1 sends a request message to the electronic device 2 inviting to join the K song group.
- the manner in which the electronic device 1 searches for nearby electronic devices may be, but is not limited to, network connection methods such as Bluetooth, wifi hotspot, wifi direct connection, or NFC.
- network connection methods such as Bluetooth, wifi hotspot, wifi direct connection, or NFC.
- the user 1 may enter a setting menu to open a network type of wifi hotspot, and search for nearby electronic devices through the wifi hotspot.
- user 1 can also choose to open the wifi hotspot network type through the shortcut function control in the notification bar.
- the electronic device 1 displays an interface as shown in FIG. 8c, which shows that the device name corresponding to the electronic device 2 is waiting for a friend to join the K song group. For Apple 6S.
- the electronic device 1 displays an interface as shown in FIG. 8d.
- the interface in Figure 8d includes: There are two members in the K song group, and the device names are Huawei P20 and Apple 6S.
- the favorite songs include two song entries, which are kiss farewell and red beans.
- FIG. 9 when the electronic device 1 detects the operation of the K song 901 control in the option of the farewell option in the interface shown in FIG. 7e or FIG. 8d by the electronic device 1, the electronic device 1 Device 1 displays the interface as shown in Figure 9b, and electronic device 2 displays the interface as shown in Figure 9c.
- the content shown in Figures 9b and 9c is the same, both of which include two members in the K song group, and the device name They are Huawei P20 and Apple 6S, respectively, and also include the song title "Kiss Farewell", as well as the playback progress and lyrics.
- the lyrics reminders in Figure 9b and Figure 9c have the same progress, and both remind me to "me and you".
- FIG. 9 the electronic device 1 detects the operation of the K song 901 control in the option of the farewell option in the interface shown in FIG. 7e or FIG. 8d by the electronic device 1
- the electronic device 1 Device 1 displays the interface as shown in Figure 9b
- electronic device 2 displays the interface as shown in Figure 9c
- FIG. 9b and FIG. 9c further include a repeat play control 902, a microphone control 903, and an end control 904.
- the microphone control 904 When the electronic device 1 detects the sound of the user 1, the microphone control 904 will have a sound wave change to remind the user 1 that the user's audio is being collected. And, when the electronic device 2 detects the sound of the user 2, the microphone control 904 will have a sound wave change to remind the user 2 that the user's audio is being collected.
- the electronic device 1 detects that the user acts on the end control 904, it ends and holds the audio file of the song.
- this application provides another embodiment.
- the electronic device 2 responds to the user 2's operation (for example, clicking) on the K song application 1001 shown in FIG. 10a, and displays an interface as shown in FIG. 10b.
- the interface includes two options, single mode and chorus mode.
- the electronic device 2 detects an operation (for example, clicking) performed by the user 2 on the chorus mode 1002 in FIG. 10b, the electronic device 2 displays an interface as shown in FIG. 10c.
- the interface includes creating and joining the two items. Options.
- the electronic device 2 when the electronic device 2 detects that the user 2 acts on the 1003 in FIG. 10b (for example, click), the electronic device 2 displays an interface as shown in FIG.
- FIG. 10d which shows that the electronic device 2 is scanning the electronic device 1
- the electronic device 2 displays an interface as shown in FIG. 10e.
- the interface includes two members of the K song group.
- the device names are Huawei P20 and Apple. 6S, where "waiting for the main mobile phone to start playing" displayed on the interface indicates that the electronic device 2 is waiting for the instruction of the electronic device 1 to start playing.
- both electronic device 2 and electronic device 1 display the interface shown in FIG. 10f.
- the interface includes two members of the K song group, and the device names are Huawei P20 and Apple. 6S also includes the song title "Kiss Farewell", as well as the playback progress and lyrics. Among them, the electronic device 1 and electronic device 2 have the same lyrics reminder progress, and both remind me to "me and you”.
- the electronic device 2 when the electronic device 2 detects that the user 2 acts on the operation of adding 1101 in FIG. 11 a (such as clicking), the electronic device 2 displays an interface as shown in FIG. 11 b.
- the interface shows that the electronic device 2 is searching for the electronic device of the accessory, and the electronic device 1 has been searched.
- the device name of the electronic device 1 is Huawei P20.
- the electronic device 2 detects that the user 2 acts on the avatar 1102 corresponding to the Huawei P20, the electronic device 2 sends a request message to the electronic device 1 requesting to join the K song group.
- the manner in which the electronic device 2 searches for nearby electronic devices may be, but is not limited to, network connection methods such as Bluetooth, wifi hotspot, wifi direct connection, or NFC.
- network connection methods such as Bluetooth, wifi hotspot, wifi direct connection, or NFC.
- the user 2 may enter the setting menu of the electronic device 2 to open the network type of wifi hotspot, and search for nearby electronic devices through the wifi hotspot.
- user 2 can also choose to open the wifi hotspot network type through the shortcut function control in the notification bar.
- the electronic device 2 displays an interface as shown in FIG. 11c, which includes two members of the K song group, and the device names are Huawei P20 and Apple 6S, where "waiting for the main mobile phone to start playing" displayed on the interface indicates that the electronic device 2 is waiting for the instruction of the electronic device 1 to start playing.
- the electronic device 1 detects the K song command from user 1
- both electronic device 2 and electronic device 1 display the interface shown in Figure 11d.
- This interface includes two members of the K song group.
- the device names are Huawei P20 and Apple. 6S also includes the song title "Kiss Farewell", as well as the playback progress and lyrics. Among them, the electronic device 1 and electronic device 2 have the same lyrics reminder progress, and both remind me to "me and you”.
- the electronic device 1 obtains the voice of the user 1, generates audio information of the user 1, and sends the audio information to the smart speaker for playback.
- the electronic device 2 acquires the voice of the user 2, generates audio information of the user 2, and sends the audio information to the smart speaker for playback.
- the electronic device 1 detects that the user 1 acts on the microphone control 1201 in the interface shown in FIG. 12a
- the electronic device 1 sends a playback pause instruction to the smart speaker
- the electronic device 1 displays as shown in FIG. 12b Interface
- the interface switches from the microphone control to the pause control 1202, and the lyrics stop scrolling.
- the electronic device 2 displays and displays the interface shown in FIG. 12c, and the display content of FIG. 12c is the same as that of FIG. 12b, that is, the electronic device 2 also stops scrolling the lyrics.
- the electronic device 1 and the electronic device 2 both display the interface shown in FIG. 11d
- the electronic device 2 detects that the user 2 acts on the interface shown in FIG. 13a
- the electronic device 2 displays an interface as shown in FIG. 13b.
- the microphone control is switched to the pause control 1302, and the lyrics stop scrolling.
- the electronic device 1 still displays the interface shown in FIG. 13c, that is, the electronic device 1 normally displays the lyrics reminder.
- the electronic device 2 may also send a stop playback instruction to the smart speaker. Then, the electronic device Both 1 and electronic device 2 display the interface as shown in Figure 13b.
- the smart speaker when the smart speaker detects that the user 1 or the user 2 acts on the pause control 1401 on the smart speaker control panel, the smart speaker sends a playback pause instruction to the electronic device 1 and the electronic device 2 After receiving the playback pause instruction, the electronic device 1 and the electronic device 2 both stop scrolling the lyrics and display the interface as shown in FIG. 13b.
- the electronic device 1 mixes the sounds of the user 1 and the user 2 and the accompanying music, and saves the recorded audio.
- the audio file includes audio information of user 1 or audio information of user 1 and user 2 chorus.
- the electronic device 1 detects that the user acts on the sharing control 1501 on the interface shown in FIG. 15a, the electronic device 1 displays the interface shown in FIG. 15b, which includes multiple sharing methods, such as WeChat sharing, QQ sharing, Bluetooth sharing, WiFi hotspot sharing, or saving access links to the cloud.
- multiple sharing methods such as WeChat sharing, QQ sharing, Bluetooth sharing, WiFi hotspot sharing, or saving access links to the cloud.
- the electronic device 1 when the electronic device 1 detects the operation of the user 1 acting on the WeChat share 1502 control in the interface shown in FIG. 15b, the electronic device 1 displays the interface shown in FIG. 15c, and the user 1 operates the interface. Selecting the control of a friend, the electronic device 1 displays an interface shown in FIG. 15d.
- the interface shows that the user 1 selects three persons: brother, mother, and father.
- the electronic device 1 sends the above audio file to Brother, mom, and dad are the corresponding electronic devices.
- the electronic device 1 may share an audio file obtained by mixing the voice of the user 1 and the sound of the user 2 and the accompanying music, or an audio file obtained by mixing the voice of the user 1 and the accompanying music.
- the electronic device 1 when the electronic device 1 detects that the user acts on the control 1601 in the interface shown in FIG. 16a, the electronic device 1 displays the information shown in FIG. 16a. Interface, this interface includes two modes of personal MV and video chorus. If the electronic device 1 is currently in the single-person mode, the user 1 can select the personal MV mode. When the electronic device 1 responds to the operation of the user 1 on the personal MV1602, the interface shown in FIG. 16c is displayed. The recorded video, and the lyrics are scrolled on the video, so that the electronic device 1 can record and generate a music video of kissing this song. After the recording is finished, the electronic device 1 can be distributed to other people in the manner shown in FIG. 15.
- a short-distance connection or a data network connection may be used between the electronic device 1 and the smart speaker in the above scenario 1, and between the electronic device 1 and the electronic device 2 and the smart speaker in the scenario 2, a short-distance connection or a data network connection may be used.
- the electronic device 1 and the electronic device 2 and the smart speaker can establish a connection based on a short-range connection method such as a wifi hotspot, a wifi direct connection, Bluetooth, zigbee, or NFC.
- the electronic device 1 may establish a wifi hotspot, and the electronic device 2 and the smart speaker may access the wifi hotspot, thereby establishing a short-distance connection between the electronic device 1 and the electronic device 2.
- the electronic device 1 and the electronic device 2 and the smart speaker can also be connected to the same wifi network, that is, connected to the same router, so that the electronic device 1 and the electronic device 2 and the smart speaker can also achieve interconnection and interoperability.
- the above scenarios require strong data transmission capabilities and fast transmission speeds, so efficient transmission methods such as wifi hotspot or wifi direct connection can be used.
- the electronic device 1 and the electronic device 2 may simultaneously display the interface shown in FIG. 16-2, that is, the electronic device 1
- the progress of scrolling the lyrics is the same as that of the electronic device 2, and the movement position of the collimator is the same.
- the embodiment of the present application also provides some K song scenes.
- the electronic device 1 may establish a network connection with the smart speaker 1702 in the car, and when the electronic device 1 receives the user, After the input of the K song request, the electronic device 1 sends the accompaniment audio file and the original vocal audio file of the song to the smart speaker 1702 according to the K song request.
- the electronic device 1 also stores a lyrics file of the song.
- the smart speaker 1702 plays the accompaniment audio file of the song
- the progress of the lyrics reminder displayed in the electronic device 1 is synchronized with the playback progress of the accompaniment audio file in the smart speaker 1702.
- the smart speaker in the foregoing embodiment may also be replaced with an electronic device such as a television, a computer, or a mobile phone.
- electronic device 1 is a mobile phone that functions as both a smart speaker and a microphone, and collects audio information of user 1 while playing backing music.
- Electronic device 2 is another mobile phone. The mobile phone is added to the chorus mode, and After the lyrics of the electronic device 1 are synchronized, the audio information of the user 2 is collected and sent to the electronic device 1 for playing.
- An embodiment of the present application further provides a method for synchronizing multimedia content, which can implement synchronous playback of text information and audio files between electronic devices. As shown in FIG. 18, the method includes:
- a second electronic device establishes a network connection with the first electronic device.
- the first electronic device and the second electronic device may be connected at a short distance based on a communication network such as a wifi hotspot, wifi direct connection, Bluetooth, zigbee, or NFC.
- a communication network such as a wifi hotspot, wifi direct connection, Bluetooth, zigbee, or NFC.
- the first operation is an operation that the user 1 acts on the K song 901 control.
- the first operation includes a voice operation or a gesture operation.
- the gesture operation may include a touch gesture or a hover gesture.
- Touch gestures can include, but are not limited to, clicking, double clicking, long pressing, pressing or dragging, and the like.
- the first electronic device displays a first interface, and sends an instruction to play an audio file to the second electronic device.
- the first interface is shown in FIG. 9b.
- the first interface includes text information, and the text information is associated with the audio file.
- the first electronic device adjusts the text information according to a network delay between the first electronic device and the second electronic device, so that the text information and the audio file are played synchronously.
- the text information of the first electronic device is played synchronously with the audio file, which can mean that when the smart speaker plays the accompaniment corresponding to "me and you", the electronic device 1 advances the playback of the text information by 0.5 seconds in advance. "I kiss you goodbye.”
- the audio file played by the second electronic device may be an instruction to play the audio file sent by the first electronic device, or may be obtained from the cloud server according to the link information in the instruction to play the audio file, for example, Obtained from the music cloud server.
- the first electronic device can be calculated in advance in the following manner, as shown in FIG. 19.
- Step a the first electronic device sends a clock synchronization request to the second electronic device, and the first electronic device records that the sending time of the clock synchronization request is T1;
- Step b after the second electronic device receives the clock synchronization request, it records that the reception time of the clock synchronization request is T2;
- Step c the second electronic device sends a clock synchronization request response to the first electronic device, and the second electronic device records that the sending time of the clock synchronization request response is T3;
- Step d after receiving the clock synchronization request response, the first electronic device records that the reception time of the clock synchronization request response is T4;
- Step e The second electronic device sends T2 and T3 to the first electronic device, and the first electronic device calculates the network delay and clock difference according to T1, T2, T3, and T4.
- the network delay from the first electronic device to the second electronic device is the same as the network delay from the second electronic device to the first electronic device, and is labeled as T delay , between the first electronic device and the second electronic device.
- the clock difference is marked as T offset , then the following equation exists:
- the embodiment of the present application also provides a network delay calculation method, that is, the network as shown in FIG. 19 is initiated every set time (for example, 300ms). Network delay calculation. When the network delay varies greatly after multiple calculations, update to the latest calculated network delay value. For details, see Figure 20.
- step 2001 the first electronic device calculates a network delay value according to the network delay calculation method shown in FIG. 19 for each set duration.
- step 2002 the first electronic device saves the calculated network delay value to a network delay list.
- step 2003 when the first electronic device determines that the number of network delay values in the network delay list reaches a preset value, for example, there are 5 delay values in the network delay list, the first electronic device proceeds to step 2004. Otherwise, go to step 2001.
- a preset value for example, there are 5 delay values in the network delay list
- step 2004 the first electronic device performs variance calculation on all delay values in the network delay list.
- step 2005 when the first electronic device determines that the calculated variance is not less than a set threshold, it continues to perform step 2006, otherwise it executes step 2007.
- step 2006 the first electronic device does not update the current delay value.
- step 2007 the first electronic device delays the current delay to the latest calculated delay value, that is, the latest delay value.
- the first electronic device calculates the variance every 5 delay values. If the variance is less than the preset threshold, the current delay is updated to the latest calculated delay value. If the variance is not less than the preset threshold, the delay is not updated. value.
- Manner 1 When the second electronic device sends the playback progress information of the audio file to the first electronic device, the first electronic device may according to the network delay between the second network device and the first network device and the audio file playback progress information, The playback progress of the text information is calculated, and then the text information is adjusted according to the playback progress of the text information. It should be noted that the network delay between the second network device and the first network device may be a positive value or a negative value.
- Method 2 When the second electronic device sends the playback progress information of the audio file to the first electronic device, the first electronic device may use the network delay, the clock difference, and the audio file according to the network delay between the second network device and the first network device.
- the playback progress information calculates the playback progress of the text information, and then the first electronic device adjusts the text information according to the playback progress of the text information.
- Method 3 When the second electronic device sends a scheduled playback instruction to the first electronic device, because the scheduled playback instruction includes that the second electronic device starts playing the audio file after a preset waiting time after the first time, the first electronic device may The first duration is determined according to the first moment, the network delay, and the preset waiting duration. When the first time period is determined, the first electronic device starts displaying text information after the first time period has elapsed after receiving the scheduled playback time.
- the specific implementation process of the third method includes the following steps, as shown in FIG. 21.
- Step 2101 The first electronic device sends an instruction to play an audio file to the second electronic device.
- Step 2102 The second electronic device sends a scheduled playback instruction to the first electronic device.
- the scheduled playback instruction includes a preset waiting time period Twait, and at the same time carries the current time T1.
- the reserved play instruction instructs the second electronic device to start playing the audio file after the Twait time has elapsed after the current time T1.
- Step 2103 The first electronic device receives the scheduled playback instruction, and records a reception time T2 of the scheduled playback instruction.
- Step 2104 The first electronic device calculates a waiting time period Tn of the first electronic device according to T1, Twait, and T2, and a known network delay value.
- the first electronic device starts displaying text information after a time period Tn after the current time T2.
- step 2104 since the first electronic device and the second electronic device are playing at the same time, the following conditions are satisfied:
- Tstart1 is the playback time of the first electronic device
- Tstart2 is the playback time of the second electronic device
- Twait is the waiting time of the first electronic device
- T delay is the network delay between the first electronic device and the second electronic device.
- Tn Twait-T delay + T offset , where T offset is a clock difference between the first electronic device and the second electronic device.
- the embodiment of the present application also provides an implementation manner of the interactive interface shown in FIG. 22.
- the electronic device 1 displays a countdown status control 2201 shown in FIG. 22a to FIG. 22c.
- the countdown status control 2201 disappears at the same time, the electronic device 1 starts to scroll the lyrics and the smart speaker starts to play the accompaniment simultaneously.
- the calculation process shown in FIG. 19 and FIG. 21 can also be performed by a third electronic device.
- the third electronic device It may be interconnected with the first electronic device and the second electronic device.
- the router obtains information such as T1, T2, T3, and T4 from the first electronic device, calculates the network delay and clock difference, and then determines The lyrics playback progress of the first electronic device is output, and the lyrics playback progress is sent to the first electronic device.
- the third electronic device may be a mobile phone, a router, a washing machine, a refrigerator, a television, or the like that is interconnected with the first electronic device and the second electronic device.
- the text information of the first electronic device is played synchronously with the audio file, which can mean that the smart speaker plays to ""
- the first electronic device is a mobile phone and the second electronic device is a smart speaker.
- the specific implementation of the above-mentioned K song process will be described.
- the mobile phone side in addition to the APP control, communication module, and wifi / bluetooth module, the mobile phone side also mainly includes a sound processing module, a microphone (MIC) recording module, a synchronization module, a lyrics processing module, and a multi-phone / smart speaker management module.
- the sound effect processing module mainly completes the process of accenting, echoing, howling, etc. after the mobile phone records the human voice
- the MIC recording module mainly completes the sound recording and VAD processing
- the synchronization module uses the network synchronization algorithm to The accompaniment playback and lyrics are synchronized between the devices
- the lyrics display module adjusts and displays the lyrics according to the results obtained by the synchronization algorithm
- the multi-phone / smart speaker management module manages the chorus and access of multiple phones and smart speakers.
- the smart speaker side also mainly includes accompaniment processing module, real-time sound processing module, synchronization module, sound fusion module, playback module, and multi-phone management module.
- the accompaniment processing module mainly completes the transmission and synchronization of the accompaniment;
- the real-time sound processing module uses the delay algorithm to smooth the sound from each mobile phone, including algorithms such as active packet loss and message delay to ensure mobile phone side voice It can receive and process on the smart speaker side in real time;
- Synchronization module use network synchronization algorithm to synchronize accompaniment playback and lyrics between multiple devices;
- sound fusion module fusion processing of sound from various mobile phones; playback module: Mix vocals and accompaniment for playback;
- Multi-phone management module Manage multi-phone chorus and access.
- the embodiment of the present application further provides a schematic diagram of the interaction between the mobile phone and the smart speaker shown in FIG. 24, and illustrates the specific implementation of the single-person mode in the above embodiment.
- Step 2401a to step 2401e The APP control module of the mobile phone issues a connection request, the communication module of the mobile phone actually initiates a connection to the smart speaker, and the mobile phone and the smart speaker respectively establish a control channel and a data channel.
- the communication module on the mobile phone side notifies the APP control module of the mobile phone that a communication connection has been established; the communication module on the smart speaker side notifies the APP control module of the smart speaker that a communication connection has been established.
- Step 2402 The APP control module on the mobile phone side notifies the synchronization module on the mobile phone side to start synchronization.
- Step 2403 The synchronization module on the mobile phone side sends a synchronization request message to the synchronization module on the smart speaker side.
- Step 2404 The synchronization module on the smart speaker side sends a synchronization response message to the synchronization module on the mobile phone side.
- Step 2405 The synchronization module on the mobile phone side performs synchronization calculation, and calculates the delay value and the clock difference.
- Step 2406 The synchronization module on the smart speaker side performs synchronization calculation, and the delay value and the clock difference are calculated.
- Step 2407 The APP control module on the smart speaker side notifies the accompaniment processing module to start playing the accompaniment.
- Step 2408 The accompaniment processing module on the smart speaker side sends a scheduled playback instruction to the synchronization module on the smart speaker side.
- Step 2409 The synchronization module on the smart speaker side issues an instruction to schedule playback to the synchronization module on the mobile phone side.
- Step 2410 After receiving the scheduled playback instruction, the synchronization module on the mobile phone side notifies the lyrics display module to scroll and display the lyrics.
- Step 2411 The accompaniment processing module on the smart speaker side sends the accompaniment audio file to the playback module.
- Step 2412 both sides of the mobile phone and the smart speaker perform lyrics processing and accompaniment processing according to the scheduled playback time.
- Step 2413 The MIC recording module on the mobile phone side starts recording.
- Step 2414 The MIC recording module on the mobile phone side can perform voice activity detection (Voice, Activity Detection, VAD) inspection on the sound.
- voice activity detection Vehicle, Activity Detection, VAD
- the MIC recording module on the mobile phone side performs sound effect processing, such as performing sound howling suppression, sound filtering, sound coordination processing, and the like on the sound itself.
- Step 2415 After the MIC recording module on the mobile phone processes the sound data, it sends the sound data to the smart speaker.
- Step 2416 After the smart speaker receives the sound, the real-time sound processing module processes the sound.
- the real-time sound processing module performs repair processing on the sound; performs delay judgment on the sound, and discards or takes half-tone processing for the sound whose delay exceeds a certain interval (because human ears can recognize two sounds).
- Step 2417 After the real-time sound processing module processes the sound, it sends the sound data to the smart speaker.
- Step 2418 The sound fusion module on the smart speaker side mixes the accompaniment and the human voice.
- Step 2419 The playback module on the smart speaker side finally plays the sound.
- steps in FIG. 24 described above do not have a strict sequence, and in addition, they do not necessarily need to be performed all, and can be adjusted as needed in the actual production process.
- the mobile phone and the smart speaker can establish a communication connection in the same space, and can also establish a cloud connection through the network in different spaces.
- the mobile phone and the smart speaker can be played simultaneously at the scheduled time, or during the playback of the smart speaker, the mobile phone uses the above synchronization mechanism to align the lyrics in real time. For example: the smart speaker actively reports the playback progress Ta, and the mobile phone side according to the synchronization mechanism Calculate T delay and determine the current scrolling progress of the lyrics based on Ta and T delay .
- the embodiment of the present application also provides an embodiment, which discloses that the mobile phone can control the running state of the smart speaker, so that the smart speaker pauses, resumes, and stops playing the accompaniment, as shown in FIG. 25.
- step 2501 during the K song process, when the mobile phone detects that the user acts on the pause touch control, the mobile phone stops scrolling the lyrics.
- Step 2502 The mobile phone sends a pause instruction to the smart speaker.
- step 2503 the smart speaker stops playing the accompaniment after receiving the pause playback instruction.
- the operating state of the mobile phone may also be controlled by a smart speaker, and the principle is similar to the process shown in FIG. 25, and details are not described herein again.
- An embodiment of the present application further provides a method for synchronizing multimedia content.
- the method is implemented by a third electronic device, corresponding to the scenario of the chorus mode in the foregoing embodiment.
- This method can implement text between multiple electronic devices that will be added to the chorus model Messages are synchronized.
- the method includes: Step 2601a.
- a network connection is established between the first electronic device and the third electronic device.
- the specific connection method is the same as that in FIG. Step 2602a:
- the first electronic device sends an instruction to play text information to the third electronic device.
- the instruction includes progress information of text information currently played by the first electronic device.
- Step 2603a the third electronic device adjusts text information of the third electronic device according to the network delay and progress information between the first electronic device and the third electronic device, so that the text information of the third electronic device and the first electronic device
- the text messages of an electronic device are played synchronously.
- the electronic device 1 After the electronic device 2 joins the K song group, after the electronic device 1 detects that the user acts on the control of the K song, the electronic device 1 sends an instruction to the electronic device 2 to play text information. After receiving the instruction, the electronic device 2 adjusts the text information according to the network delay. Eventually, the text information displayed by the electronic device 2 is consistent with the text information displayed by the electronic device 1, as shown in FIGS. 9a and 9b.
- the first electronic device may also adjust the third electronic device according to network delay, clock difference, and progress information. Text message.
- the third electronic device records the first sound information of the user and sends the first electronic device to the first electronic device Sound information, the first electronic device sends the second sound information recorded by the first electronic device together with the first sound information to the second electronic device, so that the second electronic device plays the second sound information and the first sound information.
- Method 2 the third electronic device records the first sound information of the user and sends the first sound information to the second electronic device, and the first electronic device sends the second sound information recorded by the first electronic device to the second electronic device, The second electronic device is caused to play the second sound information and the first sound information.
- the embodiment of the present application also provides a schematic diagram of the interaction between the mobile phone and the smart speaker shown in FIG. 26b, and illustrates the specific implementation of the chorus mode in the above embodiment. Since the specific implementation of the single-player mode has been described in detail in Embodiment 1 shown in FIG. 24, this embodiment focuses on the process of adding a K song to a secondary mobile phone.
- the main mobile phone In step 2601b, the main mobile phone generates a two-dimensional code before or during the K song.
- the two-dimensional code may include information such as the IP address of the main phone and the IP address of the smart speaker.
- Step 2602b the secondary mobile phone scans the two-dimensional code to obtain the IP address of the main mobile phone and the IP address of the smart speaker.
- Step 2603b the secondary mobile phone initiates a connection to the primary mobile phone, and establishes a control channel for lyrics transmission, synchronization processing, and playback control.
- step 2604 the secondary mobile phone initiates a connection to the smart speaker, and establishes a data channel for singing voice transmission.
- Step 2605 The primary mobile phone sends the lyrics file to the secondary mobile phone.
- step 2606 synchronization processing is performed between the secondary mobile phone and the primary mobile phone.
- the synchronization processing method is similar to the synchronization processing mechanism between the primary mobile phone and the smart speaker in the foregoing embodiment, and details are not described herein again.
- step 2607 the secondary phone starts scrolling and displaying lyrics according to the synchronization processing result, and the progress of the lyrics reminder of the secondary phone is consistent with the progress of the lyrics reminder of the primary phone.
- the lyrics of the primary phone have scrolled to "me and you", then the secondary phone also scrolls to this position accordingly.
- step 2608 the secondary mobile phone performs recording and sends the sound to the sound processing module of the smart speaker.
- the processing method of the sound processing module is similar to the foregoing embodiment, and is not described repeatedly.
- Step 2609 The sound processing module of the smart speaker sends the processed sound to the sound fusion module.
- Step 2610 The sound fusion module of the smart speaker fuses the sound of the primary mobile phone, the sound of the secondary mobile phone, and the accompaniment.
- Step 2611 The fused sound of the sound fusion module of the smart speaker is sent to the playback module.
- step 2612 the playback module of the smart speaker finally plays and processes the sound of the primary mobile phone, the sound of the secondary mobile phone, and the accompaniment.
- the embodiment of the present application also provides an embodiment.
- This embodiment discloses that the main mobile phone can control the running status of the smart speaker and the auxiliary mobile phone, so that the smart speaker and the auxiliary mobile phone can pause, resume, and stop playing the accompaniment. For specific implementation, see FIG. 27. Show.
- Step 2701 During the K song process, when the main mobile phone detects that the user acts on the touch control for pausing, the main mobile phone stops scrolling the lyrics.
- Step 2702 The main mobile phone sends a control instruction to pause the K song to the smart speaker.
- Step 2703 After receiving the control instruction, the smart speaker executes the action of pausing K song.
- step 2704 the primary mobile phone sends a control instruction to pause the K song to the secondary mobile phone.
- Step 2705 After receiving the control instruction, the secondary mobile phone executes the action of pausing K song.
- the main phone when the main phone detects that the user acts on controls such as pause, resume, and stop, it will send control instructions to the smart speaker and the secondary phone. After receiving the control instructions, the smart speaker and the secondary phone will execute the corresponding pause, resume, and stop And so on.
- the embodiment of the present application also provides an embodiment.
- This embodiment discloses that the secondary mobile phone can control the running status of itself and the smart speaker, but cannot control the running status of the main mobile phone. For specific implementation, see FIG. 28.
- Step 2801 During the K song process, when the secondary mobile phone detects that the user acts on the touch control for pausing, the secondary mobile phone stops scrolling the lyrics.
- Step 2802 the secondary mobile phone sends a control instruction to pause the K song to the smart speaker.
- Step 2803 After receiving the control instruction, the smart speaker executes the action of pausing the K song of the secondary mobile phone.
- this embodiment of the present application is directed to scenario 1, and a possible implementation process of the scenario is systematically described with reference to FIG. 29.
- Step 2901 The mobile phone side establishes a network connection with the smart speaker side through a router, and the mobile phone side and the smart speaker side establish a control channel and a data channel.
- step 2902 the APP control module on the mobile phone side receives the user's touch, starts the K song process, and triggers the acquisition of music resources from the cloud.
- Step 2903 The processor on the smart speaker side also obtains music resources from the cloud, and then notifies the playback module to play the accompaniment.
- step 2904 the MIC recording module on the mobile phone side records the voice of the mobile phone user, and then the mobile phone sends the user's voice to the processor on the smart speaker side through the data channel.
- step 2905 the processor on the smart speaker side processes the user's voice and sends it to the playback module for playback.
- the embodiment of the present application utilizes the interconnection and interconnection between multiple electronic devices and is applied to the K song scene, so that the user can K song at any time, anywhere, reduce the time cost of K song, and increase the life and entertainment experience of the whole people.
- multimedia content synchronization method provided in the embodiment of the present application can also be applied to synchronization between audio and video, for example, electronic device 1 plays MV, and smart speakers play music accompaniment.
- the specific synchronization implementation process is consistent with the above method. , Will not repeat them here.
- an embodiment of the present application discloses a first electronic device.
- the first electronic device is used to implement the methods described in the foregoing method embodiments, and includes: detecting A unit 3001, a display unit 3002, a sending unit 3003, and a processing unit 3004.
- the detection unit 3001 is configured to support the first electronic device to execute step 1802 in FIG. 18
- the display unit 3002 is configured to support the first electronic device to execute step 1802 in FIG. 18
- the sending unit 3003 is configured to support the electronic device to execute step 1802 in FIG.
- the processing unit 3004 is configured to support the electronic device to perform step 1804 in FIG. 18.
- all relevant content of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, which will not be repeated here.
- an embodiment of the present application discloses a first electronic device.
- the electronic device may include a touch screen 3101, where the touch screen 3101 includes a touch-sensitive surface 3106 and Display screen 3107; one or more processors 3102; memory 3103; one or more application programs (not shown); and one or more computer programs 3104, each of which can be connected through one or more communication buses 3105.
- the one or more computer programs 3104 are stored in the memory 3103 and configured to be executed by the one or more processors 3102.
- the one or more computer programs 3104 include instructions, and the instructions can be used to execute 18 and the corresponding steps in the respective embodiments.
- an embodiment of the present application discloses a third electronic device.
- the third electronic device is used to implement the methods described in the foregoing method embodiments, and includes: connecting A unit 3201, a receiving unit 3202, and a processing unit 3203.
- the connection unit 3201 is configured to support the third electronic device to execute step 2601a in FIG. 26a;
- the receiving unit 3202 is configured to support the third electronic device to execute step 3202a in FIG. 26a;
- the processing unit 3203 is configured to support the third electronic device to execute the diagram. Step 2603a in 26a.
- all relevant content of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, which will not be repeated here.
- an embodiment of the present application discloses a third electronic device.
- the electronic device may include a touch screen 3301, where the touch screen 3301 includes a touch-sensitive surface 3306 and Display screen 3307; one or more processors 3302; memory 3303; one or more application programs (not shown); and one or more computer programs 3304, each of which can be connected through one or more communication buses 2605.
- the one or more computer programs 3304 are stored in the memory 3303 and configured to be executed by the one or more processors 3302.
- the one or more computer programs 3304 include instructions, and the instructions may be used to execute 26a and the respective steps in the corresponding embodiment.
- An embodiment of the present application further provides a computer storage medium.
- the computer storage medium stores computer instructions.
- the computer instructions When the computer instructions are run on an electronic device, the electronic device is caused to execute the foregoing related method steps to implement the photo sharing method in the foregoing embodiment. .
- the embodiment of the present application further provides a computer program product, and when the computer program product runs on a computer, the computer is caused to execute the foregoing related steps to implement the multimedia content synchronization method in the foregoing embodiment.
- an embodiment of the present application further provides a device.
- the device may specifically be a chip, a component, or a module.
- the device may include a connected processor and a memory.
- the memory is used to store a computer to execute instructions.
- the processor may execute computer execution instructions stored in the memory, so that the chip executes the multimedia content synchronization method in the foregoing method embodiments.
- the electronic devices, computer storage media, computer program products, or chips provided in the embodiments of the present application are used to execute the corresponding methods provided above. Therefore, for the beneficial effects that can be achieved, refer to the corresponding methods provided above. The beneficial effects in the method are not repeated here.
- the disclosed apparatus and method may be implemented in other ways.
- the device embodiments described above are only schematic.
- the division of modules or units is only a logical function division.
- multiple units or components may be combined or It can be integrated into another device, or some features can be ignored or not implemented.
- the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, which may be electrical, mechanical or other forms.
- the units described as separate components may or may not be physically separated, and the components displayed as units may be one physical unit or multiple physical units, that is, they may be located in one place, or may be distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the objective of the solution of this embodiment.
- each functional unit in each embodiment of the present application may be integrated into one processing unit, or each of the units may exist separately physically, or two or more units may be integrated into one unit.
- the above integrated unit may be implemented in the form of hardware or in the form of software functional unit.
- the integrated unit When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium.
- the technical solution of the embodiments of the present application is essentially a part that contributes to the existing technology or all or part of the technical solution may be embodied in the form of a software product that is stored in a storage medium.
- the instructions include a number of instructions for causing a device (which can be a single-chip microcomputer, a chip, or the like) or a processor to execute all or part of the steps of the methods in the embodiments of the present application.
- the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
Abstract
The present application provides a multimedia content synchronization method and an electronic device. The method comprises: a first electronic device establishes a network connection to a second electronic device; when the first electronic device detects a first operation of a user, in response to the first operation, the first electronic device displays a first interface, wherein the first interface comprises text information which is associated with an audio file; and in response to the first operation, the first electronic device further sends an instruction of playing the audio file to the second electronic device, and the first electronic device adjusts the text information according to a network delay between the first electronic device and the second electronic device, so that the text information and the audio file are synchronously played. By means of the method, the lyrics played by the first electronic device can be synchronously played with the accompaniment played by the second electronic device, thereby achieving better user experience.
Description
本申请涉及终端技术领域,尤其涉及一种多媒体内容同步方法及电子设备。The present application relates to the technical field of terminals, and in particular, to a multimedia content synchronization method and an electronic device.
近年来,随着电子产业和通信技术的飞速发展,目前智能家庭设备越来越多,例如手机,智能音箱、智能手环等,人们的生活变得越来越智能化。由于手机的便携性,且可以从应用商店上下载各种功能的应用软件,所以手机已经成为人们日常生活中必不可少的必备品。In recent years, with the rapid development of the electronics industry and communication technology, there are more and more smart home devices, such as mobile phones, smart speakers, and smart bracelets, and people's lives have become more and more intelligent. Due to the portability of the mobile phone and the application software with various functions can be downloaded from the application store, the mobile phone has become an indispensable necessity in people's daily life.
随着人们生活质量的提高,K歌正逐步走向人们的日常生活,具有K歌功能的应用软件也日益丰富。具有K歌功能的应用软件是音乐播放器和录音软件的结合体,既可以播放原唱,也可以录制用户的歌声,并将录制的歌声与伴奏进行混音得到音乐文件,用户还可以将上述音乐文件上传到网络,以便让更多的人听到自己的歌声。With the improvement of people's quality of life, K song is gradually moving into people's daily life, and the application software with K song function is also increasingly abundant. The application software with the K song function is a combination of a music player and recording software, which can play the original vocal, or record the user's song, and mix the recorded song with the accompaniment to obtain a music file. The user can also convert the above Music files are uploaded to the Internet so that more people can hear their songs.
目前当用户利用手机和周边环境中的其它智能设备(例如音箱)互联互通进行K歌时,存在其它智能设备所播放的音乐伴奏和手机端的歌词不同步的问题,所以不能给用户较好的唱歌体验。At present, when a user uses a mobile phone to communicate with other smart devices (such as speakers) in the surrounding environment to perform K songs, there is a problem that the music accompaniment played by other smart devices and the lyrics on the mobile phone are not synchronized, so users cannot sing better Experience.
发明内容Summary of the Invention
本申请提供一种多媒体内容同步方法及电子设备,用以实现第一电子设备所播放的歌词可以与第二电子设备所播放的音乐伴奏实现同步,从而提供给用户较佳的唱歌体验。The present application provides a multimedia content synchronization method and an electronic device, so as to realize that the lyrics played by the first electronic device can be synchronized with the music accompaniment played by the second electronic device, thereby providing users with a better singing experience.
第一方面,本申请实施例提供了一种多媒体内容同步方法,所述方法适用于第一电子设备,该方法包括:第一电子设备建立与第二电子设备的网络连接,当第一电子设备检测到用户的第一操作,响应于该第一操作,第一电子设备显示第一界面,并向第二电子设备发送播放音频文件的指令,其中,第一界面包括文本信息,该文本信息与所述音频文件关联,然后第一电子设备根据第一电子设备和第二电子设备之间的网络时延调整文本信息,使得文本信息与音频文件同步播放。In a first aspect, an embodiment of the present application provides a multimedia content synchronization method. The method is applicable to a first electronic device. The method includes: the first electronic device establishes a network connection with the second electronic device, and when the first electronic device A first operation of the user is detected, and in response to the first operation, the first electronic device displays a first interface and sends an instruction to play an audio file to the second electronic device, wherein the first interface includes text information, the text information and The audio files are associated, and then the first electronic device adjusts the text information according to a network delay between the first electronic device and the second electronic device, so that the text information is played in synchronization with the audio file.
本申请实施例中,第一电子设备根据网络时延调整文本信息,最终实现文本信息与音频文件同步播放,从而提供给用户较佳的唱歌体验。In the embodiment of the present application, the first electronic device adjusts the text information according to the network delay, and finally realizes synchronous playback of the text information and the audio file, thereby providing a better singing experience to the user.
在一种可能的设计中,在检测用户的第一操作之前,第一电子设备向所述第二电子设备发送第一时钟同步请求,然后第一电子设备接收第二电子设备发送的第一时钟同步响应,其中,第一时钟同步响应包括所述第二电子设备接收第一时钟同步请求的时刻,以及所述第二电子设备发送所述第一时钟同步响应的时刻;第一电子设备根据所述第一电子设备发送所述第一时钟同步请求的发送时刻、所述第一电子设备接收所述第一时钟同步响应的接收时刻,所述第二电子设备接收第一时钟同步请求的接收时刻,以及所述第二电子设备发送所述第一时钟同步响应的发送时刻,确定所述第一电子设备和所述第二电子设备之间的网络时延。In a possible design, before detecting the first operation of the user, the first electronic device sends a first clock synchronization request to the second electronic device, and then the first electronic device receives the first clock sent by the second electronic device A synchronization response, wherein the first clock synchronization response includes a time when the second electronic device receives the first clock synchronization request and a time when the second electronic device sends the first clock synchronization response; The sending time at which the first electronic device sends the first clock synchronization request, the receiving time at which the first electronic device receives the first clock synchronization response, and the receiving time at which the second electronic device receives the first clock synchronization request And the sending time at which the second electronic device sends the first clock synchronization response, to determine a network delay between the first electronic device and the second electronic device.
在一种可能的设计中,第一电子设备还可以根据所述第一电子设备发送所述第一时钟 同步请求的发送时刻、所述第一电子设备接收所述第一时钟同步响应的接收时刻,以及所述第二电子设备接收第一时钟同步请求的接收时刻,以及所述第二电子设备发送所述第一时钟同步响应的发送时刻,确定所述第一电子设备和所述第二电子设备之间时钟差。若时钟差不为零,则根据所述第一电子设备和第二电子设备之间的网络时延和时钟差调整所述文本信息。In a possible design, the first electronic device may further be based on a sending time when the first electronic device sends the first clock synchronization request, and a receiving time when the first electronic device receives the first clock synchronization response. And the receiving time when the second electronic device receives the first clock synchronization request and the sending time when the second electronic device sends the first clock synchronization response, determining the first electronic device and the second electronic device Clock difference between devices. If the clock difference is not zero, the text information is adjusted according to a network delay and a clock difference between the first electronic device and the second electronic device.
在一种可能的设计中,第一电子设备可以接收所述第二电子设备发送的预约播放指令,因预约播放指令包括所述第二电子设备在第一时刻之后经过预设等待时长开始播放所述音频文件,这样,第一电子设备可以根据第一电子设备和第二电子设备之间的网络时延、第一时刻、以及预设等待时长,确定第一时长,然后根据接收到所述预约播放指令的第二时刻和所述第一时长,调整所述文本信息。In a possible design, the first electronic device may receive a scheduled playback instruction sent by the second electronic device, because the scheduled playback instruction includes that the second electronic device starts to play the preset playback time after a preset waiting time after the first moment. The audio file is described. In this way, the first electronic device may determine the first duration according to the network delay, the first time, and the preset waiting time between the first electronic device and the second electronic device, and then according to receiving the appointment Adjusting the text information at the second moment of the playback instruction and the first duration.
在另一种可能的设计中,第一电子设备接收所述第二电子设备发送的音频文件播放进度信息,然后根据网络时延和音频文件播放进度信息,调整所述文本信息。In another possible design, the first electronic device receives audio file playback progress information sent by the second electronic device, and then adjusts the text information according to network delay and audio file playback progress information.
在一种可能的设计中,第一电子设备除了和第二电子设备建立网络连接,还可以建立与第三电子设备的网络连接,当第一电子设备接收到第三电子设备发送的录制的第一声音信后,将所述第一电子设备录制的第二声音信息和所述第一声音信息一起发送至第二电子设备,使得第二电子设备播放第二声音信息和第一声音信息。In a possible design, in addition to establishing a network connection with the second electronic device, the first electronic device may also establish a network connection with the third electronic device. When the first electronic device receives the recorded first After an audio message, the second sound information recorded by the first electronic device is sent to the second electronic device together with the first sound information, so that the second electronic device plays the second sound information and the first sound information.
第二方面,本申请实施例提供了一种多媒体内容同步方法,所述方法适用于第三电子设备,该方法包括:第三电子设备建立与第一电子设备的网络连接,然后第三电子设备接收第一电子设备发送的播放文本信息的指令,该指令包括所述第一电子设备当前播放的文本信息的进度信息;最终第三电子设备根据第一电子设备和第三电子设备之间的网络时延和所述进度信息,调整所述第三电子设备的文本信息,使得所述第三电子设备的文本信息与所述第一电子设备的文本信息同步播放。In a second aspect, an embodiment of the present application provides a multimedia content synchronization method. The method is applicable to a third electronic device. The method includes: the third electronic device establishes a network connection with the first electronic device, and then the third electronic device Receiving an instruction for playing text information sent by the first electronic device, the instruction including progress information of the text information currently being played by the first electronic device; and finally, the third electronic device according to a network between the first electronic device and the third electronic device The time delay and the progress information, and adjusting the text information of the third electronic device, so that the text information of the third electronic device is played in synchronization with the text information of the first electronic device.
本申请实施例中,第三电子设备根据网络时延调整文本信息,最终实现第三电子设备和第一电子设备的之间的文本信息同步播放,从而提供给用户较佳的唱歌体验。In the embodiment of the present application, the third electronic device adjusts the text information according to the network delay, and finally realizes synchronous playback of the text information between the third electronic device and the first electronic device, thereby providing a better singing experience to the user.
在一种可能的设计中,第三电子设备还可以向第一电子设备发送第二时钟同步请求,然后接收第一电子设备发送的第二时钟同步响应,因时钟同步响应包括所述第三电子设备接收时钟同步请求的时刻,以及所述第一电子设备发送所述时钟同步响应的时刻,所以第三电子设备根据第三电子设备发送所述第二时钟同步请求的发送时刻、和所述第三电子设备接收所述时钟同步响应的接收时刻,以及所述第一电子设备接收时钟同步请求的接收时刻,以及所述第一电子设备发送所述时钟同步响应的发送时刻,确定所述第一电子设备和所述第三电子设备之间的网络时延。In a possible design, the third electronic device may further send a second clock synchronization request to the first electronic device, and then receive a second clock synchronization response sent by the first electronic device, because the clock synchronization response includes the third electronic device The time when the device receives the clock synchronization request and the time when the first electronic device sends the clock synchronization response, so the third electronic device sends the second clock synchronization request according to the sending time of the second electronic device and the first The receiving time at which the three electronic devices receive the clock synchronization response, the receiving time at which the first electronic device receives the clock synchronization request, and the sending time at which the first electronic device sends the clock synchronization response, determine the first A network delay between the electronic device and the third electronic device.
在一种可能的设计中,第三电子设备还可以根据所述第三电子设备发送所述第二时钟同步请求的发送时刻、和所述第三电子设备接收所述时钟同步响应的接收时刻,以及所述第一电子设备接收时钟同步请求的接收时刻,以及所述第一电子设备发送所述时钟同步响应的发送时刻,确定所述第一电子设备和所述第三电子设备之间时钟差。若该时钟差不为零,则第三电子设备根据所述第一电子设备和第三电子设备之间的网络时延、所述第一电子设备和第三电子设备之间的时钟差和所述第一电子设备当前播放的文本信息,调整所述文本信息。In a possible design, the third electronic device may further according to a sending time when the third electronic device sends the second clock synchronization request and a receiving time when the third electronic device receives the clock synchronization response, And a receiving time at which the first electronic device receives a clock synchronization request, and a sending time at which the first electronic device sends the clock synchronization response, to determine a clock difference between the first electronic device and the third electronic device . If the clock difference is not zero, the third electronic device is based on the network delay between the first electronic device and the third electronic device, and the clock difference between the first electronic device and the third electronic device. The text information currently played by the first electronic device is adjusted, and the text information is adjusted.
第三方面,本申请实施例提供了一种多媒体内容同步方法,所述方法适用于第二电子设备,该方法包括:第二电子设备建立与第一电子设备的网络连接,然后第二电子设备接 收所述第一电子设备发送的播放音频文件的指令,所述音频文件与文本信息关联,接着第二电子设备向所述第一电子设备发送预约播放指令,因预约播放指令包括所述第二电子设备在第四时刻之后经过预设等待时长开始播放所述音频文件,使得所述第一电子设备根据所述第一电子设备和第二电子设备之间的网络时延、所述第四时刻、以及所述预设等待时长调整所述文本信息。In a third aspect, an embodiment of the present application provides a method for synchronizing multimedia content. The method is applicable to a second electronic device. The method includes: the second electronic device establishes a network connection with the first electronic device, and then the second electronic device Receive an instruction to play an audio file sent by the first electronic device, the audio file is associated with text information, and then the second electronic device sends a scheduled playback instruction to the first electronic device, because the scheduled playback instruction includes the second The electronic device starts playing the audio file after a preset waiting time after the fourth time, so that the first electronic device is based on the network delay between the first electronic device and the second electronic device, the fourth time And adjusting the text information by the preset waiting time.
本申请实施例中,第二电子设备可以实现与第一电子设备同步播放文本信息和音频文件,提高了用户的使用体验。In the embodiment of the present application, the second electronic device can implement playing the text information and the audio file in synchronization with the first electronic device, thereby improving the user experience.
第四方面,本申请实施例提供了一种多媒体内容同步方法,所述方法适用于第二电子设备,该方法包括:第二电子设备建立与第一电子设备的网络连接,然后第二电子设备接收第一电子设备发送音频文件的指令,因音频文件与文本信息关联,所以第二电子设备向第一电子设备发送音频文件的播放进度信息,使得第一电子设备根据所述第一电子设备和第二电子设备之间的网络时延和所述音频文件播放进度信息,调整所述文本信息。According to a fourth aspect, an embodiment of the present application provides a multimedia content synchronization method. The method is applicable to a second electronic device. The method includes: the second electronic device establishes a network connection with the first electronic device, and then the second electronic device Receiving the instruction of the first electronic device to send the audio file, because the audio file is associated with the text information, the second electronic device sends the playback progress information of the audio file to the first electronic device, so that the first electronic device according to the first electronic device and Adjust the text information by the network delay between the second electronic device and the audio file playback progress information.
本申请实施例中,第二电子设备可以实现与第一电子设备同步播放文本信息和音频文件,提高了用户的使用体验。In the embodiment of the present application, the second electronic device can implement playing the text information and the audio file in synchronization with the first electronic device, thereby improving the user experience.
第五方面,本申请实施例提供一种电子设备,包括处理器和存储器。其中,存储器用于存储一个或多个计算机程序;当存储器存储的一个或多个计算机程序被处理器执行时,使得该电子设备能够实现上述任一方面的任意一种可能的设计的方法。In a fifth aspect, an embodiment of the present application provides an electronic device including a processor and a memory. The memory is used to store one or more computer programs; when the one or more computer programs stored in the memory are executed by a processor, the electronic device can implement any one of the possible design methods of the foregoing aspects.
第六方面,本申请实施例还提供一种装置,该装置包括执行上述任一方面的任意一种可能的设计的方法的模块/单元。这些模块/单元可以通过硬件实现,也可以通过硬件执行相应的软件实现。According to a sixth aspect, an embodiment of the present application further provides an apparatus, which includes a module / unit that executes any one of the possible design methods of the foregoing aspects. These modules / units can be implemented by hardware, and can also be implemented by hardware executing corresponding software.
第七方面,本申请实施例中还提供一种计算机可读存储介质,所述计算机可读存储介质包括计算机程序,当计算机程序在电子设备上运行时,使得所述电子设备执行上述任一方面的任意一种可能的设计的方法。In a seventh aspect, an embodiment of the present application further provides a computer-readable storage medium, where 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 execute any of the foregoing aspects Any of the possible design methods.
第八方面,本申请实施例还提供一种包含计算机程序产品,当所述计算机程序产品在终端上运行时,使得所述电子设备执行上述任一方面的任意一种可能的设计的方法。In an eighth aspect, an embodiment of the present application further provides a method including a computer program product, when the computer program product runs on a terminal, causing the electronic device to execute any one of the possible designs of the foregoing aspects.
本申请的这些方面或其他方面在以下实施例的描述中会更加简明易懂。These or other aspects of the present application will be more concise and easy to understand in the description of the following embodiments.
图1为本申请实施例提供的一种互联场景示意图;FIG. 1 is a schematic diagram of an interconnection scenario according to an embodiment of the present application;
图2为本申请实施例提供的一种手机的结构示意图;2 is a schematic structural diagram of a mobile phone according to an embodiment of the present application;
图3为本申请实施例提供的安卓操作系统结构示意图;3 is a schematic structural diagram of an Android operating system according to an embodiment of the present application;
图4为本申请实施例提供的一种K歌场景示意图;4 is a schematic diagram of a K song scene provided by an embodiment of the present application;
图5为本申请实施例提供的一组界面示意图;FIG. 5 is a schematic diagram of a group of interfaces according to an embodiment of the present application; FIG.
图6为本申请实施例提供的另一种K歌场景示意图;6 is a schematic diagram of another K song scene provided by an embodiment of the present application;
图7为本申请实施例提供的另一组界面示意图;FIG. 7 is a schematic diagram of another group of interfaces according to an embodiment of the present application; FIG.
图8为本申请实施例提供的另一组界面示意图;FIG. 8 is a schematic diagram of another group of interfaces according to an embodiment of the present application; FIG.
图9为本申请实施例提供的另一组界面示意图;FIG. 9 is a schematic diagram of another group of interfaces according to an embodiment of the present application; FIG.
图10为本申请实施例提供的另一组界面示意图;10 is a schematic diagram of another group of interfaces according to an embodiment of the present application;
图11为本申请实施例提供的另一组界面示意图;FIG. 11 is a schematic diagram of another group of interfaces according to an embodiment of the present application; FIG.
图12为本申请实施例提供的另一组界面示意图;FIG. 12 is a schematic diagram of another group of interfaces according to an embodiment of the present application; FIG.
图13为本申请实施例提供的另一组界面示意图;FIG. 13 is a schematic diagram of another group of interfaces according to an embodiment of the present application; FIG.
图14为本申请实施例提供的一种智能音箱示意图;14 is a schematic diagram of a smart speaker according to an embodiment of the present application;
图15为本申请实施例提供的另一组界面示意图;FIG. 15 is a schematic diagram of another group of interfaces according to an embodiment of the present application; FIG.
图16-1为本申请实施例提供的另一组界面示意图;FIG. 16-1 is a schematic diagram of another group of interfaces according to an embodiment of the present application; FIG.
图16-2为本申请实施例提供的另一组界面示意图;16-2 is a schematic diagram of another group of interfaces provided by an embodiment of the present application;
图17为本申请实施例提供的另一种K歌场景示意图;FIG. 17 is a schematic diagram of another K song scene provided by an embodiment of the present application; FIG.
图18为本申请实施例提供的一种多媒体内容同步方法流程示意图;18 is a schematic flowchart of a multimedia content synchronization method according to an embodiment of the present application;
图19为本申请实施例提供的一种同步过程流程图;19 is a flowchart of a synchronization process according to an embodiment of the present application;
图20为本申请实施例提供的另一种网络时延计算过程流程图;20 is a flowchart of another network delay calculation process according to an embodiment of the present application;
图21为本申请实施例提供的另一种同步过程流程图;21 is a flowchart of another synchronization process according to an embodiment of the present application;
图22为本申请实施例提供的另一组界面示意图;22 is a schematic diagram of another group of interfaces according to an embodiment of the present application;
图23为本申请实施例提供的一种手机和智能音箱结构示意图;23 is a schematic structural diagram of a mobile phone and a smart speaker according to an embodiment of the present application;
图24为本申请实施例提供的另一种K歌实现过程示意图;FIG. 24 is a schematic diagram of another K song implementation process provided by an embodiment of the present application; FIG.
图25为本申请实施例提供的另一种K歌实现过程示意图;FIG. 25 is a schematic diagram of another K song implementation process provided by an embodiment of the present application; FIG.
图26a为本申请实施例提供的另一种多媒体内容同步方法流程示意图;FIG. 26a is a schematic flowchart of another multimedia content synchronization method according to an embodiment of the present application; FIG.
图26b为本申请实施例提供的另一种K歌实现过程示意图;26b is a schematic diagram of another K song implementation process provided by an embodiment of the present application;
图27为本申请实施例提供的另一种K歌实现过程示意图;27 is a schematic diagram of another K song implementation process provided by an embodiment of the present application;
图28为本申请实施例提供的另一种K歌实现过程示意图;FIG. 28 is a schematic diagram of another K song implementation process provided by an embodiment of the present application; FIG.
图29为本申请实施例提供的另一种K歌场景示意图;FIG. 29 is a schematic diagram of another K song scene provided by an embodiment of the present application; FIG.
图30为本申请实施例提供的一种电子设备的结构示意图;30 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
图31为本申请实施例提供的另一种电子设备的结构示意图;FIG. 31 is a schematic structural diagram of another electronic device according to an embodiment of the present application; FIG.
图32为本申请实施例提供的一种电子设备的结构示意图;FIG. 32 is a schematic structural diagram of an electronic device according to an embodiment of the present application; FIG.
图33为本申请实施例提供的另一种电子设备的结构示意图。FIG. 33 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
为了便于理解,示例的给出了部分与本申请实施例相关概念的说明以供参考。如下所示:For ease of understanding, a description of some concepts related to the embodiments of the present application is given for reference. As follows:
多媒体(Multimedia)是多种媒体的综合,一般包括文本,声音和图像等多种媒体形式。Multimedia (Multimedia) is the integration of multiple media, generally including text, sound, and images.
K歌,又称卡拉OK,是一种伴奏系统,演唱者可以在预先录制的音乐伴奏下参与歌唱。其能通过声音处理使演唱者的声音得到美化与润饰,当再与音乐伴奏有机结合变成浑然一体的立体声歌曲。这种伴奏方式,给歌唱爱好者们带来了极大的方便和愉悦,是人们休闲娱乐的一种方式,受到广大群众的热爱。K song, also known as karaoke, is an accompaniment system. Singers can participate in singing with pre-recorded music accompaniment. It can beautify and retouch the singer's voice through sound processing. When it is organically combined with music accompaniment, it becomes an integrated stereo song. This style of accompaniment brings great convenience and joy to singing lovers. It is a way for people to entertain and entertain and is loved by the masses.
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. Among them, in the description of the embodiments of the present application, hereinafter, the terms “first” and “second” are only used for description purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. . Therefore, the features defined as “first” and “second” may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, unless otherwise stated, the meaning of "a plurality" is two or more.
本申请实施例提供的多媒体内容同步方法可以应用于如图1所示的多个电子设备100 基于通信网络互联的场景。其中,该通信网络可以是局域网,也可以是通过中继(relay)设备转接的广域网。当该通信网络为局域网时,示例性的,该通信网络可以是wifi热点网络、wifi P2P网络、蓝牙网络、zigbee网络或近场通信(near field communication,NFC)网络等近距离通信网络。当该通信网络为广域网时,示例性的,该通信网络可以是第三代移动通信技术(3rd-generation wireless telephone technology,3G)网络、第四代移动通信技术(the 4th generation mobile communication technology,4G)网络、第五代移动通信技术(5th-generation mobile communication technology,5G)网络、未来演进的公共陆地移动网络(public land mobile network,PLMN)或因特网等。在图1所示的场景中,不同电子设备之间可以通过通信网络交互数据,例如交互图片、文本、视频,或者交互电子设备对图片、文本或视频等对象处理后的结果。The multimedia content synchronization method provided in the embodiment of the present application can be applied to a scenario where multiple electronic devices 100 shown in FIG. 1 are interconnected based on a communication network. The communication network may be a local area network or a wide area network transferred through a relay device. When the communication network is a local area network, for example, the communication network may be a short distance communication network such as a wifi hotspot network, a wifi P2P network, a Bluetooth network, a zigbee network, or a near field communication (NFC) network. When the communication network is a wide area network, for example, the communication network may be a 3rd-generation wireless communication technology (3G) network, a 4th generation mobile communication technology (4G) ) Networks, 5th-generation mobile communication technology (5G) networks, public land mobile networks (PLMN) or the Internet that are evolving in the future. In the scenario shown in FIG. 1, different electronic devices can exchange data through a communication network, such as interactive pictures, text, and videos, or results of interactive electronic devices processing objects such as pictures, text, or videos.
在本申请一些实施例中,图1所示的电子设备100可以是还包含其他功能诸如个人数字助理和/或音乐播放器功能的便携式电子设备,诸如手机、平板电脑、具备无线通讯功能的可穿戴设备(如智能手表)等。便携式电子设备的示例性实施例包括但不限于搭载
或者其他操作系统的便携式电子设备。上述便携式电子设备也可以是其他便携式电子设备,诸如具有触敏表面(例如触控面板)的膝上型计算机(laptop)等。还应当理解的是,在本申请其他一些实施例中,上述电子设备100也可以不是便携式电子设备,而是具有触敏表面(例如触控面板)的台式计算机。
In some embodiments of the present application, the electronic device 100 shown in FIG. 1 may be a portable electronic device that further includes other functions such as a personal digital assistant and / or a music player function, such as a mobile phone, a tablet computer, and a wireless communication function Wearable devices (such as smart watches). Exemplary embodiments of portable electronic devices include, but are not limited to, carrying Or portable electronic devices with other operating systems. The aforementioned portable electronic device may also be other portable electronic devices, such as a laptop computer having a touch-sensitive surface (eg, a touch panel), or the like. It should also be understood that, in some other embodiments of the present application, the electronic device 100 may not be a portable electronic device, but a desktop computer with a touch-sensitive surface (such as a touch panel).
示例性地,如图2所示,下面以电子设备100为例对实施例进行具体说明。Exemplarily, as shown in FIG. 2, the embodiment is specifically described below by taking the electronic device 100 as an example.
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,USB接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及SIM卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a USB interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, and a wireless communication module 160 , Audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, pointer 192, camera 193, display 194, and SIM card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer parts than shown, or some parts may be combined, or some parts may be split, or different parts may be arranged. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.
处理器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 (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image, signal processor, ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU) Wait. Among them, different processing units may be independent devices or integrated in one or more processors.
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller may be a nerve center and a command center of the electronic device 100. The controller can generate operation control signals according to the instruction operation code and timing signals, and complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或 数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may further include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or used cyclically. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(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)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit (inter-integrated circuit, sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver receiver / transmitter (UART) interface, mobile industry processor interface (MIPI), general-purpose input / output (GPIO) interface, subscriber identity module (SIM) interface, and / Or universal serial bus (universal serial bus, USB) interface.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。The I2C interface is a two-way synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple sets of I2C buses. The processor 110 may be respectively coupled to a touch sensor 180K, a charger, a flash, a camera 193, and the like through different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to implement the touch function of the electronic device 100.
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, the processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to implement a function of receiving a call through a Bluetooth headset.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communications, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to implement the function of receiving calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus for asynchronous communication. The bus may be a two-way communication bus. It converts the data to be transferred between serial and parallel communications. In some embodiments, a UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with a Bluetooth module in the wireless communication module 160 through a UART interface to implement a Bluetooth function. In some embodiments, the audio module 170 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to implement a function of playing music through a Bluetooth headset.
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display 194, the camera 193, and the like. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), and the like. In some embodiments, the processor 110 and the camera 193 communicate through a CSI interface to implement a shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate through a DSI interface to implement a display function of the electronic device 100.
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface that complies with the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 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 a peripheral device. It can also be used to connect headphones and play audio through headphones. This interface can also be used to connect other electronic devices, such as AR devices.
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules illustrated in the embodiments of the present invention is only a schematic description, and does not constitute a limitation on the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection modes or a combination of multiple interface connection modes in the above embodiments.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is configured to receive a charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive a charging input of a wired charger through a USB interface. In some embodiments of wireless charging, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100. While the charge management module 140 is charging the battery 142, the power management module 141 can also provide power to the electronic device.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used to connect the battery 142, the charge management module 140 and the processor 110. The power management module 141 receives inputs from the battery 142 and / or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, number of battery cycles, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be provided in the same device.
电子设备100的无线通信功能可以通过天线模块1,天线模块2移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 may be implemented by the antenna module 1, the antenna module 2 mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将蜂窝网天线复用为无线局域网分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。The antenna 1 and the antenna 2 are used for transmitting and receiving 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 multiplexed to improve antenna utilization. For example, a cellular network antenna can be multiplexed into a wireless LAN diversity antenna. In other embodiments, the antenna may be used in conjunction with a tuning switch.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(Low Noise Amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 may provide a wireless communication solution including 2G / 3G / 4G / 5G and the like applied on the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave by the antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic wave, and transmit it to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic wave radiation through the antenna 1. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. The modulator is configured to modulate a 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 the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and disposed in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信 模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide wireless local area networks (WLAN), Bluetooth (Bluetooth, BT), global navigation satellite system (GNSS), frequency modulation (frequency modulation) FM), near field communication technology (NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency-modulate it, amplify it, and convert it into electromagnetic wave radiation through the antenna 2.
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备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 with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, 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 (GSM), a general packet radio service (GPRS), a code division multiple access (CDMA), and broadband. Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and / or IR technology. 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 systems (SBAS).
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 implements a display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing and is connected to the display 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用LCD(liquid crystal display,液晶显示屏),OLED(organic light-emitting diode,有机发光二极管),有源矩阵有机发光二极体或主动矩阵有机发光二极体(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个显示屏,N为大于1的正整数。The display screen 194 is used to display images, videos, and the like. The display screen 194 includes a display panel. The display panel can adopt LCD (liquid crystal display), OLED (organic light-emitting diode), active matrix organic light-emitting diode or active-matrix organic light-emitting diode emitting diodes (AMOLED), flexible light-emitting diodes (FLEDs), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (QLEDs), etc. In some embodiments, the electronic device 100 may include one or N display screens, where N is a positive integer greater than 1.
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 may implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP processes the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and the light is transmitted to the light receiving element of the camera through the lens. The light signal is converted into an electrical signal, and the light receiving element of the camera passes the electrical signal to the ISP for processing and converts the image to the naked eye. ISP can also optimize the image's noise, brightness, and skin tone. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, an ISP may be provided in the camera 193.
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头,N为大于1的正整数。The camera 193 is used to capture still images or videos. An object generates an optical image through a lens and projects it onto a photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs digital image signals to the DSP for processing. DSP converts digital image signals into image signals in standard RGB, YUV and other formats. In some embodiments, the electronic device 100 may include one or N cameras, where N is a positive integer greater than 1.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。A digital signal processor is used to process digital signals. In addition to digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform a Fourier transform on the frequency point energy and the like.
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:MPEG1, MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as: MPEG1, MPEG2, MPEG3, MPEG4, and so on.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural-network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transfer mode between neurons in the human brain, the NPU can quickly process input information and continuously learn. The NPU can realize applications such as intelligent recognition of the electronic device 100, such as image recognition, face recognition, speech recognition, text understanding, and the like.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, save music, videos and other files on an external memory card.
内部存储器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 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 application required by a function (such as a sound playback function, an image playback function, etc.) and the like. The storage data area may store data (such as audio data, phone book, etc.) created during the use of the electronic device 100. In addition, the memory 121 may include a high-speed random access memory, and may further include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone interface 170D, and an application processor. Such as music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is configured to convert digital audio information into an analog audio signal and output, and is also used to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。The speaker 170A, also called a "horn", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。The receiver 170B, also referred to as the "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 170B close to the human ear.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The microphone 170C, 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 make a sound through the mouth near the microphone 170C, and input a sound signal into the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones, 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 to achieve sound signal collection, noise reduction, identification of sound sources, and directional recording.
耳机接口170D用于连接有线耳机。耳机接口可以是USB接口,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The headset interface 170D is used to connect a wired headset. The earphone interface can be a USB interface or a 3.5mm open mobile electronic platform (OMTP) standard interface, and the American Cellular Telecommunications Industry Association (of the United States, CTIA) standard interface.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100 也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense a pressure signal, and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. The capacitive pressure sensor may be at least two parallel plates having a conductive material. When a 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 performed on 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 acting on the same touch position but different touch operation intensities may correspond to different operation instructions. For example, when a touch operation with a touch operation intensity lower than the first pressure threshold is applied to the short message application icon, an instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold is applied to the short message application icon, an instruction for creating a short message is executed.
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B may be used to determine a movement posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (ie, the x, y, and z axes) may be determined by the gyro sensor 180B. The gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shake, and calculates the distance that the lens module needs to compensate according to the angle, so that the lens cancels the shake of the electronic device 100 through the backward movement to achieve image stabilization. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。The barometric pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C, and assists in positioning and navigation.
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can detect the opening and closing of the flip leather case by using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip machine, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. Further, according to the opened and closed state of the holster or the opened and closed state of the flip cover, characteristics such as automatic unlocking of the flip cover are set.
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the magnitude of acceleration of the electronic device 100 in various directions (generally three axes). The magnitude and direction of gravity can be detected when the electronic device 100 is stationary. It can also be used to recognize the posture of electronic devices, and is used in applications such as switching between horizontal and vertical screens, and pedometers.
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。Distance sensor 180F for measuring distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F to measure the distance to achieve fast focusing.
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light through a light emitting diode. The electronic device 100 uses a photodiode to detect infrared reflected light from a nearby object. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficiently reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100. The electronic device 100 may use the proximity light sensor 180G to detect that the user is holding the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in holster mode, and the pocket mode automatically unlocks and locks the screen.
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。The ambient light sensor 180L is used to sense ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. Ambient light sensor 180L can also be used to automatically adjust white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touch.
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 may use the collected fingerprint characteristics to realize fingerprint unlocking, access application lock, fingerprint photographing, fingerprint answering an incoming call, and the like.
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 180J is used to detect the temperature. In some embodiments, the electronic device 100 executes a temperature processing strategy using the temperature detected by the temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds the threshold, the electronic device 100 performs a performance reduction of a processor located near the temperature sensor 180J so as to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid the abnormal shutdown of the electronic device 100 caused by the low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 performs a boost on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
触摸传感器180K,也称“触控面板”。可设置于显示屏194。用于检测作用于其上或附近的触摸操作。可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型,并通过显示屏194提供相应的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。The touch sensor 180K is also called "touch panel". Can be set on display 194. Used to detect touch operations on or near it. The detected touch operation may be passed to the application processor to determine the type of touch event, and a corresponding visual output is provided through the display screen 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100, which is different from the position where the display screen 194 is located.
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire a vibration signal of a human voice oscillating bone mass. Bone conduction sensor 180M can also contact the human pulse and receive blood pressure beating signals. In some embodiments, the bone conduction sensor 180M may also be provided in the headset. The audio module 170 may analyze a voice signal based on the vibration signal of the oscillating bone mass of the vocal part obtained by the bone conduction sensor 180M to implement a voice function. The application processor may analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M to implement a heart rate detection function.
按键190包括开机键,音量键等。按键可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The keys 190 include a power-on key, a volume key, and the like. The keys can be mechanical keys. It can also be a touch button. The electronic device 100 may receive a key input, and generate a key signal input related to user settings and function control of the electronic device 100.
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 may generate a vibration alert. The motor 191 can be used for vibration alert for incoming calls, and can also be used for touch vibration feedback. For example, the touch operation applied to different applications (such as taking pictures, playing audio, etc.) can correspond to different vibration feedback effects. Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects. Different application scenarios (such as time reminders, receiving information, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. Touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 can be an indicator light, which can be used to indicate the charging status, power change, and can also be used to indicate messages, missed calls, notifications, and so on.
SIM卡接口195用于连接用户标识模块(subscriber identity module,SIM)。SIM卡可以通过插入SIM卡接口,或从SIM卡接口拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。The SIM card interface 195 is used to connect to a subscriber identity module (SIM). The SIM card can be contacted and separated from the electronic device 100 by inserting or removing the SIM card interface. The electronic device 100 may support one or N SIM card interfaces, and N is a positive integer greater than 1. SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card, etc. Multiple SIM cards can be inserted into the same SIM card interface at the same time. The types of the multiple cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The electronic device 100 interacts with the network through a SIM card to implement functions such as calling and data communication. In some embodiments, the electronic device 100 uses an 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 software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present invention takes the layered architecture Android system as an example, and exemplifies the software structure of the electronic device 100.
图3是本发明实施例的电子设备100的软件结构框图。FIG. 3 is a software structural block diagram of an electronic device 100 according to an embodiment of the present invention.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。The layered architecture divides the software into several layers, each of which has a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, which are an application layer, an application framework layer, an Android runtime and system libraries, and a kernel layer from top to bottom.
应用程序层可以包括一系列应用程序包。The application layer can include a series of application packages.
如图3所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。As shown in Figure 3, the application package can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, SMS, etc.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (API) and a programming framework for applications at the application layer. The application framework layer includes some predefined functions.
如图3所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管 理器,资源管理器,通知管理器等。As shown in FIG. 3, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take a screenshot, etc.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, and so on.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls that display text, controls that display pictures, and so on. The view system can be used to build applications. The display interface can consist of one or more views. For example, the display interface including the SMS notification icon may include a view that displays text and a view that displays pictures.
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide a communication function of the electronic device 100. For example, management of call status (including connection, hang up, etc.).
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages that can disappear automatically after a short stay without user interaction. For example, the notification manager is used to inform download completion, message reminders, etc. The notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, text messages are displayed in the status bar, sounds are emitted, electronic equipment vibrates, and the indicator light flashes.
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library contains two parts: one is the functional functions that the Java language needs to call, and the other is the Android core library.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in a virtual machine. The virtual machine executes the java files of the application layer and the application framework layer as binary files. Virtual machines are used to perform object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。The system library can include multiple functional modules. For example: surface manager (media manager), media library (Media library), three-dimensional graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL) and so on.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The Surface Manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports a variety of commonly used audio and video formats for playback and recording, as well as still image files. The media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
2D图形引擎是2D绘图的绘图引擎。The 2D graphics engine is a graphics engine for 2D graphics.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer contains at least a display driver, a camera driver, an audio driver, and a sensor driver.
下面结合捕获拍照场景,示例性说明电子设备100软件以及硬件的工作流程。The following describes the workflow of the software and hardware of the electronic device 100 by way of example in conjunction with capturing a photographing scene.
当触摸传感器180K接收到触摸操作,相应的硬件中断被发给内核层。内核层将触摸操作加工成原始输入事件(包括触摸坐标,触摸操作的时间戳等信息)。原始输入事件被存储在内核层。应用程序框架层从内核层获取原始输入事件,识别该输入事件所对应的控件。以该触摸操作是触摸单击操作,该单击操作所对应的控件为相机应用图标的控件为例,相机应用调用应用框架层的接口,启动相机应用,进而通过调用内核层启动摄像头驱动,通过摄像头捕获静态图像或视频。When the touch sensor 180K receives a touch operation, a corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes touch operations into raw input events (including touch coordinates, time stamps of touch operations, and other information). Raw input events are stored at the kernel level. The application framework layer obtains the original input event from the kernel layer and identifies the control corresponding to the input event. Taking the touch operation as a touch and click operation, and the control corresponding to the click operation is the control of the camera application icon as an example, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer. The camera captures still images or videos.
以下实施例均可以在具有上述硬件结构的电子设备100实现。以下实施例将以电子设备100为例,对本申请实施例提供的多媒体内容同步方法进行说明。The following embodiments can all be implemented in the electronic device 100 having the above-mentioned hardware structure. The following embodiment will take the electronic device 100 as an example to describe the multimedia content synchronization method provided by the embodiment of the present application.
本申请实施例提供的多媒体内容同步方法可以使得互联的多个电子设备之间实现在电子设备播放伴奏音乐的情况下,其它电子设备显示与伴奏音乐同步的歌词。示例性地,电子设备可以是手机、智能音箱、智能电视等智能设备。其中,智能音箱,是对传统音箱的升级,用户可以通过语音指令对智能音箱进行控制,实现点播歌曲、播放天气预报等功能。The multimedia content synchronization method provided in the embodiment of the present application can enable multiple electronic devices connected to each other to display the lyrics synchronized with the accompaniment music when the electronic device plays the accompaniment music. Exemplarily, the electronic device may be a smart device such as a mobile phone, a smart speaker, or a smart TV. Among them, the smart speaker is an upgrade of the traditional speaker. The user can control the smart speaker through voice commands to implement functions such as on-demand songs and weather forecasting.
以下将结合附图和应用场景,对本申请实施例提供的多媒体内容同步方法进行详细介绍。The multimedia content synchronization method provided by the embodiments of the present application will be described in detail below with reference to the drawings and application scenarios.
场景一scene one
参见图4,主要以电子设备1和智能音箱之间的互联互通为例,电子设备1与房间内的智能音箱建立网络连接,当电子设备1检测到用户1的K歌请求操作后,电子设备1向智能音箱发送播放所述音频文件的指令,该指令可以包括音频文件,也可以是包括音频文件的访问链接信息。其中,电子设备1还保存有与该音频文件相关的文本信息,例如歌词。当智能音箱播放该音频文件时,电子设备1根据与智能音箱的网络时延,调整文本信息,是的电子设备1中显示的文本信息与智能音箱中的音频文件同步播放。Referring to FIG. 4, mainly taking the interconnection between the electronic device 1 and the smart speaker as an example, the electronic device 1 establishes a network connection with the smart speaker in the room. When the electronic device 1 detects the user's K song request operation, the electronic device 1 Send an instruction to play the audio file to the smart speaker, the instruction may include an audio file, or may include access link information of the audio file. The electronic device 1 also stores text information related to the audio file, such as lyrics. When the smart speaker plays the audio file, the electronic device 1 adjusts the text information according to the network delay with the smart speaker. The text information displayed in the electronic device 1 is synchronized with the audio file in the smart speaker.
举例来说,电子设备1响应于用户1对图5a所示的K歌应用501操作(例如点击),显示如图5b所示的界面,该界面包括单人模式和合唱模式这两个选项。参见图5b,当电子设备1检测到用户1作用于图5b中单人模式502的操作(例如点击)时,电子设备1显示如图5c所示的界面,该界面包括用户1收藏的两个歌曲的条目,分别是吻别和红豆。当电子设备1检测到用户1作用于图5c中吻别这一选项503的操作(例如点击)时,电子设备1显示图5d所示的界面,该界面滚动显示歌词,歌词提醒进度与智能音箱中的伴奏音频文件的播放进度同步。For example, in response to the user 1 operating (eg, clicking) on the K song application 501 shown in FIG. 5a, the electronic device 1 displays an interface as shown in FIG. 5b, which includes two options of a single mode and a chorus mode. Referring to FIG. 5b, when the electronic device 1 detects an operation (for example, clicking) performed by the user 1 on the single-player mode 502 in FIG. 5b, the electronic device 1 displays an interface as shown in FIG. 5c. The interface includes two favorites of the user 1 The entries of the song are kiss farewell and red beans. When the electronic device 1 detects an operation (for example, clicking) performed by the user 1 on the farewell option 503 in FIG. 5c, the electronic device 1 displays the interface shown in FIG. 5d, which scrolls the lyrics, reminds the progress of the lyrics, and the smart speaker The playback progress of the accompaniment audio file is synchronized.
场景二Scene two
参见图6,电子设备1和电子设备2与房间内的智能音箱建立网络连接,当电子设备1检测到用户1输入的K歌请求操作后,电子设备1向智能音箱发送播放所述音频文件的指令,该指令可以包括音频文件,也可以是包括音频文件的访问链接信息。电子设备1、电子设备2和智能音箱之间进行时钟同步,当智能音箱播放音频文件时,电子设备1和电子设备2根据网络时延调整歌词,使得电子设备1和电子设备2中显示的歌词提醒进度与智能音箱中的伴奏音频文件的播放进度同步。Referring to FIG. 6, the electronic device 1 and the electronic device 2 establish a network connection with the smart speaker in the room. When the electronic device 1 detects a K song request operation input by the user 1, the electronic device 1 sends a smart speaker to play the audio file. Instruction, the instruction may include an audio file, or may include access link information of the audio file. Clock synchronization is performed between the electronic device 1, the electronic device 2 and the smart speaker. When the smart speaker plays an audio file, the electronic device 1 and the electronic device 2 adjust the lyrics according to the network delay, so that the lyrics displayed in the electronic device 1 and the electronic device 2 The reminder progress is synchronized with the playback progress of the accompaniment audio file in the smart speaker.
举例来说,如图7所示,参见图7a,当电子设备1检测到用户1作用于图7b中合唱模式701的操作(例如点击)时,电子设备1显示如图7b所示的界面,该界面包括创建和加入这两项个选项。参见图7b,当电子设备1检测到用户1作用于图7b中创建702的操作(例如点击)时,电子设备1显示如图7c所示的界面,该界面显示电子设备1对应的设备名称为华为P20,且显示有电子设备1所创建的K歌群的二维码信息。For example, as shown in FIG. 7, referring to FIG. 7a, when the electronic device 1 detects an operation (for example, clicking) performed by the user 1 on the chorus mode 701 in FIG. 7b, the electronic device 1 displays an interface as shown in FIG. 7b. The interface includes two options for creating and joining. Referring to FIG. 7b, when the electronic device 1 detects an operation (for example, clicking) performed by the user 1 on the creation 702 in FIG. 7b, the electronic device 1 displays an interface as shown in FIG. 7c. Huawei P20, and displays the QR code information of K song group created by electronic device 1.
进一步地,在电子设备2扫描图7c所示的二维码信息加入该K歌群过程中,电子设备1显示如图7d所示的界面,该界面显示正在等待好友加入该K歌群,电子设备2对应的设备名称为苹果6S。当电子设备1确定电子设备2已加入到该K歌群之后,电子设备1显示如图7e所示的界面。图7e中的界面包括:K歌群中有两个成员,设备名称分别是华 为P20和苹果6S,其中收藏歌曲包括两个歌曲的条目,分别是吻别和红豆。Further, during the process in which the electronic device 2 scans the two-dimensional code information shown in FIG. 7C to join the K song group, the electronic device 1 displays an interface as shown in FIG. 7d, which displays that the friend is waiting to join the K song group. The device name corresponding to device 2 is Apple 6S. After the electronic device 1 determines that the electronic device 2 has joined the K song group, the electronic device 1 displays an interface as shown in FIG. 7e. The interface in Figure 7e includes: There are two members in the K song group, and the device names are Huawei P20 and Apple 6S. The favorite songs include two song entries, which are kiss farewell and red beans.
除此之外,本申请实施例还提供一种电子设备1邀请电子设备2加入K歌群的方式。具体地,如图8所示,当电子设备1检测到用户1作用于图8a中创建801的操作(例如点击)时,参见图8a所示,电子设备1显示如图8b所示的界面,该界面显示电子设备1正在搜索附近的电子设备,且已搜索到电子设备2,电子设备2的设备名称为苹果6s。当电子设备1检测到用户1作用于苹果6s对应的头像802时,电子设备1向电子设备2发送邀请加入K歌群的请求消息。In addition, the embodiment of the present application also provides a way for the electronic device 1 to invite the electronic device 2 to join the K song group. Specifically, as shown in FIG. 8, when the electronic device 1 detects an operation (such as clicking) performed by the user 1 on the creation 801 in FIG. 8 a, referring to FIG. 8 a, the electronic device 1 displays an interface as shown in FIG. 8 b. The interface shows that the electronic device 1 is searching for nearby electronic devices, and the electronic device 2 has been searched. The device name of the electronic device 2 is Apple 6s. When the electronic device 1 detects that the user 1 acts on the avatar 802 corresponding to the Apple 6s, the electronic device 1 sends a request message to the electronic device 2 inviting to join the K song group.
其中,需要说明的是,电子设备1搜索附近的电子设备的方式可以但不限于蓝牙、wifi热点、wifi直连或NFC等网络连接方式。示例性地,用户1可以进入设置菜单打开wifi热点这一网络类型,通过wifi热点搜索附近的电子设备。除此之外,用户1也可以通过通知栏的快捷功能控件选择打开wifi热点这一网络类型。It should be noted that the manner in which the electronic device 1 searches for nearby electronic devices may be, but is not limited to, network connection methods such as Bluetooth, wifi hotspot, wifi direct connection, or NFC. For example, the user 1 may enter a setting menu to open a network type of wifi hotspot, and search for nearby electronic devices through the wifi hotspot. In addition, user 1 can also choose to open the wifi hotspot network type through the shortcut function control in the notification bar.
进一步地,在电子设备2接收请求消息和加入该K歌群过程中,电子设备1显示如图8c所示的界面,该界面显示正在等待好友加入该K歌群,电子设备2对应的设备名称为苹果6S。当电子设备1确定电子设备2已加入到该K歌群之后,电子设备1显示如图8d所示的界面。图8d中的界面包括:K歌群中有两个成员,设备名称分别是华为P20和苹果6S,其中收藏歌曲包括两个歌曲的条目,分别是吻别和红豆。Further, during the process in which the electronic device 2 receives the request message and joins the K song group, the electronic device 1 displays an interface as shown in FIG. 8c, which shows that the device name corresponding to the electronic device 2 is waiting for a friend to join the K song group. For Apple 6S. After the electronic device 1 determines that the electronic device 2 has joined the K song group, the electronic device 1 displays an interface as shown in FIG. 8d. The interface in Figure 8d includes: There are two members in the K song group, and the device names are Huawei P20 and Apple 6S. The favorite songs include two song entries, which are kiss farewell and red beans.
本申请另一实施例中,如图9所示,当电子设备1检测到用户1作用于图7e或图8d所示的界面中的吻别这一选项中的K歌901控件的操作时,电子设备1显示如图9b所示的界面,电子设备2显示如图9c所示的界面,其中,图9b和图9c中的显示的内容相同,均包括K歌群中有两个成员,设备名称分别是华为P20和苹果6S,另外还包括歌曲名称“吻别”,以及播放进度和歌词等,其中图9b和图9c中的歌词提醒进度相同,均提醒到“我和你”。另外,图9b和图9c中还包括重复播放控件902、麦克控件903、结束控件904。当电子设备1检测用户1的声音时,麦克控件904会有音波变化,以提醒用户1正在收集用户的音频。以及,当电子设备2检测用户2的声音时,麦克控件904会有音波变化,以提醒用户2正在收集用户的音频。另外电子设备1检测到用户作用于结束控件904时,则结束并保持该歌曲的音频文件。In another embodiment of the present application, as shown in FIG. 9, when the electronic device 1 detects the operation of the K song 901 control in the option of the farewell option in the interface shown in FIG. 7e or FIG. 8d by the electronic device 1, the electronic device 1 Device 1 displays the interface as shown in Figure 9b, and electronic device 2 displays the interface as shown in Figure 9c. Among them, the content shown in Figures 9b and 9c is the same, both of which include two members in the K song group, and the device name They are Huawei P20 and Apple 6S, respectively, and also include the song title "Kiss Farewell", as well as the playback progress and lyrics. The lyrics reminders in Figure 9b and Figure 9c have the same progress, and both remind me to "me and you". In addition, FIG. 9b and FIG. 9c further include a repeat play control 902, a microphone control 903, and an end control 904. When the electronic device 1 detects the sound of the user 1, the microphone control 904 will have a sound wave change to remind the user 1 that the user's audio is being collected. And, when the electronic device 2 detects the sound of the user 2, the microphone control 904 will have a sound wave change to remind the user 2 that the user's audio is being collected. In addition, when the electronic device 1 detects that the user acts on the end control 904, it ends and holds the audio file of the song.
另一方面,本申请提供另一实施例,参见图10所示,电子设备2响应于用户2对图10a所示的K歌应用1001操作(例如点击),显示如图10b所示的界面,该界面包括单人模式和合唱模式这两个选项。参见图10b,当电子设备2检测到用户2作用于图10b中合唱模式1002的操作(例如点击)时,电子设备2显示如图10c所示的界面,该界面包括创建和加入这两项个选项。参见图10b,当电子设备2检测到用户2作用于图10b中加入1003的操作(例如点击)时,电子设备2显示如图10d所示的界面,该界面显示电子设备2正在扫描电子设备1的图7c界面显示的二维码信息。当电子设备2成功加入到电子设备1所创建的K歌群之后,电子设备2显示如图10e所示的界面,该界面包括K歌群中有两个成员,设备名称分别是华为P20和苹果6S,其中界面显示的“等待主手机开始播放”表示电子设备2正在等待电子设备1开始播放的指令。当电子设备1检测到用户1的K歌指令后,电子设备2和电子设备1均显示图10f所示的界面,该界面包括K歌群中有两个成员,设备名称分别是华为P20和苹果6S,另外还包括歌曲名称“吻别”,以及播放进度和歌词等,其中电子设备1和电子设备2的歌词提醒进度相同,均提醒到“我和你”。On the other hand, this application provides another embodiment. Referring to FIG. 10, the electronic device 2 responds to the user 2's operation (for example, clicking) on the K song application 1001 shown in FIG. 10a, and displays an interface as shown in FIG. 10b. The interface includes two options, single mode and chorus mode. Referring to FIG. 10b, when the electronic device 2 detects an operation (for example, clicking) performed by the user 2 on the chorus mode 1002 in FIG. 10b, the electronic device 2 displays an interface as shown in FIG. 10c. The interface includes creating and joining the two items. Options. Referring to FIG. 10b, when the electronic device 2 detects that the user 2 acts on the 1003 in FIG. 10b (for example, click), the electronic device 2 displays an interface as shown in FIG. 10d, which shows that the electronic device 2 is scanning the electronic device 1 The QR code information displayed on the interface of Figure 7c. After the electronic device 2 successfully joins the K song group created by the electronic device 1, the electronic device 2 displays an interface as shown in FIG. 10e. The interface includes two members of the K song group. The device names are Huawei P20 and Apple. 6S, where "waiting for the main mobile phone to start playing" displayed on the interface indicates that the electronic device 2 is waiting for the instruction of the electronic device 1 to start playing. When electronic device 1 detects the K song command from user 1, both electronic device 2 and electronic device 1 display the interface shown in FIG. 10f. The interface includes two members of the K song group, and the device names are Huawei P20 and Apple. 6S also includes the song title "Kiss Farewell", as well as the playback progress and lyrics. Among them, the electronic device 1 and electronic device 2 have the same lyrics reminder progress, and both remind me to "me and you".
在另一种可能的设计中,如图11所示,当电子设备2检测到用户2作用于图11a中加 入1101的操作(例如点击)时,电子设备2显示如图11b所示的界面,该界面显示电子设备2正在搜索附件的电子设备,且已搜索到电子设备1,电子设备1的设备名称为华为P20。当电子设备2检测到用户2作用于华为P20对应的头像1102时,电子设备2向电子设备1发送请求加入K歌群的请求消息。In another possible design, as shown in FIG. 11, when the electronic device 2 detects that the user 2 acts on the operation of adding 1101 in FIG. 11 a (such as clicking), the electronic device 2 displays an interface as shown in FIG. 11 b. The interface shows that the electronic device 2 is searching for the electronic device of the accessory, and the electronic device 1 has been searched. The device name of the electronic device 1 is Huawei P20. When the electronic device 2 detects that the user 2 acts on the avatar 1102 corresponding to the Huawei P20, the electronic device 2 sends a request message to the electronic device 1 requesting to join the K song group.
其中,需要说明的是,电子设备2搜索附近的电子设备的方式可以但不限于蓝牙、wifi热点、wifi直连或NFC等网络连接方式。示例性地,用户2可以进入电子设备2的设置菜单打开wifi热点这一网络类型,通过wifi热点搜索附近的电子设备。除此之外,用户2也可以通过通知栏的快捷功能控件选择打开wifi热点这一网络类型。It should be noted that the manner in which the electronic device 2 searches for nearby electronic devices may be, but is not limited to, network connection methods such as Bluetooth, wifi hotspot, wifi direct connection, or NFC. For example, the user 2 may enter the setting menu of the electronic device 2 to open the network type of wifi hotspot, and search for nearby electronic devices through the wifi hotspot. In addition, user 2 can also choose to open the wifi hotspot network type through the shortcut function control in the notification bar.
进一步地,当电子设备2成功加入到电子设备1所创建的K歌群之后,电子设备2显示如图11c所示的界面,该界面包括K歌群中有两个成员,设备名称分别是华为P20和苹果6S,其中界面显示的“等待主手机开始播放”表示电子设备2正在等待电子设备1开始播放的指令。当电子设备1检测到用户1的K歌指令后,电子设备2和电子设备1均显示图11d所示的界面,该界面包括K歌群中有两个成员,设备名称分别是华为P20和苹果6S,另外还包括歌曲名称“吻别”,以及播放进度和歌词等,其中电子设备1和电子设备2的歌词提醒进度相同,均提醒到“我和你”。Further, after the electronic device 2 successfully joins the K song group created by the electronic device 1, the electronic device 2 displays an interface as shown in FIG. 11c, which includes two members of the K song group, and the device names are Huawei P20 and Apple 6S, where "waiting for the main mobile phone to start playing" displayed on the interface indicates that the electronic device 2 is waiting for the instruction of the electronic device 1 to start playing. When electronic device 1 detects the K song command from user 1, both electronic device 2 and electronic device 1 display the interface shown in Figure 11d. This interface includes two members of the K song group. The device names are Huawei P20 and Apple. 6S also includes the song title "Kiss Farewell", as well as the playback progress and lyrics. Among them, the electronic device 1 and electronic device 2 have the same lyrics reminder progress, and both remind me to "me and you".
在本申请另一实施例中,当电子设备1和电子设备2均显示如图11d所示的界面后,电子设备1获取用户1的声音,生成用户1的音频信息,并发送至智能音箱播放,同时,电子设备2获取用户2的声音,生成用户2的音频信息,并发送至智能音箱播放。如图12所示,当电子设备1检测到用户1作用于图12a所示的界面中的麦克控制1201时,电子设备1向智能音箱发送播放暂停指令,并且电子设备1显示如图12b所示的界面,该界面中从麦克控件切换为暂停控件1202,且歌词停止滚动。同时,电子设备2显示显示如图12c所示的界面,图12c显示内容与图12b相同,也就是说电子设备2也停止滚动歌词。In another embodiment of the present application, after the electronic device 1 and the electronic device 2 both display the interface shown in FIG. 11d, the electronic device 1 obtains the voice of the user 1, generates audio information of the user 1, and sends the audio information to the smart speaker for playback. At the same time, the electronic device 2 acquires the voice of the user 2, generates audio information of the user 2, and sends the audio information to the smart speaker for playback. As shown in FIG. 12, when the electronic device 1 detects that the user 1 acts on the microphone control 1201 in the interface shown in FIG. 12a, the electronic device 1 sends a playback pause instruction to the smart speaker, and the electronic device 1 displays as shown in FIG. 12b Interface, the interface switches from the microphone control to the pause control 1202, and the lyrics stop scrolling. At the same time, the electronic device 2 displays and displays the interface shown in FIG. 12c, and the display content of FIG. 12c is the same as that of FIG. 12b, that is, the electronic device 2 also stops scrolling the lyrics.
在本申请其它实施例中,如图13所示,当电子设备1和电子设备2均显示如图11d所示的界面后,若电子设备2检测到用户2作用于图13a所示的界面中的麦克控制1301时,电子设备2显示如图13b所示的界面,该界面中从麦克控件切换为暂停控件1302,且歌词停止滚动。但是电子设备1仍显示如图13c所示的界面,即电子设备1正常显示歌词提醒。In other embodiments of the present application, as shown in FIG. 13, after the electronic device 1 and the electronic device 2 both display the interface shown in FIG. 11d, if the electronic device 2 detects that the user 2 acts on the interface shown in FIG. 13a When the microphone is controlled by 1301, the electronic device 2 displays an interface as shown in FIG. 13b. In this interface, the microphone control is switched to the pause control 1302, and the lyrics stop scrolling. However, the electronic device 1 still displays the interface shown in FIG. 13c, that is, the electronic device 1 normally displays the lyrics reminder.
另外,在一种可能的设计中,若电子设备2检测到用户2作用于图13a所示的界面中的麦克控制1301时,电子设备2也可以向智能音箱发送停止播放指令,然后,电子设备1和电子设备2均显示如图13b所示的界面。In addition, in a possible design, if the electronic device 2 detects that the user 2 acts on the microphone control 1301 in the interface shown in FIG. 13a, the electronic device 2 may also send a stop playback instruction to the smart speaker. Then, the electronic device Both 1 and electronic device 2 display the interface as shown in Figure 13b.
在本申请另一些实施例中,参见图14,当智能音箱检测到用户1或用户2作用于智能音箱控制面板上的暂停控件1401时,智能音箱向电子设备1和电子设备2发送播放暂停指令,电子设备1和电子设备2收到播放暂停指令后,均停止滚动歌词,且显示如图13b所示的界面。In other embodiments of the present application, referring to FIG. 14, when the smart speaker detects that the user 1 or the user 2 acts on the pause control 1401 on the smart speaker control panel, the smart speaker sends a playback pause instruction to the electronic device 1 and the electronic device 2 After receiving the playback pause instruction, the electronic device 1 and the electronic device 2 both stop scrolling the lyrics and display the interface as shown in FIG. 13b.
在本申请另一些实施例中,例如,参见图15,当用户1完成吻别这一歌曲的演唱后,电子设备1将用户1和用户2的声音以及伴奏音乐进行混音,保存录制生成的音频文件,该音频文件包括用户1的音频信息,或者包括用户1和用户2合唱的音频信息。当电子设备1检测到用户作用于图15a所示的界面上的分享控制1501时,电子设备1显示如图15b所示的界面,该界面中包括多种分享方式,例如微信分享、QQ分享、蓝牙分享、WiFi热点分享,或者将访问链接保存到云端等方式。例如,参见图15b,当电子设备1检测到用 户1作用于图15b所示的界面中的微信分享1502控件的操作时,电子设备1显示如图15c所示的界面,用户1操作该界面的选择好友这一控件,电子设备1显示图15d所示的界面,该界面中显示用户1选择哥哥、妈妈、爸爸这三个人,当用户1操作发送控件时,电子设备1将上述音频文件发送至哥哥、妈妈、爸爸这三个人对应的电子设备。需要说明的是,电子设备1分享的可以是用户1的声音和用户2的声音以及伴奏音乐进行混音得到的音频文件,也可以是用户1的声音和伴奏音乐进行混音得到的音频文件。In other embodiments of the present application, for example, referring to FIG. 15, after the user 1 finishes kissing the song, the electronic device 1 mixes the sounds of the user 1 and the user 2 and the accompanying music, and saves the recorded audio. File, the audio file includes audio information of user 1 or audio information of user 1 and user 2 chorus. When the electronic device 1 detects that the user acts on the sharing control 1501 on the interface shown in FIG. 15a, the electronic device 1 displays the interface shown in FIG. 15b, which includes multiple sharing methods, such as WeChat sharing, QQ sharing, Bluetooth sharing, WiFi hotspot sharing, or saving access links to the cloud. For example, referring to FIG. 15b, when the electronic device 1 detects the operation of the user 1 acting on the WeChat share 1502 control in the interface shown in FIG. 15b, the electronic device 1 displays the interface shown in FIG. 15c, and the user 1 operates the interface. Selecting the control of a friend, the electronic device 1 displays an interface shown in FIG. 15d. The interface shows that the user 1 selects three persons: brother, mother, and father. When the user 1 operates the send control, the electronic device 1 sends the above audio file to Brother, mom, and dad are the corresponding electronic devices. It should be noted that the electronic device 1 may share an audio file obtained by mixing the voice of the user 1 and the sound of the user 2 and the accompanying music, or an audio file obtained by mixing the voice of the user 1 and the accompanying music.
另外,在本申请另一些实施例中,例如,参见图16-1,当电子设备1检测到用户作用于图16a所示的界面中的控件1601时,电子设备1显示如图16a所示的界面,该界面包括个人MV和视频合唱两种模式。若电子设备1当前是单人模式,则用户1可以选择个人MV模式,则电子设备1响应于用户1作用于个人MV1602的操作时,显示如图16c所示的界面,该界面中背景是正在录制的视频,并且歌词在视频上滚动显示,这样电子设备1就可以录制生成吻别这一歌曲的MV。录制结束后,电子设备1可以采用图15所示的方式分给给其它人。In addition, in some other embodiments of the present application, for example, referring to FIG. 16-1, when the electronic device 1 detects that the user acts on the control 1601 in the interface shown in FIG. 16a, the electronic device 1 displays the information shown in FIG. 16a. Interface, this interface includes two modes of personal MV and video chorus. If the electronic device 1 is currently in the single-person mode, the user 1 can select the personal MV mode. When the electronic device 1 responds to the operation of the user 1 on the personal MV1602, the interface shown in FIG. 16c is displayed. The recorded video, and the lyrics are scrolled on the video, so that the electronic device 1 can record and generate a music video of kissing this song. After the recording is finished, the electronic device 1 can be distributed to other people in the manner shown in FIG. 15.
还需要说明的是,上述场景一中电子设备1和智能音箱之间,以及场景二中电子设备1和电子设备2与智能音箱之间,可以采用近距离连接,也可以采用数据网络连接。例如,电子设备1和电子设备2、智能音箱可以基于wifi热点、wifi直连、蓝牙、zigbee或NFC等近距离连接方式建立连接。示例性的,电子设备1可以建立一个wifi热点,电子设备2和智能音箱可以接入该wifi热点,从而建立电子设备1与电子设备2之间的近距离连接。另外,电子设备1和电子设备2与智能音箱也可以接入同一wifi网络中,也就是连接到同一路由器,这样电子设备1和电子设备2与智能音箱也可以实现互联互通。上述场景需要的传数据输能力较强、传输速度较快,因而可以采用wifi热点或wifi直连等高效传输方式。It should also be noted that, between the electronic device 1 and the smart speaker in the above scenario 1, and between the electronic device 1 and the electronic device 2 and the smart speaker in the scenario 2, a short-distance connection or a data network connection may be used. For example, the electronic device 1 and the electronic device 2 and the smart speaker can establish a connection based on a short-range connection method such as a wifi hotspot, a wifi direct connection, Bluetooth, zigbee, or NFC. Exemplarily, the electronic device 1 may establish a wifi hotspot, and the electronic device 2 and the smart speaker may access the wifi hotspot, thereby establishing a short-distance connection between the electronic device 1 and the electronic device 2. In addition, the electronic device 1 and the electronic device 2 and the smart speaker can also be connected to the same wifi network, that is, connected to the same router, so that the electronic device 1 and the electronic device 2 and the smart speaker can also achieve interconnection and interoperability. The above scenarios require strong data transmission capabilities and fast transmission speeds, so efficient transmission methods such as wifi hotspot or wifi direct connection can be used.
另外,在本申请另一些实施例中,例如,当电子设备1检测到用户打开准音器控件时,电子设备1和电子设备2可以同时显示图16-2所示的界面,即电子设备1和电子设备2歌词滚动进度相同,且准音器移动位置相同。In addition, in other embodiments of the present application, for example, when the electronic device 1 detects that the user opens the microphone control, the electronic device 1 and the electronic device 2 may simultaneously display the interface shown in FIG. 16-2, that is, the electronic device 1 The progress of scrolling the lyrics is the same as that of the electronic device 2, and the movement position of the collimator is the same.
另外,本申请实施例还提供一些K歌场景,例如,如图17所示,当用户1在车内时,电子设备1可以与车内的智能音箱1702建立网络连接,当电子设备1接收用户1输入的K歌请求后,电子设备1根据K歌请求向智能音箱1702发送歌曲的伴奏音频文件、原唱音频文件。电子设备1还保存有该歌曲的歌词文件。当智能音箱1702播放该歌曲的伴奏音频文件时,电子设备1中显示的歌词提醒进度与智能音箱1702中的伴奏音频文件的播放进度同步。In addition, the embodiment of the present application also provides some K song scenes. For example, as shown in FIG. 17, when the user 1 is in the car, the electronic device 1 may establish a network connection with the smart speaker 1702 in the car, and when the electronic device 1 receives the user, After the input of the K song request, the electronic device 1 sends the accompaniment audio file and the original vocal audio file of the song to the smart speaker 1702 according to the K song request. The electronic device 1 also stores a lyrics file of the song. When the smart speaker 1702 plays the accompaniment audio file of the song, the progress of the lyrics reminder displayed in the electronic device 1 is synchronized with the playback progress of the accompaniment audio file in the smart speaker 1702.
示例性地,上述实施例中的智能音箱也可以替换为是电视、电脑、或者是手机等电子设备。例如,电子设备1是一个手机,它既作为智能音箱,同时它又作为一个麦克风,播放伴奏音乐的同时采集用户1的音频信息,电子设备2是另一个手机,该手机加入到合唱模式,与电子设备1的歌词同步后,采集用户2的音频信息,并发送至电子设备1播放。Exemplarily, the smart speaker in the foregoing embodiment may also be replaced with an electronic device such as a television, a computer, or a mobile phone. For example, electronic device 1 is a mobile phone that functions as both a smart speaker and a microphone, and collects audio information of user 1 while playing backing music. Electronic device 2 is another mobile phone. The mobile phone is added to the chorus mode, and After the lyrics of the electronic device 1 are synchronized, the audio information of the user 2 is collected and sent to the electronic device 1 for playing.
本申请实施例还提供了一种多媒体内容同步方法,该方法可以实现将电子设备之间的文本信息和音频文件进行同步播放。如图18所示,该方法包括:An embodiment of the present application further provides a method for synchronizing multimedia content, which can implement synchronous playback of text information and audio files between electronic devices. As shown in FIG. 18, the method includes:
1801、第二电子设备与第一电子设备建立网络连接。1801. A second electronic device establishes a network connection with the first electronic device.
例如,第一电子设备和第二电子设备可以基于wifi热点、wifi直连、蓝牙、zigbee或NFC等通信网络近距离连接。For example, the first electronic device and the second electronic device may be connected at a short distance based on a communication network such as a wifi hotspot, wifi direct connection, Bluetooth, zigbee, or NFC.
1802、检测用户的第一操作。1802: Detect a user's first operation.
示例性的,例如如图9a所示,该第一操作为用户1作用于K歌901控件的操作。在本申请实施例中,第一操作包括语音操作或手势操作。其中,手势操作可以包括触摸手势或悬浮手势。触摸手势可以包括但不限于点击击、双击、长按、压力按或拖拽等。Exemplarily, for example, as shown in FIG. 9a, the first operation is an operation that the user 1 acts on the K song 901 control. In the embodiment of the present application, the first operation includes a voice operation or a gesture operation. The gesture operation may include a touch gesture or a hover gesture. Touch gestures can include, but are not limited to, clicking, double clicking, long pressing, pressing or dragging, and the like.
1803、响应于第一操作,第一电子设备显示第一界面,向第二电子设备发送播放音频文件的指令。1803. In response to the first operation, the first electronic device displays a first interface, and sends an instruction to play an audio file to the second electronic device.
示例性的,第一界面如图9b所示。第一界面中包括文本信息,而且文本信息与音频文件关联。Exemplarily, the first interface is shown in FIG. 9b. The first interface includes text information, and the text information is associated with the audio file.
1804、第一电子设备根据第一电子设备和第二电子设备之间的网络时延,调整文字信息,使得文字信息与音频文件同步播放。1804. The first electronic device adjusts the text information according to a network delay between the first electronic device and the second electronic device, so that the text information and the audio file are played synchronously.
示例性的,如图9b所示,当智能音箱的音频文件播放到“我和你”对应的伴奏时,电子设备1显示歌词提醒“我和你”。Exemplarily, as shown in FIG. 9b, when the audio file of the smart speaker is played to the accompaniment corresponding to "me and you", the electronic device 1 displays a lyrics reminding "me and you".
另外需要说明的是,第一电子设备的文字信息与音频文件同步播放,可以指智能音箱播放到“我和你”对应的伴奏时,电子设备1相对提前文字信息的播放进度0.5秒,播放至“我和你吻别”。It should also be noted that the text information of the first electronic device is played synchronously with the audio file, which can mean that when the smart speaker plays the accompaniment corresponding to "me and you", the electronic device 1 advances the playback of the text information by 0.5 seconds in advance. "I kiss you goodbye."
在本申请实施例中,第二电子设备播放的音频文件可以是来自第一电子设备发送的播放音频文件的指令,也可以是根据播放音频文件的指令中的链接信息从云端服务器中获取,例如从音乐云服务器中获取。In the embodiment of the present application, the audio file played by the second electronic device may be an instruction to play the audio file sent by the first electronic device, or may be obtained from the cloud server according to the link information in the instruction to play the audio file, for example, Obtained from the music cloud server.
在一种可能的实现中,第一电子设备和第二电子设备之间还可能存在时钟差,若该时钟差不为零,则第一电子设备还可以根据第一电子设备和第二电子设备之间的网络时延和时钟差,调整文字信息。In a possible implementation, there may also be a clock difference between the first electronic device and the second electronic device. If the clock difference is not zero, the first electronic device may also be based on the first electronic device and the second electronic device. Adjust the text information between network delay and clock difference.
其中,针对第一电子设备和第二电子设备之间的网络时延和时钟差,第一电子设备预先可以按照如下方式计算得出,具体参见图19所示。For the network delay and clock difference between the first electronic device and the second electronic device, the first electronic device can be calculated in advance in the following manner, as shown in FIG. 19.
步骤a,第一电子设备发送时钟同步请求至第二电子设备,第一电子设备记录该时钟同步请求的发送时刻为T1;Step a, the first electronic device sends a clock synchronization request to the second electronic device, and the first electronic device records that the sending time of the clock synchronization request is T1;
步骤b,第二电子设备接收到该时钟同步请求后,记录该时钟同步请求的接收时刻为T2;Step b, after the second electronic device receives the clock synchronization request, it records that the reception time of the clock synchronization request is T2;
步骤c,第二电子设备向第一电子设备发送时钟同步请求响应,第二电子设备记录该时钟同步请求响应的发送时刻为T3;Step c, the second electronic device sends a clock synchronization request response to the first electronic device, and the second electronic device records that the sending time of the clock synchronization request response is T3;
步骤d,第一电子设备接收到该时钟同步请求响应后,记录该时钟同步请求响应的接收时刻为T4;Step d, after receiving the clock synchronization request response, the first electronic device records that the reception time of the clock synchronization request response is T4;
步骤e,第二电子设备向第一电子设备发送T2和T3,第一电子设备根据T1、T2、T3、T4计算网络时延和时钟差。Step e: The second electronic device sends T2 and T3 to the first electronic device, and the first electronic device calculates the network delay and clock difference according to T1, T2, T3, and T4.
具体地,假设第一电子设备至第二电子设备的网络时延,与第二电子设备至第一电子设备的网络时延相同,标记为T
delay,第一电子设备至第二电子设备之间的时钟差标记为T
offset,则存在如下等式:
Specifically, it is assumed that the network delay from the first electronic device to the second electronic device is the same as the network delay from the second electronic device to the first electronic device, and is labeled as T delay , between the first electronic device and the second electronic device. The clock difference is marked as T offset , then the following equation exists:
T1+T
offset+T
delay=T2……………………….公式[1]
T1 + T offset + T delay = T2 …………………………. Formula [1]
T3-T
offset+T
delay=T4……………………….公式[2]
T3-T offset + T delay = T4 …………………………. Formula [2]
因此,可计算得出:Therefore, it can be calculated:
可选地,考虑到网络时延会随着网络质量波动而变化,因此本申请实施例还提供一种网络时延计算方式,即每隔设定时长(例如300ms)发起一次图19所示的网络时延计算,当多次计算得到网络时延变化较大时,更新至最新计算得到的网络时延值,具体参见图20所示。Optionally, considering that the network delay may change as the network quality fluctuates, the embodiment of the present application also provides a network delay calculation method, that is, the network as shown in FIG. 19 is initiated every set time (for example, 300ms). Network delay calculation. When the network delay varies greatly after multiple calculations, update to the latest calculated network delay value. For details, see Figure 20.
步骤2001,第一电子设备按照图19所示的网络时延计算方法,每个设定时长计算得到一个网络时延值。In step 2001, the first electronic device calculates a network delay value according to the network delay calculation method shown in FIG. 19 for each set duration.
步骤2002,第一电子设备将计算得到的网络时延值保存到网络时延列表中。In step 2002, the first electronic device saves the calculated network delay value to a network delay list.
步骤2003,当第一电子设备判断网络时延列表中的网络时延值的个数达到预设值,例如网络时延列表中有5个时延值,则第一电子设备继续执行步骤2004,否则跳转至步骤2001。In step 2003, when the first electronic device determines that the number of network delay values in the network delay list reaches a preset value, for example, there are 5 delay values in the network delay list, the first electronic device proceeds to step 2004. Otherwise, go to step 2001.
步骤2004,第一电子设备对网络时延列表中的所有时延值进行方差计算。In step 2004, the first electronic device performs variance calculation on all delay values in the network delay list.
步骤2005,第一电子设备判断计算得到的方差不小于设定阈值时,则继续执行步骤2006,否则执行步骤2007。In step 2005, when the first electronic device determines that the calculated variance is not less than a set threshold, it continues to perform step 2006, otherwise it executes step 2007.
步骤2006,第一电子设备不更新当前的时延值。In step 2006, the first electronic device does not update the current delay value.
步骤2007,第一电子设备将当前的时延至最近一次计算得到的时延值,即最新时延值。In step 2007, the first electronic device delays the current delay to the latest calculated delay value, that is, the latest delay value.
也就是说,当短时间内网络质量波动较大时,则会出现连续多次计算的网络时延值之间的方差偏差较大。当网络质量波动较小时,则其方差值也会较小。因此第一电子设备每5个时延值计算一次方差,如果方差小于预设阈值,则更新当前的时延至最近一次计算得到的时延值;如果方差不小于预设阈值,则不更新时延值。In other words, when the network quality fluctuates greatly in a short period of time, there will be a large variance deviation between the network delay values that are calculated multiple times in a row. When the network quality fluctuates less, its variance value will also be smaller. Therefore, the first electronic device calculates the variance every 5 delay values. If the variance is less than the preset threshold, the current delay is updated to the latest calculated delay value. If the variance is not less than the preset threshold, the delay is not updated. value.
方式一,当第二电子设备向第一电子设备发送音频文件的播放进度信息,第一电子设备可以根据第二网络设备和第一网络设备之间的网络时延和该音频文件播放进度信息,计算得到文本信息的播放进度,然后根据文本信息的播放进度调整文本信息。需要说明的是,第二网络设备和第一网络设备之间的网络时延可能是正值,也可能是负值。Manner 1: When the second electronic device sends the playback progress information of the audio file to the first electronic device, the first electronic device may according to the network delay between the second network device and the first network device and the audio file playback progress information, The playback progress of the text information is calculated, and then the text information is adjusted according to the playback progress of the text information. It should be noted that the network delay between the second network device and the first network device may be a positive value or a negative value.
方式二,当第二电子设备向第一电子设备发送音频文件的播放进度信息时,第一电子设备可以根据第二网络设备和第一网络设备之间的网络时延、时钟差和该音频文件播放进度信息,计算得到文本信息的播放进度,然后第一电子设备根据该文本信息的播放进度调整文本信息。Method 2: When the second electronic device sends the playback progress information of the audio file to the first electronic device, the first electronic device may use the network delay, the clock difference, and the audio file according to the network delay between the second network device and the first network device. The playback progress information calculates the playback progress of the text information, and then the first electronic device adjusts the text information according to the playback progress of the text information.
方式三,当第二电子设备向第一电子设备发送预约播放指令时,因预约播放指令中包括第二电子设备在第一时刻之后经过预设等待时长开始播放音频文件,则第一电子设备可以根据第一时刻以及网络时延和预设等待时长,确定出第一时长。当确定出来该第一时长后,第一电子设备在接收到预约播放时刻之后经过第一时长后开始显示文本信息。Method 3: When the second electronic device sends a scheduled playback instruction to the first electronic device, because the scheduled playback instruction includes that the second electronic device starts playing the audio file after a preset waiting time after the first time, the first electronic device may The first duration is determined according to the first moment, the network delay, and the preset waiting duration. When the first time period is determined, the first electronic device starts displaying text information after the first time period has elapsed after receiving the scheduled playback time.
关于方式三的具体实现过程,包括如下步骤,参见图21所示。The specific implementation process of the third method includes the following steps, as shown in FIG. 21.
步骤2101,第一电子设备向第二电子设备发送播放音频文件的指令。Step 2101: The first electronic device sends an instruction to play an audio file to the second electronic device.
步骤2102,第二电子设备向第一电子设备发送预约播放指令,该预约播放指令中包括预设等待时长Twait,同时携带当前时刻T1。Step 2102: The second electronic device sends a scheduled playback instruction to the first electronic device. The scheduled playback instruction includes a preset waiting time period Twait, and at the same time carries the current time T1.
也就是说,预约播放指令指示第二电子设备在当前时刻T1之后经过Twait时长开始播 放音频文件。That is, the reserved play instruction instructs the second electronic device to start playing the audio file after the Twait time has elapsed after the current time T1.
步骤2103,第一电子设备接收该预约播放指令,并记录该预约播放指令的接收时刻T2。Step 2103: The first electronic device receives the scheduled playback instruction, and records a reception time T2 of the scheduled playback instruction.
步骤2104,第一电子设备根据T1、Twait和T2,以及已知的网络时延值,计算出第一电子设备的等待的时长Tn。Step 2104: The first electronic device calculates a waiting time period Tn of the first electronic device according to T1, Twait, and T2, and a known network delay value.
也就是说,第一电子设备在当前时刻T2之后经过Tn时长开始显示文本信息。That is, the first electronic device starts displaying text information after a time period Tn after the current time T2.
在步骤2104中,因第一电子设备和第二电子设备在同一时刻播放,所以满足如下条件:In step 2104, since the first electronic device and the second electronic device are playing at the same time, the following conditions are satisfied:
Tstart2=T2+Tn……………………….公式[5]Tstart2 = T2 + Tn ………………………. Formula [5]
Tstart1=T1+Twait……………………….公式[6]Tstart1 = T1 + Twait ... ……………………. Formula [6]
T2=T1+T
delay……………………….公式[7]
T2 = T1 + T delay …………………………. Formula [7]
其中,Tstart1是第一电子设备的播放时刻,Tstart2是第二电子设备的播放时刻,Twait是第一电子设备的等待时长,T
delay是第一电子设备和第二电子设备之间的网络时延。
Among them, Tstart1 is the playback time of the first electronic device, Tstart2 is the playback time of the second electronic device, Twait is the waiting time of the first electronic device, and T delay is the network delay between the first electronic device and the second electronic device. .
所以Tn=Twait-T
delay。
So Tn = Twait-T delay .
在一种可能的设计中,若第一电子设备和第二电子设备之间的时钟差不为零,则In a possible design, if the clock difference between the first electronic device and the second electronic device is not zero, then
T2=T1+T
delay+T
offset……………………….公式[8]
T2 = T1 + T delay + T offset …………………………. Formula [8]
其中,Tn=Twait-T
delay+T
offset,其中T
offset是第一电子设备和第二电子设备之间的时钟差。
Tn = Twait-T delay + T offset , where T offset is a clock difference between the first electronic device and the second electronic device.
基于图21所示的多媒体内容同步方法,本申请实施例还提供如图22所示的交互界面实现方式,例如,参见图22a,当智能音箱按照图21所示的方式,向电子设备1发送预约播放指令后,电子设备1中显示图22a至图22c所示的倒计时状态控件2201,当倒计时状态控件2201同时消失时,电子设备1同时开始滚动显示歌词,同时智能音箱开始同步播放伴奏。Based on the multimedia content synchronization method shown in FIG. 21, the embodiment of the present application also provides an implementation manner of the interactive interface shown in FIG. 22. For example, referring to FIG. 22a, when the smart speaker sends to the electronic device 1 in the manner shown in FIG. After the playback instruction is scheduled, the electronic device 1 displays a countdown status control 2201 shown in FIG. 22a to FIG. 22c. When the countdown status control 2201 disappears at the same time, the electronic device 1 starts to scroll the lyrics and the smart speaker starts to play the accompaniment simultaneously.
需要说明的是,基于物联网技术的发展,不同的电子设备可以实现云端互联或者本地互联,所以图19和图21所示的计算过程也可以由第三电子设备执行,其中,第三电子设备可以与第一电子设备和第二电子设备互联。例如,当第一电子设备和第二电子设备通过接入同一路由器实现互联互通时,路由器从第一电子设备获取T1、T2、T3和T4等信息,计算得到网络时延和时钟差,然后确定出第一电子设备的歌词播放进度,并将歌词播放进度发送至第一电子设备。其中,第三电子设备可以与第一电子设备和第二电子设备互联的手机、路由器、洗衣机、冰箱、电视等。另外,第一电子设备的文字信息与音频文件同步播放,可以指智能音箱播放到“”It should be noted that based on the development of the Internet of Things technology, different electronic devices can implement cloud interconnection or local interconnection. Therefore, the calculation process shown in FIG. 19 and FIG. 21 can also be performed by a third electronic device. Among them, the third electronic device It may be interconnected with the first electronic device and the second electronic device. For example, when the first electronic device and the second electronic device access the same router to achieve interconnection, the router obtains information such as T1, T2, T3, and T4 from the first electronic device, calculates the network delay and clock difference, and then determines The lyrics playback progress of the first electronic device is output, and the lyrics playback progress is sent to the first electronic device. The third electronic device may be a mobile phone, a router, a washing machine, a refrigerator, a television, or the like that is interconnected with the first electronic device and the second electronic device. In addition, the text information of the first electronic device is played synchronously with the audio file, which can mean that the smart speaker plays to ""
在本申请如下实施例中,以第一电子设备是手机,第二电子设备是智能音箱进行举例,对上述K歌过程的具体实现进行阐述。In the following embodiments of the present application, the first electronic device is a mobile phone and the second electronic device is a smart speaker. The specific implementation of the above-mentioned K song process will be described.
参见图23所示,手机侧除了包括APP控制、通信模块、wifi/蓝牙模块,还主要包括音效处理模块、麦克(MIC)录音模块、同步模块、歌词处理模块、多手机/智能音箱管理模块。As shown in FIG. 23, in addition to the APP control, communication module, and wifi / bluetooth module, the mobile phone side also mainly includes a sound processing module, a microphone (MIC) recording module, a synchronization module, a lyrics processing module, and a multi-phone / smart speaker management module.
其中,音效处理模块:主要完成本手机对人声录音后,对声音进行重音、回声、啸叫等处理;MIC录音模块:主要完成声音的录制、VAD处理;同步模块:利用网络同步算法对多设备之间的伴奏播放和歌词进行同步;歌词显示模块:根据同步算法获取到的结果,对歌词进行调整和显示;多手机/智能音箱管理模块:管理多手机和智能音箱合唱和接入。Among them, the sound effect processing module: mainly completes the process of accenting, echoing, howling, etc. after the mobile phone records the human voice; the MIC recording module: mainly completes the sound recording and VAD processing; the synchronization module: uses the network synchronization algorithm to The accompaniment playback and lyrics are synchronized between the devices; the lyrics display module: adjusts and displays the lyrics according to the results obtained by the synchronization algorithm; the multi-phone / smart speaker management module: manages the chorus and access of multiple phones and smart speakers.
智能音箱侧除了包括APP控制、通信模块、wifi/蓝牙模块,还主要包括伴奏处理模块、实时声音处理模块、同步模块、声音融合模块、放音模块、多手机管理模块。In addition to the APP control, communication module, and wifi / Bluetooth module, the smart speaker side also mainly includes accompaniment processing module, real-time sound processing module, synchronization module, sound fusion module, playback module, and multi-phone management module.
其中,伴奏处理模块:主要完成伴奏的传输、同步等;实时声音处理模块:利用时延算法对来自各手机的声音进行平滑处理,包括主动丢包、报文延时等算法,保证手机侧语音可以实时的在智能音箱侧进行接收和处理;同步模块:利用网络同步算法对多设备之间的伴奏播放和歌词进行同步;声音融合模块:将来自各手机的声音进行融合处理;放音模块:将人声和伴奏混音后进行播放;多手机管理模块:管理多手机合唱和接入。Among them, the accompaniment processing module: mainly completes the transmission and synchronization of the accompaniment; the real-time sound processing module: uses the delay algorithm to smooth the sound from each mobile phone, including algorithms such as active packet loss and message delay to ensure mobile phone side voice It can receive and process on the smart speaker side in real time; Synchronization module: use network synchronization algorithm to synchronize accompaniment playback and lyrics between multiple devices; sound fusion module: fusion processing of sound from various mobile phones; playback module: Mix vocals and accompaniment for playback; Multi-phone management module: Manage multi-phone chorus and access.
基于图23所示的结构,本申请实施例还提供图24所示的手机和智能音箱的交互示意图,对上述实施例中的单人模式的具体实现进行阐述。Based on the structure shown in FIG. 23, the embodiment of the present application further provides a schematic diagram of the interaction between the mobile phone and the smart speaker shown in FIG. 24, and illustrates the specific implementation of the single-person mode in the above embodiment.
步骤2401a~步骤2401e:手机的APP控制模块下发连接请求,手机的通信模块实际发起对智能音箱的连接,手机和智能音箱分别建立控制通道和数据通道。当通道连接建立后,手机侧的通信模块通知手机的APP控制模块已建立通信连接;智能音箱侧的通信模块通知智能音箱的APP控制模块已建立通信连接。Step 2401a to step 2401e: The APP control module of the mobile phone issues a connection request, the communication module of the mobile phone actually initiates a connection to the smart speaker, and the mobile phone and the smart speaker respectively establish a control channel and a data channel. When the channel connection is established, the communication module on the mobile phone side notifies the APP control module of the mobile phone that a communication connection has been established; the communication module on the smart speaker side notifies the APP control module of the smart speaker that a communication connection has been established.
步骤2402:手机侧的APP控制模块通知手机侧的同步模块启动同步。Step 2402: The APP control module on the mobile phone side notifies the synchronization module on the mobile phone side to start synchronization.
步骤2403:手机侧的同步模块向智能音箱侧的同步模块发送同步请求消息。Step 2403: The synchronization module on the mobile phone side sends a synchronization request message to the synchronization module on the smart speaker side.
步骤2404:智能音箱侧的同步模块向手机侧的同步模块发送同步响应消息。Step 2404: The synchronization module on the smart speaker side sends a synchronization response message to the synchronization module on the mobile phone side.
步骤2405:手机侧的同步模块进行同步计算,计算得到时延值和时钟差。Step 2405: The synchronization module on the mobile phone side performs synchronization calculation, and calculates the delay value and the clock difference.
步骤2406:智能音箱侧的同步模块进行同步计算,计算得到时延值和时钟差。Step 2406: The synchronization module on the smart speaker side performs synchronization calculation, and the delay value and the clock difference are calculated.
步骤2407:智能音箱侧的APP控制模块通知伴奏处理模块开始播放伴奏。Step 2407: The APP control module on the smart speaker side notifies the accompaniment processing module to start playing the accompaniment.
步骤2408:智能音箱侧的伴奏处理模块向智能音箱侧的同步模块发出预约播放指令。Step 2408: The accompaniment processing module on the smart speaker side sends a scheduled playback instruction to the synchronization module on the smart speaker side.
步骤2409:智能音箱侧的同步模块向手机侧的同步模块发出预约播放指令。Step 2409: The synchronization module on the smart speaker side issues an instruction to schedule playback to the synchronization module on the mobile phone side.
步骤2410:手机侧的同步模块接收到预约播放指令后,通知歌词显示模块进行歌词滚动和显示。Step 2410: After receiving the scheduled playback instruction, the synchronization module on the mobile phone side notifies the lyrics display module to scroll and display the lyrics.
步骤2411,智能音箱侧的伴奏处理模块向放音模块发送伴奏音频文件。Step 2411: The accompaniment processing module on the smart speaker side sends the accompaniment audio file to the playback module.
步骤2412:手机和智能音箱两侧根据预约的播放时间进行分别进行歌词处理和伴奏处理。Step 2412: both sides of the mobile phone and the smart speaker perform lyrics processing and accompaniment processing according to the scheduled playback time.
步骤2413:手机侧的MIC录音模块开始进行录音。Step 2413: The MIC recording module on the mobile phone side starts recording.
步骤2414:手机侧的MIC录音模块可以对声音进行语音活动检测(Voice Activity Detection,VAD)检查。例如手机侧的MIC录音模块进行音效处理,比如进行声音啸叫抑制、声音滤波、声音协调处理等等对声音本身的处理。Step 2414: The MIC recording module on the mobile phone side can perform voice activity detection (Voice, Activity Detection, VAD) inspection on the sound. For example, the MIC recording module on the mobile phone side performs sound effect processing, such as performing sound howling suppression, sound filtering, sound coordination processing, and the like on the sound itself.
步骤2415:手机侧的MIC录音模块对声音数据处理后,将声音数据发送给智能音箱。Step 2415: After the MIC recording module on the mobile phone processes the sound data, it sends the sound data to the smart speaker.
步骤2416:智能音箱接收到声音之后,实时声音处理模块对声音进行处理。Step 2416: After the smart speaker receives the sound, the real-time sound processing module processes the sound.
例如:实时声音处理模块对声音进行修补处理;对声音进行时延判断,对于延迟超过一定区间的声音进行丢弃或者取半音处理(因为人的耳朵对两个声音有辨识度)。For example: the real-time sound processing module performs repair processing on the sound; performs delay judgment on the sound, and discards or takes half-tone processing for the sound whose delay exceeds a certain interval (because human ears can recognize two sounds).
步骤2417:实时声音处理模块对声音处理后,将声音数据发送给智能音箱。Step 2417: After the real-time sound processing module processes the sound, it sends the sound data to the smart speaker.
步骤2418:智能音箱侧的声音融合模块将伴奏和人声进行混音处理。Step 2418: The sound fusion module on the smart speaker side mixes the accompaniment and the human voice.
步骤2419:智能音箱侧的放音模块最终将声音播放出去。Step 2419: The playback module on the smart speaker side finally plays the sound.
需要说明的是,上述图24中的步骤并不存在严格的先后顺序,另外,也并不一定需要全部执行,在实际的产品化过程中可以根据需要进行调整。It should be noted that the steps in FIG. 24 described above do not have a strict sequence, and in addition, they do not necessarily need to be performed all, and can be adjusted as needed in the actual production process.
另一方面,上述手机和智能音箱可以在同一空间建立通信连接,也可以在不同的空间 通过网络建立云连接。再者,手机和智能音箱可以采用预约时刻同时播放,也可以是在智能音箱播放过程中,手机通过上述同步机制对歌词进行实时对齐,例如:智能音箱主动上报播放进度Ta,手机侧根据同步机制计算T
delay,根据Ta和T
delay来决定当前歌词滚动进度。
On the other hand, the mobile phone and the smart speaker can establish a communication connection in the same space, and can also establish a cloud connection through the network in different spaces. In addition, the mobile phone and the smart speaker can be played simultaneously at the scheduled time, or during the playback of the smart speaker, the mobile phone uses the above synchronization mechanism to align the lyrics in real time. For example: the smart speaker actively reports the playback progress Ta, and the mobile phone side according to the synchronization mechanism Calculate T delay and determine the current scrolling progress of the lyrics based on Ta and T delay .
另外,本申请实施例还提供一实施例,该实施例公开了手机可以控制智能音箱的运行状态,使智能音箱暂停、继续、停止播放伴奏,参见图25所示。In addition, the embodiment of the present application also provides an embodiment, which discloses that the mobile phone can control the running state of the smart speaker, so that the smart speaker pauses, resumes, and stops playing the accompaniment, as shown in FIG. 25.
步骤2501,在K歌过程中,当手机检测到用户作用于暂停这一触控控件时,手机停止滚动歌词。In step 2501, during the K song process, when the mobile phone detects that the user acts on the pause touch control, the mobile phone stops scrolling the lyrics.
步骤2502,手机向智能音箱发送暂停播放指令。Step 2502: The mobile phone sends a pause instruction to the smart speaker.
步骤2503,智能音箱接收到暂停播放指令后,停止播放伴奏。In step 2503, the smart speaker stops playing the accompaniment after receiving the pause playback instruction.
需要说明的是,也可以是智能音箱控制手机的运行状态,其原理与图25所示的过程类似,在此不再赘述。It should be noted that the operating state of the mobile phone may also be controlled by a smart speaker, and the principle is similar to the process shown in FIG. 25, and details are not described herein again.
本申请实施例还提供一种多媒体内容同步方法,该方法由第三电子设备实现,对应上述实施例中的合唱模式的场景,该方法可以实现将加入合唱模型的多个电子设备之间的文本信息进行同步播放。如图26a所示,该方法包括:步骤2601a,第一电子设备与第三电子设备之间建立网络连接,具体连接方式与图18一致,不再赘述。步骤2602a,第一电子设备向第三电子设备发送播放文本信息的指令。其中,指令中包括所述第一电子设备当前播放的文本信息的进度信息。步骤2603a,第三电子设备根据第一电子设备和第三电子设备之间的网络时延和进度信息,调整第三电子设备的文本信息,使得所述第三电子设备的文本信息与所述第一电子设备的文本信息同步播放。An embodiment of the present application further provides a method for synchronizing multimedia content. The method is implemented by a third electronic device, corresponding to the scenario of the chorus mode in the foregoing embodiment. This method can implement text between multiple electronic devices that will be added to the chorus model Messages are synchronized. As shown in FIG. 26a, the method includes: Step 2601a. A network connection is established between the first electronic device and the third electronic device. The specific connection method is the same as that in FIG. Step 2602a: The first electronic device sends an instruction to play text information to the third electronic device. The instruction includes progress information of text information currently played by the first electronic device. Step 2603a, the third electronic device adjusts text information of the third electronic device according to the network delay and progress information between the first electronic device and the third electronic device, so that the text information of the third electronic device and the first electronic device The text messages of an electronic device are played synchronously.
如图9所示,若电子设备2加入到K歌群组之后,当电子设备1检测到用户作用于K歌这一控件的操作之后,电子设备1向电子设备2发送了播放文本信息的指令,电子设备2收到该指令后,根据网络时延调整文本信息,最终电子设备2显示的文本信息与电子设备1显示的文本信息一致,即如图9a和图9b所示。As shown in FIG. 9, after the electronic device 2 joins the K song group, after the electronic device 1 detects that the user acts on the control of the K song, the electronic device 1 sends an instruction to the electronic device 2 to play text information. After receiving the instruction, the electronic device 2 adjusts the text information according to the network delay. Eventually, the text information displayed by the electronic device 2 is consistent with the text information displayed by the electronic device 1, as shown in FIGS. 9a and 9b.
在一种可能的设计中,若第一电子设备和第三电子设备之间的时钟差不为零,则第一电子设备还可以根据网络时延、时钟差和进度信息,调整第三电子设备的文本信息。In a possible design, if the clock difference between the first electronic device and the third electronic device is not zero, the first electronic device may also adjust the third electronic device according to network delay, clock difference, and progress information. Text message.
需要说明的是,第一电子设备与第三电子设备之间的网络时延和时钟差的计算过程,如图19所示,此处不再赘述。It should be noted that the calculation process of the network delay and the clock difference between the first electronic device and the third electronic device is as shown in FIG. 19, and details are not described herein again.
进一步地,当第一电子设备、第二电子设备和第三电子设备之间建立的网络连接之后,方式一:第三电子设备录制用户的第一声音信息并向第一电子设备发送该第一声音信息,第一电子设备再将第一电子设备录制的第二声音信息和第一声音信息一起发送至第二电子设备,使得第二电子设备播放第二声音信息和第一声音信息。Further, after the network connection established between the first electronic device, the second electronic device, and the third electronic device, the first method: the third electronic device records the first sound information of the user and sends the first electronic device to the first electronic device Sound information, the first electronic device sends the second sound information recorded by the first electronic device together with the first sound information to the second electronic device, so that the second electronic device plays the second sound information and the first sound information.
方式二:第三电子设备录制用户的第一声音信息并向第二电子设备发送该第一声音信息,第一电子设备再将第一电子设备录制的第二声音信息发送至第二电子设备,使得第二电子设备播放第二声音信息和第一声音信息。Method 2: the third electronic device records the first sound information of the user and sends the first sound information to the second electronic device, and the first electronic device sends the second sound information recorded by the first electronic device to the second electronic device, The second electronic device is caused to play the second sound information and the first sound information.
举例来说,基于图23所示的结构,本申请实施例还提供图26b所示的手机和智能音箱的交互示意图,对上述实施例中的合唱模式的具体实现进行阐述。因在图24所示的实施例1中已经对单人模式的具体实现进行了详实说明,因此该实施例重点介绍副手机加入K歌的过程。For example, based on the structure shown in FIG. 23, the embodiment of the present application also provides a schematic diagram of the interaction between the mobile phone and the smart speaker shown in FIG. 26b, and illustrates the specific implementation of the chorus mode in the above embodiment. Since the specific implementation of the single-player mode has been described in detail in Embodiment 1 shown in FIG. 24, this embodiment focuses on the process of adding a K song to a secondary mobile phone.
步骤2601b,主手机在K歌之前或者K歌过程中生成二维码,二维码中可以包含主手 机的IP地址,智能音箱的IP地址等信息。In step 2601b, the main mobile phone generates a two-dimensional code before or during the K song. The two-dimensional code may include information such as the IP address of the main phone and the IP address of the smart speaker.
步骤2602b,副手机扫描该二维码,获取主手机IP地址和智能音箱的IP地址。Step 2602b, the secondary mobile phone scans the two-dimensional code to obtain the IP address of the main mobile phone and the IP address of the smart speaker.
步骤2603b,副手机向主手机发起连接,建立控制通道,用于歌词传递、同步处理、播放控制。Step 2603b, the secondary mobile phone initiates a connection to the primary mobile phone, and establishes a control channel for lyrics transmission, synchronization processing, and playback control.
步骤2604,副手机向智能音箱发起连接,建立数据通道,用于歌声传递。In step 2604, the secondary mobile phone initiates a connection to the smart speaker, and establishes a data channel for singing voice transmission.
步骤2605,主手机向副手机发送歌词文件。Step 2605: The primary mobile phone sends the lyrics file to the secondary mobile phone.
步骤2606,副手机和主手机之间进行同步处理,同步处理方式和上述实施例中主手机和智能音箱之间的同步处理机制类似,在此不再详细描述。In step 2606, synchronization processing is performed between the secondary mobile phone and the primary mobile phone. The synchronization processing method is similar to the synchronization processing mechanism between the primary mobile phone and the smart speaker in the foregoing embodiment, and details are not described herein again.
步骤2607,副手机根据同步处理结果,开始滚动和显示歌词,其中副手机的歌词提醒进度与主手机的歌词提醒进度一致。In step 2607, the secondary phone starts scrolling and displaying lyrics according to the synchronization processing result, and the progress of the lyrics reminder of the secondary phone is consistent with the progress of the lyrics reminder of the primary phone.
例如,此时主手机的歌词已经滚动到“我和你”,那么副手机也相应的滚动到该位置。For example, at this time, the lyrics of the primary phone have scrolled to "me and you", then the secondary phone also scrolls to this position accordingly.
步骤2608,副手机进行录音,并且将声音发送到智能音箱的声音处理模块。In step 2608, the secondary mobile phone performs recording and sends the sound to the sound processing module of the smart speaker.
其中,声音处理模块的处理方法和上述实施例类似,不再重复描述。The processing method of the sound processing module is similar to the foregoing embodiment, and is not described repeatedly.
步骤2609,智能音箱的声音处理模块将处理后的声音发送到声音融合模块。Step 2609: The sound processing module of the smart speaker sends the processed sound to the sound fusion module.
步骤2610,智能音箱的声音融合模块将主手机的声音、副手机的声音和伴奏融合在一起。Step 2610: The sound fusion module of the smart speaker fuses the sound of the primary mobile phone, the sound of the secondary mobile phone, and the accompaniment.
步骤2611,智能音箱的声音融合模块融合后的声音发送到放音模块。Step 2611: The fused sound of the sound fusion module of the smart speaker is sent to the playback module.
步骤2612,智能音箱的放音模块最终将主手机的声音、副手机的声音和伴奏一起播放处理。In step 2612, the playback module of the smart speaker finally plays and processes the sound of the primary mobile phone, the sound of the secondary mobile phone, and the accompaniment.
需要说明的是,合唱模式下同时合唱的手机可以2个或者更多,当其它副手机加入K歌过程时,与之类似,不再赘述。It should be noted that, in the chorus mode, there can be two or more mobile phones chorusing at the same time. When other sub-phones join the K song process, it is similar, and will not be described again.
另外,本申请实施例还提供一实施例,该实施例公开了主手机可以控制智能音箱和副手机的运行状态,使智能音箱和副手机暂停、继续、停止播放伴奏,具体实现参见图27所示。In addition, the embodiment of the present application also provides an embodiment. This embodiment discloses that the main mobile phone can control the running status of the smart speaker and the auxiliary mobile phone, so that the smart speaker and the auxiliary mobile phone can pause, resume, and stop playing the accompaniment. For specific implementation, see FIG. 27. Show.
步骤2701,在K歌过程中,当主手机检测到用户作用于暂停这一触控控件时,主手机停止滚动歌词。Step 2701: During the K song process, when the main mobile phone detects that the user acts on the touch control for pausing, the main mobile phone stops scrolling the lyrics.
步骤2702,主手机向智能音箱发送暂停K歌的控制指令。Step 2702: The main mobile phone sends a control instruction to pause the K song to the smart speaker.
步骤2703,智能音箱接收到控制指令后,执行暂停K歌的动作。Step 2703: After receiving the control instruction, the smart speaker executes the action of pausing K song.
步骤2704,主手机向副手机发送暂停K歌的控制指令。In step 2704, the primary mobile phone sends a control instruction to pause the K song to the secondary mobile phone.
步骤2705,副手机接收到控制指令后,执行暂停K歌的动作。Step 2705: After receiving the control instruction, the secondary mobile phone executes the action of pausing K song.
也就是说,当主手机检测到用户作用于暂停、继续、停止等控件时,会向智能音箱和副手机发送控制指令,智能音箱和副手机收到控制指令后,执行相应的暂停、继续、停止等动作。In other words, when the main phone detects that the user acts on controls such as pause, resume, and stop, it will send control instructions to the smart speaker and the secondary phone. After receiving the control instructions, the smart speaker and the secondary phone will execute the corresponding pause, resume, and stop And so on.
另外,本申请实施例还提供一实施例,该实施例公开了副手机可以控制自身和智能音箱的运行状态,但不能控制主手机的运行状态,具体实现参见图28所示。In addition, the embodiment of the present application also provides an embodiment. This embodiment discloses that the secondary mobile phone can control the running status of itself and the smart speaker, but cannot control the running status of the main mobile phone. For specific implementation, see FIG. 28.
步骤2801,在K歌过程中,当副手机检测到用户作用于暂停这一触控控件时,副手机停止滚动歌词。Step 2801: During the K song process, when the secondary mobile phone detects that the user acts on the touch control for pausing, the secondary mobile phone stops scrolling the lyrics.
步骤2802,副手机向智能音箱发送暂停K歌的控制指令。Step 2802, the secondary mobile phone sends a control instruction to pause the K song to the smart speaker.
步骤2803,智能音箱接收到控制指令后,执行暂停副手机的K歌的动作。Step 2803: After receiving the control instruction, the smart speaker executes the action of pausing the K song of the secondary mobile phone.
为了便于理解,本申请实施例针对场景一,结合图29对该场景一种可能的实现过程 进行系统阐述。For ease of understanding, this embodiment of the present application is directed to scenario 1, and a possible implementation process of the scenario is systematically described with reference to FIG. 29.
步骤2901,手机侧通过路由器和智能音箱侧建立网络连接,且手机侧和智能音箱侧建立控制通道和数据通道。Step 2901: The mobile phone side establishes a network connection with the smart speaker side through a router, and the mobile phone side and the smart speaker side establish a control channel and a data channel.
步骤2902,手机侧的APP控制模块接收用户的触控,开启K歌进程,并触发从云端获取音乐资源。In step 2902, the APP control module on the mobile phone side receives the user's touch, starts the K song process, and triggers the acquisition of music resources from the cloud.
步骤2903,智能音箱侧的处理器也从云端获取音乐资源,然后通知放音模块播放伴奏。Step 2903: The processor on the smart speaker side also obtains music resources from the cloud, and then notifies the playback module to play the accompaniment.
步骤2904,手机侧的MIC录音模块手机用户的声音,然后手机通过数据通道将用户的声音发送至智能音箱侧的处理器。In step 2904, the MIC recording module on the mobile phone side records the voice of the mobile phone user, and then the mobile phone sends the user's voice to the processor on the smart speaker side through the data channel.
步骤2905,智能音箱侧的处理器对用户的声音处理后,发送至放音模块播放。In step 2905, the processor on the smart speaker side processes the user's voice and sends it to the playback module for playback.
综上,本申请实施例利用多个电子设备之间的互联互通,应用到K歌场景,使得用户可以随时随地K歌,减低K歌的时间成本,增加全民生活娱乐体验。In summary, the embodiment of the present application utilizes the interconnection and interconnection between multiple electronic devices and is applied to the K song scene, so that the user can K song at any time, anywhere, reduce the time cost of K song, and increase the life and entertainment experience of the whole people.
需要说明的是,本申请实施例所提供的多媒体内容同步方法,还可以适用于音视频之间的同步,例如电子设备1播放MV,智能音箱播放音乐伴奏,具体的同步实现过程与上述方法一致,此处不再赘述。It should be noted that the multimedia content synchronization method provided in the embodiment of the present application can also be applied to synchronization between audio and video, for example, electronic device 1 plays MV, and smart speakers play music accompaniment. The specific synchronization implementation process is consistent with the above method. , Will not repeat them here.
在本申请的一些实施例中,本申请实施例公开了一种第一电子设备,如图30所示,该第一电子设备用于实现以上各个方法实施例中记载的方法,其包括:检测单元3001、显示单元3002、发送单元3003、处理单元3004。其中,检测单元3001用于支持第一电子设备执行图18中的步骤1802;显示单元3002用于支持第一电子设备执行图18中的步骤1802;发送单元3003用于支持电子设备执行图18中的步骤1802,处理单元3004用于支持电子设备执行图18中的步骤1804。其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。In some embodiments of the present application, an embodiment of the present application discloses a first electronic device. As shown in FIG. 30, the first electronic device is used to implement the methods described in the foregoing method embodiments, and includes: detecting A unit 3001, a display unit 3002, a sending unit 3003, and a processing unit 3004. Among them, the detection unit 3001 is configured to support the first electronic device to execute step 1802 in FIG. 18; the display unit 3002 is configured to support the first electronic device to execute step 1802 in FIG. 18; the sending unit 3003 is configured to support the electronic device to execute step 1802 in FIG. In step 1802, the processing unit 3004 is configured to support the electronic device to perform step 1804 in FIG. 18. Wherein, all relevant content of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, which will not be repeated here.
在本申请的另一些实施例中,本申请实施例公开了一种第一电子设备,如图31所示,该电子设备可以包括:触摸屏3101,其中,所述触摸屏3101包括触敏表面3106和显示屏3107;一个或多个处理器3102;存储器3103;一个或多个应用程序(未示出);以及一个或多个计算机程序3104,上述各器件可以通过一个或多个通信总线3105连接。其中该一个或多个计算机程序3104被存储在上述存储器3103中并被配置为被该一个或多个处理器3102执行,该一个或多个计算机程序3104包括指令,上述指令可以用于执行如图18及相应实施例中的各个步骤。In other embodiments of the present application, an embodiment of the present application discloses a first electronic device. As shown in FIG. 31, the electronic device may include a touch screen 3101, where the touch screen 3101 includes a touch-sensitive surface 3106 and Display screen 3107; one or more processors 3102; memory 3103; one or more application programs (not shown); and one or more computer programs 3104, each of which can be connected through one or more communication buses 3105. The one or more computer programs 3104 are stored in the memory 3103 and configured to be executed by the one or more processors 3102. The one or more computer programs 3104 include instructions, and the instructions can be used to execute 18 and the corresponding steps in the respective embodiments.
在本申请的一些实施例中,本申请实施例公开了一种第三电子设备,如图32所示,该第三电子设备用于实现以上各个方法实施例中记载的方法,其包括:连接单元3201、接收单元3202、以及处理单元3203。其中,连接单元3201用于支持第三电子设备执行图26a中的步骤2601a;接收单元3202用于支持第三电子设备执行图26a中的步骤3202a;处理单元3203用于支持第三电子设备执行图26a中的步骤2603a。其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。In some embodiments of the present application, an embodiment of the present application discloses a third electronic device. As shown in FIG. 32, the third electronic device is used to implement the methods described in the foregoing method embodiments, and includes: connecting A unit 3201, a receiving unit 3202, and a processing unit 3203. The connection unit 3201 is configured to support the third electronic device to execute step 2601a in FIG. 26a; the receiving unit 3202 is configured to support the third electronic device to execute step 3202a in FIG. 26a; and the processing unit 3203 is configured to support the third electronic device to execute the diagram. Step 2603a in 26a. Wherein, all relevant content of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, which will not be repeated here.
在本申请的另一些实施例中,本申请实施例公开了一种第三电子设备,如图33所示,该电子设备可以包括:触摸屏3301,其中,所述触摸屏3301包括触敏表面3306和显示屏3307;一个或多个处理器3302;存储器3303;一个或多个应用程序(未示出);以及一个或多个计算机程序3304,上述各器件可以通过一个或多个通信总线2605连接。其中该一个或多个计算机程序3304被存储在上述存储器3303中并被配置为被该一个或多个处理器3302执行,该一个或多个计算机程序3304包括指令,上述指令可以用于执行如图26a及 相应实施例中的各个步骤。In other embodiments of the present application, an embodiment of the present application discloses a third electronic device. As shown in FIG. 33, the electronic device may include a touch screen 3301, where the touch screen 3301 includes a touch-sensitive surface 3306 and Display screen 3307; one or more processors 3302; memory 3303; one or more application programs (not shown); and one or more computer programs 3304, each of which can be connected through one or more communication buses 2605. The one or more computer programs 3304 are stored in the memory 3303 and configured to be executed by the one or more processors 3302. The one or more computer programs 3304 include instructions, and the instructions may be used to execute 26a and the respective steps in the corresponding embodiment.
本申请实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机指令,当该计算机指令在电子设备上运行时,使得电子设备执行上述相关方法步骤实现上述实施例中的照片共享方法。An embodiment of the present application further provides a computer storage medium. The computer storage medium stores computer instructions. When the computer instructions are run on an electronic device, the electronic device is caused to execute the foregoing related method steps to implement the photo sharing method in the foregoing embodiment. .
本申请实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的多媒体内容同步方法。The embodiment of the present application further provides a computer program product, and when the computer program product runs on a computer, the computer is caused to execute the foregoing related steps to implement the multimedia content synchronization method in the foregoing embodiment.
另外,本申请的实施例还提供一种装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中的多媒体内容同步方法。In addition, an embodiment of the present application further provides a device. The device may specifically be a chip, a component, or a module. The device may include a connected processor and a memory. The memory is used to store a computer to execute instructions. When the device is running, The processor may execute computer execution instructions stored in the memory, so that the chip executes the multimedia content synchronization method in the foregoing method embodiments.
其中,本申请实施例提供的电子设备、计算机存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。The electronic devices, computer storage media, computer program products, or chips provided in the embodiments of the present application are used to execute the corresponding methods provided above. Therefore, for the beneficial effects that can be achieved, refer to the corresponding methods provided above. The beneficial effects in the method are not repeated here.
通过以上实施方式的描述,所属领域的技术人员可以了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。Through the description of the above embodiments, those skilled in the art can understand that, for the convenience and brevity of the description, only the above-mentioned division of the functional modules is used as an example. In practical applications, the above-mentioned functions can be assigned by different The function module is completed, that is, the internal structure of the device is divided into different function modules to complete all or part of the functions described above.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其他的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其他的形式。In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules or units is only a logical function division. In actual implementation, there may be another division manner. For example, multiple units or components may be combined or It can be integrated into another device, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, which may be electrical, mechanical or other forms.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may be one physical unit or multiple physical units, that is, they may be located in one place, or may be distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the objective of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each of the units may exist separately physically, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional unit.
集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on such an understanding, the technical solution of the embodiments of the present application is essentially a part that contributes to the existing technology or all or part of the technical solution may be embodied in the form of a software product that is stored in a storage medium. The instructions include a number of instructions for causing a device (which can be a single-chip microcomputer, a chip, or the like) or a processor to execute all or part of the steps of the methods in the embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above content is only a specific implementation of this application, but the scope of protection of this application is not limited to this. Any person skilled in the art can easily think of changes or replacements within the technical scope disclosed in this application. Covered within the scope of this application. Therefore, the protection scope of this application shall be subject to the protection scope of the claims.
Claims (11)
- 一种多媒体内容同步方法,应用于第一电子设备,其特征在于,所述方法包括:A multimedia content synchronization method applied to a first electronic device, characterized in that the method includes:建立与第二电子设备的网络连接;Establishing a network connection with the second electronic device;检测用户的第一操作;Detecting a user's first operation;响应于所述第一操作,显示第一界面,并向第二电子设备发送播放音频文件的指令,所述第一界面包括文本信息,所述文本信息与所述音频文件关联;In response to the first operation, displaying a first interface and sending an instruction to play an audio file to a second electronic device, the first interface includes text information, the text information being associated with the audio file;根据所述第一电子设备和第二电子设备之间的网络时延调整所述文本信息,使得所述文本信息与所述音频文件同步播放。Adjusting the text information according to a network delay between the first electronic device and the second electronic device, so that the text information is played in synchronization with the audio file.
- 如权利要求1所述的方法,其特征在于,在检测用户的第一操作之前,所述方法还包括:The method according to claim 1, wherein before detecting the first operation of the user, the method further comprises:向所述第二电子设备发送第一时钟同步请求;Sending a first clock synchronization request to the second electronic device;接收所述第二电子设备发送的第一时钟同步响应,所述第一时钟同步响应包括所述第二电子设备接收第一时钟同步请求的时刻,以及所述第二电子设备发送所述第一时钟同步响应的时刻;Receiving a first clock synchronization response sent by the second electronic device, the first clock synchronization response including a time when the second electronic device receives the first clock synchronization request, and the second electronic device sends the first clock synchronization response Time of clock synchronization response;根据所述第一电子设备发送所述第一时钟同步请求的发送时刻、所述第一电子设备接收所述第一时钟同步响应的接收时刻,所述第二电子设备接收第一时钟同步请求的接收时刻,以及所述第二电子设备发送所述第一时钟同步响应的发送时刻,确定所述第一电子设备和所述第二电子设备之间的网络时延。According to the sending time when the first electronic device sends the first clock synchronization request and the receiving time when the first electronic device receives the first clock synchronization response, the second electronic device receives the first clock synchronization request. The receiving time and the sending time at which the second electronic device sends the first clock synchronization response determine a network delay between the first electronic device and the second electronic device.
- 如权利要求2所述的方法,其特征在于,还包括:The method according to claim 2, further comprising:根据所述第一电子设备发送所述第一时钟同步请求的发送时刻、所述第一电子设备接收所述第一时钟同步响应的接收时刻,以及所述第二电子设备接收第一时钟同步请求的接收时刻,以及所述第二电子设备发送所述第一时钟同步响应的发送时刻,确定所述第一电子设备和所述第二电子设备之间时钟差;According to a sending time when the first electronic device sends the first clock synchronization request, a receiving time when the first electronic device receives the first clock synchronization response, and the second electronic device receives the first clock synchronization request Determining the receiving time of the second electronic device and the sending time of the second electronic device sending the first clock synchronization response, to determine a clock difference between the first electronic device and the second electronic device;若所述第一电子设备和所述第二电子设备之间的时钟差不为零,则根据所述第一电子设备和第二电子设备之间的网络时延调整所述文本信息,包括:If the clock difference between the first electronic device and the second electronic device is not zero, adjusting the text information according to a network delay between the first electronic device and the second electronic device includes:根据所述第一电子设备和第二电子设备之间的网络时延和时钟差调整所述文本信息。Adjusting the text information according to a network delay and a clock difference between the first electronic device and the second electronic device.
- 如权利要求1至3任一项所述的方法,其特征在于,所述根据所述第一电子设备和第二电子设备之间的网络时延调整所述文本信息之前,还包括:The method according to any one of claims 1 to 3, wherein before the adjusting the text information according to a network delay between the first electronic device and the second electronic device, further comprising:接收所述第二电子设备发送的预约播放指令,所述预约播放指令包括所述第二电子设备在第一时刻之后经过预设等待时长开始播放所述音频文件;Receiving a scheduled playback instruction sent by the second electronic device, where the scheduled playback instruction includes the second electronic device starting to play the audio file after a preset waiting time after the first time;所述根据所述第一电子设备和第二电子设备之间的网络时延调整所述文本信息,包括:The adjusting the text information according to a network delay between the first electronic device and the second electronic device includes:根据所述第一电子设备和第二电子设备之间的网络时延、所述第一时刻、以及所述预设等待时长,确定第一时长;Determining the first duration according to a network delay between the first electronic device and the second electronic device, the first time, and the preset waiting time;根据接收到所述预约播放指令的第二时刻和所述第一时长,调整所述文本信息。Adjusting the text information according to the second time and the first duration when the scheduled playback instruction is received.
- 如权利要求1至3任一项所述的方法,其特征在于,所述根据所述第一电子设备和第二电子设备之间的网络时延调整所述文本信息之前,还包括:The method according to any one of claims 1 to 3, wherein before the adjusting the text information according to a network delay between the first electronic device and the second electronic device, further comprising:接收所述第二电子设备发送的音频文件播放进度信息;Receiving audio file playback progress information sent by the second electronic device;所述根据所述第一电子设备和第二电子设备之间的网络时延调整所述文本信息,包括:The adjusting the text information according to a network delay between the first electronic device and the second electronic device includes:根据所述网络时延和所述音频文件播放进度信息,调整所述文本信息。Adjusting the text information according to the network delay and the audio file playback progress information.
- 如权利要求1至3任一项所述的方法,其特征在于,所述方法包括:The method according to any one of claims 1 to 3, wherein the method comprises:建立与第三电子设备的网络连接;Establishing a network connection with a third electronic device;接收所述第三电子设备发送的录制的第一声音信息;Receiving the recorded first sound information sent by the third electronic device;将所述第一电子设备录制的第二声音信息和所述第一声音信息发送至所述第二电子设备,使得所述第二电子设备播放所述第二声音信息和所述第一声音信息。Sending the second sound information and the first sound information recorded by the first electronic device to the second electronic device, so that the second electronic device plays the second sound information and the first sound information .
- 一种多媒体内容同步方法,应用于第三电子设备,其特征在于,所述方法包括:A multimedia content synchronization method applied to a third electronic device, characterized in that the method includes:建立与第一电子设备的网络连接;Establishing a network connection with the first electronic device;接收所述第一电子设备发送的播放文本信息的指令,所述指令包括所述第一电子设备当前播放的文本信息的进度信息;Receiving an instruction to play text information sent by the first electronic device, the instruction including progress information of text information currently played by the first electronic device;根据所述第一电子设备和第三电子设备之间的网络时延和所述进度信息,调整所述第三电子设备的文本信息,使得所述第三电子设备的文本信息与所述第一电子设备的文本信息同步播放。Adjusting text information of the third electronic device according to a network delay between the first electronic device and the third electronic device and the progress information, so that the text information of the third electronic device is in line with the first electronic device The text message of the electronic device is played synchronously.
- 如权利要求7所述的方法,其特征在于,在建立与第一电子设备的网络连接之后,获取所述第一电子设备当前播放的文本信息之前,所述方法还包括:The method according to claim 7, wherein after establishing a network connection with the first electronic device, and before acquiring text information currently played by the first electronic device, the method further comprises:向所述第一电子设备发送第二时钟同步请求;Sending a second clock synchronization request to the first electronic device;接收所述第一电子设备发送的第二时钟同步响应,所述时钟同步响应包括所述第三电子设备接收时钟同步请求的时刻,以及所述第一电子设备发送所述时钟同步响应的时刻;Receiving a second clock synchronization response sent by the first electronic device, where the clock synchronization response includes a time when the third electronic device receives a clock synchronization request, and a time when the first electronic device sends the clock synchronization response;根据所述第三电子设备发送所述第二时钟同步请求的发送时刻、和所述第三电子设备接收所述时钟同步响应的接收时刻,以及所述第一电子设备接收时钟同步请求的接收时刻,以及所述第一电子设备发送所述时钟同步响应的发送时刻,确定所述第一电子设备和所述第三电子设备之间的网络时延。According to a sending time when the third electronic device sends the second clock synchronization request, a receiving time when the third electronic device receives the clock synchronization response, and a receiving time when the first electronic device receives the clock synchronization request And the sending time at which the first electronic device sends the clock synchronization response, to determine a network delay between the first electronic device and the third electronic device.
- 如权利要求7所述的方法,其特征在于,还包括:The method according to claim 7, further comprising:根据所述第三电子设备发送所述第二时钟同步请求的发送时刻、和所述第三电子设备接收所述时钟同步响应的接收时刻,以及所述第一电子设备接收时钟同步请求的接收时刻,以及所述第一电子设备发送所述时钟同步响应的发送时刻,确定所述第一电子设备和所述第三电子设备之间时钟差;According to a sending time when the third electronic device sends the second clock synchronization request, a receiving time when the third electronic device receives the clock synchronization response, and a receiving time when the first electronic device receives the clock synchronization request And the sending time at which the first electronic device sends the clock synchronization response, to determine a clock difference between the first electronic device and the third electronic device;若所述第一电子设备和所述第三电子设备之间的时钟差不为零,则根据所述第一电子设备和第三电子设备之间的网络时延和所述进度信息,调整所述文本信息,包括:If the clock difference between the first electronic device and the third electronic device is not zero, then adjust the network clock according to the network delay between the first electronic device and the third electronic device and the progress information. Textual information, including:根据所述第一电子设备和第三电子设备之间的网络时延、所述第一电子设备和第三电子设备之间的时钟差和所述进度信息,调整所述文本信息。Adjusting the text information according to a network delay between the first electronic device and the third electronic device, a clock difference between the first electronic device and the third electronic device, and the progress information.
- 一种电子设备,其特征在于,包括一个或多个处理器和一个或多个存储器;An electronic device, comprising one or more processors and one or more memories;所述一个或多个存储器与所述一个或多个处理器耦合,所述一个或多个存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述一个或多个处理器执行所述计算机指令时,所述电子设备执行如权利要求1至9任一项所述的多媒体内容同步方法。The one or more memories are coupled to the one or more processors, and the one or more memories are configured to store computer program code, where the computer program code includes computer instructions, and when the one or more processors When the computer instruction is executed, the electronic device executes the multimedia content synchronization method according to any one of claims 1 to 9.
- 一种计算机存储介质,其特征在于,所述计算机可读存储介质包括计算机程序,当计算机程序在电子设备上运行时,使得所述电子设备执行如权利要求1至9任一项所述的多媒体内容同步方法。A computer storage medium, characterized in that the computer-readable storage medium includes a computer program, and when the computer program runs on an electronic device, causes the electronic device to execute the multimedia according to any one of claims 1 to 9 Content synchronization method.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2018/101202 WO2020034227A1 (en) | 2018-08-17 | 2018-08-17 | Multimedia content synchronization method and electronic device |
CN201880072195.7A CN111345010B (en) | 2018-08-17 | 2018-08-17 | Multimedia content synchronization method, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2018/101202 WO2020034227A1 (en) | 2018-08-17 | 2018-08-17 | Multimedia content synchronization method and electronic device |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020034227A1 true WO2020034227A1 (en) | 2020-02-20 |
Family
ID=69524555
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/101202 WO2020034227A1 (en) | 2018-08-17 | 2018-08-17 | Multimedia content synchronization method and electronic device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111345010B (en) |
WO (1) | WO2020034227A1 (en) |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111294626A (en) * | 2020-01-21 | 2020-06-16 | 腾讯音乐娱乐科技(深圳)有限公司 | Lyric display method and device |
CN112037741A (en) * | 2020-08-27 | 2020-12-04 | 深圳创维-Rgb电子有限公司 | Karaoke method, device, equipment and storage medium |
CN112286618A (en) * | 2020-11-16 | 2021-01-29 | Oppo广东移动通信有限公司 | Device cooperation method, device, system, electronic device and storage medium |
CN112492338A (en) * | 2020-11-27 | 2021-03-12 | 腾讯音乐娱乐科技(深圳)有限公司 | Online song room implementation method, electronic device and computer readable storage medium |
CN112967705A (en) * | 2021-02-24 | 2021-06-15 | 腾讯音乐娱乐科技(深圳)有限公司 | Mixed sound song generation method, device, equipment and storage medium |
CN113094541A (en) * | 2021-04-16 | 2021-07-09 | 网易(杭州)网络有限公司 | Audio playing method, electronic equipment and storage medium |
CN113225768A (en) * | 2021-04-29 | 2021-08-06 | 北京凯视达信息技术有限公司 | 4G/5G transmission network synchronization method |
CN113345478A (en) * | 2020-03-02 | 2021-09-03 | 海信视像科技股份有限公司 | Player time acquisition method, device, storage medium and player |
CN113867977A (en) * | 2020-06-30 | 2021-12-31 | 华为技术有限公司 | Equipment control method and equipment |
CN114201978A (en) * | 2020-09-18 | 2022-03-18 | 华为技术有限公司 | Method and related equipment for translating interface of application program |
CN114531413A (en) * | 2020-10-30 | 2022-05-24 | 华为技术有限公司 | Electronic device and mail synchronization method and readable medium thereof |
CN114666441A (en) * | 2020-12-22 | 2022-06-24 | 华为技术有限公司 | Method, electronic device and system for calling capabilities of other devices |
CN114827639A (en) * | 2021-01-28 | 2022-07-29 | 华为技术有限公司 | Multi-application distributed implementation method, readable medium and electronic device thereof |
CN115132235A (en) * | 2021-03-25 | 2022-09-30 | 炬力(珠海)微电子有限公司 | Playing device, playing system and synchronous control method thereof |
WO2023155583A1 (en) * | 2022-02-17 | 2023-08-24 | 华为技术有限公司 | Cross-device application management method, electronic device, and system |
CN116668763A (en) * | 2022-11-10 | 2023-08-29 | 荣耀终端有限公司 | Screen recording method and device |
WO2023217003A1 (en) * | 2022-05-07 | 2023-11-16 | 北京字跳网络技术有限公司 | Audio processing method and apparatus, device, and storage medium |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114546820B (en) * | 2020-11-24 | 2022-12-30 | 华为技术有限公司 | Application program debugging method and electronic equipment |
CN114827687B (en) * | 2021-01-29 | 2024-04-09 | 华为技术有限公司 | Communication method, mobile device, electronic device, and computer-readable storage medium |
CN113596547A (en) * | 2021-07-29 | 2021-11-02 | 海信电子科技(武汉)有限公司 | Display device, synchronous playing method and system |
CN116541589A (en) * | 2022-01-26 | 2023-08-04 | 花瓣云科技有限公司 | Broadcast record display method and related equipment |
CN115883895A (en) * | 2022-11-24 | 2023-03-31 | 四川长虹电器股份有限公司 | Method and system for transmitting audio of smart television in low delay |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20050076298A (en) * | 2004-01-20 | 2005-07-26 | 엘지전자 주식회사 | Video and audio synchronization apparatus of song player |
CN101174409A (en) * | 2006-10-24 | 2008-05-07 | 诺基亚公司 | System, method and device for providing multiple lyric kala OK system |
CN101237473A (en) * | 2008-02-27 | 2008-08-06 | 中兴通讯股份有限公司 | Method for dynamically playing lyric and mobile terminal and device for realizing this method |
CN103337240A (en) * | 2013-06-24 | 2013-10-02 | 华为技术有限公司 | Method for processing voice data, terminals, server and system |
CN103886881A (en) * | 2014-04-14 | 2014-06-25 | 福建星网视易信息系统有限公司 | Method and system for expanding song selecting library |
CN105808710A (en) * | 2016-03-05 | 2016-07-27 | 上海斐讯数据通信技术有限公司 | Remote karaoke terminal, remote karaoke system and remote karaoke method |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101132222B (en) * | 2006-08-22 | 2011-02-16 | 上海贝尔阿尔卡特股份有限公司 | Gateway equipment, communication network and synchronization method |
JP5454802B2 (en) * | 2011-07-29 | 2014-03-26 | ブラザー工業株式会社 | Karaoke equipment |
CN102982832B (en) * | 2012-11-24 | 2015-05-27 | 安徽科大讯飞信息科技股份有限公司 | Synchronization method of accompaniment, voice and subtitle for on-line karaoke |
EP2879345A4 (en) * | 2013-08-30 | 2015-08-19 | Huawei Tech Co Ltd | Method for multiple terminals to play multimedia file cooperatively and related apparatus and system |
CN104091423B (en) * | 2014-03-12 | 2019-02-12 | 腾讯科技(深圳)有限公司 | A kind of method for transmitting signals and family's order programme |
CN104184894A (en) * | 2014-08-21 | 2014-12-03 | 深圳市比巴科技有限公司 | Karaoke implementation method and system |
-
2018
- 2018-08-17 WO PCT/CN2018/101202 patent/WO2020034227A1/en active Application Filing
- 2018-08-17 CN CN201880072195.7A patent/CN111345010B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20050076298A (en) * | 2004-01-20 | 2005-07-26 | 엘지전자 주식회사 | Video and audio synchronization apparatus of song player |
CN101174409A (en) * | 2006-10-24 | 2008-05-07 | 诺基亚公司 | System, method and device for providing multiple lyric kala OK system |
CN101237473A (en) * | 2008-02-27 | 2008-08-06 | 中兴通讯股份有限公司 | Method for dynamically playing lyric and mobile terminal and device for realizing this method |
CN103337240A (en) * | 2013-06-24 | 2013-10-02 | 华为技术有限公司 | Method for processing voice data, terminals, server and system |
CN103886881A (en) * | 2014-04-14 | 2014-06-25 | 福建星网视易信息系统有限公司 | Method and system for expanding song selecting library |
CN105808710A (en) * | 2016-03-05 | 2016-07-27 | 上海斐讯数据通信技术有限公司 | Remote karaoke terminal, remote karaoke system and remote karaoke method |
Cited By (25)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111294626A (en) * | 2020-01-21 | 2020-06-16 | 腾讯音乐娱乐科技(深圳)有限公司 | Lyric display method and device |
CN113345478B (en) * | 2020-03-02 | 2022-07-05 | 海信视像科技股份有限公司 | Player time acquisition method, device, storage medium and player |
CN113345478A (en) * | 2020-03-02 | 2021-09-03 | 海信视像科技股份有限公司 | Player time acquisition method, device, storage medium and player |
CN113867977A (en) * | 2020-06-30 | 2021-12-31 | 华为技术有限公司 | Equipment control method and equipment |
CN112037741A (en) * | 2020-08-27 | 2020-12-04 | 深圳创维-Rgb电子有限公司 | Karaoke method, device, equipment and storage medium |
CN114201978A (en) * | 2020-09-18 | 2022-03-18 | 华为技术有限公司 | Method and related equipment for translating interface of application program |
CN114531413B (en) * | 2020-10-30 | 2023-10-10 | 华为技术有限公司 | Electronic device, mail synchronization method thereof, and readable medium |
CN114531413A (en) * | 2020-10-30 | 2022-05-24 | 华为技术有限公司 | Electronic device and mail synchronization method and readable medium thereof |
CN112286618A (en) * | 2020-11-16 | 2021-01-29 | Oppo广东移动通信有限公司 | Device cooperation method, device, system, electronic device and storage medium |
CN112492338A (en) * | 2020-11-27 | 2021-03-12 | 腾讯音乐娱乐科技(深圳)有限公司 | Online song room implementation method, electronic device and computer readable storage medium |
CN112492338B (en) * | 2020-11-27 | 2023-10-13 | 腾讯音乐娱乐科技(深圳)有限公司 | Online song house implementation method, electronic equipment and computer readable storage medium |
CN114666441A (en) * | 2020-12-22 | 2022-06-24 | 华为技术有限公司 | Method, electronic device and system for calling capabilities of other devices |
CN114666441B (en) * | 2020-12-22 | 2024-02-09 | 华为技术有限公司 | Method for calling capabilities of other devices, electronic device, system and storage medium |
CN114827639A (en) * | 2021-01-28 | 2022-07-29 | 华为技术有限公司 | Multi-application distributed implementation method, readable medium and electronic device thereof |
CN114827639B (en) * | 2021-01-28 | 2023-07-11 | 华为技术有限公司 | Multi-application distributed implementation method, readable medium and electronic device thereof |
CN112967705A (en) * | 2021-02-24 | 2021-06-15 | 腾讯音乐娱乐科技(深圳)有限公司 | Mixed sound song generation method, device, equipment and storage medium |
CN112967705B (en) * | 2021-02-24 | 2023-11-28 | 腾讯音乐娱乐科技(深圳)有限公司 | Method, device, equipment and storage medium for generating mixed song |
CN115132235A (en) * | 2021-03-25 | 2022-09-30 | 炬力(珠海)微电子有限公司 | Playing device, playing system and synchronous control method thereof |
CN113094541A (en) * | 2021-04-16 | 2021-07-09 | 网易(杭州)网络有限公司 | Audio playing method, electronic equipment and storage medium |
CN113225768A (en) * | 2021-04-29 | 2021-08-06 | 北京凯视达信息技术有限公司 | 4G/5G transmission network synchronization method |
CN113225768B (en) * | 2021-04-29 | 2023-02-10 | 北京凯视达信息技术有限公司 | 4G/5G transmission network synchronization method |
WO2023155583A1 (en) * | 2022-02-17 | 2023-08-24 | 华为技术有限公司 | Cross-device application management method, electronic device, and system |
WO2023217003A1 (en) * | 2022-05-07 | 2023-11-16 | 北京字跳网络技术有限公司 | Audio processing method and apparatus, device, and storage medium |
CN116668763A (en) * | 2022-11-10 | 2023-08-29 | 荣耀终端有限公司 | Screen recording method and device |
CN116668763B (en) * | 2022-11-10 | 2024-04-19 | 荣耀终端有限公司 | Screen recording method and device |
Also Published As
Publication number | Publication date |
---|---|
CN111345010A (en) | 2020-06-26 |
CN111345010B (en) | 2021-12-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020034227A1 (en) | Multimedia content synchronization method and electronic device | |
CN110381197B (en) | Method, device and system for processing audio data in many-to-one screen projection | |
WO2021052263A1 (en) | Voice assistant display method and device | |
CN113542839B (en) | Screen projection method of electronic equipment and electronic equipment | |
CN113691842B (en) | Cross-device content projection method and electronic device | |
CN113497909B (en) | Equipment interaction method and electronic equipment | |
WO2020253754A1 (en) | Multi-terminal multimedia data communication method and system | |
CN111628916B (en) | Method for cooperation of intelligent sound box and electronic equipment | |
WO2019072178A1 (en) | Method for processing notification, and electronic device | |
WO2020224447A1 (en) | Method and system for adding smart home device to contacts | |
CN113961157B (en) | Display interaction system, display method and equipment | |
WO2021052139A1 (en) | Gesture input method and electronic device | |
WO2020056684A1 (en) | Method and device employing multiple tws earpieces connected in relay mode to realize automatic interpretation | |
WO2021031865A1 (en) | Call method and apparatus | |
WO2022135157A1 (en) | Page display method and apparatus, and electronic device and readable storage medium | |
CN112543447A (en) | Device discovery method based on address list, audio and video communication method and electronic device | |
CN114827581A (en) | Synchronization delay measuring method, content synchronization method, terminal device, and storage medium | |
CN114115770A (en) | Display control method and related device | |
WO2021104122A1 (en) | Method and apparatus for responding to call request, and electronic device | |
CN114173184B (en) | Screen projection method and electronic equipment | |
WO2021052388A1 (en) | Video communication method and video communication apparatus | |
CN115509651A (en) | Screen sharing method and related equipment | |
WO2023045597A1 (en) | Cross-device transfer control method and apparatus for large-screen service | |
WO2022105786A1 (en) | Video call background switching method and first terminal device | |
WO2023093778A1 (en) | Screenshot capture method and related apparatus |
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: 18930327 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 18930327 Country of ref document: EP Kind code of ref document: A1 |