CN114071192A - Information acquisition method, terminal, server, electronic device, and storage medium - Google Patents

Information acquisition method, terminal, server, electronic device, and storage medium Download PDF

Info

Publication number
CN114071192A
CN114071192A CN202111331689.2A CN202111331689A CN114071192A CN 114071192 A CN114071192 A CN 114071192A CN 202111331689 A CN202111331689 A CN 202111331689A CN 114071192 A CN114071192 A CN 114071192A
Authority
CN
China
Prior art keywords
terminal
target
text information
server
file
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
CN202111331689.2A
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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202111331689.2A priority Critical patent/CN114071192A/en
Publication of CN114071192A publication Critical patent/CN114071192A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/235Processing of additional data, e.g. scrambling of additional data or processing content descriptors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/647Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
    • H04N21/64723Monitoring of network processes or resources, e.g. monitoring of network load
    • H04N21/64738Monitoring network characteristics, e.g. bandwidth, congestion level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8126Monomedia components thereof involving additional data, e.g. news, sports, stocks, weather forecasts
    • H04N21/8133Monomedia components thereof involving additional data, e.g. news, sports, stocks, weather forecasts specifically related to the content, e.g. biography of the actors in a movie, detailed information about an article seen in a video program
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/84Generation or processing of descriptive data, e.g. content descriptors

Abstract

The disclosure relates to the technical field of computers, in particular to the technical field of computer vision, voice recognition and natural language processing, and can be applied to scenes such as short video service. The specific implementation scheme is as follows: when the terminal determines that the terminal is in a weak network state, a text display request is sent to a server; the server can respond to the text display request, acquire target text information corresponding to a target video to be sent to the terminal and return the target text information to the terminal; the terminal may present the target text information in a preset form. Because the bandwidth required for transmitting the target text information is smaller, the terminal can also receive and display the target text information under the condition of poor network state, thereby facilitating the user to know the content transmitted by the target video in time.

Description

