Remote control method, device, electronic device and storage medium

By acquiring the control instructions and audio data of the synchronization identifier and synchronously playing the audio data when executing the control instructions, the problem that control instructions and audio data cannot be processed in the prior art is solved, and efficient remote control synergy is achieved.

CN113766362BActive Publication Date: 2025-02-18VIVO MOBILE COMM CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111043097.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-07
Publication Date
2025-02-18
Estimated Expiration
2041-09-07

AI Technical Summary

Technical Problem

The existing remote control method cannot realize the synchronization processing of control instructions and audio data, resulting in the delay in the response of the control instructions.

Method used

By obtaining control instructions and audio data containing synchronization identifiers, and synchronously playing audio data during execution of control instructions, ensuring the correspondence between instructions and data.

Benefits of technology

The synchronization processing of control instructions and audio data is realized, which avoids the playback delay of audio data and improves the coordination of remote control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113766362B_ABST
    Figure CN113766362B_ABST
Patent Text Reader

Abstract

The present application provides a remote control method, device, electronic device and storage medium, the method comprising: obtaining a first control instruction and first audio data, wherein a synchronization identifier in the first control instruction matches a synchronization identifier in the first audio data; and playing the first audio data during the execution of the first control instruction. In an embodiment of the present application, a first control instruction and first audio data are obtained, wherein the synchronization identifier in the first control instruction matches the synchronization identifier in the first audio data; further, playing the first audio data during the execution of the first control instruction. In this way, a certain delay in the playback of the audio data compared to the response of the control instruction is avoided, thereby ensuring the synchronous processing of the control instruction and the audio data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and specifically relates to a remote control method, device, electronic device and storage medium. Background Art

[0002] With the development of communication technology, a control device and a controlled device can be remotely connected via wireless signals or electrical signals, and the control device controls the controlled device using the wireless signals or electrical signals.

[0003] In a remote control scenario, a control device sends audio data associated with a control instruction to a controlled device at the same time as the control instruction is sent; the controlled device can play audio corresponding to the audio data while executing an operation corresponding to the control instruction.

[0004] However, in the actual remote control process, the controlled device often receives the control instruction first, and then plays the audio corresponding to the audio data after executing the corresponding operation. That is to say, there is a certain delay in the playback of the audio data compared to the response to the control instruction, resulting in the assisted device being unable to synchronously process the control instruction and audio data. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a remote control method, device, electronic device and storage medium, which can solve the problem that the existing remote control method cannot synchronously process control instructions and audio data.

[0006] In a first aspect, an embodiment of the present application provides a remote control method, the method comprising:

[0007] Acquire a first control instruction and first audio data, wherein a synchronization identifier in the first control instruction matches a synchronization identifier in the first audio data;

[0008] During the execution of the first control instruction, the first audio data is played.

[0009] In a second aspect, an embodiment of the present application provides a remote control device, the device comprising:

[0010] An acquisition module, configured to acquire a first control instruction and first audio data, wherein a synchronization identifier in the first control instruction matches a synchronization identifier in the first audio data;

[0011] The first processing module is used to play the first audio data during the execution of the first control instruction.

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

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

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

[0015] In the embodiment of the present application, a first control instruction and first audio data are obtained, wherein a synchronization identifier in the first control instruction matches a synchronization identifier in the first audio data; further, in the process of executing the first control instruction, the first audio data is played. In this way, a certain delay in the playback of the audio data compared to the response to the control instruction is avoided, thereby ensuring synchronous processing of the control instruction and the audio data. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 is a flow chart of a remote control method provided by an embodiment of the present application;

[0017] Figure 2 is a schematic diagram of an instruction cache area and a data cache area provided in an embodiment of the present application;

[0018] Figure 3 is an application flow chart of the remote control method provided by an embodiment of the present application;

[0019] Figure 4 is another application flow chart of the remote control method provided in the embodiment of the present application;

[0020] Figure 5 is a structural diagram of a remote control device provided in an embodiment of the present application;

[0021] Figure 6 is a structural diagram of an electronic device provided in an embodiment of the present application;

[0022] Figure 7 It is a hardware structure diagram of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0023] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

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

[0025] The remote control method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0026] See also Figure 1 , Figure 1 : is a flowchart of a remote control method provided in an embodiment of the present application. The remote control method provided in an embodiment of the present application comprises the following steps:

