CN113766362A - Remote control method, device, electronic equipment and storage medium - Google Patents

Remote control method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113766362A
CN113766362A CN202111043097.0A CN202111043097A CN113766362A CN 113766362 A CN113766362 A CN 113766362A CN 202111043097 A CN202111043097 A CN 202111043097A CN 113766362 A CN113766362 A CN 113766362A
Authority
CN
China
Prior art keywords
audio data
instruction
data
control
control instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111043097.0A
Other languages
Chinese (zh)
Inventor
孙建蛟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202111043097.0A priority Critical patent/CN113766362A/en
Publication of CN113766362A publication Critical patent/CN113766362A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q9/00Arrangements in telecontrol or telemetry systems for selectively calling a substation from a main station, in which substation desired apparatus is selected for applying a control signal thereto or for obtaining measured values therefrom
    • H04Q9/04Arrangements for synchronous operation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/63Querying
    • G06F16/632Query formulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/63Querying
    • G06F16/638Presentation of query results
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q2209/00Arrangements in telecontrol or telemetry systems
    • H04Q2209/40Arrangements in telecontrol or telemetry systems using a wireless architecture

Abstract

The application provides a remote control method, a remote control device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring a first control instruction and first audio data, wherein a synchronous identifier in the first control instruction is matched with a synchronous identifier in the first audio data; and playing the first audio data in the process of executing the first control instruction. In the embodiment of the application, a first control instruction and first audio data are obtained, wherein a synchronous identifier in the first control instruction is matched with a synchronous identifier in the first audio data; further, in the process of executing the first control instruction, the first audio data is played. Therefore, certain delay in playing the audio data compared with the response of the control command is avoided, and synchronous processing of the control command and the audio data is further ensured.

Description

