CN114697298B - Method and device for acquiring multimedia resources, storage medium and electronic device - Google Patents

Method and device for acquiring multimedia resources, storage medium and electronic device Download PDF

Info

Publication number
CN114697298B
CN114697298B CN202210169924.9A CN202210169924A CN114697298B CN 114697298 B CN114697298 B CN 114697298B CN 202210169924 A CN202210169924 A CN 202210169924A CN 114697298 B CN114697298 B CN 114697298B
Authority
CN
China
Prior art keywords
multimedia data
played
voice
updated
data
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
CN202210169924.9A
Other languages
Chinese (zh)
Other versions
CN114697298A (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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home 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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202210169924.9A priority Critical patent/CN114697298B/en
Publication of CN114697298A publication Critical patent/CN114697298A/en
Application granted granted Critical
Publication of CN114697298B publication Critical patent/CN114697298B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/60Network streaming of media packets

Abstract

The application discloses a method and a device for acquiring multimedia resources, a storage medium and an electronic device, wherein the method comprises the following steps: receiving a control corpus voice playing request sent by a target object, wherein the voice playing request target corpus at least comprises: identification information of multimedia data to be played; determining a resource server corresponding to the multimedia data to be played according to the information of the multimedia data to be played, and sending a data acquisition request to the resource server, wherein the data acquisition request is used for requesting to acquire the multimedia data to be played; receiving multimedia data to be played sent by the resource server in response to the data acquisition request, and determining updated multimedia data in the multimedia data to be played; and responding to the voice playing request according to the updated multimedia data.

Description

Method and device for acquiring multimedia resources, storage medium and electronic device
Technical Field
The present application relates to the field of communications, and in particular, to a method and apparatus for acquiring a multimedia resource, a storage medium, and an electronic device.
Background
With the rapid development of the Internet of things, the home appliances are more and more intelligent, the update iteration of the home appliance software version is more and more frequent, and the software iteration task can be rapidly and efficiently completed through a remote upgrading method. When remote upgrades are made, it is important to ensure the user experience.
At present, a user can listen to multimedia data through the voice network device, when the user listens to the multimedia data through the voice network device, the voice network device cannot actively pass through the user after the multimedia data is updated because the multimedia data is all dependent on a third party resource library, so that the user cannot listen to the updated multimedia data in time, and further the user experience is poor.
Aiming at the problems that in the related art, when a user listens to multimedia data through a voice network device, the voice network device cannot actively pass through the user after the multimedia data is updated, so that the user cannot listen to the updated multimedia data in time, and the like, no effective solution has been proposed yet.
Disclosure of Invention
The embodiment of the application provides a method and a device for acquiring multimedia resources, a storage medium and an electronic device, which at least solve the problems that in the related art, when a user listens to multimedia data through a voice network device, the voice network device cannot actively pass through the user after the multimedia data is updated, so that the user cannot listen to the updated multimedia data in time and the like.
According to an embodiment of the present application, there is provided a method for acquiring a multimedia resource, including: receiving a voice playing request, wherein the voice playing request comprises: information of multimedia data to be played; determining a resource server corresponding to the multimedia data to be played according to the information of the multimedia data to be played, and sending a data acquisition request to the resource server, wherein the data acquisition request is used for requesting to acquire the multimedia data to be played; receiving multimedia data to be played sent by the resource server in response to the data acquisition request, and determining updated multimedia data in the multimedia data to be played; and responding to the voice playing request according to the updated multimedia data.
In an exemplary embodiment, determining updated multimedia data in the multimedia data to be played includes: acquiring historical data of playing first multimedia data by a voice network device, wherein the multimedia data to be played at least comprises: first multimedia data; determining the playing time of the voice network device for playing the first multimedia data according to the historical data; and determining the multimedia data updated in the target time period between the current time and the playing time in the multimedia data to be played.
In an exemplary embodiment, after determining the updated multimedia data within the target period of time between the current time and the play time, the method further comprises: sending first prompt information to terminal equipment of the target object, wherein the first prompt information is used for indicating that updated multimedia data exists in the multimedia data to be played; and under the condition that the first voice information sent by the target object is received, sequentially playing the first multimedia data and the second multimedia data of the multimedia data to be played, wherein the first voice information is used for indicating the target object to refuse the voice network device to play the updated multimedia data, and the second multimedia data is the data after the first multimedia data.
In an exemplary embodiment, responding to the voice play request according to the updated multimedia data includes: determining the quantity of the updated multimedia data; determining the update time of a plurality of first update resources under the condition that the number of the updated multimedia data is a plurality of, and determining a target update time closest to the current time and third multimedia data corresponding to the target update time in the plurality of update times; and playing the third multimedia data.
In an exemplary embodiment, after receiving the voice play request, the method further comprises: determining whether a voice network device and a resource server corresponding to the multimedia data to be played have a binding relationship or not; under the condition that the voice network device and the resource server corresponding to the multimedia data to be played have a binding relationship, sending a data acquisition request to the resource server; and under the condition that the voice network device and the resource server corresponding to the multimedia data to be played do not have a binding relationship, randomly playing fourth multimedia data according to the voice playing request, wherein the multimedia data to be played at least comprises: the fourth multimedia data.
In one exemplary embodiment, receiving a voice play request includes: receiving second voice information sent by the target object; comparing the second voice information with the corpus information in the corpus database, and determining whether the second voice information contains information with similarity to the corpus information being larger than a preset threshold value; and under the condition that the second voice information contains information with similarity to the corpus information being larger than a preset threshold value, taking the second voice information as a voice playing request.
In an exemplary embodiment, after responding to the voice play request according to the updated multimedia data, the method further includes: under the condition that a voice playing request sent by a target object is received again, determining whether the voice network device completely plays the updated multimedia data; playing the residual resources of the updated multimedia data under the condition that the voice network device does not completely play the updated multimedia data; and sending a data acquisition request to the resource server under the condition that the voice network device completely plays the updated multimedia data.
According to another embodiment of the present application, there is also provided an apparatus for acquiring a multimedia resource, including: the receiving module is used for receiving a voice playing request, wherein the voice playing request comprises: information of multimedia data to be played; the device comprises a sending module, a receiving module and a receiving module, wherein the sending module is used for determining a resource server corresponding to multimedia data to be played according to the information of the multimedia data to be played and sending a data acquisition request to the resource server, wherein the data acquisition request is used for requesting to acquire the multimedia data to be played; the determining module is used for receiving the multimedia data to be played sent by the resource server in response to the data acquisition request and determining updated multimedia data in the multimedia data to be played; and the response module is used for responding to the voice playing request according to the updated multimedia data.
According to still another aspect of the embodiments of the present application, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to execute the above-described method for acquiring multimedia resources when running.
According to still another aspect of the embodiments of the present application, there is further provided an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the method for acquiring multimedia resources according to the above-mentioned computer program.
In the embodiment of the application, a control corpus voice playing request sent by a target object is received, wherein the voice playing request target corpus at least comprises: identification information of multimedia data to be played; determining a resource server corresponding to the multimedia data to be played according to the information of the multimedia data to be played, and sending a data acquisition request to the resource server, wherein the data acquisition request is used for requesting to acquire the multimedia data to be played; receiving multimedia data to be played sent by the resource server in response to the data acquisition request, and determining updated multimedia data in the multimedia data to be played; responding to the voice playing request according to the updated multimedia data; by adopting the technical scheme, the problems that when a user listens to the multimedia data through the voice network device, the voice network device cannot actively pass through the user after the multimedia data is updated, so that the user cannot listen to the updated multimedia data in time and the like are solved, and further, when the user listens to the multimedia data through the voice network device, the user can grasp whether the subscribed multimedia data is updated in real time and can selectively play the subscribed multimedia data.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
fig. 1 is a block diagram of a hardware structure of a mobile terminal according to a method for acquiring multimedia resources according to an embodiment of the present application;
fig. 2 is a flowchart of a method of acquiring a multimedia resource according to an embodiment of the present application;
fig. 3 is a schematic diagram of a method for acquiring multimedia resources according to an embodiment of the present application;
fig. 4 is a block diagram (a) of a multimedia resource acquisition apparatus according to an embodiment of the present application;
fig. 5 is a block diagram (ii) of a multimedia resource acquisition apparatus according to an embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, 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 expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The method embodiments provided by the embodiments of the present application may be performed in a mobile terminal, a computer terminal, or similar computing device. Taking the mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of the mobile terminal according to an embodiment of the present application. As shown in fig. 1, a mobile terminal may include one or more processors 102 (only one is shown in fig. 1) (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, and in one exemplary embodiment, a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting of the structure of the mobile terminal described above. For example, a mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than the equivalent functions shown in FIG. 1 or more than the functions shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a method for acquiring multimedia resources in an embodiment of the present application, and the processor 102 executes the computer program stored in the memory 104, thereby performing various functional applications and data processing, that is, implementing the method described above. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 106 is arranged to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
In this embodiment, a method for obtaining a multimedia resource is provided and applied to the mobile terminal, and fig. 2 is a flowchart of a method for obtaining a multimedia resource according to an embodiment of the present application, where the flowchart includes the following steps:
step S202, receiving a voice playing request, where the voice playing request includes: information of multimedia data to be played;
step S204, determining a resource server corresponding to the multimedia data to be played according to the information of the multimedia data to be played, and sending a data acquisition request to the resource server, wherein the data acquisition request is used for requesting to acquire the multimedia data to be played;
step S206, receiving the multimedia data to be played sent by the resource server in response to the data acquisition request, and determining updated multimedia data in the multimedia data to be played;
step S208, responding to the voice playing request according to the updated multimedia data.
Through the steps, a control corpus voice playing request sent by a target object is received, wherein the voice playing request target corpus at least comprises: identification information of multimedia data to be played; determining a resource server corresponding to the multimedia data to be played according to the information of the multimedia data to be played, and sending a data acquisition request to the resource server, wherein the data acquisition request is used for requesting to acquire the multimedia data to be played; receiving multimedia data to be played sent by the resource server in response to the data acquisition request, and determining updated multimedia data in the multimedia data to be played; according to the updated multimedia data, the voice playing request is responded, the problems that in the related technology, when a user listens to the multimedia data through the voice network device, the voice network device cannot actively pass through the user after the multimedia data is updated, so that the user cannot listen to the updated multimedia data in time and the like are solved, and further the user can know whether the subscribed multimedia data is updated in real time and can selectively play the subscribed multimedia data when listening to the multimedia data through the voice network device.
In an exemplary embodiment, determining updated multimedia data in the multimedia data to be played includes: acquiring historical data of playing first multimedia data by a voice network device, wherein the multimedia data to be played at least comprises: first multimedia data; determining the playing time of the voice network device for playing the first multimedia data according to the historical data; and determining the multimedia data updated in the target time period between the current time and the playing time in the multimedia data to be played.
That is, the playing time of the first multimedia data last played by the voice network device is acquired, whether the multimedia data to be played is updated is determined in a period between the playing time and the current time, and the updated multimedia data is determined in the case that the multimedia data to be played is updated.
For example, listening to the xx album on 1 month 2 and speaking to the voice web on 1 month 5: in the case of playing xx album, it is determined whether xx album is updated between 1 month 2 day and 1 month 5 day, and in the case of xx album update, it is determined that multimedia data updated in xx album between 1 month 2 day and 1 month 5 day, it should be noted that the above values are merely for better understanding of the present application, and the present application is not limited thereto.
In an exemplary embodiment, after determining updated multimedia data in a target period between a current time and the playing time, sending first prompt information to a terminal device of the target object, where the first prompt information is used to indicate that the updated multimedia data exists in the multimedia data to be played; and under the condition that the first voice information sent by the target object is received, sequentially playing the first multimedia data and the second multimedia data of the multimedia data to be played, wherein the first voice information is used for indicating the target object to refuse the voice network device to play the updated multimedia data, and the second multimedia data is the data after the first multimedia data.
That is, in the case that the voice network device determines that updated multimedia data exists, playing the updated multimedia data for the target object preferentially, and sending first prompt information to the target object through the voice module to prompt that updated multimedia data exists in the multimedia data to be played by the target object, and in the case that the target object does not want to watch or listen to the updated multimedia data, sending first voice information to the voice network device to control the voice network device not to play the updated multimedia data, and playing the multimedia data to be played according to the historical data sequence, for example, in the case that the historical data indicates that 1/3 of the first multimedia data is played, continuing to play the remaining 2/3 of the first multimedia data, and in the case that the historical data indicates that the complete first multimedia data is played, playing the second multimedia data after the first multimedia.
In an exemplary embodiment, responding to the voice play request according to the updated multimedia data includes: determining the quantity of the updated multimedia data; determining the update time of a plurality of first update resources under the condition that the number of the updated multimedia data is a plurality of, and determining a target update time closest to the current time and third multimedia data corresponding to the target update time in the plurality of update times; and playing the third multimedia data.
That is, in the case where the updated multimedia data is plural, the last updated update resource is preferentially played, for example, if it is determined that both 1 month 3 days and 1 month 4 days xx albums are updated between 1 month 2 days and 1 month 5 days, then the third multimedia data of 1 month 4 days is preferentially played.
In an exemplary embodiment, after receiving the voice play request, the method further comprises: determining whether a voice network device and a resource server corresponding to the multimedia data to be played have a binding relationship or not; under the condition that the voice network device and the resource server corresponding to the multimedia data to be played have a binding relationship, sending a data acquisition request to the resource server; and under the condition that the voice network device and the resource server corresponding to the multimedia data to be played do not have a binding relationship, randomly playing fourth multimedia data according to the voice playing request, wherein the multimedia data to be played at least comprises: the fourth multimedia data.
Because the third party platform has login restriction, if the voice network device and the target account corresponding to the target object do not have binding relation, fourth multimedia data corresponding to the identification information is directly randomly played through the tourist mode; if the voice network device has a binding relation with the target account corresponding to the target object, all messages corresponding to the subscription identification information of the target object are required to be queried at the moment, and updated resources in a target time period are screened out.
In one exemplary embodiment, receiving a voice play request includes: receiving second voice information sent by the target object; comparing the second voice information with the corpus information in the corpus database, and determining whether the second voice information contains information with similarity to the corpus information being larger than a preset threshold value; and under the condition that the second voice information contains information with similarity to the corpus information being larger than a preset threshold value, taking the second voice information as a voice playing request.
In order to avoid false triggering of the voice network device to play the target resource, a corpus database is set for the voice network device in the embodiment of the application, so that under the condition that the second voice information sent by the target object is matched with the corpus information in the corpus database, the voice network device is determined to be triggered to play the target resource.
In an exemplary embodiment, after responding to the voice playing request according to the updated multimedia data, determining whether the voice network device has completely played the updated multimedia data under the condition that the voice playing request sent by the target object is received again; playing the residual resources of the updated multimedia data under the condition that the voice network device does not completely play the updated multimedia data; and sending a data acquisition request to the resource server under the condition that the voice network device completely plays the updated multimedia data.
That is, in the case that the target object sends the voice playing request again, it is determined whether the voice network device plays the completely updated multimedia data, in the case that the voice network device does not completely play the updated multimedia data, the remaining resources of the updated multimedia data are continuously played, so that the target object listens to or views the completely updated multimedia data, in the case that the voice network device completely plays the updated multimedia data, it is determined whether a resource which is updated again exists in the multimedia data list corresponding to the target identifier, and in the case that the updated resource exists in the multimedia data list, the updated resource is played.
In order to better understand the process of the method for acquiring the multimedia resources, the following describes the implementation method flow of the method for acquiring the multimedia resources in combination with the alternative embodiment, but is not used for limiting the technical scheme of the embodiment of the application.
In this embodiment, a method for obtaining a multimedia resource is provided, and fig. 3 is a schematic diagram of a method for obtaining a multimedia resource according to an embodiment of the present application, as shown in fig. 3, specifically including the following steps:
step S301: starting;
step S302: the user sends out "i want to listen to the song, come a section of sound" and other corpora (equivalent to the information of the multimedia data to be played in the above embodiment);
step S303: determining whether the corpus sent by the user hits the corpus information in the corpus database, executing step S306 when determining that the corpus sent by the user does not hit the corpus information in the corpus database, otherwise executing step S304;
step S304: after the corpus information in the corpus database is hit, in order to avoid inserting updated content each time, determining whether the user is the first on-demand audio resource (equivalent to the multimedia data to be played in the above embodiment) on the same day, executing step S305 if the user is determined to be the first on-demand audio resource on the same day, otherwise executing step S306;
step S305: determining whether the voice network device binds the target account of the target object, executing step S307 if the voice network device binds the target account of the target object, otherwise executing step S306;
step S306: the voice network device sends out voice information of playing xxx for you;
step S307: determining whether the user collects the corresponding albums of songs, voices and the like according to the target account number, executing the step S308 under the condition that the user collects the corresponding albums of songs, voices and the like, otherwise executing the step S306;
step S308: determining whether the user subscribes to the corresponding albums of the collected songs, the voices and the like, executing step S309 if the user subscribes to the corresponding albums of the collected songs, the voices and the like, otherwise executing step S306;
step S309: determining whether updated resources exist on corresponding albums such as songs, voices and the like collected in seven days;
step S310: when the corresponding albums such as songs, voices and the like collected in seven days have update resources, sending out the voice information of 'album xx updated, asking to listen, and playing xxx' for you;
step S311: pushing xxx to the front end;
step S312: and (5) on-demand sowing.
When a user in the embodiment of the application listens to the audio resource by using the voice network device, the user can grasp whether the subscribed resource is updated in real time and can listen selectively. And the prompt is set in a login state and is only given when the user requests the program for the first time in the day; to improve response time, redis cache and websocket message middleware are introduced. And when receiving the update broadcast, pushing the update broadcast to the front end in the form of websocket to roll the detail page displayed on the target client, and at the moment, the user can click the updated album on the target client. The user can listen to the audio resource by using the voice network device, dynamically perceive the updated resource, and can order the resource on the intelligent app detail page, so that the experience is better and the interaction is more perfect. Meanwhile, the method has positive pushing effect on popularization of the intelligent app and sales of the voice network device.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the various embodiments of the present application.
The embodiment also provides a device for acquiring multimedia resources, which is used for implementing the foregoing embodiments and preferred embodiments, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 4 is a block diagram (a) of a multimedia resource acquisition apparatus according to an embodiment of the present application; as shown in fig. 4, includes:
a receiving module 42, configured to receive a voice play request, where the voice play request includes: information of multimedia data to be played;
a sending module 44, configured to determine a resource server corresponding to the multimedia data to be played according to information of the multimedia data to be played, and send a data acquisition request to the resource server, where the data acquisition request is used to request to acquire the multimedia data to be played;
a determining module 46, configured to receive multimedia data to be played sent by the resource server in response to the data acquisition request, and determine updated multimedia data in the multimedia data to be played;
and a response module 48, configured to respond to the voice playing request according to the updated multimedia data.
Through the device, a control corpus voice playing request sent by a target object is received, wherein the voice playing request target corpus at least comprises: identification information of multimedia data to be played; determining a resource server corresponding to the multimedia data to be played according to the information of the multimedia data to be played, and sending a data acquisition request to the resource server, wherein the data acquisition request is used for requesting to acquire the multimedia data to be played; receiving multimedia data to be played sent by the resource server in response to the data acquisition request, and determining updated multimedia data in the multimedia data to be played; according to the updated multimedia data, the voice playing request is responded, the problems that in the related technology, when a user listens to the multimedia data through the voice network device, the voice network device cannot actively pass through the user after the multimedia data is updated, so that the user cannot listen to the updated multimedia data in time and the like are solved, and further the user can know whether the subscribed multimedia data is updated in real time and can selectively play the subscribed multimedia data when listening to the multimedia data through the voice network device.
In an exemplary embodiment, the determining module is configured to obtain historical data of playing the first multimedia data by the voice network device, where the multimedia data to be played at least includes: first multimedia data; determining the playing time of the voice network device for playing the first multimedia data according to the historical data; and determining the multimedia data updated in the target time period between the current time and the playing time in the multimedia data to be played.
In an exemplary embodiment, a sending module is configured to send first prompt information to a terminal device of the target object, where the first prompt information is used to indicate that the updated multimedia data exists in the multimedia data to be played; FIG. 5 is a block diagram (II) of a playback apparatus for updating resources according to an embodiment of the present application; as shown in fig. 5, the apparatus further includes: and a playing module 52, configured to sequentially play the first multimedia data and the second multimedia data of the multimedia data to be played under the condition that the first voice information sent by the target object is received, where the first voice information is used to instruct the target object to reject the voice network device to play the updated multimedia data, and the second multimedia data is the data after the first multimedia data.
In an exemplary embodiment, the playing module is further configured to determine the updated amount of multimedia data; determining the update time of a plurality of first update resources under the condition that the number of the updated multimedia data is a plurality of, and determining a target update time closest to the current time and third multimedia data corresponding to the target update time in the plurality of update times; and playing the third multimedia data.
In an exemplary embodiment, the determining module is further configured to determine whether the voice network device has a binding relationship with a resource server corresponding to the multimedia data to be played; the playing module is further used for sending a data acquisition request to the resource server under the condition that the voice network device and the resource server corresponding to the multimedia data to be played are determined to have a binding relation; the playing module is further configured to randomly play fourth multimedia data according to the voice playing request when it is determined that the voice network device does not have a binding relationship with the resource server corresponding to the multimedia data to be played, where the multimedia data to be played at least includes: the fourth multimedia data.
In an exemplary embodiment, the receiving module is further configured to receive second voice information sent by the target object; comparing the second voice information with the corpus information in the corpus database, and determining whether the second voice information contains information with similarity to the corpus information being larger than a preset threshold value; and under the condition that the second voice information contains information with similarity to the corpus information being larger than a preset threshold value, taking the second voice information as a voice playing request.
In an exemplary embodiment, the receiving module is further configured to determine, when the voice playing request sent by the target object is received again, whether the voice network device has completely played the updated multimedia data; playing the residual resources of the updated multimedia data under the condition that the voice network device does not completely play the updated multimedia data; and sending a data acquisition request to the resource server under the condition that the voice network device completely plays the updated multimedia data.
An embodiment of the present application also provides a storage medium including a stored program, wherein the program executes the method of any one of the above.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store program code for performing the steps of:
s1, receiving a voice playing request, wherein the voice playing request comprises the following steps: information of multimedia data to be played;
s2, determining a resource server corresponding to the multimedia data to be played according to the information of the multimedia data to be played, and sending a data acquisition request to the resource server, wherein the data acquisition request is used for requesting to acquire the multimedia data to be played;
s3, receiving the multimedia data to be played sent by the resource server in response to the data acquisition request, and determining updated multimedia data in the multimedia data to be played;
and S4, responding to the voice playing request according to the updated multimedia data.
An embodiment of the application also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, receiving a voice playing request, wherein the voice playing request comprises the following steps: information of multimedia data to be played;
s2, determining a resource server corresponding to the multimedia data to be played according to the information of the multimedia data to be played, and sending a data acquisition request to the resource server, wherein the data acquisition request is used for requesting to acquire the multimedia data to be played;
s3, receiving the multimedia data to be played sent by the resource server in response to the data acquisition request, and determining updated multimedia data in the multimedia data to be played;
and S4, responding to the voice playing request according to the updated multimedia data.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments and optional implementations, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the application described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a memory device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present application and is not intended to limit the present application, but various modifications and variations can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present application should be included in the protection scope of the present application.

Claims (9)

1. A method for obtaining a multimedia resource, comprising:
receiving a voice playing request, wherein the voice playing request comprises: information of multimedia data to be played;
determining a resource server corresponding to the multimedia data to be played according to the information of the multimedia data to be played, and sending a data acquisition request to the resource server, wherein the data acquisition request is used for requesting to acquire the multimedia data to be played;
receiving multimedia data to be played sent by the resource server in response to the data acquisition request, and determining updated multimedia data in the multimedia data to be played;
responding to the voice playing request according to the updated multimedia data;
wherein, after receiving the voice play request, the method further comprises: determining whether the multimedia data to be played is played for the first time; under the condition that the multimedia data to be played is played for the first time, determining whether a voice network device and a resource server corresponding to the multimedia data to be played have a binding relationship or not;
under the condition that the voice network device and the resource server corresponding to the multimedia data to be played have a binding relationship, sending a data acquisition request to the resource server;
and under the condition that the voice network device and the resource server corresponding to the multimedia data to be played do not have a binding relationship, randomly playing fourth multimedia data according to the voice playing request, wherein the multimedia data to be played at least comprises: the fourth multimedia data.
2. The method according to claim 1, wherein determining updated multimedia data among the multimedia data to be played comprises:
acquiring historical data of playing first multimedia data by a voice network device, wherein the multimedia data to be played at least comprises: first multimedia data;
determining the playing time of the voice network device for playing the first multimedia data according to the historical data;
and determining the multimedia data updated in the target time period between the current time and the playing time in the multimedia data to be played.
3. The method of claim 2, wherein after determining the updated multimedia data within the target period of time between the current time and the play time, the method further comprises: sending first prompt information to terminal equipment of the target object, wherein the first prompt information is used for indicating that updated multimedia data exists in the multimedia data to be played;
and under the condition that the first voice information sent by the target object is received, sequentially playing the first multimedia data and the second multimedia data of the multimedia data to be played, wherein the first voice information is used for indicating the target object to refuse the voice network device to play the updated multimedia data, and the second multimedia data is the data after the first multimedia data.
4. A method according to any one of claims 1-3, wherein responding to the voice play request based on the updated multimedia data comprises:
determining the quantity of the updated multimedia data;
determining the update time of a plurality of first update resources under the condition that the number of the updated multimedia data is a plurality of, and determining a target update time closest to the current time and third multimedia data corresponding to the target update time in the plurality of update times;
and playing the third multimedia data.
5. A method according to any one of claims 1-3, wherein receiving a voice play request comprises:
receiving second voice information sent by the target object;
comparing the second voice information with the corpus information in the corpus database, and determining whether the second voice information contains information with similarity to the corpus information being larger than a preset threshold value;
and under the condition that the second voice information contains information with similarity to the corpus information being larger than a preset threshold value, taking the second voice information as the voice playing request.
6. A method according to any one of claims 1-3, wherein after responding to the voice play request based on the updated multimedia data, the method further comprises:
under the condition that a voice playing request sent by a target object is received again, determining whether the voice network device completely plays the updated multimedia data;
playing the residual resources of the updated multimedia data under the condition that the voice network device does not completely play the updated multimedia data;
and sending a data acquisition request to the resource server under the condition that the voice network device completely plays the updated multimedia data.
7. An apparatus for acquiring a multimedia resource, comprising:
the receiving module is used for receiving a voice playing request, wherein the voice playing request comprises: information of multimedia data to be played;
the device comprises a sending module, a receiving module and a receiving module, wherein the sending module is used for determining a resource server corresponding to multimedia data to be played according to the information of the multimedia data to be played and sending a data acquisition request to the resource server, wherein the data acquisition request is used for requesting to acquire the multimedia data to be played;
the determining module is used for receiving the multimedia data to be played sent by the resource server in response to the data acquisition request and determining updated multimedia data in the multimedia data to be played;
the response module is used for responding to the voice playing request according to the updated multimedia data;
the determining module is further configured to determine whether to play the multimedia data to be played for the first time;
under the condition that the multimedia data to be played is played for the first time, determining whether a voice network device and a resource server corresponding to the multimedia data to be played have a binding relationship or not;
the playing module is further configured to send a data acquisition request to a resource server corresponding to the multimedia data to be played when it is determined that the voice network device has a binding relationship with the resource server;
the playing module is further configured to randomly play fourth multimedia data according to the voice playing request when it is determined that the voice network device does not have a binding relationship with a resource server corresponding to the multimedia data to be played, where the multimedia data to be played at least includes: the fourth multimedia data.
8. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the program when run performs the method of any of the preceding claims 1 to 6.
9. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of the claims 1 to 6 by means of the computer program.
CN202210169924.9A 2022-02-23 2022-02-23 Method and device for acquiring multimedia resources, storage medium and electronic device Active CN114697298B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210169924.9A CN114697298B (en) 2022-02-23 2022-02-23 Method and device for acquiring multimedia resources, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210169924.9A CN114697298B (en) 2022-02-23 2022-02-23 Method and device for acquiring multimedia resources, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN114697298A CN114697298A (en) 2022-07-01
CN114697298B true CN114697298B (en) 2023-11-28

Family

ID=82136708

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210169924.9A Active CN114697298B (en) 2022-02-23 2022-02-23 Method and device for acquiring multimedia resources, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN114697298B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107832434A (en) * 2017-11-15 2018-03-23 百度在线网络技术(北京)有限公司 Method and apparatus based on interactive voice generation multimedia play list
CN108881286A (en) * 2018-07-17 2018-11-23 腾讯音乐娱乐科技(深圳)有限公司 Method, terminal, sound-box device and the system of multimedia control
CN109587553A (en) * 2018-12-07 2019-04-05 北京微播视界科技有限公司 Method for playing music, device, electronic equipment and computer storage medium
CN109756748A (en) * 2019-01-30 2019-05-14 百度在线网络技术(北京)有限公司 Generation method, device and the computer equipment of multimedia album
CN110996145A (en) * 2019-12-18 2020-04-10 北京达佳互联信息技术有限公司 Multimedia resource playing method, system, terminal equipment and server
CN111954005A (en) * 2019-05-17 2020-11-17 腾讯科技(深圳)有限公司 Multimedia resource transmission method and device
CN113962729A (en) * 2021-09-27 2022-01-21 茂佳科技(广东)有限公司 Multimedia playing method, screen projection terminal, server and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107832434A (en) * 2017-11-15 2018-03-23 百度在线网络技术(北京)有限公司 Method and apparatus based on interactive voice generation multimedia play list
CN108881286A (en) * 2018-07-17 2018-11-23 腾讯音乐娱乐科技(深圳)有限公司 Method, terminal, sound-box device and the system of multimedia control
CN109587553A (en) * 2018-12-07 2019-04-05 北京微播视界科技有限公司 Method for playing music, device, electronic equipment and computer storage medium
CN109756748A (en) * 2019-01-30 2019-05-14 百度在线网络技术(北京)有限公司 Generation method, device and the computer equipment of multimedia album
CN111954005A (en) * 2019-05-17 2020-11-17 腾讯科技(深圳)有限公司 Multimedia resource transmission method and device
CN110996145A (en) * 2019-12-18 2020-04-10 北京达佳互联信息技术有限公司 Multimedia resource playing method, system, terminal equipment and server
CN113962729A (en) * 2021-09-27 2022-01-21 茂佳科技(广东)有限公司 Multimedia playing method, screen projection terminal, server and storage medium

Also Published As

Publication number Publication date
CN114697298A (en) 2022-07-01

Similar Documents

Publication Publication Date Title
CN108245896B (en) Method, device and system for presenting game live broadcast, storage medium and equipment
CN113055451B (en) Resource downloading method and device, electronic equipment and storage medium
CN102761609A (en) Data push system and method for server
CN111182321B (en) Method, device and system for processing information
CN110324680B (en) Video pushing method and device, server, client and storage medium
CN106713954B (en) Video live broadcast starting reminding method and device
CN103647756A (en) Advertisement broadcasting method, server, client and system
CN110659121A (en) Task data acquisition method and device, task configuration method and device and server
CN108762880B (en) Method and device for determining display position of recommended content
CN105872006A (en) Appointment reminding system and appointment reminding method
CN104424352A (en) System and method for providing agent service to user terminal
CN103763575B (en) A kind of programme method of combination and device
CN106257928A (en) Audio file acquisition methods, update notification sending method, equipment and system
CN108234768B (en) Resource switching control method and device and terminal equipment
CN105897854A (en) Mobile terminal alarm clock response method, device and system
CN104580084A (en) Method, terminals and system for sharing multimedia file
CN114697298B (en) Method and device for acquiring multimedia resources, storage medium and electronic device
CN104967879B (en) Video broadcasting method and device
CN104735482A (en) Video pushing implementation method, system and device
CN108092960A (en) Method, apparatus, equipment and the storage medium that a kind of audio plays
CN109587194A (en) A kind of action message methods of exhibiting, client and server
CN111089396A (en) Method for controlling air conditioner and air conditioner
CN105847867A (en) Multimedia live content piloting method and device
CN101448136B (en) Method for realizing video on-demand function and system thereof
CN101179563B (en) Method and system of implementing online broadcast in network game

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