[0027] S101 obtains a first control instruction and first audio data.

[0028] The remote control method provided in the embodiment of the present application is applied to a controlled device that has established a communication connection with a control device. The above-mentioned control device is the party that controls the controlled device using wireless signals or electrical signals during the remote control process.

[0029] The first control instruction may be a touch input, such as clicking an application icon, and the touch input is regarded as the first control instruction; the first audio data may be a voice input, such as a control device user inputting a voice "open application A". The synchronization identifier in the first control instruction matches the synchronization identifier in the first audio data.

[0030] It should be understood that the first audio data includes a packet sequence number, which indicates the sequence number of the audio packet corresponding to the first audio data in all audio packets; the first control instruction includes a timestamp and a packet sequence number, the timestamp is used to indicate the sending time of the first control instruction, and the packet sequence number is the packet sequence number of the first audio data. In this way, the first audio data corresponding to the first control instruction can be determined through the packet sequence number in the first control instruction.

[0031] The user can input the first audio data while executing the first control instruction, so as to obtain the first control instruction and the first audio data that have a corresponding relationship.

[0032] For example, when the user of the control device clicks the icon of application A, he / she inputs the voice "Open application A". Then the control request sent by the control device includes a corresponding control instruction and audio data, the control instruction is used to open application A, and the audio data is "Open application A".

[0033] S102: Play the first audio data during the execution of the first control instruction.

[0034] In this step, the playback control thread in the controlled device plays the first audio data while executing the first control instruction, thereby achieving synchronous processing of the control instruction and the audio data.

[0035] It should be understood that in some embodiments, if the controlling device or the controlled device is in silent mode, which can be understood as the device not supporting voice output in this mode, the controlling device will not record the user's voice input and will not generate audio data.

[0036] In the embodiment of the present application, a first control instruction and first audio data are obtained, wherein a synchronization mark in the first control instruction matches a synchronization mark in the first audio data; further, in the process of executing the first control instruction, the first audio data is played. In this way, a certain delay in the playback of the audio data compared to the response to the control instruction is avoided, thereby ensuring synchronous processing of the control instruction and the audio data.

[0037] Optionally, after acquiring the first control instruction and the first audio data, the method includes:

[0038] Storing the first control instruction and the first audio data in an instruction buffer and a data buffer respectively;

[0039] In the process of executing the first control instruction, playing the first audio data includes:

[0040] Reading the first audio data in the data buffer area;

[0041] When the instruction cache area contains a first control instruction corresponding to the first audio data, the first audio data is played during the execution of the first control instruction.

[0042] In this embodiment, a command cache and a data cache are pre-set in the controlled device. The command cache is used to store control commands, and the data cache is used to store audio data. The first audio data in the data cache is sorted in order of storage time.

[0043] In some embodiments, the control instructions in the instruction cache are also sorted according to the order of storage time.

[0044] For easier understanding, see Figure 2 , Figure 2 Schematic diagram of the instruction cache and data cache provided by the embodiment of the present application. Figure 2 As shown, both the instruction cache and the data cache are circular caches. The packet number of "control instruction 1" in the instruction cache is m, and the packet number of "audio data 1" in the data cache is also m, so it can be determined that there is a corresponding relationship between "control instruction 1" and "audio data 1".

[0045] In this embodiment, when there is audio data in the data buffer area, the first audio data in the data buffer area is read. The first audio data may be the audio data that is first sorted in the data buffer area.

[0046] After the first audio data is read, a query is made in the instruction cache whether there is a first control instruction corresponding to the first audio data. Specifically, a query thread is pre-set in the controlled device, and the query thread reads the packet number in the first target audio data, and queries the instruction cache whether there is a control instruction with the same packet number. If the first control instruction corresponding to the first audio data exists in the instruction cache, the first audio data is played during the execution of the first control instruction.

[0047] Optionally, after reading the first audio data in the data buffer area, the method includes:

[0048] In the case that the instruction cache does not contain the first control instruction corresponding to the first audio data, reading the detection instruction that is first sorted in the instruction cache;

[0049] The first audio data is played at a time point corresponding to the timestamp of the detection instruction.

[0050] The control device sends a detection instruction to the controlled device at a preset interval to verify whether a communication connection is established between the control device and the controlled device. The above detection instruction includes a timestamp, which is used to indicate the time when the control device sends the detection instruction. After receiving the detection instruction, the controlled device stores the detection instruction in the instruction cache, wherein the detection instructions in the instruction cache are sorted according to the order of storage time.

[0051] In this embodiment, if the first control instruction corresponding to the first audio data does not exist in the instruction cache, the first detection instruction in the instruction cache is read, and the detection instruction is parsed to obtain the timestamp corresponding to the detection instruction, and the first audio data is played at the time node corresponding to the timestamp.

[0052] To understand the above solution as a whole, please refer to Figure 3 , Figure 3 This is an application flow chart of the remote control method provided in an embodiment of the present application.

[0053] like Figure 3 As shown, after the controlled device receives the control instruction and audio data, the control instruction is stored in the instruction cache, and the audio data is stored in the data cache. The first audio data is read from the data cache, and the first audio instruction can be the first audio instruction in the data cache, and the instruction cache is queried whether there is a first control instruction corresponding to the first audio data. If there is a first control instruction corresponding to the first audio data in the instruction cache, the first audio data is played synchronously during the execution of the first control instruction. If there is no first control instruction corresponding to the first audio data in the instruction cache, the instruction cache is queried whether there is a detection instruction; if there is a detection instruction in the instruction cache, the first audio data is played at the time point corresponding to the detection instruction; if there is no detection instruction in the instruction cache, the instruction cache is monitored, and when there is a control instruction in the instruction cache, the control instruction is read. If there is an end instruction for ending remote control in the instruction cache, the remote control is ended, otherwise the control instruction in the instruction cache is continued to be read.

[0054] In another application scenario, the controlled device is pre-set with a control instruction queue, which is used to store the second control instruction, and the second control instruction is sorted in order of storage time. The control device is pre-set with an audio data queue, which is used to store the second audio data. And the control request sent by the control device includes the second control instruction, but does not include audio data.

[0055] Optionally, the method further comprises:

[0056] Reading a second control instruction from the control instruction queue;

[0057] The audio identification information is sent to a control device; the audio data queue of the control device stores the audio data;

[0058] receiving second audio data fed back by the control device;

[0059] During the execution of the second control instruction, the second audio data is played.

[0060] In this embodiment, the controlled device reads the second control instruction from the control instruction queue, and the second control instruction is the control instruction that is first in the control instruction queue. The second control instruction includes audio identification information, and the audio identification information is, for example, a packet number of the audio data.

[0061] The second control instruction is parsed to obtain audio identification information, and the audio identification information is sent to the control device. As described above, the audio data queue of the control device stores audio data, the audio data corresponding to the audio identification information in the audio data queue is determined as the second audio data, and the second audio data is sent to the controlled device. The controlled device plays the second audio data during the execution of the second control instruction, thereby realizing synchronous processing of the control instruction and the audio data.

[0062] It should be understood that, in some embodiments, part of the audio data in the audio data queue includes no-instruction identification information, and the no-instruction identification information indicates that there is no corresponding relationship between the corresponding audio data and the control instruction. In this case, the part of the audio data can also be determined as the second audio data.

[0063] Specifically, after receiving the second control instruction, the control device queries the audio identification information in the audio data queue to obtain the second audio data corresponding to the audio identification information, and simultaneously extracts the partial audio data in the audio data queue that includes the no instruction identification information and is located after the second audio data, and uses the above partial audio data and the second audio data corresponding to the audio identification information as the second audio data.

[0064] For easier understanding, see Figure 4 , Figure 4 FIG. 1 is another application flow chart of the remote control method provided in the embodiment of the present application. Figure 4 As shown, the controlling device stores the audio data in the audio data queue, and sends the control instruction to the control instruction queue of the controlled device; the controlled device sends the audio identification information in the control instruction to the controlling device; the controlling device reads the audio data in the audio data queue based on the audio identification information, and sends the audio data to the controlled device; after receiving the audio data, the controlled device executes the control instruction while playing the audio data.

[0065] In this embodiment, an audio data queue is set in the control device and a control instruction queue is set in the controlled device. After receiving the control instruction, the controlled device sends the audio identification information in the control instruction to the control device, so that the control device sends the corresponding audio data. After obtaining the audio data, the controlled device synchronously processes the audio data and the control instruction, thereby avoiding a certain delay in the playback of the audio data compared to the response to the control instruction.

[0066] The instruction cache and data cache can be expanded during the remote control process, so as to ensure that the instruction cache and data cache can store control instructions and audio data with a certain delay. Similarly, the instruction cache and data cache can also be reduced during the remote control process to save storage space.

[0067] Optionally, after acquiring the first control instruction and the first audio data, the method includes:

[0068] Upon receiving the detection data and the corresponding detection instruction, obtaining a target capacity based on the detection data and the detection instruction;

[0069] The capacity of the data cache area and the capacity of the instruction cache area are adjusted to the target capacity.

[0070] It should be understood that the control device sends detection instructions and detection data to the controlled device at preset intervals, the detection instructions and detection data correspond one to one, and the detection data can be understood as an audio data with empty content. The detection instructions and detection data can be regarded as control requests. After receiving the detection instructions and detection data, the controlled device stores the detection instructions in the instruction cache and stores the detection data in the data cache.

[0071] When the detection data and the corresponding detection instruction are received, the target capacity is obtained based on the detection data and the detection instruction. Here, the specific technical solution can be referred to in the subsequent embodiments.

[0072] The above target capacity can be understood as the storage space capacity. Further, the capacity of the data cache area and the capacity of the instruction cache area are adjusted to the target capacity, so that the data cache area and the instruction cache area are guaranteed to store control instructions and audio data with a certain delay, and when the data cache area and the instruction cache area are reduced in capacity, storage space can be saved.

[0073] Optionally, obtaining the target capacity based on the detection data and the detection instruction includes:

[0074] Calculating a time difference between the detection data and the detection instruction;

[0075] The sum of the time difference and the first duration is determined as the target time range;

[0076] The target time range is divided by the second duration to obtain the target capacity.

[0077] In this embodiment, the target time range can be determined by the following formula:

[0078] T=|Time1-Time2|+|Time1-Time2|÷Interval×Base

[0079] Wherein, Time1 in the above formula refers to the sending time of the detection instruction, Time2 refers to the sending time of the detection data, |Time1-Time2| refers to the time difference, T refers to the target time range, and Interval and Base are both preset values ​​that can be customized.

[0080] The above target time range represents the time range corresponding to the data buffer area.

[0081] In this embodiment, the target capacity can be determined by the following formula:

[0082] n=T÷((Time4-Time3)÷(S2-S1))

[0083] Among them, n in the above formula is the target capacity, T is the target time range, Time4 is the sending time corresponding to the first detection data in the data cache area, Time3 is the sending time corresponding to the second detection data in the data cache area, S1 refers to the position of the first detection data in the data cache area, and S2 refers to the position of the second detection data in the data cache area.

[0084] It should be understood that one or more audio data may be inserted between two detection data in the data buffer area, that is, the two detection data in the data buffer area are not necessarily adjacent.

[0085] The above-mentioned second duration is used to characterize the duration corresponding to an audio data between adjacent detection data in the data cache area. For example, there are two audio data between the first detection data and the second detection data in the data cache area, then the total duration of these two audio data is the product of the second duration and 2.

[0086] like Figure 5 As shown, the remote control device 200 includes:

[0087] An acquisition module 201 is used to acquire a first control instruction and first audio data;

[0088] The first processing module 202 is configured to play the first audio data during the execution of the first control instruction.

[0089] Optionally, the remote control device 200 further includes:

[0090] A storage module, used for storing the first control instruction and the first audio data in an instruction buffer and a data buffer respectively;

[0091] The first processing module 202 is specifically configured to:

[0092] Reading the first audio data in the data buffer area;

[0093] When the instruction cache area contains a first control instruction corresponding to the first audio data, the first audio data is played during the execution of the first control instruction.

[0094] Optionally, the first processing module 202 further includes:

[0095] A first reading module, configured to read the detection instruction that is first in the order in the instruction cache when there is no first control instruction corresponding to the first audio data in the instruction cache;

[0096] A playing module is used to play the first audio data at a time point corresponding to the timestamp of the detection instruction.

[0097] Optionally, the remote control device 200 further includes:

[0098] A first reading module, used for reading a second control instruction from a control instruction queue;

[0099] A sending module, used for sending the audio identification information to a control device;

[0100] A receiving module, used for receiving second audio data fed back by the control device;

[0101] The second processing module is used to play the second audio data during the execution of the second control instruction.

[0102] Optionally, the remote control device 200 further includes:

[0103] A third processing module is used to obtain a target capacity based on the detection data and the detection instruction when the detection data and the corresponding detection instruction are received;

[0104] The adjustment module is used to adjust the capacity of the data cache area and the capacity of the instruction cache area to the target capacity.

[0105] Optionally, the third processing module is further used to:

[0106] Calculating a time difference between the detection data and the detection instruction;

[0107] The sum of the time difference and the first duration is determined as the target time range;

[0108] The target time range is divided by the second duration to obtain the target capacity.

[0109] In the embodiment of the present application, a first control instruction and first audio data are obtained, wherein a synchronization mark in the first control instruction matches a synchronization mark in the first audio data; further, in the process of executing the first control instruction, the first audio data is played. In this way, a certain delay in the playback of the audio data compared to the response to the control instruction is avoided, thereby ensuring synchronous processing of the control instruction and the audio data.

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

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

[0112] The remote control device provided in the embodiment of the present application can achieve Figure 1 To avoid repetition, the various processes implemented in the method embodiment will not be described again here.

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

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

[0115] Figure 7 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0116] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.

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

[0118] The processor 1010 is further configured to obtain a first control instruction and first audio data, wherein a synchronization identifier in the first control instruction matches a synchronization identifier in the first audio data;

[0119] The audio output unit 1003 is used to play the first audio data during the execution of the first control instruction.

[0120] The processor 1010 is further configured to store the first control instruction and the first audio data in an instruction cache and a data cache respectively;

[0121] Reading the first audio data in the data buffer area;

[0122] The audio output unit 1003 is configured to play the first audio data when a first control instruction corresponding to the first audio data exists in the instruction cache and during the execution of the first control instruction.

[0123] The processor 1010 is further configured to read the detection instruction that is first in the instruction cache when there is no first control instruction corresponding to the first audio data in the instruction cache;

[0124] The audio output unit 1003 is further configured to play the first audio data at a time point corresponding to a timestamp of the detection instruction.

[0125] The processor 1010 is further configured to read a second control instruction from the control instruction queue;

[0126] Sending the audio identification information to a control device;

[0127] The input unit 1004 is used to receive the second audio data fed back by the control device;

[0128] The audio output unit 1003 is further configured to play the second audio data during the execution of the second control instruction.

[0129] The processor 1010 is further configured to obtain a target capacity based on the detection data and the detection instruction when the detection data and the corresponding detection instruction are received;

[0130] The capacity of the data cache area and the capacity of the instruction cache area are adjusted to the target capacity.

[0131] The processor 1010 is further configured to calculate a time difference between the detection data and the detection instruction;

[0132] The sum of the time difference and the first duration is determined as the target time range;

[0133] The target time range is divided by the second duration to obtain the target capacity.

[0134] In the embodiment of the present application, a first control instruction and first audio data are obtained, wherein a synchronization mark in the first control instruction matches a synchronization mark in the first audio data; further, in the process of executing the first control instruction, the first audio data is played. In this way, a certain delay in the playback of the audio data compared to the response to the control instruction is avoided, thereby ensuring synchronous processing of the control instruction and the audio data.

[0135] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10071 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 1009 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 1010 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 1010.

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

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

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

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

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

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

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

Claims

1. A remote control method, characterized in that: The controlled device used to establish a communication connection with the control device includes: Acquire a first control instruction and first audio data, wherein a synchronization identifier in the first control instruction matches a synchronization identifier in the first audio data; When the detection data and the corresponding detection instruction are received, the time difference between the detection data and the detection instruction is calculated; the control request includes the detection instruction and the detection data, the control request is sent by the control device, the detection instruction and the detection data are instructions and data sent by the control device at every preset time interval, and the detection instruction corresponds to the detection data one by one; Determine the sum of the time difference and a first duration as the target time range; the first duration is the division result of the time difference and a preset value; Dividing the target time range by a second duration to obtain a target capacity; wherein the second duration is used to represent the duration corresponding to an audio data between adjacent detection data in the data buffer; the data buffer stores the detection data, and the data buffer is used to store the first audio data; adjusting the capacity of the data cache area and the capacity of the instruction cache area to the target capacity, the instruction cache area being used to store the first control instruction; During the execution of the first control instruction, the first audio data is played.