Remote control method, device, electronic equipment and storage medium
Technical Field
The application belongs to the technical field of communication, and particularly relates to a remote control method and device, electronic equipment and a storage medium.
Background
With the development of communication technology, the control device and the controlled device can be remotely connected by means of wireless signals or electric signals, and the control device controls the controlled device by means of the wireless signals or the electric signals.
One remote control scenario is that the control device sends a control instruction to the controlled device and simultaneously sends audio data associated with the control instruction; the controlled device can play the audio corresponding to the audio data while executing the operation corresponding to the control instruction.
However, in an actual remote control process, the controlled device often receives the control command first, and plays the audio corresponding to the audio data after performing the corresponding operation, that is, there is a certain delay in the playing of the audio data compared to the response of the control command, so that the assisted device cannot perform synchronous processing on the control command and the audio data.
Disclosure of Invention
The embodiment of the application aims to provide a remote control method, a remote control device, an electronic device and a storage medium, which can solve the problem that the existing remote control method cannot synchronously process control instructions and audio data.
In a first aspect, an embodiment of the present application provides a remote control method, where the method includes:
acquiring a first control instruction and first audio data, wherein a synchronous identifier in the first control instruction is matched with a synchronous identifier in the first audio data;
and playing the first audio data in the process of executing the first control instruction.
In a second aspect, an embodiment of the present application provides a remote control device, including:
the acquisition module is used for acquiring a first control instruction and first audio data, and a synchronous identifier in the first control instruction is matched with a synchronous identifier in the first audio data;
and the first processing module is used for playing the first audio data in the process of executing the first control instruction.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, a first control instruction and first audio data are obtained, wherein a synchronous identifier in the first control instruction is matched with a synchronous identifier in the first audio data; further, in the process of executing the first control instruction, the first audio data is played. Therefore, certain delay in playing the audio data compared with the response of the control command is avoided, and synchronous processing of the control command and the audio data is further ensured.
Drawings
Fig. 1 is a flowchart of a remote control method provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of an instruction cache and a data cache provided by an embodiment of the present application;
fig. 3 is a flowchart of an application of the remote control method according to the embodiment of the present application;
FIG. 4 is a flowchart of another application of the remote control method provided in the embodiment of the present application;
fig. 5 is a structural diagram of a remote control apparatus provided in an embodiment of the present application;
fig. 6 is a block diagram of an electronic device provided in an embodiment of the present application;
fig. 7 is a hardware configuration diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The remote control method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, fig. 1 is a flowchart of a remote control method according to an embodiment of the present disclosure. The remote control method provided by the embodiment of the application comprises the following steps:
s101, a first control instruction and first audio data are obtained.
The remote control method provided by the embodiment of the application is applied to the controlled equipment which establishes communication connection with the control equipment, wherein the control equipment is the party which controls the controlled equipment by using wireless signals or electric signals in the remote control process.
The first control command may be a touch input, for example, an application icon is clicked, and the touch input is regarded as the first control command; the first audio data may be a voice input, such as a control device user inputting a voice "open application a". The synchronization flag in the first control instruction matches the synchronization flag in the first audio data.
It should be understood that the first audio data includes a packet sequence number, which indicates a sequence number of an audio packet corresponding to the first audio data in all audio packets; the first control instruction comprises a timestamp and a packet sequence number, the timestamp is used for representing 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 command can be determined by the packet sequence number in the first control command.
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 with corresponding relation.
Illustratively, the control device user enters the speech "open application a" while clicking on the application a icon. The control request sent by the control device includes a control instruction and audio data, where the control instruction and the audio data have a correspondence, the control instruction is used to open the application program a, and the audio data is "open the application program a".
S102, in the process of executing the first control instruction, playing the first audio data.
In this step, the first audio data is played while the play control thread in the controlled device executes the first control instruction, so as to implement the synchronous processing of the control instruction and the audio data.
It will be appreciated that in some embodiments, if the control device or the controlled device is in a silent mode, which may be understood as the device not supporting speech output in this mode, the control device will not record the user's speech input and will not generate audio data.
In the embodiment of the application, a first control instruction and first audio data are obtained, wherein a synchronous identifier in the first control instruction is matched with a synchronous identifier in the first audio data; further, in the process of executing the first control instruction, the first audio data is played. Therefore, certain delay in playing the audio data compared with the response of the control command is avoided, and synchronous processing of the control command and the audio data is further ensured.
Optionally, after the first control instruction and the first audio data are acquired, the method includes:
storing the first control instruction and the first audio data into an instruction cache region and a data cache region respectively;
the playing the first audio data during the execution of the first control instruction comprises:
reading first audio data in the data buffer area;
and under the condition that a first control instruction corresponding to the first audio data exists in the instruction cache region, playing the first audio data in the process of executing the first control instruction.
In this embodiment, the controlled device is preset with an instruction cache region and a data cache region, the instruction cache region is used for storing the control instruction, the data cache region is used for storing the audio data, and the first audio data in the data cache region is sorted according to the storage time.
In some embodiments, the control instructions in the instruction cache are also sorted by the order of storage time.
For ease of understanding, referring to FIG. 2, FIG. 2 is a schematic diagram of an instruction cache and a data cache according to an embodiment of the present disclosure. As shown in FIG. 2, the instruction cache and the data cache are both ring caches. If the packet sequence number included in the "control command 1" in the command buffer area is m, and the packet sequence number included in the "audio data 1" in the data buffer area is m, it can be determined that there is a correspondence between the "control command 1" and the "audio data 1".
In this embodiment, when audio data exists in the data buffer, the first audio data in the data buffer is read. The first audio data may be the audio data with the first order in the data buffer.
After the first audio data is read, whether a first control instruction corresponding to the first audio data exists or not is inquired in an instruction cache region. Specifically, the controlled device is preset with an inquiry thread, the inquiry thread reads the packet sequence number in the first target audio data, and inquires whether a control instruction with the same packet sequence number exists in the instruction cache region. And under the condition that a first control instruction corresponding to the first audio data exists in the instruction cache region, playing the first audio data in the process of executing the first control instruction.
Optionally, after reading the first audio data in the data buffer, the method includes:
under the condition that a first control instruction corresponding to the first audio data does not exist in the instruction cache region, reading a detection instruction with the first sequencing in the instruction cache region;
and playing the first audio data at a time node corresponding to the timestamp of the detection instruction.
The control device sends a detection instruction to the controlled device at preset time intervals so as to verify whether a communication connection is established between the control device and the controlled device. The probe instruction comprises a time stamp, and the time stamp is used for representing the time when the control device sends the probe instruction. After receiving the detection instruction, the controlled device stores the detection instruction to an instruction cache region, wherein the detection instruction in the instruction cache region is sorted according to the sequence of the storage time.
In this embodiment, if there is no first control instruction corresponding to the first audio data in the instruction cache region, the detection instruction with the first ordering in the instruction cache region is read, and the detection instruction is analyzed to obtain a timestamp corresponding to the detection instruction, and the first audio data is played at a time node corresponding to the timestamp.
To facilitate the overall understanding of the above solutions, please refer to fig. 3, and fig. 3 is a flowchart illustrating an application of the remote control method according to an embodiment of the present application.
As shown in fig. 3, after receiving the control instruction and the audio data, the controlled device stores the control instruction in the instruction buffer, and stores the audio data in the data buffer. And reading first audio data from the data cache region, wherein the first audio instruction can be an audio instruction with the first ordering in the data cache region, and inquiring whether a first control instruction corresponding to the first audio data exists in the instruction cache region. If the instruction cache region has a first control instruction corresponding to the first audio data, the first audio data is synchronously played in the process of executing the first control instruction. If the instruction cache region does not have a first control instruction corresponding to the first audio data, inquiring whether the instruction cache region has a detection instruction or not; if the instruction cache region has a detection instruction, playing first audio data at a time point corresponding to the detection instruction; if the instruction cache region does not have the detection instruction, the instruction cache region is monitored, and when the instruction cache region has the control instruction, the control instruction is read. If the instruction cache area has an ending instruction for ending the remote control, otherwise, continuously reading the control instruction in the instruction cache area.
In another application scenario, the controlled device is preset with a control instruction queue, the control instruction queue is used for storing second control instructions, and the second control instructions are sorted according to the storage time sequence. The control device is preset with an audio data queue, and the audio data queue is used for storing second audio data. And the control request sent by the control device comprises a second control instruction and does not comprise audio data.
Optionally, the method further comprises:
reading a second control instruction from the control instruction queue;
sending the audio identification information to a control device; audio data are stored in an audio data queue of the control equipment;
receiving second audio data fed back by the control equipment;
and playing the second audio data in the process of executing the second control instruction.
In this embodiment, the controlled device reads a second control instruction from the control instruction queue, where the second control instruction is a control instruction with the first ordering in the control instruction queue. The second control instruction includes audio identification information, which is, for example, a packet sequence number of the audio data.
And analyzing the second control instruction to obtain audio identification information, and sending the audio identification information to the control equipment. As described above, the audio data is stored in the audio data queue of the control device, 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, and the controlled device plays the second audio data in the process of executing the second control instruction, so as to implement the synchronous processing of the control instruction and the audio data.
It should be understood that in some embodiments, a portion of audio data in the audio data queue includes no-instruction identification information that identifies that there is no correspondence between the corresponding audio data and the control instruction, in which case, the portion of audio data may also be determined as the second audio data.
Specifically, after receiving a second control instruction, the control device queries the audio identification information in the audio data queue to obtain second audio data corresponding to the audio identification information, extracts partial audio data, which is located behind the second audio data and includes no instruction identification information, in the audio data queue, and takes the partial audio data and the second audio data corresponding to the audio identification information as the second audio data.
For easy understanding, please refer to fig. 4, fig. 4 is a flowchart illustrating another application of the remote control method according to the embodiment of the present application. As shown in fig. 4, the control device stores audio data in an audio data queue and sends a control instruction to a control instruction queue of the controlled device; the controlled equipment sends the audio identification information in the control instruction to the control equipment; the control equipment reads out audio data from the audio data queue based on the audio identification information and sends the audio data to the controlled equipment; the controlled device executes the control instruction while playing the audio data after receiving the audio data.
In the embodiment, the audio data queue is set in the control device, the control instruction queue is set in the controlled device, and after the controlled device receives the control instruction, the audio identification information in the control instruction is sent to the control device, so that the control device sends the corresponding audio data, and then the controlled device synchronously processes the audio data and the control instruction after obtaining the audio data, thereby avoiding that a certain delay exists in the playing of the audio data compared with the response of the control instruction.
For the instruction cache region and the data cache region, capacity expansion can be performed in the process of remote control, so that the instruction cache region and the data cache region can store control instructions and audio data with certain delay. Similarly, the instruction cache region and the data cache region can be reduced in the process of remote control, so that the storage space is saved.
Optionally, after the first control instruction and the first audio data are acquired, the method includes:
under the condition that detection data and a corresponding detection instruction are received, obtaining target capacity based on the detection data and the detection instruction;
and adjusting the capacity of the data cache area and the capacity of the instruction cache area to the target capacity.
It should be understood that the control device sends the detection instruction and the detection data to the controlled device at preset time intervals, the detection instruction and the detection data correspond to each other one by one, and the detection data can be understood as audio data with empty content. The detection instruction and the detection data may be regarded as a control request, and the controlled device stores the detection instruction in the instruction cache region and stores the detection data in the data cache region after receiving the detection instruction and the detection data.
In the case of receiving the probe data and the corresponding probe instruction, the target capacity is obtained based on the probe data and the probe instruction, and here, the specific technical solution refers to the following embodiments.
The above target capacity may be understood as a storage space capacity. Furthermore, the capacity of the data cache region and the capacity of the instruction cache region are adjusted to target capacities, so that the control instruction and audio data with certain delay are stored in the data cache region and the instruction cache region, and the storage space can be saved under the condition of capacity reduction of the data cache region and the instruction cache region.
Optionally, the obtaining a target capacity based on the probe data and the probe instruction includes:
calculating a time difference between the probe data and the probe instructions;
determining the sum of the time difference and the first time length as a target time range;
and dividing the target time range and the second duration to obtain the target capacity.
In this embodiment, the target time range may be determined by the following formula:
T=|Time1-Time2|+|Time1-Time2|÷Interval×Base
in the above formula, Time1 refers to the sending Time of the probe command, Time2 refers to the sending Time of the probe data, | Time1-Time2| refers to the Time difference, T refers to the target Time range, and Interval and Base are preset values that can be set by user.
The target time range represents a time range corresponding to the data buffer area.
In this embodiment, the target capacity may be determined by the following formula:
n=T÷((Time4-Time3)÷(S2-S1))
where n in the above formula is the target capacity, T is the target Time range, Time4 is the transmission Time corresponding to the first-ranked probe data in the data buffer, Time3 is the transmission Time corresponding to the second-ranked probe data in the data buffer, S1 is the position of the first-ranked probe data in the data buffer, and S2 is the position of the second-ranked probe data in the data buffer.
It should be understood that one or more audio data may be inserted between the 2 probe data of the data buffer, i.e. the 2 probe data of the data buffer are not necessarily adjacent.
The second duration is used to represent a duration corresponding to one audio data between adjacent probe data in the data buffer, for example, 2 audio data exist between the probe data with the first rank and the probe data with the second rank in the data buffer, and the total duration of the 2 audio data is a product of the second duration and 2.
As shown in fig. 5, the remote control apparatus 200 includes:
an obtaining module 201, configured to obtain a first control instruction and first audio data;
the first processing module 202 is configured to play the first audio data during the process of executing the first control instruction.
Optionally, the remote control device 200 further includes:
the storage module is used for respectively storing the first control instruction and the first audio data into an instruction cache region and a data cache region;
the first processing module 202 is specifically configured to:
reading first audio data in the data buffer area;
and under the condition that a first control instruction corresponding to the first audio data exists in the instruction cache region, playing the first audio data in the process of executing the first control instruction.
Optionally, the first processing module 202 further includes:
the first reading module is used for reading the detection instruction with the first sequencing in the instruction cache area under the condition that the first control instruction corresponding to the first audio data does not exist in the instruction cache area;
and the playing module is used for playing the first audio data at a time node corresponding to the timestamp of the detection instruction.
Optionally, the remote control device 200 further includes:
the first reading module is used for reading a second control instruction from the control instruction queue;
the sending module is used for sending the audio identification information to the control equipment;
the receiving module is used for receiving second audio data fed back by the control equipment;
and the second processing module is used for playing the second audio data in the process of executing the second control instruction.
Optionally, the remote control device 200 further includes:
the third processing module is used for obtaining target capacity based on the detection data and the detection instruction under the condition of receiving the detection data and the corresponding detection instruction;
and the adjusting module is used for adjusting the capacity of the data cache region and the capacity of the instruction cache region to the target capacity.
Optionally, the third processing module is further configured to:
calculating a time difference between the probe data and the probe instructions;
determining the sum of the time difference and the first time length as a target time range;
and dividing the target time range and the second duration to obtain the target capacity.
In the embodiment of the application, a first control instruction and first audio data are obtained, wherein a synchronous identifier in the first control instruction is matched with a synchronous identifier in the first audio data; further, in the process of executing the first control instruction, the first audio data is played. Therefore, certain delay in playing the audio data compared with the response of the control command is avoided, and synchronous processing of the control command and the audio data is further ensured.
The remote control device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
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 (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The remote control device provided in the embodiment of the present application can implement each process implemented in the embodiment of the method in fig. 1, and is not described here again to avoid repetition.
Optionally, as shown in fig. 6, an electronic device 300 is further provided in this embodiment of the present application, and includes a processor 301, a memory 302, and a program or an instruction stored in the memory 302 and capable of running on the processor 301, where the program or the instruction is executed by the processor 301 to implement each process of the above-mentioned remote control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, it is not described here again.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
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.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 1010 is further configured to obtain a first control instruction and first audio data, where a synchronization identifier in the first control instruction matches a synchronization identifier in the first audio data;
an audio output unit 1003, configured to play the first audio data in the process of executing the first control instruction.
The processor 1010 is further configured to store the first control instruction and the first audio data in an instruction cache region and a data cache region, respectively;
reading first audio data in the data buffer area;
the audio output unit 1003 is configured to, when a first control instruction corresponding to the first audio data exists in the instruction buffer, play the first audio data in a process of executing the first control instruction.
The processor 1010 is further configured to, in a case that there is no first control instruction corresponding to the first audio data in the instruction cache region, read a probe instruction in the instruction cache region that is sorted first;
the audio output unit 1003 is further configured to play the first audio data at a time node corresponding to the timestamp of the detection instruction.
The processor 1010 is further configured to read a second control instruction from the control instruction queue;
sending the audio identification information to a control device;
the input unit 1004 is used for receiving second audio data fed back by the control device;
the audio output unit 1003 is further configured to play the second audio data in the process of executing the second control instruction.
The processor 1010 is further configured to, in a case that probe data and a corresponding probe instruction are received, obtain a target capacity based on the probe data and the probe instruction;
and adjusting the capacity of the data cache area and the capacity of the instruction cache area to the target capacity.
Wherein, the processor 1010 is further configured to calculate a time difference between the probe data and the probe instruction;
determining the sum of the time difference and the first time length as a target time range;
and dividing the target time range and the second duration to obtain the target capacity.
In the embodiment of the application, a first control instruction and first audio data are obtained, wherein a synchronous identifier in the first control instruction is matched with a synchronous identifier in the first audio data; further, in the process of executing the first control instruction, the first audio data is played. Therefore, certain delay in playing the audio data compared with the response of the control command is avoided, and synchronous processing of the control command and the audio data is further ensured.
It should be understood that in the embodiment of the present application, the input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, and the Graphics Processing Unit 10041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing 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, or the like. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as 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, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 1009 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. Processor 1010 may integrate an application processor that handles primarily operating systems, user interfaces, applications, etc. and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the remote control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the above remote control method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (14)

1. A remote control method, comprising:
acquiring a first control instruction and first audio data, wherein a synchronous identifier in the first control instruction is matched with a synchronous identifier in the first audio data;
and playing the first audio data in the process of executing the first control instruction.
2. The method of claim 1, wherein after the obtaining the first control instruction and the first audio data, the method comprises:
storing the first control instruction and the first audio data into an instruction cache region and a data cache region respectively;
the playing the first audio data during the execution of the first control instruction comprises:
reading first audio data in the data buffer area;
and under the condition that a first control instruction corresponding to the first audio data exists in the instruction cache region, playing the first audio data in the process of executing the first control instruction.
3. The method according to claim 2, wherein the instruction cache region stores detection instructions, and the detection instructions in the instruction cache region are sorted according to the sequence of storage time, the detection instructions are instructions sent by the control device at preset intervals, and the detection instructions comprise time stamps;
after the reading of the first audio data in the data buffer, the method includes:
under the condition that a first control instruction corresponding to the first audio data does not exist in the instruction cache region, reading a detection instruction with the first sequencing in the instruction cache region;
and playing the first audio data at a time node corresponding to the timestamp of the detection instruction.
4. The method of claim 1, further comprising:
reading a second control instruction from the control instruction queue; the control instruction queue stores second control instructions which are sorted according to the storage time sequence, and the second control instructions comprise audio identification information;
sending the audio identification information to a control device; audio data are stored in an audio data queue of the control equipment, and the audio identification information corresponds to at least part of the audio data;
receiving second audio data fed back by the control equipment; the second audio data is the audio data corresponding to the audio identification information in the audio data queue;
and playing the second audio data in the process of executing the second control instruction.
5. The method according to claim 2, wherein the control request further includes a probe command and probe data, the probe command and the probe data are commands and data sent by the control device at preset time intervals, and the probe command corresponds to the probe data one to one;
after the first control instruction and the first audio data are acquired, the method comprises the following steps:
under the condition that detection data and a corresponding detection instruction are received, obtaining target capacity based on the detection data and the detection instruction;
and adjusting the capacity of the data cache area and the capacity of the instruction cache area to the target capacity.
6. The method of claim 5, wherein the data buffer stores the probe data, and wherein obtaining a target capacity based on the probe data and the probe instructions comprises:
calculating a time difference between the probe data and the probe instructions;
determining the sum of the time difference and the first time length as a target time range; the first duration is a division result of the time difference and a preset value;
dividing the target time range and a second duration to obtain the target capacity; the second duration is used for representing the duration corresponding to one audio data between adjacent detection data in the data buffer area.
7. A remote control apparatus, comprising:
the acquisition module is used for acquiring a first control instruction and first audio data, and a synchronous identifier in the first control instruction is matched with a synchronous identifier in the first audio data;
and the first processing module is used for playing the first audio data in the process of executing the first control instruction.
8. The apparatus of claim 7, further comprising:
the storage module is used for respectively storing the first control instruction and the first audio data into an instruction cache region and a data cache region;
the first processing module is specifically configured to:
reading first audio data in the data buffer area;
and under the condition that a first control instruction corresponding to the first audio data exists in the instruction cache region, playing the first audio data in the process of executing the first control instruction.
9. The device according to claim 8, wherein the instruction cache region stores detection instructions, and the detection instructions in the instruction cache region are sorted according to the sequence of storage time, the detection instructions are instructions sent by the control device at preset time intervals, and the detection instructions include time stamps;
the device further comprises:
the first reading module is used for reading the detection instruction with the first sequencing in the instruction cache area under the condition that the first control instruction corresponding to the first audio data does not exist in the instruction cache area;
and the playing module is used for playing the first audio data at a time node corresponding to the timestamp of the detection instruction.
10. The apparatus of claim 7, further comprising:
the first reading module is used for reading a second control instruction from the control instruction queue; the control instruction queue stores second control instructions which are sorted according to the storage time sequence, and the second control instructions comprise audio identification information;
the sending module is used for sending the audio identification information to the control equipment; audio data are stored in an audio data queue of the control equipment, and the audio identification information corresponds to at least part of the audio data;
the receiving module is used for receiving second audio data fed back by the control equipment; the second audio data is the audio data corresponding to the audio identification information in the audio data queue;
and the second processing module is used for playing the second audio data in the process of executing the second control instruction.
11. The apparatus according to claim 8, wherein the control request further includes a probe command and probe data, the probe command and the probe data are commands and data sent by the control device at preset time intervals, and the probe command corresponds to the probe data one to one;
the device further comprises:
the third processing module is used for obtaining target capacity based on the detection data and the detection instruction under the condition of receiving the detection data and the corresponding detection instruction;
and the adjusting module is used for adjusting the capacity of the data cache region and the capacity of the instruction cache region to the target capacity.
12. The apparatus of claim 11, wherein the third processing module is further configured to:
calculating a time difference between the probe data and the probe instructions;
determining the sum of the time difference and the first time length as a target time range; the first duration is a division result of the time difference and a preset value;
dividing the target time range and a second duration to obtain the target capacity; the second duration is used for representing the duration corresponding to one audio data between adjacent detection data in the data buffer area.
13. An electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the remote control method according to any one of claims 1 to 6.
14. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the remote control method according to any one of claims 1-6.
CN202111043097.0A 2021-09-07 2021-09-07 Remote control method, device, electronic equipment and storage medium Pending CN113766362A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111043097.0A CN113766362A (en) 2021-09-07 2021-09-07 Remote control method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111043097.0A CN113766362A (en) 2021-09-07 2021-09-07 Remote control method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113766362A true CN113766362A (en) 2021-12-07

Family

ID=78793485

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111043097.0A Pending CN113766362A (en) 2021-09-07 2021-09-07 Remote control method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113766362A (en)

Similar Documents

Publication Publication Date Title
US9621950B2 (en) TV program identification method, apparatus, terminal, server and system
WO2015062224A1 (en) Tv program identification method, apparatus, terminal, server and system
CN108900855B (en) Live content recording method and device, computer readable storage medium and server
CN104468760A (en) Method and device for pushing reminding information
CN112486444A (en) Screen projection method, device, equipment and readable storage medium
CN113285866A (en) Information sending method and device and electronic equipment
CN112231144A (en) Data processing method and device and electronic equipment
EP3933564A1 (en) Song list switching method, apparatus and system, terminal, and storage medium
CN110071959B (en) Method and device for timing synchronization of third-party national standard resources
CN114374663B (en) Message processing method and message processing device
CN113766362A (en) Remote control method, device, electronic equipment and storage medium
CN115941869A (en) Audio processing method and device and electronic equipment
CN113268179B (en) Session message processing method, device, equipment and storage medium
CN112383666B (en) Content sending method and device and electronic equipment
CN112202958B (en) Screenshot method and device and electronic equipment
CN111031354B (en) Multimedia playing method, device and storage medium
CN114070892A (en) Data transmission method and device
CN113794920A (en) Interface display method and device, electronic equipment and medium
CN113778311A (en) Operation method and device and electronic equipment
CN113807831A (en) Payment method and device
CN115102917A (en) Message sending method, message processing method and device
CN114554270A (en) Audio and video playing method and device
CN113704515A (en) Multimedia output method and device
CN113934456A (en) Control method and device and electronic equipment
CN112286480A (en) Audio output method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination