Smart speaker control method, device, equipment and storage medium
By segmenting text on the terminal device and sending it to the server for audio conversion and playback, the problem of terminal device resource consumption and audio channel occupation is solved, efficient text conversion audio playback is achieved, and multi-task audio playback is supported.
Patent Information
- Application Number
- CN202010031260.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-01-13
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2040-01-13
AI Technical Summary
When the existing technology converts text content into audio, the system resources and power consumption of the terminal device are large, and the audio channel is occupied, making other audio playback impossible.
By segmenting the text to be played on the terminal device and sending the segmented text to the server for conversion and playback, the server sends the segmented audio to the smart speaker, and the smart speaker plays the segmented audio. The terminal device does not occupy the audio channel. .
It reduces the system resources and power consumption of the terminal device, improves the response speed, makes it easy to stop playing at any time, and does not occupy the audio channel of the terminal device, allowing other audio playback.
Smart Images

Figure CN113112984B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to the field of speech technology. Background Art
[0002] With the rapid development of Internet technology, terminal devices such as mobile phones, tablets, laptops, desktops, smart wearable devices, etc. have become an indispensable part of people's lives. People can view some text content on terminal devices, or convert text content into audio for playback.
[0003] In the prior art, the process of converting text content into audio for playback usually requires converting the text into audio on a terminal device. After the conversion is completed, the audio is played by a speaker of the terminal device or a speaker connected to the terminal device.
[0004] In the prior art, the process of converting text into audio by a terminal device consumes a lot of system resources and power, and when playing audio, the audio channel of the terminal device needs to be occupied, and the terminal device cannot play other audio. Summary of the invention
[0005] The present application provides a control method, device, equipment and storage medium for a smart speaker, so as to reduce the system resource consumption and power consumption of a terminal device in the process of converting text content into audio for playback, without occupying the audio channel of the terminal device and without affecting the playback of other audio by the terminal device.
[0006] The first aspect of the present application provides a control method of a smart speaker, which is applied to a terminal device, and the method includes:
[0007] According to the preset text length, the text to be played is segmented;
[0008] The segmented texts are sent to the server in sequence, so that the server converts the received segmented texts into audio and sends them to the smart speaker for playback.
[0009] In a possible design, sending the segmented texts to the server in sequence includes:
[0010] The segmented text is sent to the server in sequence according to the playback progress of the smart speaker.
[0011] In a possible design, sending the segmented texts to the server in sequence according to the playback progress of the smart speaker includes:
[0012] After sending the current segmented text to the server, obtaining the playback progress of the current segmented text by the smart speaker from the server;
[0013] The next segmented text is sent to the server according to the playback progress.
[0014] In one possible design, the method further includes:
[0015] generating a first stop playback instruction according to a stop playback operation performed by a user on the terminal device;
[0016] According to the first stop playing instruction, stop sending the segmented text to the server, and send the first stop playing instruction to the server, so that the server stops the process of converting the segmented text into audio, and controls the smart speaker to stop playing.
[0017] In one possible design, the method further includes:
[0018] Receiving a second stop playing instruction sent by the server, where the second stop playing instruction is generated by the smart speaker according to a stop playing operation of the user on the smart speaker and sent to the server;
[0019] Stop sending the segmented text to the server according to the second play instruction.
[0020] A second aspect of the present application provides a control method for a smart speaker, which is applied to a server, and the method includes:
[0021] Receiving segmented texts sent sequentially by a terminal device, wherein the segmented texts are obtained by the terminal device segmenting a text to be played according to a preset text length;
[0022] The received segmented text is converted into audio and sent to the smart speaker for playback in sequence.
[0023] In a possible design, the segmented texts sequentially sent by the receiving terminal device include:
[0024] Receiving the current segmented text sent by the terminal device;
[0025] After converting the current segmented text into audio and sending it to the smart speaker for playing, obtaining the playing progress of the current segmented text by the smart speaker from the smart speaker;
[0026] The playback progress is sent to the terminal device, so that the terminal device sends the next segmented text to the server according to the playback progress.
[0027] In one possible design, the method further includes:
[0028] receiving a first stop playing instruction sent by the terminal device, where the first stop playing instruction is generated by the terminal device according to a stop playing operation performed by a user on the terminal device;
[0029] The process of converting the segmented text into audio is stopped according to the first stop playing instruction, and the first stop playing instruction is sent to the smart speaker so that the smart speaker stops playing according to the first stop playing instruction.
[0030] In one possible design, the method further includes:
[0031] Receiving a second stop playing instruction sent by the smart speaker, where the second stop playing instruction is generated by the smart speaker according to a stop playing operation of the user on the smart speaker;
[0032] The process of converting the segmented text into audio is stopped according to the second stop playing instruction, and the second stop playing instruction is sent to the terminal device, so that the terminal device stops sending the segmented text to the server according to the second play instruction.
[0033] A third aspect of the present application provides a control method for a smart speaker, which is applied to the smart speaker, and the method includes:
[0034] Receiving the audio of the segmented text sent sequentially by the server, wherein the audio of the segmented text is the audio of the segmented text segmented by the terminal device according to the preset text length and sent sequentially to the server, and the server converts the received segmented text into audio;
[0035] Play the audio of the segmented text sequentially.
[0036] In one possible design, the method further includes:
[0037] The playing progress of the audio of the current segment text is sent to the server.
[0038] In one possible design, the method further includes:
[0039] receiving a first stop playback instruction sent by the server, where the first stop playback instruction is generated by the terminal device according to a stop playback operation of a user on the terminal device and sent to the server;
[0040] Stop playing according to the first stop playing instruction.
[0041] In one possible design, the method further includes:
[0042] Generate a second stop playback instruction according to a stop playback operation performed by the user on the smart speaker;
[0043] According to the second stop playing instruction, stop playing the audio, and send the second stop playing instruction to the server, so that the server stops the process of converting the segmented text into audio, and controls the terminal device to stop sending the segmented text to the server.
[0044] A fourth aspect of the present application provides a control device for a smart speaker, which is applied to a terminal device, and the device includes:
[0045] A processing module, used for segmenting the text to be played according to a preset text length;
[0046] The sending module is used to send the segmented texts to the server in sequence, so that the server converts the received segmented texts into audio and sends them to the smart speaker for playback.
[0047] In one possible design, the sending module is used to:
[0048] The segmented text is sent to the server in sequence according to the playback progress of the smart speaker.
[0049] In one possible design, in one possible design, the sending module is used to:
[0050] After sending the current segmented text to the server, obtaining the playback progress of the current segmented text by the smart speaker from the server;
[0051] The next segmented text is sent to the server according to the playback progress.
[0052] In a possible design, the device further includes a control module, which is used to:
[0053] generating a first stop playback instruction according to a stop playback operation performed by a user on the terminal device;
[0054] According to the first stop playing instruction, stop sending the segmented text to the server, and send the first stop playing instruction to the server, so that the server stops the process of converting the segmented text into audio, and controls the smart speaker to stop playing.
[0055] In a possible design, the device further includes a control module, which is used to:
[0056] Receiving a second stop playing instruction sent by the server, where the second stop playing instruction is generated by the smart speaker according to a stop playing operation of the user on the smart speaker and sent to the server;
[0057] Stop sending the segmented text to the server according to the second play instruction.
[0058] A fifth aspect of the present application provides a control device for a smart speaker, which is applied to a server, and the device includes:
[0059] A receiving module, used for receiving segmented texts sent sequentially by a terminal device, wherein the segmented texts are obtained by the terminal device segmenting the text to be played according to a preset text length;
[0060] A processing module, for converting the received segmented text into audio;
[0061] The sending module is used to send the audio of the segmented text to the smart speaker in sequence for playback.
[0062] In a possible design, the receiving module is used to receive the current segmented text sent by the terminal device; after converting the current segmented text into audio and sending it to the smart speaker for playback, obtain the playback progress of the current segmented text by the smart speaker from the smart speaker;
[0063] The sending module is further used to send the playing progress to the terminal device, so that the terminal device sends the next segmented text to the server according to the playing progress.
[0064] In a possible design, the receiving module is further used to receive a first stop playing instruction sent by the terminal device, where the first stop playing instruction is generated by the terminal device according to a stop playing operation of a user on the terminal device;
[0065] The processing module is further used to stop the process of converting the segmented text into audio according to the first stop playing instruction;
[0066] The sending module is further used to send the first stop playing instruction to the smart speaker, so that the smart speaker stops playing according to the first stop playing instruction.
[0067] In a possible design, the receiving module is further used to receive a second stop playing instruction sent by the smart speaker, where the second stop playing instruction is generated by the smart speaker according to a stop playing operation of the user on the smart speaker;
[0068] The processing module is further used to stop the process of converting the segmented text into audio according to the second stop playing instruction;
[0069] The sending module is further used to send the second stop playing instruction to the terminal device, so that the terminal device stops sending the segmented text to the server according to the second play instruction.
[0070] A sixth aspect of the present application provides a control device for a smart speaker, which is applied to the smart speaker, and the device includes:
[0071] A receiving module, used for receiving the audio of the segmented text sent sequentially by the server, wherein the audio of the segmented text is the audio of the segmented text segmented by the terminal device according to the preset text length and sent sequentially to the server, and the server converts the received segmented text into audio;
[0072] The playback module is used to play the audio of the segmented text in sequence.
[0073] In one possible design, the device further includes:
[0074] The sending module is used to send the playing progress of the audio of the current segment text to the server.
[0075] In a possible design, the receiving module is further used to receive a first stop playing instruction sent by the server, where the first stop playing instruction is generated by the terminal device according to a stop playing operation of a user on the terminal device and sent to the server;
[0076] The playing module is further configured to stop playing according to the first stop playing instruction.
[0077] In one possible design, the device further includes:
[0078] A control module, configured to generate a second stop playback instruction according to a stop playback operation performed by a user on the smart speaker;
[0079] The playing module is further used to stop playing the audio according to the second stop playing instruction;
[0080] The sending module is used to send the second stop playing instruction to the server, so that the server stops the process of converting the segmented text into audio, and controls the terminal device to stop sending the segmented text to the server.
[0081] A seventh aspect of the present application provides an electronic device, including:
[0082] at least one processor; and
[0083] a memory communicatively connected to the at least one processor; wherein,
[0084] The memory stores instructions that can be executed 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 perform the method described in the first aspect.
[0085] An eighth aspect of the present application provides an electronic device, including:
[0086] at least one processor; and
[0087] a memory communicatively connected to the at least one processor; wherein,
[0088] The memory stores instructions that can be executed 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 perform the method described in the first aspect.
[0089] A ninth aspect of the present application provides an electronic device, including:
[0090] at least one processor; and
[0091] a memory communicatively connected to the at least one processor; wherein,
[0092] The memory stores instructions that can be executed 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 perform the method described in the first aspect.
[0093] The tenth aspect of the present application provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable the computer to execute the method described in the first aspect.
[0094] The eleventh aspect of the present application provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable the computer to execute the method described in the second aspect.
[0095] The twelfth aspect of the present application provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable the computer to execute the method described in the third aspect.
[0096] The thirteenth aspect of the present application provides a computer program, comprising a program code. When a computer runs the computer program, the program code executes the method described in the first aspect.
[0097] The fourteenth aspect of the present application provides a computer program, comprising a program code. When a computer runs the computer program, the program code executes the method described in the second aspect.
[0098] The fifteenth aspect of the present application provides a computer program, comprising a program code. When a computer runs the computer program, the program code executes the method described in the third aspect.
[0099] A sixteenth aspect of the present application provides a control system for a smart speaker, including:
[0100] The terminal device is used to segment the text to be played according to the preset text length, and send the segmented texts to the server in sequence;
[0101] The server is used to convert the received segmented text into audio and send it to the smart speaker;
[0102] A smart speaker for playing the audio of the received segmented text.
[0103] One embodiment of the above application has the following advantages or beneficial effects: the text to be played is segmented by the terminal device according to the preset text length; the segmented text is sent to the server in sequence, so that the server converts the received segmented text into audio and sends it to the smart speaker for playback. In this embodiment, by segmenting the text to be played, the audio can be played after each segmented text is converted into audio, without the need for the smart speaker to wait for the text to be played to be converted into audio before playing, thereby improving the response speed and facilitating the stop of text conversion to audio and playback at any time; the process of converting text to audio is completed by the server, reducing the system resource consumption and power consumption of the terminal device; and the smart speaker plays the audio of the segmented text without occupying the audio channel of the terminal device and affecting the terminal device's playback of other audio.
[0104] Other effects of the above optional manner will be described below in conjunction with specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0105] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present application.
[0106] Figure 1 A control system architecture diagram of a smart speaker provided in one embodiment of the present application;
[0107] Figure 2 A flow chart of a method for controlling a smart speaker provided in one embodiment of the present application;
[0108] Figure 3 A flow chart of a control method for a smart speaker provided in another embodiment of the present application;
[0109] Figure 4 A flow chart of a control method for a smart speaker provided in another embodiment of the present application;
[0110] Figure 5 A structural diagram of a control device for a smart speaker provided in one embodiment of the present application;
[0111] Figure 6 A structural diagram of a control device for a smart speaker provided in another embodiment of the present application;
[0112] Figure 7 A structural diagram of a control device for a smart speaker provided in another embodiment of the present application;
[0113] Figure 8 is a block diagram of an electronic device used to implement the control method of the smart speaker on the terminal device side of the embodiment of the present application;
[0114] Fig. 9 is a block diagram of an electronic device used to implement the control method of the smart speaker on the server side of an embodiment of the present application;
[0115] Fig.10 It is a block diagram of an electronic device used to implement the control method of the smart speaker on the smart speaker side of an embodiment of the present application. DETAILED DESCRIPTION
[0116] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0117] The method provided in the embodiment of the present application is applied as follows Figure 1 The control system of the smart speaker shown in the figure includes a terminal device 10, a server 11 and a smart speaker 12. The terminal device 10 can be an electronic device such as a mobile phone, a tablet computer, a laptop computer, a desktop computer, a smart wearable device, etc., and is used to segment the text to be played according to a preset text length, and send the segmented text to the server 11 in sequence; the server 11 can be a server, or a server cluster composed of several servers, or a cloud computing service center, and is used to convert the received segmented text into audio and send it to the smart speaker 12; the smart speaker 12 can be used to play the audio of the received segmented text.
[0118] In the embodiment of the present application, the text to be played is segmented, and the audio can be played after each segmented text is converted into audio, without the need for the smart speaker to wait for the entire text to be played to be converted into audio before playing, thereby improving the response speed and facilitating the stopping of text conversion to audio and playback at any time; the process of converting text to audio is completed by the server, reducing the system resource consumption and power consumption of the terminal device; and the smart speaker plays the audio of the segmented text without occupying the audio channel of the terminal device and does not affect the terminal device from playing other audio.
[0119] The control process of the smart speaker will be described in detail below in conjunction with specific embodiments.
[0120] An embodiment of the present application provides a method for controlling a smart speaker. Figure 2 The flowchart of the control method of the smart speaker provided by the embodiment of the present invention. The execution subject may be a terminal device, such as Figure 2 As shown, the specific steps of the control method of the smart speaker are as follows:
[0121] S101. Segment the text to be played according to a preset text length.
[0122] In this embodiment, since the text to be played may include more content, such as an e-book (which may include tens of thousands of words or more), if the text to be played is not segmented, it will take a long time to convert the text into audio later. The smart speaker needs to wait for the text to be played to be fully converted into audio before it can be played. If the text-to-audio conversion process is interrupted, it needs to be re-converted. In addition, when the conversion is completed, the audio needs to be stopped, and the unplayed part wastes system resources when the text is converted into audio; by segmenting the text to be played, the audio can be played after each segment of the text is converted into audio, without the need for the smart speaker to wait for the text to be played to be fully converted into audio before it can be played. In addition, it is convenient to stop the text conversion audio and stop playing at any time, without wasting system resources. In this embodiment, the preset text length can be set according to actual needs, and the terminal device can receive the user's operation instruction to set the preset text length, and set the preset text length according to the operation instruction. Optionally, it can be segmented in sections of 200 words.
[0123] Furthermore, before the text to be played is segmented, the text to be played is also obtained, wherein the text to be played may include but is not limited to text input by the user, text received by the user (such as a short message), or text obtained from a text file specified by the user (such as an e-book file). Optionally, the user can specify a text file on the terminal device, and the text file may include but is not limited to a text file in the epub format, pdf format, etc., and then obtain the text to be played from the text file. In addition, the user can also specify part of the content (such as specifying the number of pages, the number of lines, etc.) in the text file as the text to be played.
[0124] S102: Send the segmented texts to the server in sequence, so that the server converts the received segmented texts into audio and sends them to the smart speaker for playback.
[0125] In this embodiment, after the terminal device segments the text to be played to obtain multiple segmented texts, the terminal device can send the segmented texts to the server in sequence. After receiving the segmented texts, the server converts the received segmented texts into audio (audio stream). Optionally, the interface of the speech synthesis service can be called to convert the segmented text into audio through the speech synthesis service. Then the server sends the audio of the segmented text to the smart speaker in sequence, and the smart speaker plays the audio of the received segmented text in sequence.
[0126] In this embodiment, the terminal device sends the segmented text to the server in sequence. Specifically, the segmented text can be sent to the server in sequence at a certain time interval, so that the server has sufficient time to convert the received segmented text into audio and send it to the smart speaker for playback, and it is also convenient for the user to stop the audio playback at any time to avoid wasting system resources. Optionally, the sending of the segmented text to the server in sequence can specifically include: sending the segmented text to the server in sequence according to the playback progress of the smart speaker, that is, after the terminal device sends a segmented text to the server, it can obtain the playback progress of the segmented text by the smart speaker. When the playback is about to be completed (for example, the playback progress reaches a preset threshold), the terminal device sends the next segmented text to the server.
[0127] Specifically, sending the segmented texts to the server in sequence according to the playback progress of the smart speaker includes:
[0128] S1021. After sending the current segmented text to the server, obtain the playback progress of the current segmented text by the smart speaker from the server;
[0129] S1022: Send the next segmented text to the server according to the playback progress.
[0130] In this embodiment, the terminal device can communicate with the server through a long connection, so that the terminal device can obtain the playback progress in real time.
[0131] Based on any of the above embodiments, the user can also control the smart speaker to stop playing on the terminal device or smart speaker.
[0132] In an optional embodiment, the process of controlling the smart speaker to stop playing may include:
[0133] S211, generating a first stop playback instruction according to a stop playback operation performed by a user on the terminal device;
[0134] S212. According to the first stop playing instruction, stop sending the segmented text to the server, and send the first stop playing instruction to the server, so that the server stops the process of converting the segmented text into audio, and controls the smart speaker to stop playing.
[0135] In this embodiment, the user can control the smart speaker to stop playing on the terminal device. The specific user performs a stop playback operation on the terminal device, such as clicking a stop playback button, and then generates a first stop playback instruction. The terminal device can stop sending segmented text to the server according to the first stop playback instruction. At the same time, the terminal device can also send the first stop playback instruction to the server to enable the server to stop the currently executing process of converting the segmented text into audio. Of course, the server can also determine whether there is a currently executing process of converting segmented text into audio. If so, stop the process of converting segmented text into audio. At the same time, if the server has a process of sending segmented text audio to the smart speaker, it can also stop the process of sending segmented text audio. In addition, the server can also send the first stop playback instruction to the smart speaker to enable the smart speaker to stop playing audio according to the first stop playback instruction.
[0136] In another optional embodiment, the process of controlling the smart speaker to stop playing may include:
[0137] S221, receiving a second stop playing instruction sent by the server, where the second stop playing instruction is generated by the smart speaker according to a stop playing operation of the user on the smart speaker and sent to the server;
[0138] S222. Stop sending the segmented text to the server according to the second play instruction.
[0139] In this embodiment, the user can control the smart speaker to stop playing on the smart speaker. The specific user performs a stop playing operation on the smart speaker, such as clicking a stop playing button, and then a second stop playing instruction can be generated. The smart speaker can stop playing the audio according to the first stop playing instruction. At the same time, the smart speaker can also send the second stop playing instruction to the server to enable the server to stop the currently executing process of converting segmented text into audio. Of course, the server can also determine whether there is a currently executing process of converting segmented text into audio. If so, the process of converting segmented text into audio is stopped. At the same time, if the server has a process of sending segmented text audio to the smart speaker, the process of sending segmented text audio can also be stopped. In addition, the server can also send the second stop playing instruction to the terminal device to enable the terminal device to stop sending segmented text to the server according to the second stop playing instruction. In another embodiment, the stop playback operation may be turning off the power of the smart speaker. The server may detect whether the smart speaker is working normally in real time or at regular intervals. When it is detected that the smart speaker is not working or is not working normally, the current process of converting the segmented text into audio and the process of sending the audio of the segmented text are stopped. Similarly, it may also be determined whether the server currently has a process of converting the segmented text into audio and / or a process of sending the audio of the segmented text. In addition, the server may also control the terminal device to stop sending segmented text to the server.
[0140] The control method of the smart speaker provided in this embodiment is to segment the text to be played according to the preset text length by the terminal device; send the segmented text to the server in sequence, so that the server converts the received segmented text into audio and sends it to the smart speaker for playback. In this embodiment, by segmenting the text to be played, the audio can be played after each segmented text is converted into audio, without the need for the smart speaker to wait for the text to be played to be converted into audio before playing, thereby improving the response speed and facilitating the stop of text conversion and audio playback at any time; the process of converting text into audio is completed by the server, reducing the system resource consumption and power consumption of the terminal device; and the smart speaker plays the audio of the segmented text without occupying the audio channel of the terminal device and affecting the terminal device's playback of other audio.
[0141] An embodiment of the present application provides a method for controlling a smart speaker. Figure 3 The flowchart of the control method of the smart speaker provided by the embodiment of the present invention. The execution subject may be a server, such as Figure 3 As shown, the specific steps of the control method of the smart speaker are as follows:
[0142] S301, receiving segmented texts sent sequentially by a terminal device, wherein the segmented texts are obtained by the terminal device segmenting a text to be played according to a preset text length;
[0143] S302: Convert the received segmented text into audio, and send it to the smart speaker for playback in sequence.
[0144] This embodiment is a method embodiment on the server side corresponding to the control method embodiment of the smart speaker on the terminal device side. Its principles and technical effects can be found in the above embodiments and will not be repeated here.
[0145] Furthermore, the receiving of the segmented texts sequentially sent by the terminal device in S301 may specifically include:
[0146] S3011, receiving the current segment text sent by the terminal device;
[0147] S3012, after converting the current segmented text into audio and sending it to the smart speaker for playing, obtaining the playing progress of the current segmented text by the smart speaker from the smart speaker;
[0148] S3013: Send the playback progress to the terminal device, so that the terminal device sends the next segmented text to the server according to the playback progress.
[0149] In this embodiment, obtaining the playback progress of the current segmented text by the smart speaker from the smart speaker can specifically be that the server sends a playback progress query request to the smart speaker, the smart speaker returns the playback progress of the current segmented text according to the query request, or the smart speaker actively sends the playback progress of the current segmented text to the server.
[0150] Based on the above embodiment, the user can also control the smart speaker to stop playing on the terminal device or smart speaker.
[0151] In an optional embodiment, the process of controlling the smart speaker to stop playing may include:
[0152] S411, receiving a first stop playing instruction sent by the terminal device, where the first stop playing instruction is generated by the terminal device according to a stop playing operation performed by a user on the terminal device;
[0153] S412. Stop the process of converting the segmented text into audio according to the first stop playing instruction, and send the first stop playing instruction to the smart speaker so that the smart speaker stops playing according to the first stop playing instruction.
[0154] In this embodiment, the principles and technical effects of S411-S412 can be found in the above-mentioned S211-S212, and will not be repeated here.
[0155] In another optional embodiment, the process of controlling the smart speaker to stop playing may include:
[0156] S421: Receive a second stop playing instruction sent by the smart speaker, where the second stop playing instruction is generated by the smart speaker according to a stop playing operation performed by the user on the smart speaker;
[0157] S422. Stop the process of converting the segmented text into audio according to the second stop playing instruction, and send the second stop playing instruction to the terminal device, so that the terminal device stops sending the segmented text to the server according to the second play instruction.
[0158] In this embodiment, the principles and technical effects of S421-S422 can be found in the above-mentioned S221-S222, and will not be repeated here.
[0159] The control method of the smart speaker provided in this embodiment is to segment the text to be played according to the preset text length by the terminal device; send the segmented text to the server in sequence, so that the server converts the received segmented text into audio and sends it to the smart speaker for playback. In this embodiment, by segmenting the text to be played, the audio can be played after each segmented text is converted into audio, without the need for the smart speaker to wait for the text to be played to be converted into audio before playing, thereby improving the response speed and facilitating the stop of text conversion and audio playback at any time; the process of converting text into audio is completed by the server, reducing the system resource consumption and power consumption of the terminal device; and the smart speaker plays the audio of the segmented text without occupying the audio channel of the terminal device and affecting the terminal device's playback of other audio.
[0160] An embodiment of the present application provides a method for controlling a smart speaker. Figure 4 Flowchart of the control method of the smart speaker provided by the embodiment of the present invention. The execution subject may be a smart speaker, such as Figure 4 As shown, the specific steps of the control method of the smart speaker are as follows:
[0161] S501, receiving audio of segmented texts sent sequentially by a server, wherein the audio of the segmented texts is obtained by the terminal device segmenting the text to be played according to a preset text length and sending the segmented texts sequentially to the server, and the server converting the received segmented texts into audio;
[0162] S502: Play the audio of the segmented text in sequence.
[0163] The present embodiment is a method embodiment on the smart speaker side corresponding to the control method embodiment on the smart speaker on the above-mentioned terminal device side. Its principles and technical effects can be found in the above-mentioned embodiments and will not be repeated here.
[0164] Based on the above embodiment, the method further includes sending the playing progress of the audio of the current segmented text to the server.
[0165] In this embodiment, the smart speaker can actively send the playback progress of the current segmented text to the server, or return the playback progress of the current segmented text after receiving the playback progress query request sent by the server.
[0166] Based on the above embodiment, the user can also control the smart speaker to stop playing on the terminal device or smart speaker.
[0167] In an optional embodiment, the process of controlling the smart speaker to stop playing may include:
[0168] S611, receiving a first stop playing instruction sent by the server, where the first stop playing instruction is generated by the terminal device according to a stop playing operation of the user on the terminal device and sent to the server;
[0169] S612: Stop playing according to the first stop playing instruction.
[0170] In this embodiment, the principles and technical effects of S611-S612 can be found in the above-mentioned S211-S212, and will not be repeated here.
[0171] In another optional embodiment, the process of controlling the smart speaker to stop playing may include:
[0172] S621. Generate a second stop playback instruction according to a stop playback operation performed by the user on the smart speaker;
[0173] S621. Stop playing the audio according to the second stop playing instruction, and send the second stop playing instruction to the server, so that the server stops the process of converting the segmented text into audio, and controls the terminal device to stop sending the segmented text to the server.
[0174] In this embodiment, the principles and technical effects of S621-S622 can be found in the above-mentioned S221-S222, and will not be repeated here.
[0175] The control method of the smart speaker provided in this embodiment is to segment the text to be played according to the preset text length by the terminal device; send the segmented text to the server in sequence, so that the server converts the received segmented text into audio and sends it to the smart speaker for playback. In this embodiment, by segmenting the text to be played, the audio can be played after each segmented text is converted into audio, without the need for the smart speaker to wait for the text to be played to be converted into audio before playing, thereby improving the response speed and facilitating the stop of text conversion and audio playback at any time; the process of converting text into audio is completed by the server, reducing the system resource consumption and power consumption of the terminal device; and the smart speaker plays the audio of the segmented text without occupying the audio channel of the terminal device and affecting the terminal device's playback of other audio.
[0176] An embodiment of the present application provides a control device for a smart speaker, Figure 5 The structure diagram of the control device of the smart speaker provided by the embodiment of the present invention is applied to the terminal device. Figure 5 As shown, the control device 710 of the smart speaker specifically includes: a processing module 711 and a sending module 712.
[0177] The processing module 711 is used to segment the text to be played according to the preset text length;
[0178] The sending module 712 is used to send the segmented texts to the server in sequence, so that the server converts the received segmented texts into audio and sends them to the smart speaker for playback.
[0179] Based on the above embodiment, the sending module 712 is used for:
[0180] The segmented text is sent to the server in sequence according to the playback progress of the smart speaker.
[0181] Based on the above embodiment, the sending module 712 is used for:
[0182] After sending the current segmented text to the server, obtaining the playback progress of the current segmented text by the smart speaker from the server;
[0183] The next segmented text is sent to the server according to the playback progress.
[0184] Based on the above embodiment, optionally, the device 710 further includes a control module 713, which is used to:
[0185] generating a first stop playback instruction according to a stop playback operation performed by a user on the terminal device;
[0186] According to the first stop playing instruction, stop sending the segmented text to the server, and send the first stop playing instruction to the server, so that the server stops the process of converting the segmented text into audio, and controls the smart speaker to stop playing.
[0187] Based on the above embodiment, optionally, the device 710 further includes a control module 713, which is used to:
[0188] Receiving a second stop playing instruction sent by the server, where the second stop playing instruction is generated by the smart speaker according to a stop playing operation of the user on the smart speaker and sent to the server;
[0189] Stop sending the segmented text to the server according to the second play instruction.
[0190] The control device of the smart speaker provided in this embodiment can be specifically used to perform the above Figure 2 An embodiment of the control method of the smart speaker on the terminal device side is provided, and the specific functions are not repeated here.
[0191] The control device of the smart speaker provided in this embodiment divides the text to be played into segments according to the preset text length through the terminal device; sends the segmented text to the server in sequence, so that the server converts the received segmented text into audio and sends it to the smart speaker for playback. In this embodiment, by segmenting the text to be played, the audio can be played immediately after each segmented text is converted into audio, without the need for the smart speaker to wait for the text to be played to be converted into audio before playing, thereby improving the response speed and facilitating the stop of text conversion to audio and playback at any time; the process of converting text to audio is completed by the server, reducing the system resource consumption and power consumption of the terminal device; and the smart speaker plays the audio of the segmented text without occupying the audio channel of the terminal device and affecting the playback of other audio by the terminal device.
[0192] An embodiment of the present application provides a control device for a smart speaker, Figure 6 This is a structural diagram of the control device of the smart speaker provided by an embodiment of the present invention, which is applied to the server. Figure 6 As shown, the control device 720 of the smart speaker specifically includes: a receiving module 721, a processing module 722 and a sending module 723.
[0193] The receiving module 721 is used to receive the segmented texts sent sequentially by the terminal device, where the segmented texts are obtained by the terminal device segmenting the text to be played according to a preset text length;
[0194] A processing module 722, configured to convert the received segmented text into audio;
[0195] The sending module 723 is used to send the audio of the segmented text to the smart speaker in sequence for playback.
[0196] On the basis of the above embodiment, the receiving module 721 is used to receive the current segmented text sent by the terminal device; after converting the current segmented text into audio and sending it to the smart speaker for playing, obtain the playing progress of the current segmented text by the smart speaker from the smart speaker;
[0197] The sending module 723 is further used to send the playing progress to the terminal device, so that the terminal device sends the next segmented text to the server according to the playing progress.
[0198] Based on the above embodiment, optionally, the receiving module 721 is further used to receive a first stop playing instruction sent by the terminal device, where the first stop playing instruction is generated by the terminal device according to a stop playing operation of the user on the terminal device;
[0199] The processing module 722 is further configured to stop the process of converting the segmented text into audio according to the first stop playing instruction;
[0200] The sending module 723 is further configured to send the first stop playing instruction to the smart speaker, so that the smart speaker stops playing according to the first stop playing instruction.
[0201] Based on the above embodiment, optionally, the receiving module 721 is further used to receive a second stop playing instruction sent by the smart speaker, where the second stop playing instruction is generated by the smart speaker according to a stop playing operation of the user on the smart speaker;
[0202] The processing module 722 is further configured to stop the process of converting the segmented text into audio according to the second stop playing instruction;
[0203] The sending module 723 is further configured to send the second stop playing instruction to the terminal device, so that the terminal device stops sending the segmented text to the server according to the second play instruction.
[0204] The control device of the smart speaker provided in this embodiment can be specifically used to perform the above Figure 3 An embodiment of the control method of the smart speaker on the server side is provided, and the specific functions are not repeated here.
[0205] The control device of the smart speaker provided in this embodiment divides the text to be played into segments according to the preset text length through the terminal device; sends the segmented text to the server in sequence, so that the server converts the received segmented text into audio and sends it to the smart speaker for playback. In this embodiment, by segmenting the text to be played, the audio can be played immediately after each segmented text is converted into audio, without the need for the smart speaker to wait for the text to be played to be converted into audio before playing, thereby improving the response speed and facilitating the stop of text conversion to audio and playback at any time; the process of converting text to audio is completed by the server, reducing the system resource consumption and power consumption of the terminal device; and the smart speaker plays the audio of the segmented text without occupying the audio channel of the terminal device and affecting the playback of other audio by the terminal device.
[0206] An embodiment of the present application provides a control device for a smart speaker, Figure 7 The structure diagram of the control device of the smart speaker provided by the embodiment of the present invention is applied to the smart speaker. Figure 7 As shown, the control device 730 of the smart speaker specifically includes: a receiving module 731 and a playing module 732.
[0207] The receiving module 731 is used to receive the audio of the segmented text sent in sequence by the server, wherein the audio of the segmented text is the audio of the segmented text that the terminal device segments according to the preset text length and sends to the server in sequence, and the server converts the received segmented text into audio;
[0208] The playing module 732 is used to play the audio of the segmented text in sequence.
[0209] Based on the above embodiment, the device 730 further includes:
[0210] The sending module 734 is used to send the playing progress of the audio of the current segment text to the server.
[0211] Based on the above embodiment, optionally, the receiving module 731 is further used to receive a first stop playing instruction sent by the server, where the first stop playing instruction is generated by the terminal device according to a stop playing operation of the user on the terminal device and sent to the server;
[0212] The playing module 732 is further configured to stop playing according to the first stop playing instruction.
[0213] Based on the above embodiment, optionally, the device 730 further includes:
[0214] A control module 733 is used to generate a second stop playback instruction according to a stop playback operation of the user on the smart speaker;
[0215] The playing module 732 is further configured to stop playing the audio according to the second stop playing instruction;
[0216] The sending module 734 is used to send the second stop playing instruction to the server, so that the server stops the process of converting the segmented text into audio, and controls the terminal device to stop sending the segmented text to the server.
[0217] The control device of the smart speaker provided in this embodiment can be specifically used to perform the above Figure 4 An embodiment of the control method of the smart speaker on the smart speaker side is provided, and the specific functions are not repeated here.
[0218] The control device of the smart speaker provided in this embodiment divides the text to be played into segments according to the preset text length through the terminal device; sends the segmented text to the server in sequence, so that the server converts the received segmented text into audio and sends it to the smart speaker for playback. In this embodiment, by segmenting the text to be played, the audio can be played immediately after each segmented text is converted into audio, without the need for the smart speaker to wait for the text to be played to be converted into audio before playing, thereby improving the response speed and facilitating the stop of text conversion to audio and playback at any time; the process of converting text to audio is completed by the server, reducing the system resource consumption and power consumption of the terminal device; and the smart speaker plays the audio of the segmented text without occupying the audio channel of the terminal device and affecting the playback of other audio by the terminal device.
[0219] According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium. Figure 8 As shown in FIG. 1 , it is a block diagram of an electronic device according to a method for controlling a smart speaker on a terminal device side according to an embodiment of the present application. Figure 8 As shown, the electronic device includes: one or more processors 811, a memory 812, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The electronic device may specifically include but is not limited to mobile phones, tablet computers, laptop computers, desktop computers, smart wearable devices and other electronic devices.
[0220] The electronic device of the smart speaker control method may further include: an input device 813 and an output device 814. The processor 811, the memory 812, the input device 813 and the output device 814 may be connected via a bus or other means. Figure 8 The example of connecting through bus is taken in the following.
[0221] The memory 812 is a non-transitory computer-readable storage medium provided in the present application. The memory stores instructions executable by at least one processor so that the at least one processor executes the control method of the smart speaker provided in the present application. The non-transitory computer-readable storage medium of the present application stores computer instructions, which are used to cause a computer to execute the control method of the smart speaker provided in the present application.
[0222] According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium. Fig. 9 As shown in FIG. 1 , it is a block diagram of an electronic device according to a method for controlling a smart speaker on the server side of an embodiment of the present application. Fig. 9 As shown, the electronic device includes: one or more processors 821, a memory 822, and interfaces for connecting various components, including a high-speed interface and a low-speed interface. The electronic device may be a server.
[0223] The electronic device of the smart speaker control method may further include: an input device 823 and an output device 824. The processor 821, the memory 822, the input device 823 and the output device 824 may be connected via a bus or other means. Fig. 9 The example of connecting through bus is taken in the following.
[0224] The memory 822 is a non-transitory computer-readable storage medium provided in the present application. The memory stores instructions executable by at least one processor so that the at least one processor executes the control method of the smart speaker provided in the present application. The non-transitory computer-readable storage medium of the present application stores computer instructions, which are used to cause a computer to execute the control method of the smart speaker provided in the present application.
[0225] According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium. Fig.10 As shown, it is a block diagram of an electronic device according to the control method of the smart speaker on the smart speaker side of an embodiment of the present application. Fig.10 As shown, the electronic device includes: one or more processors 831, a memory 832, and interfaces for connecting various components, including a high-speed interface and a low-speed interface. The electronic device may specifically include a smart speaker.
[0226] The electronic device of the smart speaker control method may further include: an input device 833 and an output device 834. The processor 831, the memory 832, the input device 833 and the output device 834 may be connected via a bus or other means. Fig.10 The example of connecting through bus is taken in the following.
[0227] The memory 832 is a non-transitory computer-readable storage medium provided in the present application. The memory stores instructions executable by at least one processor to enable the at least one processor to execute the control method of the smart speaker provided in the present application. The non-transitory computer-readable storage medium of the present application stores computer instructions, which are used to enable a computer to execute the control method of the smart speaker provided in the present application.
[0228] The electronic devices described above are intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic devices may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.
[0229] The electronic device includes: one or more processors, memory, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6 and Figure 7 A processor is taken as an example.
[0230] The memory is a non-transitory computer-readable storage medium provided in the present application. The memory stores instructions executable by at least one processor to enable the at least one processor to perform the above method provided in the present application. The non-transitory computer-readable storage medium of the present application stores computer instructions, which are used to enable a computer to perform the above method provided in the present application.
[0231] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs, non-transient computer executable programs and modules, such as the program instructions / modules corresponding to the control method of the smart speaker in the embodiment of the present application (for example, the attached Figure 4The acquisition module 401, extraction module 402 and identification module 403 shown in the figure, and the program instructions / modules corresponding to the control method of the smart speaker in the embodiment of the present application (for example, the attached Figure 5 The processor executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory, that is, implements the method in the above method embodiment.
[0232] The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the use of the electronic device, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0233] The input device can receive input digital or character information, and generate key signal input related to user settings and function control of the electronic device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator rod, one or more mouse buttons, a trackball, a joystick and other input devices. The output device may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device may be a touch screen.
[0234] Various implementations of the systems and techniques described herein can be realized in digital electronic circuit systems, integrated circuit systems, dedicated ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0235] These computer programs (also referred to as programs, software, software applications, or code) include machine instructions for programmable processors and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or means (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.
[0236] To provide interaction with a user, the systems and techniques described herein 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 the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the 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 can be received in any form (including acoustic input, voice input, or tactile input).
[0237] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0238] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.
[0239] The present application also provides a computer program, including a program code. When a computer runs the computer program, the program code executes the control method of the smart speaker on the terminal device side as described in the above embodiment.
[0240] The present application also provides a computer program, including a program code. When a computer runs the computer program, the program code executes the control method of the smart speaker on the server side as described in the above embodiment.
[0241] The present application also provides a computer program, including a program code. When a computer runs the computer program, the program code executes the control method of the smart speaker on the smart speaker side as described in the above embodiment.
[0242] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution disclosed in this application can be achieved, and this document is not limited here.
[0243] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. A method for controlling a smart speaker, characterized in that: Applied to a terminal device, the method comprises: According to the preset text length, the text to be played is segmented; The segmented texts are sent to the server in sequence, so that the server converts the received segmented texts into audio and sends them to the smart speaker for playback; The sending of the segmented texts to the server in sequence includes: After sending the current segmented text to the server, obtaining the playback progress of the current segmented text by the smart speaker from the server; Sending the next segmented text to the server according to the playback progress; Also includes: Generate a first stop play instruction according to a stop play operation of the user on the terminal device; stop sending the segmented text to the server according to the first stop play instruction, and send the first stop play instruction to the server, so that the server stops the process of converting the segmented text into audio, and controls the smart speaker to stop playing; Receive a second stop-play instruction sent by the server, where the second stop-play instruction is generated by the smart speaker according to a stop-play operation of the user on the smart speaker and sent to the server; stop sending segmented text to the server according to the second stop-play instruction.
2. A method for controlling a smart speaker, characterized in that: Applied to the server, the method includes: Receiving segmented texts sent sequentially by a terminal device, wherein the segmented texts are obtained by the terminal device segmenting a text to be played according to a preset text length; Convert the received segmented text into audio and send it to the smart speaker for playback in sequence; The receiving terminal device sequentially sends segmented texts, including: Receiving the current segmented text sent by the terminal device; After converting the current segmented text into audio and sending it to the smart speaker for playing, obtaining the playing progress of the current segmented text by the smart speaker from the smart speaker; Sending the playback progress to the terminal device, so that the terminal device sends the next segmented text to the server according to the playback progress; Also includes: receiving a first stop-play instruction sent by the terminal device, where the first stop-play instruction is generated by the terminal device according to a stop-play operation of a user on the terminal device; stopping the process of converting the segmented text into audio according to the first stop-play instruction, and sending the first stop-play instruction to the smart speaker, so that the smart speaker stops playing according to the first stop-play instruction; Receiving a second stop playing instruction sent by the smart speaker, where the second stop playing instruction is generated by the smart speaker according to a stop playing operation of the user on the smart speaker; The process of converting the segmented text into audio is stopped according to the second stop playing instruction, and the second stop playing instruction is sent to the terminal device, so that the terminal device stops sending the segmented text to the server according to the second stop playing instruction.
3. A method for controlling a smart speaker, characterized in that: Applied to a smart speaker, the method comprises: Receive the audio of the segmented text sent sequentially by the server, wherein the audio of the segmented text is that the terminal device segments the text to be played according to the preset text length and sends the segments to the server sequentially, and the server converts the received segmented text into audio; Play the audio of the segmented text sequentially; Also includes: Sending the playing progress of the audio of the current segment text to the server; receiving a first stop playback instruction sent by the server, where the first stop playback instruction is generated by the terminal device according to a stop playback operation of a user on the terminal device and sent to the server; stopping playback according to the first stop playback instruction; Generate a second stop play instruction based on the user's stop play operation on the smart speaker; stop playing the audio based on the second stop play instruction, and send the second stop play instruction to the server, so that the server stops the process of converting the segmented text into audio, and controls the terminal device to stop sending the segmented text to the server.
4. A control device for a smart speaker, characterized in that: Applied to a terminal device, the device comprises: A processing module, used for segmenting the text to be played according to a preset text length; A sending module, used to send the segmented texts to the server in sequence, so that the server converts the received segmented texts into audio and sends them to the smart speaker for playback; The sending module is specifically used for: After sending the current segmented text to the server, obtaining the playback progress of the current segmented text by the smart speaker from the server; Sending the next segmented text to the server according to the playback progress; Also included is a control module for: Generate a first stop play instruction according to a stop play operation of the user on the terminal device; stop sending the segmented text to the server according to the first stop play instruction, and send the first stop play instruction to the server, so that the server stops the process of converting the segmented text into audio, and controls the smart speaker to stop playing; Receive a second stop-play instruction sent by the server, where the second stop-play instruction is generated by the smart speaker according to a stop-play operation of the user on the smart speaker and sent to the server; stop sending segmented text to the server according to the second stop-play instruction.
5. A control device for a smart speaker, characterized in that: Applied to the server, the device comprises: A receiving module, used for receiving segmented texts sent sequentially by a terminal device, wherein the segmented texts are obtained by the terminal device segmenting the text to be played according to a preset text length; A processing module, for converting the received segmented text into audio; A sending module is used to send the audio of the segmented text to the smart speaker in sequence for playback; The receiving module is used to receive the current segmented text sent by the terminal device; after converting the current segmented text into audio and sending it to the smart speaker for playing, obtain the playing progress of the current segmented text by the smart speaker from the smart speaker; The sending module is further used to send the playback progress to the terminal device, so that the terminal device sends the next segmented text to the server according to the playback progress; The receiving module is further used to receive a first stop playing instruction sent by the terminal device, where the first stop playing instruction is generated by the terminal device according to a stop playing operation performed by a user on the terminal device; The processing module is further used to stop the process of converting the segmented text into audio according to the first stop playing instruction; The sending module is further used to send the first stop playing instruction to the smart speaker, so that the smart speaker stops playing according to the first stop playing instruction; The receiving module is further used to receive a second stop playing instruction sent by the smart speaker, where the second stop playing instruction is generated by the smart speaker according to a stop playing operation of the user on the smart speaker; The processing module is further used to stop the process of converting the segmented text into audio according to the second stop playing instruction; The sending module is further used to send the second stop playing instruction to the terminal device, so that the terminal device stops sending the segmented text to the server according to the second stop playing instruction.
6. A control device for a smart speaker, characterized in that: Applied to a smart speaker, the device comprises: A receiving module, used for receiving the audio of the segmented text sent sequentially by the server, wherein the audio of the segmented text is that the terminal device segments the text to be played according to a preset text length and sends the segments to the server sequentially, and the server converts the received segmented text into audio; A playback module, used to play the audio of the segmented text in sequence; Also includes: A sending module, used for sending the playing progress of the audio of the current segment text to the server; The receiving module is further used to receive a first stop playing instruction sent by the server, where the first stop playing instruction is generated by the terminal device according to a stop playing operation of the user on the terminal device and sent to the server; The playing module is further used to stop playing according to the first stop playing instruction; A control module, configured to generate a second stop playback instruction according to a stop playback operation performed by a user on the smart speaker; The playing module is further used to stop playing the audio according to the second stop playing instruction; The sending module is used to send the second stop playing instruction to the server, so that the server stops the process of converting the segmented text into audio, and controls the terminal device to stop sending the segmented text to the server.
7. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected 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 perform the method of claim 1.
8. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected 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 perform the method of claim 2.
9. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed 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 perform the method according to any one of claim 3.
10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method of claim 1.
11. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method of claim 2.
12. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method of claim 3.
13. A control system for a smart speaker, characterized in that: include: The terminal device is used to segment the text to be played according to the preset text length, and send the segmented texts to the server in sequence; The server is used to convert the received segmented text into audio and send it to the smart speaker; A smart speaker for playing the audio of the received segmented text; The terminal device is further configured to, after sending the current segmented text to the server, obtain the playback progress of the current segmented text by the smart speaker from the server; and send the next segmented text to the server according to the playback progress; The server is further configured to receive the current segmented text sent by the terminal device; after converting the current segmented text into audio and sending it to the smart speaker for playback, obtain the playback progress of the current segmented text by the smart speaker from the smart speaker; and send the playback progress to the terminal device so that the terminal device sends the next segmented text to the server according to the playback progress; The smart speaker is further used to send the playing progress of the audio of the current segmented text to the server; The terminal device is further used for: Generate a first stop play instruction according to a stop play operation of the user on the terminal device; stop sending the segmented text to the server according to the first stop play instruction, and send the first stop play instruction to the server, so that the server stops the process of converting the segmented text into audio, and controls the smart speaker to stop playing; receiving a second stop playback instruction sent by the server, where the second stop playback instruction is generated by the smart speaker according to a stop playback operation of the user on the smart speaker and sent to the server; and stopping sending the segmented text to the server according to the second stop playback instruction; The server is also used for: receiving a first stop-play instruction sent by the terminal device, where the first stop-play instruction is generated by the terminal device according to a stop-play operation of a user on the terminal device; stopping the process of converting the segmented text into audio according to the first stop-play instruction; and sending the first stop-play instruction to the smart speaker, so that the smart speaker stops playing according to the first stop-play instruction; receiving a second stop-play instruction sent by the smart speaker, where the second stop-play instruction is generated by the smart speaker according to a stop-play operation of the user on the smart speaker; stopping the process of converting the segmented text into audio according to the second stop-play instruction; and sending the second stop-play instruction to the terminal device, so that the terminal device stops sending the segmented text to the server according to the second stop-play instruction; The smart speaker is also used for: receiving a first stop playback instruction sent by the server, where the first stop playback instruction is generated by the terminal device according to a stop playback operation of a user on the terminal device and sent to the server; stopping playback according to the first stop playback instruction; Generate a second stop play instruction based on the user's stop play operation on the smart speaker; stop playing the audio based on the second stop play instruction, and send the second stop play instruction to the server, so that the server stops the process of converting the segmented text into audio, and controls the terminal device to stop sending the segmented text to the server.
14. A computer program product comprising a computer program, characterized in that The computer program implements the method according to claim 1 when executed by a processor.
15. A computer program product comprising a computer program, characterized in that The computer program implements the method according to claim 2 when executed by a processor.
16. A computer program product comprising a computer program, characterized in that The computer program implements the method according to claim 3 when executed by a processor.
