CN113726600B - Transmission delay determining method, device, terminal and storage medium - Google Patents

Transmission delay determining method, device, terminal and storage medium Download PDF

Info

Publication number
CN113726600B
CN113726600B CN202110962241.4A CN202110962241A CN113726600B CN 113726600 B CN113726600 B CN 113726600B CN 202110962241 A CN202110962241 A CN 202110962241A CN 113726600 B CN113726600 B CN 113726600B
Authority
CN
China
Prior art keywords
target
terminal
trigger signal
time
timing device
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.)
Active
Application number
CN202110962241.4A
Other languages
Chinese (zh)
Other versions
CN113726600A (en
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.)
Guangzhou Xiaopeng Motors Technology Co Ltd
Original Assignee
Guangzhou Xiaopeng Motors Technology 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 Guangzhou Xiaopeng Motors Technology Co Ltd filed Critical Guangzhou Xiaopeng Motors Technology Co Ltd
Priority to CN202110962241.4A priority Critical patent/CN113726600B/en
Publication of CN113726600A publication Critical patent/CN113726600A/en
Application granted granted Critical
Publication of CN113726600B publication Critical patent/CN113726600B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/80Responding to QoS
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Multimedia (AREA)
  • Selective Calling Equipment (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a transmission delay determining method, a device, a terminal and a storage medium, and belongs to the technical field of data processing. Applied to a terminal, the method comprises the following steps: when a target trigger instruction is generated, sending a first trigger signal to first timing equipment; receiving a first trigger signal through first timing equipment, and acquiring current first time; generating target data according to the target trigger instruction, transmitting the target data to a target interface, and sending a second trigger signal to the first timing device through the target interface, wherein the first trigger signal and/or the second trigger signal are/is a trigger signal reported based on a hardware mechanism; receiving a second trigger signal through first timing equipment to acquire current second time; and determining the transmission delay of the target data according to the first time and the second time. The first time and/or the second time acquired by the method are more accurate, and the method does not depend on the state of an operating system of the terminal, so that the accuracy of acquiring the transmission delay of the target data is improved.

Description

Transmission delay determining method, device, terminal and storage medium
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method, an apparatus, a terminal, and a storage medium for determining a transmission delay.
Background
With the rapid development of science and technology, people increasingly use terminals in daily life, wherein users can play audio data, video data and the like through the terminals.
In the process of playing audio data by a terminal, the terminal needs to perform a series of operation processing such as decoding on the audio data and play the audio data through a loudspeaker, in a traditional playing system, the terminal has a certain time-consuming degree for processing the audio data, when a user wants to measure the transmission delay of the audio data, the playing time for the user to trigger the playing of the audio data can be obtained through an operating system interface of the terminal, and the two times are subtracted by obtaining the time for the user to hear the audio data, so that the playing delay of the audio data is obtained.
In the above technical solution, since the playing time point is obtained based on the terminal operating system interface, the accuracy thereof depends on the state of the operating system, and the obtained time point may change with the state of the operating system, which results in low accuracy of the time delay obtaining of the audio data.
Disclosure of Invention
The embodiment of the application provides a transmission delay determining method, a transmission delay determining device, a terminal and a storage medium, which can improve the accuracy of the time delay acquisition of audio data.
In one aspect, an embodiment of the present application provides a method for determining a transmission delay, where the method is applied to a terminal, where the terminal includes a first timing device and a target interface, and the method includes:
when a target trigger instruction is generated, sending a first trigger signal to the first timing device;
receiving the first trigger signal through the first timing device to obtain current first time;
generating target data according to the target trigger instruction, transmitting the target data to the target interface, and sending a second trigger signal to the first timing device through the target interface, wherein the first trigger signal and/or the second trigger signal are/is based on a trigger signal reported by a hardware mechanism;
receiving the second trigger signal through the first timing device to obtain current second time;
and determining the transmission delay of the target data according to the first time and the second time.
Optionally, before sending the first trigger signal to the first timing device when the target trigger instruction is generated, the method further includes:
responding to touch operation of a first touch control in the terminal, and generating the target trigger instruction through a touch control chip;
the sending a first trigger signal to the first timing device includes:
and sending the first trigger signal to the first timing device through the touch control chip.
Optionally, the target data is mixed audio data, and the generating the target data according to the target trigger instruction includes:
acquiring each target subdata according to the target trigger instruction;
and decoding and mixing sound according to the target subdata to generate the target data.
Optionally, the target interface is an interface for outputting the target data through a data output device of the terminal;
the obtaining each target subdata according to the target trigger instruction includes:
and acquiring each target subdata from a first storage resource according to the target trigger instruction, wherein the first storage resource is stored in a local memory of the terminal or a target server in communication connection with the terminal.
Optionally, the target interface is an interface for receiving the target data through a data input device of the terminal;
the obtaining each target subdata according to the target trigger instruction includes:
starting a microphone assembly according to the target trigger instruction;
and collecting the target subdata through the microphone assembly.
Optionally, the sending, by the target interface, a second trigger signal to the first timing device includes:
when the output level of the target interface is detected to be turned over, the second trigger signal is sent to the first timing device through the target interface; alternatively, the first and second liquid crystal display panels may be,
and when the output pulse signal of the target interface is detected, sending the second trigger signal to the first timing device through the target interface.
Optionally, after determining the transmission delay of the target data according to the first time and the second time, the method further includes;
acquiring a target application scene of the terminal and a user account logged in the terminal;
determining a preset time delay threshold value of the target data according to the target application scene;
determining a demand time delay threshold of the target data according to the user account;
and acquiring a scoring result of the transmission delay according to the transmission delay, the demand delay threshold and the preset delay threshold.
In another aspect, an embodiment of the present application provides a transmission delay determining apparatus, which is applied to a terminal, where the terminal includes a first timing device and a target interface, and the apparatus includes:
the first sending module is used for sending a first trigger signal to the first timing device when a target trigger instruction is generated;
the first acquisition module is used for receiving the first trigger signal through the first timing device and acquiring current first time;
a second sending module, configured to generate target data according to the target trigger instruction, transmit the target data to the target interface, and send a second trigger signal to the first timing device through the target interface, where the first trigger signal and/or the second trigger signal are/is a trigger signal reported based on a hardware mechanism;
the second acquiring module is used for receiving the second trigger signal through the first timing device and acquiring current second time;
and the time delay determining module is used for determining the transmission time delay of the target data according to the first time and the second time.
In another aspect, an embodiment of the present application provides a terminal, where the terminal includes a memory and a processor, where the memory stores a computer program, and when the computer program is executed by the processor, the processor is enabled to implement the transmission delay determining method according to the above aspect and any optional implementation manner thereof.
In another aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to implement the transmission delay determination method according to the another aspect and its optional modes.
The technical scheme provided by the embodiment of the application can at least comprise the following beneficial effects:
when a target trigger instruction is generated, a terminal sends a first trigger signal to first timing equipment; receiving a first trigger signal through first timing equipment, and acquiring current first time; generating target data according to a target trigger instruction, transmitting the target data to a target interface, and sending a second trigger signal to the first timing equipment through the target interface, wherein the first trigger signal and/or the second trigger signal are/is a trigger signal reported based on a hardware mechanism; receiving a second trigger signal through first timing equipment to acquire current second time; and determining the transmission delay of the target data according to the first time and the second time. When a target trigger instruction is generated, a first trigger signal is sent to first timing equipment, and then target data are transmitted to a target interface, a second trigger signal is sent to the first timing equipment through the target interface, the first trigger signal and/or the second trigger signal are/is a trigger signal reported based on a hardware mechanism, the state of an operating system of a terminal is not depended on, the acquired first time and/or second time are/is more accurate, and the accuracy of acquiring the transmission delay of the target data is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic diagram of an audio playing structure for playing audio data in a terminal according to an exemplary embodiment of the present application;
fig. 2 is a flowchart of a method for determining a transmission delay according to an exemplary embodiment of the present application;
fig. 3 is a flowchart of a method for determining a transmission delay according to an exemplary embodiment of the present application;
FIG. 4 is an interface schematic of a terminal interface according to an exemplary embodiment of the present application;
fig. 5 is a schematic structural diagram of processing an audio source file according to an exemplary embodiment of the present application;
fig. 6 is a flowchart of a method for determining a transmission delay according to an exemplary embodiment of the present application;
FIG. 7 is a diagram illustrating an audio playback structure for playing back audio data in a vehicle-mounted terminal according to an exemplary embodiment of the present application;
fig. 8 is a block diagram illustrating a structure of a transmission delay determining apparatus according to an exemplary embodiment of the present application;
fig. 9 is a schematic structural diagram of a terminal according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
Reference herein to "a plurality" means two or more. "and/or" describes the association relationship of the associated object, indicating that there may be three relationships, for example, a and/or B, which may indicate: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
It should be noted that the terms "first", "second", "third" and "fourth", etc. in the description and claims of the present application are used for distinguishing different objects, and are not used for describing a specific order. The terms "comprises," "comprising," and "having," and any variations thereof, in the embodiments of the present application, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements explicitly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The scheme provided by the application can be used in a scene of transmitting target data by using a terminal in daily life, and for convenience of understanding, first, the application architecture related to the embodiment of the application is briefly introduced below.
In daily life, various terminals are used in various fields, and in order to meet more and more demands of people, the terminals provide various functions, for example, people use the terminals to play audio, video and other data, or use the terminals to work, order, position and other work and life. When the terminal plays the audio data, a series of operations such as decoding and the like can be performed on the audio data, and finally the audio data is played through a loudspeaker.
Referring to fig. 1, a schematic diagram of an audio playing structure for playing audio data in a terminal according to an exemplary embodiment of the present application is shown. As shown in fig. 1, the audio playing structure includes a trigger module 101, an audio processing module 102, and an audio output module 103.
The terminal in the present application may be a terminal device having an Audio playing function, for example, the terminal may be a smart phone, a tablet computer, an electronic book reader, smart glasses, a smart watch, an MP3 player (Moving Picture Experts Group Audio Layer III, moving Picture Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, moving Picture Experts compression standard Audio Layer 4), a notebook computer, a laptop computer, a desktop computer, and the like.
Optionally, the terminal may be an internet of things device with an audio playing function, such as a sensor device, a computer of the internet of things terminal, and may be a fixed, portable, pocket, handheld, computer-embedded, or vehicle-mounted device, for example. For example, a Station (STA), a subscriber unit (subscriber unit), a subscriber Station (subscriber Station), a mobile Station (mobile), a remote Station (remote Station), an access point, a remote terminal (remote terminal), an access terminal (access terminal), a user equipment (user terminal), a user agent (user agent), and a user equipment (user device). Alternatively, the terminal may be a device of an unmanned aerial vehicle. Or, the terminal may also be a vehicle-mounted device, for example, a vehicle computer with an audio playing function, or a wireless communication device externally connected to the vehicle computer.
In fig. 1, the trigger module 101 may trigger the terminal to start playing audio data, and after the trigger module 101 is triggered by a user, the audio processing module 102 may obtain a sound source file, decode the sound source file, output the decoded sound source file as a Pulse-Code Modulation (PCM) data stream, perform audio mixing processing, obtain audio mixing data, and send the audio mixing data to the audio output module 103 through an audio interface.
Can include Digital Signal Processing (DSP) chip in audio output module 103, power Amplifier (Power Amplifier, PA), external equipment such as speaker, the terminal of this application can carry out sound smoothing to the audio mixing data that receives through external DSP chip, the volume balance, gain adjustment, sound effect Processing etc. to audio mixing data after handling DSP chip carries out Digital to Analog Converter (Digital to Analog Converter, DAC) later converts into Analog Signal, input Analog Signal for Power Amplifier PA, promote the speaker output after PA amplifies Analog Signal, accomplish the broadcast of audio mixing data.
The processing time of the audio output module 103 is negligible, and for the playing process of the audio data, the main time delay is the processing time delay in the audio processing module 102. In the related art, when a user triggers the terminal to play audio data through the triggering module 101 (for example, the user clicks a play button), the terminal records a timestamp of the audio data through a log or an operating system interface, and then records the timestamp again when determining that the user hears a sound, where a difference between the two recorded timestamps is a play delay of the audio data. Or the terminal can also shoot the click time of the user clicking the play button through the high-speed camera, record the timestamp at the moment, shoot the whole process of sound presentation through the high-speed camera, and then analyze the time difference of the high-definition video to determine the play time delay.
In the above scheme, for obtaining the play delay, the obtaining manner is more dependent on the system state of the operating system, for example, when the user triggers to click to play, the actual time is 14: 14, 57.346.500, which introduces an error of about 2ms, the whole process of shooting sound presentation by a high-speed camera is also high in complexity in practical application, and the determination process of the playing time delay is tedious and has low accuracy.
In order to facilitate determination of transmission delay of data and improve accuracy of acquisition of the transmission delay, the application provides a solution, by triggering a trigger signal reported based on a hardware mechanism, and triggering a terminal to acquire time of a first timing device based on a first trigger signal and/or a second trigger signal, so as to determine the transmission delay and reduce dependence degree of the acquired transmission time on an operating system.
Referring to fig. 2, a flowchart of a method for determining a transmission delay according to an exemplary embodiment of the present application is shown. The transmission delay determining method may be applied to the terminal in the scenario architecture shown in fig. 1, where the method may be executed by the terminal, and the terminal includes the first timing device and the target interface. As shown in fig. 2, the transmission delay determining method may include the following steps.
Step 201, when a target trigger instruction is generated, a first trigger signal is sent to a first timing device.
Optionally, the target trigger instruction is generated in the terminal based on a trigger module triggered by a user, where the trigger module may be a touch control displayed in a touch screen of the terminal. The target trigger instruction can also be triggered by a voice control signal, a gesture signal and the like received by the terminal. For example, when playing audio data in the terminal, whether the audio data is played is triggered by a playing control in the display screen, or whether the audio data is played is triggered by receiving voice "play" input by a user, or whether the audio data is played is triggered by receiving a fixed gesture input by the user and by gesture recognition. The target triggering instruction can be used for triggering the terminal to generate and transmit target data, and the target data can be audio data.
Optionally, the first timing device may be separately designed in the terminal, the first timing device may be electrically connected to a trigger module that generates the target trigger instruction, and when the trigger module generates the target trigger instruction, the first timing device sends the first trigger signal to the first timing device. Optionally, the first trigger signal may be a trigger signal reported based on a hardware mechanism. For example, when the trigger module is a touch control chip of a touch screen, the first trigger signal may be an interrupt signal between the touch control chip and the first timing device, and the touch control chip may send the interrupt signal to the first timing device when generating the target trigger instruction. Alternatively, the first timing device may be any one of a timer and a timer.
Step 202, receiving a first trigger signal through a first timing device, and acquiring a current first time.
Optionally, in the terminal, after receiving the first trigger signal through the first timing device, the terminal may obtain the time recorded in the first timing device, that is, the current first time. For example, when the first timing device is a timer, after the timer receives the first trigger signal, the current time recorded by the timer is C1, and then the current first time acquired by the terminal is C1.
Step 203, generating target data according to the target trigger instruction, transmitting the target data to the target interface, and sending a second trigger signal to the first timing device through the target interface.
The first trigger signal and/or the second trigger signal are/is a trigger signal reported based on a hardware mechanism. That is, in this application, the first trigger signal or the second trigger signal may be a trigger signal reported based on a hardware mechanism, or both the first trigger signal and the second trigger signal may be trigger signals reported based on a hardware mechanism.
Optionally, after the terminal generates the target trigger instruction, the terminal may further generate target data according to the target trigger instruction, transmit the target data to the target interface, and send the second trigger signal to the first timing device through the target interface when the target data is transmitted to the target interface. When the second trigger signal is a trigger signal reported based on a hardware mechanism, the second trigger signal may be an interrupt signal between the target interface and the first timing device, and when the target interface receives the target data, the target interface may send the interrupt signal to the first timing device.
And step 204, receiving a second trigger signal through the first timing device, and acquiring a current second time.
Similarly, in the terminal, after receiving the second trigger signal through the first timing device, the terminal may obtain the time recorded in the first timing device, that is, the current second time. For example, when the first timing device is a timer, after the timer receives the second trigger signal, the current recorded time of the timer is C2, and then the current second time acquired by the terminal is C2.
Step 205, determining the transmission delay of the target data according to the first time and the second time.
Optionally, according to different first timing devices, the formulas for determining the transmission delay of the target data by the terminal device are different. For example, when the first timing device is a Timer (also called Timer, or counter, the value of which is the number of external clock cycles), the terminal may calculate the transmission delay of the target data by the difference between the first time and the second time. For example, the first time determined above is C1, the second time is C2, and the transmission delay of the target data determined by the terminal is (C2-C1). When the first timing device is a timer, the terminal may calculate the transmission delay of the target data by a difference between the first time and the second time and multiplying by the clock period. For example, the first time determined above is C1, the second time is C2, and the transmission delay of the target data determined by the terminal is (C2-C1) × T. Where T is the clock period of the timer.
To sum up, when generating a target trigger instruction, the terminal of the present application sends a first trigger signal to a first timing device; receiving a first trigger signal through first timing equipment, and acquiring current first time; generating target data according to a target trigger instruction, transmitting the target data to a target interface, and sending a second trigger signal to the first timing equipment through the target interface, wherein the first trigger signal and/or the second trigger signal are/is a trigger signal reported based on a hardware mechanism; receiving a second trigger signal through first timing equipment to acquire current second time; and determining the transmission time delay of the target data according to the first time and the second time. When a target trigger instruction is generated, a first trigger signal is sent to first timing equipment, and then target data are transmitted to a target interface, a second trigger signal is sent to the first timing equipment through the target interface, the first trigger signal and/or the second trigger signal are/is a trigger signal reported based on a hardware mechanism, the state of an operating system of a terminal is not depended on, the acquired first time and/or second time are/is more accurate, and the accuracy of acquiring the transmission delay of the target data is improved.
In a possible implementation manner, in the process of generating the target trigger instruction, the terminal generates the target trigger instruction through the touch control chip by responding to a touch operation of a user on a first touch control in the terminal, and acquires the first time of the first timing device through an interrupt signal between the touch control chip and the first timing device, so as to determine the transmission delay and reduce the degree of dependence of the acquired transmission time on an operating system.
Referring to fig. 3, a flowchart of a method for determining a propagation delay according to an exemplary embodiment of the present application is shown. The transmission delay determining method may be applied to the terminal in the scenario architecture shown in fig. 1, where the method may be executed by the terminal, and the terminal includes the first timing device and the target interface. As shown in fig. 3, the transmission delay determining method may include the following steps.
Step 301, responding to a touch operation on a first touch control in the terminal, and generating a target trigger instruction through a touch control chip.
Optionally, the terminal includes a touch screen, the touch screen is electrically connected to the touch control chip, and when a user touches the first touch control on the touch screen, the terminal may generate a target trigger instruction through the touch control chip.
Referring to fig. 4, an interface schematic diagram of a terminal interface according to an exemplary embodiment of the present application is shown, as shown in fig. 4, a terminal interface 400 includes a first touch control 401, a user touches the touch control 401, and can control whether the terminal plays audio data, and when it is determined that the audio data needs to be played, the terminal generates a target trigger instruction through a touch control chip, so that the terminal finally plays the audio data. In a possible implementation manner, fig. 4 further includes a second touch control 402, where the second touch control is an entity control, and when a user presses the second touch control, the terminal device may also be triggered to generate a target trigger instruction, which is not limited in the embodiment of the present application.
It should be noted that the triggering of the target trigger instruction in the form of a control is exemplary, and in practical application, the terminal may be triggered to generate the target trigger instruction in a plurality of forms, such as a voice control manner, a gesture recognition manner, and the like, which is not described herein any more.
Step 302, when a target trigger instruction is generated, a first trigger signal is sent to a first timing device through a touch control chip.
Optionally, when the terminal generates the target trigger instruction, the terminal sends a first trigger signal reported based on a hardware mechanism to the first timing device through the touch control chip.
Optionally, the first timing device may be separately designed in the terminal, the first timing device may be electrically connected to the trigger module that generates the target trigger instruction, and when the terminal receives a touch operation of a user on the first touch control in the terminal and generates the target trigger instruction through the touch control chip, the first timing device further sends the first trigger signal through the touch control chip. The first trigger signal may be an interrupt signal between the touch control chip and the first timing device, and the touch control chip may send the interrupt signal to the first timing device when generating the target trigger instruction. Alternatively, the first timing device may be any one of a timer and a timer.
It should be noted that, since the interrupt itself is a hardware mechanism, there is no time delay in the interrupt transmission, and after the user clicks the first touch control in the touch screen, the touch control chip notifies the first timing device through the interrupt, and there is no time delay in acquiring the time of the first timing device, thereby improving the accuracy of acquiring the subsequent transmission time delay. The present application is not limited to other hardware-based trigger signals other than interrupts.
Step 303, receiving the first trigger signal through the first timing device, and acquiring a current first time.
Optionally, in the terminal, after receiving the first trigger signal through the first timing device, the terminal may obtain the time recorded in the first timing device, that is, the current first time. For example, when the first timing device is a timer, after the timer receives an interrupt sent by the touch control chip, the current time recorded by the timer is C1, and then the current first time obtained by the terminal is C1, which is the time when the playing starts. Or, the first timing device may be a working clock (a timer) in the terminal, and when the timer receives an interrupt sent by the touch control chip, the terminal acquires the current time C3 recorded in the first timer as the first time.
And step 304, acquiring each target subdata according to the target trigger instruction.
Optionally, the target data is mixed audio data. The terminal equipment receives the generated target trigger instruction and then acquires each target subdata needing to be mixed. For example, the mixed audio data is composed of three audio source files, and the terminal can acquire the three audio source files.
In a possible implementation manner, after the terminal generates the target data through each target subdata, a target interface for transmitting the target data is an interface for outputting the target data through data output equipment of the terminal; the terminal may obtain each target sub-data from the first storage resource according to the target trigger instruction when obtaining each target sub-data in this step, where the first storage resource is stored in a local memory of the terminal or in a target server in communication connection with the terminal. The data output device may be an external device such as the DSP chip, the power amplifier, and the speaker in fig. 1.
That is, each sound source file is pre-stored in the terminal, when a user needs to play several sound source files, the terminal is triggered to generate a target trigger instruction through the first trigger control, and the terminal acquires the several sound source files that the user wants to play from the stored sound source files. Alternatively, the audio source file may be obtained according to the name of the audio source file. Or, a music application program with a music playing function is installed in the terminal, the target server is a background server corresponding to the music application program, the terminal is in communication connection with the target server, and after a user triggers the terminal to generate a target triggering instruction through the first triggering control, the terminal acquires a plurality of sound source files in the target server through communication connection.
In a possible implementation manner, after the terminal generates the target data through each target sub-data, a target interface for transmitting the target data is an interface for receiving the target data through a data input device of the terminal; the terminal can start the microphone assembly according to the target trigger instruction when acquiring each target subdata in the step; and collecting each target subdata through a microphone assembly. The data input device may be a device such as a memory that stores sound.
That is, in the present application, the target data is obtained by the terminal by acquiring an external sound and performing sound processing according to the external sound, and a certain time delay may also exist in a process of storing the target data in the data input device by the terminal, and when the terminal generates the target data through each target subdata after the microphone receives each target subdata and transmits the target data to an interface of the data input device, the terminal may also transmit the second trigger signal to the first timing device through the target interface, so as to obtain the transmission time delay existing in the transmission process.
Step 305, decoding and mixing the target sub-data to generate target data.
Optionally, the terminal decodes and mixes the obtained target sub-data to obtain mixed target data. For example, according to the example that the audio processing module 102 is a System on Chip (SoC) in fig. 1, the target sub-data are different sound source files. Referring to fig. 5, a schematic diagram of a structure for processing audio source files according to an exemplary embodiment of the present application is shown, as shown in fig. 5, in an SoC, each target sub-data (each audio source file) 501 obtained by a terminal is included, a decoding module 502, and a mixing processing module 503. After the terminal acquires each sound source file, the decoding module 502 decodes each sound source file, and the sound mixing processing module 503 performs sound mixing processing on each decoded data to obtain sound mixing data.
Step 306, transmitting the target data to the target interface, and sending a second trigger signal to the first timing device through the target interface.
The first trigger signal and/or the second trigger signal are/is a trigger signal reported based on a hardware mechanism. That is, in this application, the first trigger signal or the second trigger signal may be a trigger signal reported based on a hardware mechanism, or both the first trigger signal and the second trigger signal may be trigger signals reported based on a hardware mechanism.
Optionally, when the terminal transmits the target data to the target interface, the target interface sends a second trigger signal to the first timing device, where the second trigger signal may be an interrupt signal between the target interface and the first timing device, and when the target interface receives the target data, the target interface may send the interrupt signal to the first timing device. Optionally, when the target Data is mixed audio Data, the target interface may be an audio interface, for example, an interface such as an Inter-IC Sound (I2S) or a Time Division Multiplexing (TDM) interface.
In a possible implementation manner, the terminal may send the second trigger signal to the first timing device through the target interface, in such a manner that when it is detected that the output level of the target interface is inverted, the second trigger signal is sent to the first timing device through the target interface. That is, when the terminal transmits the target data to the target interface, the second trigger signal may be transmitted to the first timing device based on the characteristics of the target interface itself. For example, the terminal may detect whether the output level of the target interface is inverted, and send the second trigger signal to the first timing device through the target interface when detecting that the output level of the target interface is inverted. Taking an I2S bus as an example, when the terminal transmits target data to the target interface, the level of the I2S data bus starts to change, and when it is detected that the output level of the I2S is inverted, the first timing device is notified to acquire the second time by sending an interrupt to the first timing device.
In a possible implementation manner, the terminal may also send the second trigger signal to the first timing device through the target interface, in such a manner that when the output pulse signal of the target interface is detected, the second trigger signal is sent to the first timing device through the target interface. For example, the terminal may detect whether the output level of the target interface is inverted, output a pulse signal through the target interface when the output level of the target interface is inverted, trigger the target interface to send an interrupt to the first timing device according to the pulse signal, and notify the first timing device to acquire the second time. Still taking the I2S bus as an example, when the terminal transmits the target data to the target interface, the level of the I2S data bus starts to change, when it is detected that the output level of the I2S is inverted, the pulse signal is output through the I2S, and an interrupt is sent to the first timing device based on the pulse signal to notify the first timing device to acquire the second time. The trigger signal is a level trigger or a pulse trigger, and is not limited herein. The corresponding setting is specifically required to be performed according to the first timing device.
Step 307, receiving the second trigger signal through the first timing device, and acquiring a current second time.
And after the corresponding terminal equipment receives the interrupt sent by the target interface through the first timing equipment, acquiring the current time in the first timing equipment, wherein the current time is the second time. In the step, the first timing device receives the second trigger signal to obtain the second time. Taking the example that the target data is audio data, the first time is a timestamp when the user starts playing the mixed audio data, the second time is a timestamp when the terminal generates the target data by responding to the touch operation of the user on the first touch control and transmits the target data to the target interface, at this moment, the terminal already plays the mixed audio data, and the difference value between the first time and the second time is the transmission delay of the mixed audio data.
And 308, determining the transmission delay of the target data according to the first time and the second time.
Optionally, the terminal determines that the formula of the transmission delay of the target data is different according to different first timing devices. For example, when the first timing device is a timer, the terminal may calculate the transmission delay of the target data by a difference between the first time and the second time. For example, the first time determined above is C1, the second time is C2, and the transmission delay of the target data determined by the terminal is (C2-C1). When the first timing device is a timer, the terminal may calculate the transmission delay of the target data by a difference between the first time and the second time and multiplying by the clock period. For example, the first time determined above is C1, the second time is C2, and the transmission delay of the target data determined by the terminal is (C2-C1) × T. Where T is the clock period of the timer.
In a possible implementation manner, the terminal may further obtain a target application scenario of the terminal and a user account logged in the terminal; determining a preset time delay threshold value of target data according to a target application scene; determining a demand time delay threshold of target data according to a user account; and acquiring a scoring result of the transmission delay according to the transmission delay, the required delay threshold and the preset delay threshold.
Optionally, the target application scenario may include a vehicle-mounted music playing scenario, an indoor music playing scenario, an outdoor music playing scenario, and the like. The user can select the corresponding target application scene when entering the music playing application program, for example, the user can select the vehicle-mounted music playing scene during driving, the user can select the indoor music playing scene during indoor music playing, and the user can select the outdoor music playing scene during outdoor music playing. After the transmission delay is obtained, the terminal may obtain a previously selected target application scenario, and determine a preset delay threshold of the target data according to the target application scenario.
For example, the different target application scenes correspond to different preset delay thresholds, the corresponding relationship may be stored in the terminal in advance, and the terminal obtains the preset delay threshold corresponding to the target application scene according to the target application scene by querying a corresponding relationship table between the target application scene and the preset delay threshold.
Optionally, the user account may be a user account logged in the opened music application, and the user may check information such as a play record of the user by logging in the user account in the terminal. After obtaining the transmission delay, the terminal may further extract the user account logged in the music application. And the terminal determines a required time delay threshold of the target data according to the user account. The user may set a requirement delay threshold corresponding to the user account of the user, where the requirement delay threshold may represent a transmission delay of the user to play the mixed audio data on the terminal, for example, the user may set 20ms, and the terminal may extract the requirement delay threshold corresponding to the user account from the target server or the local memory according to the user account.
The terminal can obtain the scoring result of the transmission delay according to the transmission delay, the required delay threshold and the preset delay threshold. For example, the terminal calculates a scoring result according to the following formula, P = X/R + X/D, where P represents a scoring result of transmission delay, X represents transmission delay, R represents a required delay threshold, and D represents a preset delay threshold. Through the sum of the ratios, the terminal can obtain the grading result of the transmission delay of the terminal, and when the grading result is low, the terminal can prompt a user that the processing module of the target data needs to be upgraded or replaced, so that the requirement of the user is met in time.
To sum up, when generating a target trigger instruction, the terminal of the present application sends a first trigger signal to a first timing device; receiving a first trigger signal through first timing equipment, and acquiring current first time; generating target data according to a target trigger instruction, transmitting the target data to a target interface, and sending a second trigger signal to the first timing equipment through the target interface, wherein the first trigger signal and/or the second trigger signal are/is a trigger signal reported based on a hardware mechanism; receiving a second trigger signal through first timing equipment to acquire current second time; and determining the transmission time delay of the target data according to the first time and the second time. According to the method and the device, when the target trigger instruction is generated, the first trigger signal is sent to the first timing device, when the target data are transmitted to the target interface, the second trigger signal is sent to the first timing device through the target interface, the first trigger signal and/or the second trigger signal are/is the trigger signal reported based on a hardware mechanism, the state of an operating system of the terminal is not depended on, the acquired first time and/or second time are/is more accurate, and the accuracy of acquiring the transmission delay of the target data is improved.
Next, the terminal is a vehicle-mounted terminal, and the transmission delay determining method is applied to a scenario of determining a playing delay of mixed sound data in the vehicle-mounted terminal.
Referring to fig. 6, a flowchart of a method for determining a transmission delay according to an exemplary embodiment of the present application is shown. The transmission delay determining method may be applied to the terminal in the scenario architecture shown in fig. 1, where the method may be executed by the terminal, and the terminal includes the first timing device and the target interface. As shown in fig. 6, the transmission delay determining method may include the following steps.
Step 601, a user triggers a play control of the mixed audio data displayed in a touch screen of the vehicle-mounted terminal.
Step 602, the vehicle-mounted terminal generates a target trigger instruction through the touch control chip and sends a first interrupt to the timer.
Step 603, the vehicle-mounted terminal acquires the first time C1 of the timer.
And step 604, the vehicle-mounted terminal starts the SoC according to the target trigger instruction, and decodes and mixes the sound of each sound source file to obtain mixed audio data.
Step 605, transmitting the mixed audio data to the I2S interface, and sending a second interrupt to the timer through the I2S interface.
And step 606, the vehicle-mounted terminal acquires a second time C2 of the timer.
And step 607, the vehicle-mounted terminal calculates the playing time delay of the mixed audio data according to the first time C1 and the second time C2.
Wherein, (C2-C1) × T (T is a clock period of the timer) is a playing delay of the mixed audio data played by the playing system. For example, assume that the clock frequency is: 1mhz, t =1us, as shown above for example, C1=25000, C2=40000. The playing time delay of the playing system is as follows: t = (C2-C1) × T = (40000-25000) × 1us =15ms.
Please refer to fig. 7, which illustrates a schematic diagram of an audio playing structure for playing audio data in a vehicle-mounted terminal according to an exemplary embodiment of the present application. As shown in fig. 7, the audio playing structure includes a touch screen 701, a touch control chip 702, an audio processing module 703, a timer 704, and an audio output module 705. The purpose of each hardware may refer to the description in the embodiment shown in fig. 6, and is not described herein again.
To sum up, when the vehicle-mounted terminal generates the target trigger instruction, the vehicle-mounted terminal sends a first interrupt to the timer; receiving a first interrupt through a timer, and acquiring current first time; generating mixed audio data according to the target trigger instruction, transmitting the mixed audio data to a target interface, and sending a second interrupt to the timer through the target interface; receiving a second interrupt through a timer, and acquiring current second time; and determining the transmission time delay of the mixed audio data according to the first time and the second time. According to the method and the device, when the target trigger instruction is generated, the first interruption is sent to the timer, when the mixed audio data are transmitted to the target interface, the second interruption is sent to the timer through the target interface, the state of an operating system of the vehicle-mounted terminal is not depended on, the obtained first time and/or second time are more accurate, and the accuracy of obtaining the transmission delay of the mixed audio data is improved.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 8, a block diagram of a transmission delay determining apparatus 800 according to an exemplary embodiment of the present application is shown, where the transmission delay determining apparatus 800 may be applied to a terminal, where the terminal includes a first timing device and a target interface, and the transmission delay determining apparatus includes:
a first sending module 801, configured to send a first trigger signal to the first timing device when a target trigger instruction is generated;
a first obtaining module 802, configured to receive the first trigger signal through the first timing device, and obtain a current first time;
a second sending module 803, configured to generate target data according to the target trigger instruction, transmit the target data to the target interface, and send a second trigger signal to the first timing device through the target interface, where the first trigger signal and/or the second trigger signal are trigger signals reported based on a hardware mechanism;
a second obtaining module 804, configured to receive the second trigger signal through the first timing device, and obtain a current second time;
a delay determining module 805, configured to determine a transmission delay of the target data according to the first time and the second time.
To sum up, when generating a target trigger instruction, the terminal of the present application sends a first trigger signal to a first timing device; receiving a first trigger signal through first timing equipment, and acquiring current first time; generating target data according to the target trigger instruction, transmitting the target data to a target interface, and sending a second trigger signal to the first timing device through the target interface, wherein the first trigger signal and/or the second trigger signal are/is a trigger signal reported based on a hardware mechanism; receiving a second trigger signal through first timing equipment to acquire current second time; and determining the transmission time delay of the target data according to the first time and the second time. When a target trigger instruction is generated, a first trigger signal is sent to first timing equipment, and then target data are transmitted to a target interface, a second trigger signal is sent to the first timing equipment through the target interface, the first trigger signal and/or the second trigger signal are/is a trigger signal reported based on a hardware mechanism, the state of an operating system of a terminal is not depended on, the acquired first time and/or second time are/is more accurate, and the accuracy of acquiring the transmission delay of the target data is improved.
Optionally, the apparatus further comprises:
a first generating module, configured to generate a target trigger instruction through a touch control chip in response to a touch operation on a first touch control in the terminal before the first sending module 801 sends a first trigger signal to the first timing device when the first sending module 801 generates the target trigger instruction;
the first sending module 801 is further configured to send the first trigger signal to the first timing device through the touch control chip.
Optionally, the target data is mixed audio data, and the generating target data according to the target trigger instruction includes:
acquiring each target subdata according to the target trigger instruction;
and decoding and mixing the audio according to the target subdata to generate the target data.
Optionally, the target interface is an interface for outputting the target data through a data output device of the terminal;
the obtaining each target subdata according to the target trigger instruction includes:
and acquiring each target subdata from a first storage resource according to the target trigger instruction, wherein the first storage resource is stored in a local memory of the terminal or a target server in communication connection with the terminal.
Optionally, the target interface is an interface for receiving the target data through a data input device of the terminal;
the obtaining each target subdata according to the target trigger instruction includes:
starting a microphone assembly according to the target trigger instruction;
and collecting the target subdata through the microphone assembly.
Optionally, the sending, by the target interface, the second trigger signal to the first timing device includes:
when the output level of the target interface is detected to be turned over, the second trigger signal is sent to the first timing device through the target interface; alternatively, the first and second electrodes may be,
and when the output pulse signal of the target interface is detected, sending the second trigger signal to the first timing device through the target interface.
Optionally, the apparatus further comprises:
a third obtaining module, configured to obtain a target application scenario of the terminal and a user account logged in the terminal after the delay determining module 805 determines a transmission delay of the target data according to the first time and the second time;
the first determining module is used for determining a preset time delay threshold value of the target data according to the target application scene;
the second determining module is used for determining a required time delay threshold of the target data according to the user account;
and the fourth acquisition module is used for acquiring a scoring result of the transmission delay according to the transmission delay, the demand delay threshold and the preset delay threshold.
Fig. 9 is a schematic structural diagram of a terminal according to an exemplary embodiment of the present application. As shown in fig. 9, the terminal 900 includes a Central Processing Unit (CPU) 901, a system Memory 904 including a Random Access Memory (RAM) 902 and a Read Only Memory (ROM) 903, and a system bus 905 connecting the system Memory 904 and the CPU 901. The terminal 900 further includes a basic Input/Output System (I/O System) 908 for facilitating information transfer between devices within the computer, and a mass storage device 907 for storing an operating System 912, application programs 913 and other program modules 914.
The basic input/output system 906 includes a display 908 for displaying information and an input device 909 such as a mouse, keyboard, etc. for a user to input information. Wherein the display 908 and the input device 909 are connected to the central processing unit 901 through an input output controller 910 connected to the system bus 905. The basic input/output system 906 may also include an input/output controller 910 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, an input-output controller 910 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 907 is connected to the central processing unit 901 through a mass storage controller (not shown) connected to the system bus 905. The mass storage device 907 and its associated computer-readable media provide non-volatile storage for the terminal 900. That is, the mass storage device 907 may include a computer-readable medium (not shown) such as a hard disk or CD-ROM (Compact disk Read-Only Memory) drive.
The computer readable media may include computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, EPROM (Erasable Programmable Read Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory), flash Memory or other solid state Memory technology, CD-ROM, DVD (Digital Video Disc), or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage media is not limited to the foregoing. The system memory 904 and mass storage device 907 described above may be collectively referred to as memory.
The terminal 900 can be connected to the internet or other network device through a network interface unit 911 connected to the system bus 905.
The memory further includes one or more programs, the one or more programs are stored in the memory, and the central processing unit 901 implements all or part of the steps executed by the terminal in the methods provided by the above embodiments of the present application by executing the one or more programs.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product.
The computer program product includes one or more computer instructions. The procedures or functions described in accordance with the embodiments of the application are all or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can store or a data storage device, such as a server, a data center, etc., that is integrated with one or more available media. The usable medium may be a magnetic medium (e.g., a floppy Disk, a hard Disk, a magnetic tape), an optical medium (e.g., a Digital Video Disc (DVD)), or a semiconductor medium (e.g., a Solid State Disk (SSD)), among others.
The embodiment of the application also discloses a vehicle, which comprises a vehicle-mounted terminal, wherein the vehicle-mounted terminal comprises a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor is enabled to realize the transmission delay determination method in the embodiment of the method. Optionally, the terminal may be a vehicle-mounted terminal in this embodiment.
The embodiment of the application also discloses a computer readable storage medium which stores a computer program, wherein the computer program is executed by a processor to realize the method in the embodiment of the method.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. Those skilled in the art should also appreciate that the embodiments described in this specification are all alternative embodiments and that the acts and modules involved are not necessarily required for this application.
In various embodiments of the present application, it should be understood that the sequence numbers of the above-mentioned processes do not imply a necessary order of execution, and the order of execution of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated units, if implemented as software functional units and sold or used as separate products, may be stored in a computer accessible memory. Based on such understanding, the technical solutions of the present application, which essentially or partly contribute to the prior art, or all or part of the technical solutions, may be embodied in the form of a software product, which is stored in a memory and includes several requests for causing a computer device (which may be a personal computer, a server, or a network device, etc., and may specifically be a processor in the computer device) to execute some or all of the steps of the above methods of the embodiments of the present application.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be implemented by program instructions associated with hardware, and the program may be stored in a computer-readable storage medium, which includes Read-Only Memory (ROM), random Access Memory (RAM), programmable Read-Only Memory (PROM), erasable Programmable Read-Only Memory (EPROM), one-time Programmable Read-Only Memory (OTPROM), electrically Erasable Programmable Read-Only Memory (EEPROM), an optical Disc-Read-Only Memory (CD-ROM) or other storage medium, a magnetic tape, or any other medium capable of storing data for a computer or other computer.
The foregoing describes a method, an apparatus, a terminal and a storage medium for determining transmission delay disclosed in the embodiments of the present application by way of example, and a principle and an implementation of the present application are described herein by applying an example, and the description of the foregoing embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (9)

1. A transmission delay determining method is applied to a terminal, wherein the terminal comprises a first timing device and a target interface, and the method comprises the following steps:
when a target trigger instruction is generated, sending a first trigger signal to the first timing device;
receiving the first trigger signal through the first timing device to obtain current first time;
generating target data according to the target trigger instruction, transmitting the target data to the target interface, and sending a second trigger signal to the first timing device through the target interface, wherein the first trigger signal and/or the second trigger signal are/is based on a trigger signal reported by a hardware mechanism;
receiving the second trigger signal through the first timing device to obtain current second time;
determining the transmission time delay of the target data according to the first time and the second time;
acquiring a target application scene of the terminal and a user account logged in the terminal, wherein the target application scene at least comprises a vehicle-mounted music playing scene, an indoor music playing scene and an outdoor music playing scene; determining a preset time delay threshold value of the target data according to the target application scene, wherein different target application scenes correspond to different preset time delay threshold values; determining a demand time delay threshold of the target data according to the user account; and the processing module is used for acquiring a grading result of the transmission delay according to the transmission delay, the requirement delay threshold and the preset delay threshold, and prompting a user to replace the target data when the grading result is lower.
2. The method of claim 1, wherein prior to said sending a first trigger signal to said first timing device when generating a target trigger instruction, further comprising:
responding to touch operation of a first touch control in the terminal, and generating the target trigger instruction through a touch control chip;
the sending a first trigger signal to the first timing device includes:
and sending the first trigger signal to the first timing device through the touch control chip.
3. The method of claim 1, wherein the target data is mixed audio data, and wherein generating target data according to the target trigger instruction comprises:
acquiring each target subdata according to the target trigger instruction;
and decoding and mixing the audio according to the target subdata to generate the target data.
4. The method according to claim 3, wherein the target interface is an interface that outputs the target data through a data output device of the terminal;
the obtaining each target subdata according to the target trigger instruction includes:
and acquiring each target subdata from a first storage resource according to the target trigger instruction, wherein the first storage resource is stored in a local memory of the terminal or a target server in communication connection with the terminal.
5. The method of claim 3, wherein the target interface is an interface that receives the target data through a data input device of the terminal;
the obtaining each target subdata according to the target trigger instruction includes:
starting a microphone assembly according to the target trigger instruction;
and collecting the target subdata through the microphone assembly.
6. The method according to any one of claims 1 to 5, wherein said sending a second trigger signal to said first timing device via said target interface comprises:
when the output level of the target interface is detected to be turned over, the second trigger signal is sent to the first timing device through the target interface; alternatively, the first and second electrodes may be,
and when the output pulse signal of the target interface is detected, sending the second trigger signal to the first timing device through the target interface.
7. A transmission delay determining apparatus, applied to a terminal, where the terminal includes a first timing device and a target interface, the apparatus includes:
the first sending module is used for sending a first trigger signal to the first timing device when a target trigger instruction is generated;
the first acquisition module is used for receiving the first trigger signal through the first timing device and acquiring current first time;
a second sending module, configured to generate target data according to the target trigger instruction, transmit the target data to the target interface, and send a second trigger signal to the first timing device through the target interface, where the first trigger signal and/or the second trigger signal are trigger signals reported based on a hardware mechanism;
the second acquisition module is used for receiving the second trigger signal through the first timing device and acquiring the current second time;
a delay determining module, configured to determine a transmission delay of the target data according to the first time and the second time;
the third acquisition module is used for acquiring a target application scene of the terminal and a user account logged in the terminal, wherein the target application scene at least comprises a vehicle-mounted music playing scene, an indoor music playing scene and an outdoor music playing scene;
the first determining module is used for determining a preset time delay threshold value of the target data according to the target application scene, wherein different target application scenes correspond to different preset time delay threshold values;
the second determining module is used for determining a demand time delay threshold of the target data according to the user account;
and the fourth acquisition module is used for acquiring a scoring result of the transmission delay according to the transmission delay, the requirement delay threshold and the preset delay threshold, and prompting a user to replace the processing module of the target data when the scoring result is lower.
8. A terminal, characterized in that the terminal comprises a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, causes the processor to implement the transmission delay determination method according to any one of claims 1 to 6.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the transmission delay determination method according to any one of claims 1 to 6.
CN202110962241.4A 2021-08-20 2021-08-20 Transmission delay determining method, device, terminal and storage medium Active CN113726600B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110962241.4A CN113726600B (en) 2021-08-20 2021-08-20 Transmission delay determining method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110962241.4A CN113726600B (en) 2021-08-20 2021-08-20 Transmission delay determining method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN113726600A CN113726600A (en) 2021-11-30
CN113726600B true CN113726600B (en) 2023-03-31

Family

ID=78677239

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110962241.4A Active CN113726600B (en) 2021-08-20 2021-08-20 Transmission delay determining method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN113726600B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114647336A (en) * 2022-03-15 2022-06-21 Oppo广东移动通信有限公司 Click delay measuring method and device, storage medium and electronic equipment
CN115022204B (en) * 2022-05-26 2023-12-05 阿里巴巴(中国)有限公司 RTC transmission delay detection method, device and equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111131272A (en) * 2019-12-27 2020-05-08 广州酷狗计算机科技有限公司 Scheduling method, device and system of stream server, computing equipment and storage medium
CN111371916A (en) * 2020-02-26 2020-07-03 腾讯科技(深圳)有限公司 Data processing method and related equipment
WO2021031853A1 (en) * 2019-08-21 2021-02-25 Oppo广东移动通信有限公司 Wireless fidelity (wi-fi) access point selection method and related apparatus

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE1963004B2 (en) * 1968-12-20 1971-07-08 ARRANGEMENT FOR QUICK RANGE MEASUREMENT OF CAPTURED TARGETS IN A TARGET TRACKING PULSE RADAR RECEIVER
CN109743501A (en) * 2019-01-15 2019-05-10 上海曼恒数字技术股份有限公司 A kind of polyphaser synchronous trigger method, device, equipment and storage medium
CN111372105A (en) * 2020-03-26 2020-07-03 深圳市微测检测有限公司 Video information transmission delay test method, device, terminal and storage medium
CN111405218A (en) * 2020-03-26 2020-07-10 深圳市微测检测有限公司 Touch screen time delay detection method, system, device, equipment and storage medium
CN112672415B (en) * 2020-12-25 2022-04-26 之江实验室 Multi-sensor time synchronization method, device, system, electronic device and medium
CN112804121B (en) * 2021-01-08 2022-07-08 中国商用飞机有限责任公司北京民用飞机技术研究中心 TTE network transmission delay test system and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021031853A1 (en) * 2019-08-21 2021-02-25 Oppo广东移动通信有限公司 Wireless fidelity (wi-fi) access point selection method and related apparatus
CN111131272A (en) * 2019-12-27 2020-05-08 广州酷狗计算机科技有限公司 Scheduling method, device and system of stream server, computing equipment and storage medium
CN111371916A (en) * 2020-02-26 2020-07-03 腾讯科技(深圳)有限公司 Data processing method and related equipment

Also Published As

Publication number Publication date
CN113726600A (en) 2021-11-30

Similar Documents

Publication Publication Date Title
US10964300B2 (en) Audio signal processing method and apparatus, and storage medium thereof
KR102436168B1 (en) Systems and methods for creating listening logs and music libraries
CN105872253B (en) Live broadcast sound processing method and mobile terminal
CN113726600B (en) Transmission delay determining method, device, terminal and storage medium
CN104205209B9 (en) Playback controlling apparatus, playback controls method
CN102959544B (en) For the method and system of synchronized multimedia
KR102084979B1 (en) Audio file rerecording method, device and storage media
US9812104B2 (en) Sound providing method and electronic device for performing the same
WO2018223837A1 (en) Music playing method and related product
CN109493852A (en) A kind of evaluating method and device of speech recognition
CN110675848B (en) Audio processing method, device and storage medium
CN111986689A (en) Audio playing method, audio playing device and electronic equipment
WO2018219165A1 (en) Music playback method, terminal, and storage medium
CN110599989B (en) Audio processing method, device and storage medium
WO2018120545A1 (en) Method and device for testing latency of audio loop
CN107483731A (en) Control method, device and the storage medium and mobile terminal of audio broadcast sound volume
KR100783113B1 (en) Method for shortened storing of music file in mobile communication terminal
WO2017101260A1 (en) Method, device, and storage medium for audio switching
US20240054157A1 (en) Song recommendation method and apparatus, electronic device, and storage medium
WO2017215236A1 (en) Playback method and earphone
CN103647761A (en) Method and device for marking audio record, and terminal, server and system
CN109194998A (en) Data transmission method, device, electronic equipment and computer-readable medium
CN109040912A (en) Plug-hole processing method and Related product
CN110660376B (en) Audio processing method, device and storage medium
US20070186750A1 (en) Apparatus and method for composing music in a portable terminal

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
GR01 Patent grant
GR01 Patent grant