Information acquisition method, terminal, server, electronic device, and storage medium
Technical Field
The present disclosure relates to the field of computer technology, and more particularly to the field of computer vision, speech recognition and natural language processing, and may be applied to short video services and other scenarios.
Background
With the development of internet and communication technology, video starts to become a mainstream medium gradually, however, when the network state is poor, the situation that video is jammed or video cannot be loaded occurs, so that a user cannot know the content in the video in time, and the user experience is seriously affected.
Disclosure of Invention
The disclosure provides an information acquisition method, a terminal, a server, an electronic device and a storage medium.
According to a first aspect of the present disclosure, an information obtaining method is provided, which is applied to a terminal, and includes:
detecting the network state of the terminal;
when the terminal is determined to be in the weak network state, sending a text display request to a server, wherein the text display request is used for indicating the server to return target text information corresponding to a target video to be sent to the terminal;
receiving target text information returned by the server aiming at the text display request;
and displaying the target text information in a preset form.
According to a second aspect of the present disclosure, there is provided an information acquisition method applied to a server, including:
receiving a text display request sent by a terminal, wherein the text display request is sent by the terminal when the terminal is determined to be in a weak network state;
responding to the text display request, and acquiring target text information corresponding to a target video to be sent to the terminal;
and returning the target text information to the terminal.
According to a third aspect of the present disclosure, there is provided a terminal comprising:
the network monitoring module is used for detecting the network state of the terminal;
the request sending module is used for sending a text display request to the server when the terminal is determined to be in the weak network state, wherein the text display request is used for indicating the server to return target text information corresponding to a target video to be sent to the terminal;
the information receiving module is used for receiving target text information returned by the server aiming at the text display request;
and the information display module is used for displaying the target text information in a preset form.
According to a fourth aspect of the present disclosure, there is provided a server comprising:
the request receiving module is used for receiving a text display request sent by the terminal, wherein the text display request is sent by the terminal when the terminal is determined to be in the weak network state;
the information acquisition module is used for responding to the text display request and acquiring target text information corresponding to a target video to be sent to the terminal;
and the information returning module is used for returning the target text information to the terminal.
According to a fifth aspect of the present disclosure, there is provided an electronic device comprising:
at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the information acquisition method provided by the first aspect or the second aspect.
According to a sixth aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the information acquisition method provided in the first or second aspect.
According to a seventh aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the information acquisition method provided in the above first or second aspect.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
The technical scheme provided by the disclosure has the following beneficial effects:
in the technical scheme of the disclosure, when the terminal is in a weak network state, the server can return the target text information corresponding to the target video to be sent to the terminal, and the terminal can also receive and display the target text information under the condition of a poor network state due to the fact that the bandwidth required for transmitting the target text information is small, so that a user can conveniently know the content transmitted by the target video in time.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
fig. 1 shows an architecture diagram of an information acquisition system provided by an embodiment of the present disclosure;
fig. 2 is a schematic flowchart illustrating an information obtaining method provided by an embodiment of the present disclosure;
fig. 3 is a schematic flowchart illustrating a process of acquiring target text information according to an embodiment of the present disclosure;
FIG. 4 is a diagram illustrating an exemplary scenario in which a terminal device presents target text information;
fig. 5 is a schematic diagram of a terminal provided by an embodiment of the present disclosure;
fig. 6 shows a schematic diagram of a server provided by an embodiment of the present disclosure
Fig. 7 shows a schematic block diagram of an example electronic device that may be used to implement the information acquisition method provided by the embodiments of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The information acquisition method, the terminal, the server, the electronic device and the storage medium provided by the embodiment of the disclosure aim to solve at least one of the above technical problems in the prior art.
With the development of internet and communication technology, video is becoming a mainstream medium. Due to the fact that large bandwidth is needed for transmitting the video, when the network state is poor, the situation that the video is jammed or the video cannot be loaded occurs, and therefore a user cannot know the content in the video in time, and user experience is seriously affected.
Fig. 1 is an architecture diagram of an information acquisition system provided in an embodiment of the present disclosure, and as shown in fig. 1, the information acquisition system includes a terminal and a server, and the terminal and the server can communicate. When the terminal determines that the terminal is in a weak network state, a text display request is sent to a server; the server can respond to the text display request, acquire target text information corresponding to a target video to be sent to the terminal and return the target text information to the terminal; the terminal may present the target text information in a preset form.
Fig. 2 shows a schematic flow diagram of an information obtaining method provided by an embodiment of the present disclosure, and as shown in fig. 2, the method mainly includes the following steps:
s210: the terminal detects a network state of the terminal.
In the embodiment of the disclosure, the terminal may detect its network status in real time, so as to determine whether it is in a weak network status. Optionally, in some scenarios, the terminal starts a task of detecting a network state when a preset video application is opened, and detects the network state of the video application in real time during the running of the video application, so as to determine whether the video application is in a weak network state. In the embodiment of the present disclosure, a network state when a video is jammed or a video cannot be loaded due to a network problem may be defined as a weak network state.
Here, the terminal may first detect whether it is already connected to the network, and when it is detected that the terminal is not connected to the network, it may be determined that the terminal is in a weak network state. When detecting that the terminal is connected to the network, the terminal may continue to determine whether the terminal is in a weak network state by detecting an index related to the network. For example, the terminal may determine whether the terminal is in the weak network state by detecting a network download speed of the terminal, or may determine whether the terminal is in the weak network state by detecting a response time of the server to a request issued by the terminal.
Optionally, when the network state of the terminal is detected, the network downloading speed of the terminal may be detected; and when the network downloading speed is lower than a preset speed threshold value within a preset time length, determining that the terminal is in a weak network state. Here, the preset duration and the preset speed threshold may be determined based on actual design requirements, for example, the preset duration may be set to 3 seconds, the preset speed threshold may be set to 30kb/s, and when it is detected that the network download speed is lower than 30kb/s within 3 seconds, it may be determined that the terminal is in the weak network state.
Optionally, when detecting the network state of the terminal, the terminal may send a first request to the server, and calculate a response time of the server for the first request; and when the response time is greater than a preset time threshold, determining that the terminal is in a weak network state. Here, the preset time threshold may be based on actual design requirements. The response time refers to the time required for the terminal to return the relevant information for the first request after sending the first request to the server. Taking the preset time threshold as 1 second as an example, the terminal may send the first request to the server, and when the response time of the server to the first request is calculated to be greater than 1 second, it is determined that the terminal is in the weak network state.
S220: and when the terminal is determined to be in the weak network state, sending a text display request to the server.
In the embodiment of the disclosure, the text display request is used for instructing the server to return the target text information corresponding to the target video to be sent to the terminal. It can be understood that when the terminal is determined to be in the weak network state, the terminal cannot load the video pushed by the video server, or the video is jammed, at this time, a text display request is sent to the server, so that the server returns the target text information to the terminal for display.
S230: and the server receives a text display request sent by the terminal.
S240: and the server responds to the text display request and acquires target text information corresponding to the target video to be sent to the terminal.
In the embodiment of the present disclosure, the target video refers to a video to be sent to the terminal by the server. In one scenario, a server caches a video queue for a terminal, videos in the video queue need to be sequentially pushed to the terminal, and the server can determine the video to be sent to the terminal from the video queue as a target video. The target video has files describing the content delivered by the target video, and the server can acquire target text information corresponding to the target video from the files, wherein the target text information contains texts capable of expressing the content delivered by the target video.
Alternatively, the server may generate the target text information corresponding to the target video in real time when receiving the text presentation request. Specifically, the server may determine a target video to be sent to the terminal based on the text display request; acquiring at least one of a subtitle file, an audio file and an image file of a target video; and extracting target text information corresponding to the target video from at least one of the subtitle file, the audio file and the image file.
Optionally, the server may generate and store the target text information corresponding to the target video in advance, and specifically, the server may determine the target video to be sent to the terminal based on the text display request, and call the target text information corresponding to the target video from the text library, so that the response time of the server is reduced, and the terminal may receive the target text information in time. Wherein the target text information is extracted in advance from at least one of a subtitle file, an audio file, and an image file of the target video and stored in a text library.
It can be understood that, in the two manners of obtaining the target text information corresponding to the target video, the specific steps of extracting the target text information corresponding to the target video from at least one of the subtitle file, the audio file, and the image file are consistent, and the following description will be specifically provided for the process of obtaining the target text information by the server.
S250: and the server returns the target text information to the terminal.
S260: and the terminal receives target text information returned by the server aiming at the text display request.
It can be understood that, because the bandwidth required for transmitting the target text message is small, the terminal can receive and present the target text message even in a poor network state.
S270: and the terminal displays the target text information in a preset form.
The embodiment of the disclosure can provide various forms for displaying the target text information, and the terminal can display the target text information in a display form selected by a user, and of course, the terminal can also display the target text information in a default display form. It is understood that the target text information contains text capable of expressing the content delivered by the target video, so that the terminal can display the target text information in the form of characters. Of course, the terminal may also convert the text included in the target text information into a voice file, and play the target text information in the form of voice.
According to the information acquisition method provided by the embodiment of the disclosure, when the terminal is in the weak network state, the server can return the target text information corresponding to the target video to be sent to the terminal, and the terminal can receive and display the target text information under the condition of poor network state due to the fact that the bandwidth required for transmitting the target text information is small, so that a user can know the content transmitted by the target video in time conveniently.
Fig. 3 is a schematic diagram illustrating a process of acquiring target text information by a server according to an embodiment of the present disclosure, where an execution subject of the process is the server, and as shown in fig. 3, the process may include the following steps:
s310: and determining a target video to be sent to the terminal based on the text display request.
In the embodiment of the present disclosure, the target video refers to a video to be sent to the terminal by the server. In one scenario, a server caches a video queue for a terminal, videos in the video queue need to be sequentially pushed to the terminal, and the server can determine the video to be sent to the terminal from the video queue as a target video.
S320: at least one of a subtitle file, an audio file, and an image file of a target video is acquired.
The target video has files describing the content delivered by the target video, and the server can obtain target text information corresponding to the target video from the files, wherein the files can comprise a subtitle file, an audio file and an image file of the target video. It is understood that the target video may not have the subtitle file, the audio file, and the image file at the same time, and thus the server may acquire only at least one of the subtitle file, the audio file, and the image file.
S330: and extracting target text information corresponding to the target video from at least one of the subtitle file, the audio file and the image file.
As described above, the target video may not have the subtitle file, the audio file, and the image file at the same time, and thus the server may extract target text information corresponding to the target video from at least one of the subtitle file, the audio file, and the image file. It is understood that the target text information contains text that can express the content delivered by the target video.
The method and the device can configure the priority for the subtitle file, the audio file and the image file, and when the target video simultaneously has more than two of the subtitle file, the audio file and the image file, the target text information corresponding to the target video can be extracted from the file with higher priority.
Alternatively, in the present embodiment, the priority of the subtitle file, the audio file, and the image file is sequentially lowered. When the target video has more than two of a subtitle file, an audio file and an image file, the target text information corresponding to the target video can be extracted in the following modes:
and under the condition of acquiring the subtitle file, extracting target text information corresponding to the target video from the subtitle file. It can be understood that the subtitle file of the target video has the highest priority, and when the subtitle file is obtained, the target text information corresponding to the target video can be preferentially extracted from the subtitle file. Here, the subtitle file includes subtitle text, and the server may obtain target text information based on the subtitle text.
And under the condition that the audio file is acquired and the subtitle file is not acquired, extracting target text information corresponding to the target video from the audio file. It can be understood that the priority of the audio file of the target video is between the priority of the subtitle text and the priority of the picture text, and when the audio file is acquired and the subtitle file is not acquired, the target text information corresponding to the target video can be preferentially extracted from the audio file. Here, the server may obtain the target text information based on the audio file using a voice recognition technology.
And under the condition that the picture file is acquired and the subtitle file and the audio file are not acquired, extracting target text information corresponding to the target video from the picture file. It can be understood that the priority of the picture file is the lowest, and when the picture file is acquired and the subtitle file and the audio file are not acquired, the target text information corresponding to the target video can be extracted from the picture file. It should be noted that the picture file includes at least one picture of the target video, and the server may obtain the target text information based on the picture file by using an image recognition technology.
Fig. 4 shows an exemplary scene diagram of the terminal device for presenting the target text information, and fig. 4 includes two sub-diagrams of fig. 4a and fig. 4 b. As shown in fig. 4a, the terminal can detect the network download speed of the terminal in real time during the playing of the short video. Here, the preset duration may be set to 3 seconds, the preset speed threshold may be set to 30kb/s, and when it is detected that the network download speed is 15kb/s within 3 seconds, it may be determined that the terminal is in a weak network state, and at this time, the terminal may send a text display request to the server. The server may obtain, in response to the text presentation request, target text information corresponding to a target video to be transmitted to the terminal, where the target video to be transmitted to the terminal is a video related to a weather forecast. The server can extract target text information from an audio file of a target video and return the target text information to the terminal, wherein the content contained in the target text information is 'strong rainfall weather will appear in Beijing city in the afternoon today, and people of various cities are requested to pay attention to travel safety'. As shown in fig. 4b, after receiving the target text message, the terminal may display the content contained in the target text message in the form of characters.
Based on the same principle as the information acquisition method described above, the embodiment of the present disclosure also provides a terminal, and fig. 5 shows a schematic diagram of a terminal provided by the embodiment of the present disclosure. As shown in fig. 5, the terminal 500 includes a network monitoring module 510, a request transmitting module 520, an information receiving module 530, and an information presentation module 540.
The network monitoring module 510 is used for detecting the network status of the terminal 500.
The request sending module 520 is configured to send a text display request to the server when it is determined that the terminal 500 is in the weak network state, where the text display request is used to instruct the server to return target text information corresponding to a target video to be sent to the terminal 500.
The information receiving module 530 is configured to receive target text information returned by the server for the text display request.
The information presentation module 540 is configured to present the target text information in a preset form.
The terminal provided by the embodiment of the disclosure can send the text display request to the server when detecting that the terminal is in the weak network state, so that the server can return the target text information corresponding to the target video to be sent to the terminal.
In this embodiment, when the network monitoring module 510 is configured to detect the network state of the terminal 500, it is specifically configured to: detecting the network downloading speed of the terminal 500; when the network download speed is lower than the preset speed threshold within the preset duration, it is determined that the terminal 500 is in the weak network state.
In this embodiment, when the network monitoring module 510 is configured to detect the network state of the terminal 500, it is specifically configured to: sending a first request to a server; calculating the response time of the server for the first request; when the response time is greater than the preset time threshold, it is determined that the terminal 500 is in the weak network state.
In the present disclosure, the information presentation module 540, when being configured to present the target text information in a preset form, performs at least one of the following:
displaying target text information in a text form;
and playing the target text information in a voice mode.
It can be understood that each module of the terminal in the embodiment of the present disclosure has a function of implementing the corresponding step of the information acquisition method. The function can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above. The modules can be software and/or hardware, and each module can be implemented independently or by integrating a plurality of modules. For the functional description of each module of the terminal, reference may be specifically made to the corresponding description of the information acquisition method, which is not described herein again.
Based on the same principle as the information acquisition method described above, the embodiment of the present disclosure further provides a server, and fig. 6 shows a schematic diagram of a server provided by the embodiment of the present disclosure. As shown in fig. 6, the server 600 includes a request receiving module 610, an information obtaining module 620, and an information returning module 630.
A request receiving module 610, configured to receive a text display request sent by a terminal, where the text display request is sent by the terminal when the terminal is determined to be in a weak network state;
an information obtaining module 620, configured to obtain, in response to the text display request, target text information corresponding to a target video to be sent to the terminal;
and an information returning module 630, configured to return the target text information to the terminal.
The server provided by the embodiment of the disclosure can return the target text information corresponding to the target video to be sent to the terminal when receiving the text display request sent by the terminal, and the terminal can also receive and display the target text information under the condition of poor network state because the bandwidth required for transmitting the target text information is small, thereby facilitating the user to know the content transmitted by the target video in time.
In this embodiment, when the information obtaining module 620 is configured to obtain, in response to the text display request, target text information corresponding to a target video to be sent to the terminal, specifically configured to:
determining a target video to be sent to the terminal based on the text display request;
the acquisition of the target text information is at least one of a subtitle file, an audio file, and an image file of the target video from the server 600;
and extracting target text information corresponding to the target video from at least one of the subtitle file, the audio file and the image file.
In this embodiment, when the information obtaining module 620 is configured to extract the target text information corresponding to the target video from at least one of the subtitle file, the audio file, and the image file, the information obtaining module is specifically configured to:
under the condition of acquiring a subtitle file, extracting target text information corresponding to a target video from the subtitle file;
under the condition that an audio file is obtained and a subtitle file is not obtained, extracting target text information corresponding to a target video from the audio file;
and under the condition that the picture file is acquired and the subtitle file and the audio file are not acquired, extracting target text information corresponding to the target video from the picture file.
In this embodiment, when the information obtaining module 620 is configured to obtain, in response to the text display request, target text information corresponding to a target video to be sent to the terminal, specifically configured to:
determining a target video to be sent to the terminal based on the text display request;
target text information corresponding to the target video is called from a text library;
wherein the target text information is extracted in advance from at least one of a subtitle file, an audio file, and an image file of the target video and stored in a text library.
It can be understood that each module of the server in the embodiment of the present disclosure has a function of implementing the corresponding step of the information acquisition method. The function can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above. The modules can be software and/or hardware, and each module can be implemented independently or by integrating a plurality of modules. For the functional description of each module of the server, reference may be specifically made to the corresponding description of the information acquisition method, which is not described herein again.
In the technical scheme of the disclosure, the collection, storage, use, processing, transmission, provision, disclosure and other processing of the personal information of the related user are all in accordance with the regulations of related laws and regulations and do not violate the good customs of the public order.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 7 illustrates a schematic block diagram of an example electronic device that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 7, the device 700 comprises a computing unit 701, which may perform various suitable actions and processes according to a computer program stored in a Read Only Memory (ROM)702 or a computer program loaded from a storage unit 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Various components in the device 700 are connected to the I/O interface 705, including: an input unit 706 such as a keyboard, a mouse, or the like; an output unit 707 such as various types of displays, speakers, and the like; a storage unit 708 such as a magnetic disk, optical disk, or the like; and a communication unit 709 such as a network card, modem, wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
Computing unit 701 may be a variety of general purpose and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The calculation unit 701 executes the respective methods and processes described above, such as the information acquisition method. For example, in some embodiments, the information acquisition method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 708. In some embodiments, part or all of a computer program may be loaded onto and/or installed onto device 700 via ROM 702 and/or communications unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the information acquisition method described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform the information acquisition method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server with a combined blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel or sequentially or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (19)