2. The method according to claim 1, characterized in that After acquiring the first control instruction and the first audio data, the method includes: Storing the first control instruction and the first audio data in an instruction buffer and a data buffer respectively; In the process of executing the first control instruction, playing the first audio data includes: Reading the first audio data in the data buffer area; When the instruction cache area contains a first control instruction corresponding to the first audio data, the first audio data is played during the execution of the first control instruction.

3. The method according to claim 2, characterized in that The instruction cache stores detection instructions, and the detection instructions in the instruction cache are sorted in the order of storage time, the detection instructions are instructions sent by the control device at every preset time interval, and the detection instructions include a timestamp; After reading the first audio data in the data buffer area, the method includes: In the case that the instruction cache does not contain the first control instruction corresponding to the first audio data, reading the detection instruction that is first sorted in the instruction cache; The first audio data is played at a time point corresponding to the timestamp of the detection instruction.

4. The method according to claim 1, characterized in that: The method further comprises: Reading a second control instruction from a control instruction queue; the control instruction queue stores the second control instructions sorted in order of storage time, the second control instruction including audio identification information; The audio identification information is sent to a control device; the audio data queue of the control device stores audio data, and the audio identification information corresponds to at least part of the audio data; receiving second audio data fed back by the control device; the second audio data being audio data in the audio data queue corresponding to the audio identification information; During the execution of the second control instruction, the second audio data is played.

5. A remote control device, characterized in that: The controlled device used to establish a communication connection with the control device includes: An acquisition module, configured to acquire a first control instruction and first audio data, wherein a synchronization identifier in the first control instruction matches a synchronization identifier in the first audio data; A first processing module, configured to play the first audio data during the execution of the first control instruction; The control request includes a detection instruction and detection data, wherein the control request is sent by the control device, the detection instruction and detection data are instructions and data sent by the control device at preset intervals, and the detection instruction corresponds to the detection data one by one; The device also includes: A third processing module is used to obtain a target capacity based on the detection data and the detection instruction when the detection data and the corresponding detection instruction are received; An adjustment module, used for adjusting the capacity of a data buffer area and a capacity of an instruction buffer area to the target capacity; the data buffer area is used for storing the first audio data, and the instruction buffer area is used for storing the first control instruction; The third processing module is further used for: Calculating a time difference between the detection data and the detection instruction; Determine the sum of the time difference and a first duration as the target time range; the first duration is the division result of the time difference and a preset value; The target time range is divided by a second duration to obtain the target capacity; wherein the second duration is used to represent the duration corresponding to an audio data between adjacent detection data in the data buffer area.

6. The device according to claim 5, characterized in that The device also includes: A storage module, used for storing the first control instruction and the first audio data in an instruction buffer and a data buffer respectively; The first processing module is specifically used for: Reading the first audio data in the data buffer area; When the instruction cache area contains a first control instruction corresponding to the first audio data, the first audio data is played during the execution of the first control instruction.

7. The device according to claim 6, characterized in that The instruction cache stores detection instructions, and the detection instructions in the instruction cache are sorted in the order of storage time, the detection instructions are instructions sent by the control device at every preset time interval, and the detection instructions include a timestamp; The device also includes: A first reading module, configured to read the detection instruction that is first in the order in the instruction cache when there is no first control instruction corresponding to the first audio data in the instruction cache; A playing module is used to play the first audio data at a time point corresponding to the timestamp of the detection instruction.

8. The device according to claim 5, characterized in that The device also includes: A first reading module is used to read a second control instruction from a control instruction queue; the control instruction queue stores the second control instructions sorted in order of storage time, and the second control instruction includes audio identification information; A sending module, configured to send the audio identification information to a control device; the audio data queue of the control device stores audio data, and the audio identification information corresponds to at least part of the audio data; A receiving module, configured to receive second audio data fed back by the control device; the second audio data is audio data in the audio data queue corresponding to the audio identification information; The second processing module is used to play the second audio data during the execution of the second control instruction.

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

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

Citation Information

Patent Citations

  • Information processing method and electronic equipment

    CN104252226A

  • Audio file processing method and system

    CN105654973A

  • Voice control method and system for vehicle diagnosis client

    CN106601244A