1. An information acquisition method is applied to a terminal and comprises the following steps:
detecting the network state of the terminal;
when the terminal is determined to be in the weak network state, sending a text display request to a server, wherein the text display request is used for indicating the server to return target text information corresponding to a target video to be sent to the terminal;
receiving target text information returned by the server aiming at the text display request;
and displaying the target text information in a preset form.
2. The method of claim 1, wherein the detecting the network status of the terminal comprises:
detecting the network downloading speed of the terminal;
and when the network downloading speed is lower than a preset speed threshold value within a preset time length, determining that the terminal is in a weak network state.
3. The method of claim 1, wherein the detecting the network status of the terminal comprises:
sending a first request to the server;
calculating a response time of the server for the first request;
and when the response time is greater than a preset time threshold, determining that the terminal is in a weak network state.
4. The method according to any one of claims 1-3, wherein the presenting the target text information in a preset form comprises at least one of:
displaying the target text information in a text form;
and playing the target text information in a voice mode.
5. An information acquisition method is applied to a server and comprises the following steps:
receiving a text display request sent by a terminal, wherein the text display request is sent by the terminal when the terminal is determined to be in a weak network state;
responding to the text display request, and acquiring target text information corresponding to a target video to be sent to the terminal;
and returning the target text information to the terminal.
6. The method of claim 5, wherein the obtaining target text information corresponding to a target video to be sent to the terminal in response to the text presentation request comprises:
determining a target video to be sent to the terminal based on the text display request;
acquiring at least one of a subtitle file, an audio file and an image file of the target video;
and extracting target text information corresponding to a target video from at least one of the subtitle file, the audio file and the image file.
7. The method of claim 6, wherein the extracting target text information corresponding to a target video from at least one of the subtitle file, the audio file, and the image file comprises:
under the condition of acquiring the subtitle file, extracting target text information corresponding to a target video from the subtitle file;
under the condition that the audio file is obtained and the subtitle file is not obtained, extracting target text information corresponding to a target video from the audio file;
and under the condition that the picture file is acquired and the subtitle file and the audio file are not acquired, extracting target text information corresponding to a target video from the picture file.
8. The method of claim 5, wherein the obtaining target text information corresponding to a target video to be sent to the terminal in response to the text presentation request comprises:
determining a target video to be sent to the terminal based on the text display request;
target text information corresponding to the target video is called from a text library;
wherein the target text information is pre-extracted from at least one of a subtitle file, an audio file, and an image file of the target video and stored in the text library.
9. A terminal, comprising:
the network monitoring module is used for detecting the network state of the terminal;
the request sending module is used for sending a text display request to a server when the terminal is determined to be in the weak network state, wherein the text display request is used for indicating the server to return target text information corresponding to a target video to be sent to the terminal;
the information receiving module is used for receiving target text information returned by the server aiming at the text display request;
and the information display module is used for displaying the target text information in a preset form.
10. The terminal according to claim 9, wherein the network monitoring module, when configured to detect the network status of the terminal, is specifically configured to:
detecting the network downloading speed of the terminal;
and when the network downloading speed is lower than a preset speed threshold value within a preset time length, determining that the terminal is in a weak network state.
11. The terminal according to claim 9, wherein the network monitoring module, when configured to detect the network status of the terminal, is specifically configured to:
sending a first request to the server;
calculating a response time of the server for the first request;
and when the response time is greater than a preset time threshold, determining that the terminal is in a weak network state.
12. The terminal according to any one of claims 9-11, wherein the information presentation module, when configured to present the target text information in a preset form, performs at least one of:
displaying the target text information in a text form;
and playing the target text information in a voice mode.
13. A server, comprising:
the device comprises a request receiving module, a text display module and a text display module, wherein the request receiving module is used for receiving a text display request sent by a terminal, and the text display request is sent by the terminal when the terminal is determined to be in a weak network state;
the information acquisition module is used for responding to the text display request and acquiring target text information corresponding to a target video to be sent to the terminal;
and the information returning module is used for returning the target text information to the terminal.
14. The server according to claim 13, wherein the information obtaining module, when configured to obtain, in response to the text display request, target text information corresponding to a target video to be sent to the terminal, is specifically configured to:
determining a target video to be sent to the terminal based on the text display request;
acquiring at least one of a subtitle file, an audio file and an image file of the target video;
and extracting target text information corresponding to a target video from at least one of the subtitle file, the audio file and the image file.
15. The server according to claim 14, wherein the information obtaining module, when configured to extract target text information corresponding to a target video from at least one of the subtitle file, the audio file, and the image file, is specifically configured to:
under the condition of acquiring the subtitle file, extracting target text information corresponding to a target video from the subtitle file;
under the condition that the audio file is obtained and the subtitle file is not obtained, extracting target text information corresponding to a target video from the audio file;
and under the condition that the picture file is acquired and the subtitle file and the audio file are not acquired, extracting target text information corresponding to a target video from the picture file.
16. The server according to claim 13, wherein the information obtaining module, when configured to obtain, in response to the text display request, target text information corresponding to a target video to be sent to the terminal, is specifically configured to:
determining a target video to be sent to the terminal based on the text display request;
target text information corresponding to the target video is called from a text library;
wherein the target text information is pre-extracted from at least one of a subtitle file, an audio file, and an image file of the target video and stored in the text library.
17. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-4 or the method of any one of claims 5-8.
18. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-4 or the method of any one of claims 5-8.
19. A computer program product comprising a computer program which, when executed by a processor, implements the method of any of claims 1-4 or the method of any of claims 5-8.
CN202111331689.2A 2021-11-11 2021-11-11 Information acquisition method, terminal, server, electronic device, and storage medium Pending CN114071192A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111331689.2A CN114071192A (en) 2021-11-11 2021-11-11 Information acquisition method, terminal, server, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111331689.2A CN114071192A (en) 2021-11-11 2021-11-11 Information acquisition method, terminal, server, electronic device, and storage medium

Publications (1)

Publication Number Publication Date
CN114071192A true CN114071192A (en) 2022-02-18

Family

ID=80275057

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111331689.2A Pending CN114071192A (en) 2021-11-11 2021-11-11 Information acquisition method, terminal, server, electronic device, and storage medium

Country Status (1)

Country Link
CN (1) CN114071192A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114679443A (en) * 2022-03-03 2022-06-28 北京百度网讯科技有限公司 Method and device for downloading video data, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111158546A (en) * 2019-12-27 2020-05-15 北京奇艺世纪科技有限公司 Media information display method and device, storage medium and electronic device
CN111182334A (en) * 2019-12-30 2020-05-19 咪咕视讯科技有限公司 Data processing method, server, terminal, and storage medium
CN112714365A (en) * 2019-10-25 2021-04-27 上海哔哩哔哩科技有限公司 Video playing method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112714365A (en) * 2019-10-25 2021-04-27 上海哔哩哔哩科技有限公司 Video playing method and system
CN111158546A (en) * 2019-12-27 2020-05-15 北京奇艺世纪科技有限公司 Media information display method and device, storage medium and electronic device
CN111182334A (en) * 2019-12-30 2020-05-19 咪咕视讯科技有限公司 Data processing method, server, terminal, and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114679443A (en) * 2022-03-03 2022-06-28 北京百度网讯科技有限公司 Method and device for downloading video data, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN114218890A (en) Page rendering method and device, electronic equipment and storage medium
CN112508115A (en) Method, apparatus, device and computer storage medium for building node representation model
CN113591864B (en) Training method, device and system for text recognition model framework
CN113691864A (en) Video clipping method, video clipping device, electronic equipment and readable storage medium
CN114071192A (en) Information acquisition method, terminal, server, electronic device, and storage medium
CN113724398A (en) Augmented reality method, apparatus, device and storage medium
CN113961289A (en) Data processing method, device, equipment and storage medium
CN113378855A (en) Method for processing multitask, related device and computer program product
CN114501084B (en) Play method, device, equipment and medium of player
CN113365140B (en) MP4 online playing method, device, equipment, storage medium and program product
CN114449327B (en) Video clip sharing method and device, electronic equipment and readable storage medium
CN113225265B (en) Flow control method, device, equipment and computer storage medium
CN114219731A (en) Picture optimization method, device, equipment and storage medium
CN112817463A (en) Method, equipment and storage medium for acquiring audio data by input method
CN114265535B (en) Floor page display method, device, equipment and medium for push message
CN113641428B (en) Method and device for acquiring special effect scene packet, electronic equipment and readable storage medium
CN115482809B (en) Keyword retrieval method, keyword retrieval device, electronic equipment and storage medium
CN114221940B (en) Audio data processing method, system, device, equipment and storage medium
CN114328224A (en) Method and device for reproducing exception request, electronic equipment and storage medium
CN114048058A (en) Live event searching method and device, electronic equipment and storage medium
CN115801763A (en) File transmission method and device, electronic equipment and storage medium
CN116455853A (en) Instant messaging message content processing method and device, electronic equipment and storage medium
CN116860130A (en) Data visualization method, device, electronic equipment and medium
CN116095417A (en) Video-on-demand method, device, equipment and storage medium
CN113965206A (en) Compression method, compression device, electronic equipment and storage medium

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