Terminal equipment voice management method and system, electronic equipment and storage medium
By implementing unified management of voice packet data in terminal devices, the problem of cumbersome voice data configuration in different device types and application scenarios is solved, and configuration efficiency is improved and unified management is realized.
Patent Information
- Application Number
- CN202411667619.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-20
- Publication Date
- 2025-02-25
AI Technical Summary
In the prior art, the voice data required for different types of interrupt devices is different, and the application scenarios are also different, resulting in the cumbersome configuration process of the voice data and is inconvenient to manage.
A terminal device voice management method is proposed, by obtaining voice packet data and storing it to a preset Internet of Things platform, obtaining preset subscription data to determine the target voice packet data, and sending the target voice packet data to the corresponding terminal device for configuration update according to the device type information.
It realizes unified management of voice packet data of terminal equipment, improves the efficiency of voice packet data configuration, and simplifies the voice data management process between devices.
Smart Images

Figure CN119520593A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of Internet of Things, and in particular to a method, system, electronic device and storage medium for voice management of terminal equipment. Background Art
[0002] With the rapid development of science and technology, smart terminal devices have gradually replaced traditional devices and become part of daily life. For example, through voice recognition, users can control the lights, air conditioners, security systems, entertainment equipment, etc. at home through simple voice commands. However, in the related art, different types of interrupt devices require different voice data (such as voice packages) to be configured, and the application scenarios are also different. The configuration process of voice data is relatively cumbersome and inconvenient to manage.
[0003] In summary, the technical problems existing in the relevant technologies need to be improved. Summary of the invention
[0004] The main purpose of the embodiments of the present application is to propose a terminal device voice management method, system, electronic device and storage medium, which can realize unified management of terminal device voice package data and effectively improve the efficiency of voice package data configuration.
[0005] To achieve the above object, an embodiment of the present application provides a method for voice management of a terminal device, the method comprising the following steps:
[0006] Acquire first voice packet data;
[0007] The first voice package data is stored in a preset Internet of Things platform;
[0008] Acquire preset subscription data to determine target voice package data from the preset Internet of Things platform according to the preset subscription data;
[0009] The target voice package data is sent to the corresponding target terminal device according to the preset device type information, so as to update the configuration of the target terminal device through the target voice package data.
[0010] In some embodiments, the obtaining of the first voice packet data includes:
[0011] Acquire the second voice package data through a preset supply platform;
[0012] Submitting the second voice package data to a preset management platform for review and obtaining a review result;
[0013] When it is determined that the audit result is approved, the second voice package data is used as the first voice package data.
[0014] In some embodiments, storing the first voice package data to a preset Internet of Things platform includes:
[0015] The preset parameter information corresponding to the first voice package data is synchronized to the preset Internet of Things platform through a preset synchronization interface, so as to store the preset parameter information in a corresponding data table according to the preset device type information; wherein the preset parameter information includes preset version number information and storage path information.
[0016] In some embodiments, sending the target voice package data to a corresponding target terminal device according to preset device type information to update the configuration of the target terminal device through the target voice package data includes:
[0017] When it is determined that the preset device type information is a preset long connection device type, the storage path information corresponding to the target voice packet data is sent to the target terminal device;
[0018] When it is determined to update the configuration of the target terminal device according to the local version number information and the preset version number information, the target voice package data is downloaded to the target terminal device through the storage path information, and the historical voice package data is deleted.
[0019] In some embodiments, the sending of the target voice package data to a corresponding target terminal device according to preset device type information so as to update the configuration of the target terminal device through the target voice package data further includes:
[0020] When it is determined that the preset device type information is a preset short connection device type, the preset version number information is sent to the target terminal device according to the preset device reporting information; wherein the preset device reporting information is initiated by the target terminal device;
[0021] When it is determined according to the preset version number information and the local version number information that the configuration of the target terminal device is to be updated, a data packet download request is initiated to the preset Internet of Things platform through the target terminal device;
[0022] When it is determined that the preset Internet of Things platform obtains the data packet download request, the storage path information is sent to the target terminal device;
[0023] The target voice package data is downloaded to the target terminal device through the storage path information, and the historical voice package data is deleted.
[0024] In some embodiments, the method further comprises:
[0025] Acquire user voice setting information; wherein the user voice setting information includes user voice package type information, subscription function information, scene linkage information and custom voice package information;
[0026] Determine the corresponding target voice package data according to the user voice setting information;
[0027] The target voice packet data is sent to the corresponding target terminal device through the Internet of Things interface of the preset Internet of Things platform.
[0028] In some embodiments, the obtaining of preset subscription data to determine target voice package data from the preset Internet of Things platform according to the preset subscription data includes:
[0029] When it is determined that the first voice package data is stored in the preset Internet of Things platform, determining the target voice package data from the first voice package data according to the preset subscription data;
[0030] Alternatively, when it is determined that the first voice package data is not stored in the preset Internet of Things platform, the target voice package data is determined from the default voice package data according to the preset subscription data.
[0031] To achieve the above object, another aspect of the embodiment of the present application provides a terminal device voice management system, the system comprising:
[0032] The first module is used to obtain first voice packet data;
[0033] The second module is used to store the first voice package data into a preset Internet of Things platform;
[0034] The third module is used to obtain preset subscription data to determine the target voice package data from the preset Internet of Things platform according to the preset subscription data;
[0035] The fourth module is used to send the target voice package data to the corresponding target terminal device according to the preset device type information, so as to update the configuration of the target terminal device through the target voice package data.
[0036] To achieve the above objective, another aspect of an embodiment of the present application provides an electronic device, the electronic device comprising:
[0037] at least one processor;
[0038] at least one memory for storing at least one program;
[0039] When the at least one program is executed by the at least one processor, the at least one processor implements the above method.
[0040] To achieve the above objective, another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program implements the above method when executed by a processor.
[0041] The embodiments of the present application include at least the following beneficial effects: The present application provides a method, system, electronic device and storage medium for voice management of a terminal device. The scheme obtains the first voice package data and stores the first voice package data in a preset Internet of Things platform. Next, the embodiment of the present invention obtains the preset subscription data to determine the target voice package data from the preset Internet of Things platform according to the preset subscription data. Finally, the embodiment of the present invention sends the target voice package data to the corresponding target terminal device according to the preset device type information, so as to configure and update the target terminal device through the target voice package data, thereby realizing the unified management of the voice package data of the terminal device. It is easy to understand that the embodiment of the present invention uniformly stores the first voice package data through the preset Internet of Things platform, and determines the target voice package data according to the corresponding preset subscription data, so as to push the target voice package data to the target terminal device for configuration update according to the preset device type information, thereby effectively improving the efficiency of voice package data configuration and realizing the unified management of the voice package data of the terminal device. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 is a flowchart of the steps of the terminal device voice management method provided by an embodiment of the present invention;
[0043] Figure 2 is a flowchart of the steps of obtaining first voice packet data provided by an embodiment of the present invention;
[0044] Figure 3 is a flowchart of the steps of storing the first voice package data in a preset Internet of Things platform provided by an embodiment of the present invention;
[0045] Figure 4 It is a flowchart of the steps of sending target voice package data to a corresponding target terminal device according to preset device type information, so as to update the configuration of the target terminal device through the target voice package data, provided by an embodiment of the present invention;
[0046] Figure 5 Another step flow chart of sending target voice package data to a corresponding target terminal device according to preset device type information, so as to update the configuration of the target terminal device through the target voice package data, provided by an embodiment of the present invention;
[0047] Figure 6 is a flowchart of the steps of performing voice broadcasting provided by an embodiment of the present invention;
[0048] Figure 7It is a flowchart of the steps of obtaining preset subscription data and determining target voice package data from a preset Internet of Things platform according to the preset subscription data provided by an embodiment of the present invention;
[0049] Figure 8 It is a schematic diagram of the architecture of voice management of terminal equipment provided by an embodiment of the present invention;
[0050] Fig. 9 It is a structural diagram of a terminal device voice management system provided in an embodiment of the present application;
[0051] Fig.10 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application. They are only examples of devices and methods consistent with some aspects of the embodiments of the present application as detailed in the attached claims.
[0053] It is understood that the terms "first", "second", etc. used in this application can be used to describe various concepts in this article, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another concept. For example, without departing from the scope of the embodiment of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determination".
[0054] The terms "at least one", "multiple", "each", "any", etc. used in this application, at least one includes one, two or more, multiple includes two or more, each refers to each of the corresponding multiple, and any refers to any one of the multiple.
[0055] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0056] Before describing the embodiments of the present application in detail, some nouns and terms involved in the embodiments of the present application are first described. The nouns and terms involved in the embodiments of the present application are subject to the following explanations.
[0057] Voice broadcast: refers to the use of voice technology to transmit information to users in the form of voice or synthesized voice, so that users can obtain the required information without reading.
[0058] Voice packet data: refers to the audio data used to generate voice broadcast content or related technologies required for text-to-speech (TTS) technology.
[0059] With the rapid development of science and technology, smart terminal devices have gradually replaced traditional devices and become part of daily life. For example, through voice recognition, users can control the lights, air conditioners, security systems, entertainment equipment, etc. in their homes through simple voice commands. Voice broadcasts have been applied to devices such as cameras, doorbells, speakers, etc., such as custom voices and weather reports. However, in the related art, different types of interrupt devices require different voice data (such as voice packages) to be configured, and the application scenarios are also different. The configuration process of voice data is cumbersome and inconvenient to manage. For example, voice packages cannot be configured according to different device types, models and functions, and version upgrades cannot be managed uniformly, and the security and reliability of voice packages are also low. At the same time, the storage space on the device side is small, and it cannot store too many voice packages, and the functions are limited. In addition, voice packages are not available for users to choose, and devices that support voice playback are less used in scene automation.
[0060] In view of this, a terminal device voice management method, system, electronic device and storage medium are provided in the embodiments of the present application. The scheme obtains the first voice package data and stores the first voice package data in a preset Internet of Things platform. Next, the embodiment of the present invention obtains the preset subscription data to determine the target voice package data from the preset Internet of Things platform according to the preset subscription data. Finally, the embodiment of the present invention sends the target voice package data to the corresponding target terminal device according to the preset device type information, so as to configure and update the target terminal device through the target voice package data, thereby realizing unified management of the voice package data of the terminal device, and effectively improving the efficiency of the voice package data configuration.
[0061] The terminal device voice management method provided in the embodiment of the present application relates to the field of Internet of Things technology. The terminal device voice management method provided in the embodiment of the present application can be applied to the terminal, can also be applied to the server, and can also be software running in the terminal or the server. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and a car terminal, etc., but is not limited to this; the server side can be configured as an independent physical server, or it can be configured as a server cluster or distributed system composed of multiple physical servers, and can also be configured to provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms and other basic cloud computing services. The cloud server, the server can also be a node server in the blockchain network; the software can be an application that implements the terminal device voice management method, etc., but is not limited to the above forms.
[0062] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0063] It should be noted that in each specific implementation of the present application, when it comes to the need to perform relevant processing based on data related to user identity or characteristics such as user information, user behavior data, user historical data, and user location information, the user's permission or consent will be obtained first, and the collection, use, and processing of these data will comply with relevant laws, regulations, and standards. In addition, when the embodiment of the present application needs to obtain the user's sensitive personal information, the user's separate permission or consent will be obtained through a pop-up window or by jumping to a confirmation page. After clearly obtaining the user's separate permission or consent, the necessary user-related data for the normal operation of the embodiment of the present application will be obtained.
[0064] Figure 1 is an optional flowchart of the terminal device voice management method provided in an embodiment of the present application. Figure 1 The method may include but is not limited to steps S110 to S140.
[0065] Step S110: Acquire first voice packet data.
[0066] Step S120: storing the first voice package data in a preset Internet of Things platform.
[0067] Step S130: Acquire preset subscription data to determine target voice package data from a preset Internet of Things platform according to the preset subscription data.
[0068] Step S140: sending the target voice package data to the corresponding target terminal device according to the preset device type information, so as to update the configuration of the target terminal device through the target voice package data.
[0069] During the working process of this specific embodiment, the embodiment of the present invention first obtains the first voice package data, and stores the first voice package data in the preset Internet of Things platform. Specifically, the first voice package data in the embodiment of the present invention refers to the relevant voice package provided by the device manufacturer, including the corresponding text content, format, timbre, dialect, speech speed, corresponding function type, audio size and version number, etc. Correspondingly, the embodiment of the present invention stores the obtained first voice package data in the relevant database or data table in the preset Internet of Things platform. Among them, the preset Internet of Things platform (IOT platform) refers to the PAAS (Platform as aService) layer Internet of Things platform, which is a cloud computing service model for building, deploying and managing Internet of Things applications. Next, the embodiment of the present invention obtains the preset subscription data to determine the target voice package data from the preset Internet of Things platform according to the preset subscription data. Specifically, the preset subscription data in the embodiment of the present invention refers to the subscription information of the relevant broadcast function, such as welcome, weather broadcast, alarm broadcast, etc. Correspondingly, the embodiment of the present invention saves the user's subscribed functions and related settings to the data table of the preset Internet of Things platform with the corresponding preset subscription data. At the same time, the embodiment of the present invention screens and determines the first voice package data corresponding to the preset subscription data from the preset Internet of Things platform through the preset subscription data as the target voice package data. Finally, the embodiment of the present invention sends the target voice package data to the corresponding target terminal device according to the preset device type information, so as to configure and update the target terminal device through the target voice package data. Specifically, the preset device type information in the embodiment of the present invention refers to the type data of the corresponding terminal device, such as function type, connection type, etc. Correspondingly, the embodiment of the present invention sends the target voice package data to the corresponding target terminal device through the preset device type information of the target terminal device, so that the target terminal device configures the voice package according to the acquired target voice package data, effectively improving the efficiency of voice package data configuration. At the same time, the embodiment of the present invention manages the first voice package data by storing the first voice package data in the preset Internet of Things platform and according to the corresponding preset subscription data and preset device type information.
[0070] Reference Figure 2 In some embodiments of the present invention, obtaining the first voice packet data includes but is not limited to the following steps:
[0071] Step S210: Acquire second voice package data through a preset supply platform.
[0072] Step S220: Submit the second voice package data to a preset management platform for review to obtain a review result.
[0073] Step S230: When it is determined that the audit result is passed, the second voice package data is used as the first voice package data.
[0074] In this specific embodiment, the embodiment of the present invention first obtains the second voice package data through the preset supply platform, and submits the second voice package data to the preset management platform for review, obtains the review result, and then obtains the first voice data packet according to the review result. Specifically, the second voice package data in the embodiment of the present invention refers to the initial voice package data provided by the relevant equipment manufacturer or supplier. Accordingly, the preset supply platform refers to a platform for the supplier to configure the connected terminal device, such as the manufacturer portal platform configured by the manufacturer for the connected smart terminal device. For example, the relevant equipment manufacturer or supplier uploads the second voice package data to the preset supply platform according to the preset specification, and submits it to the preset management platform for review. Among them, the preset management platform refers to a platform for the administrator to configure the terminal device, such as reviewing the second voice package data submitted by the preset supply platform. Accordingly, when it is determined that the review result is passed, the second voice package data is used as the first voice package data. Specifically, the preset management platform reviews the audio data provided by the preset supply platform, that is, the second voice package data. When the review is passed, the embodiment of the present invention uses the second voice package data as the first voice package data. On the contrary, when the audit fails, the embodiment of the present invention returns the audit result to the preset supply platform, so that the preset supply platform can modify the relevant second voice package data according to the audit result and resubmit it for audit. It is easy to understand that the embodiment of the present invention achieves security management of voice package data by uploading voice package data through the preset supply platform and auditing through the preset management platform, thereby effectively improving the reliability of voice package data.
[0075] Combination Figure 1 , refer to Figure 3 In some embodiments of the present invention, storing the first voice packet data to a preset Internet of Things platform includes but is not limited to the following steps:
[0076] Step S310: Synchronize the preset parameter information corresponding to the first voice packet data to the preset Internet of Things platform through the preset synchronization interface, so as to store the preset parameter information in the corresponding data table according to the preset device type information. The preset parameter information includes preset version number information and storage path information.
[0077] In this specific embodiment, the embodiment of the present invention first synchronizes the preset parameter information corresponding to the first voice package data to the preset Internet of Things platform through the preset synchronization interface, and then stores the preset parameter information in the corresponding data table according to the device type information. Specifically, the preset parameter information in the embodiment of the present invention includes preset version number information and storage path information. Among them, the preset version number information in the embodiment of the present invention refers to the version information of the first voice package data, and the storage path information refers to the storage address of the first voice package data. Correspondingly, when the audit result of the second voice package data is passed, the corresponding second voice package data is determined to be the first voice package data, and its corresponding storage path information and related information, such as the preset version number information, are synchronized to the preset Internet of Things platform by calling the preset synchronization interface. Among them, the preset synchronization interface in the embodiment of the present invention is encrypted by AES and signed by MD5. Then, after receiving the preset parameter information, the preset Internet of Things platform divides the corresponding preset parameter information according to the device type corresponding to each first voice package data, that is, divides the preset parameter information by the preset device type information, so as to store the preset parameter information of each first voice package data in the corresponding data table in the preset Internet of Things platform. For example, when the device type information corresponding to the first voice package data is a smart audio device, the preset version number information and storage path information of the first voice package data are stored in the data table corresponding to the audio device. Alternatively, when the device type corresponding to the first voice package data is a long-connected device, the preset version number information and storage path information of the first voice package data are stored in the data table corresponding to the long-connected device.
[0078] Reference Figure 4 In some embodiments of the present invention, the target voice package data is sent to the corresponding target terminal device according to the preset device type information, so as to update the configuration of the target terminal device through the target voice package data, including but not limited to the following steps:
[0079] Step S410: When it is determined that the preset device type information is the preset long connection device type, the storage path information corresponding to the target voice packet data is sent to the target terminal device.
[0080] Step S420: When it is determined to update the configuration of the target terminal device according to the local version number information and the preset version number information, the target voice package data is downloaded to the target terminal device through the storage path information, and the historical voice package data is deleted.
[0081] In this specific embodiment, the preset device type information includes a preset long connection device type and a preset short connection device type. Accordingly, when it is determined that the preset device type information is a preset long connection device type, the storage path information corresponding to the target voice package data is sent to the target terminal device, and then the target terminal device is determined whether a configuration update is required according to the local version number information and the preset version number information. When it is determined that a configuration update is required, the embodiment of the present invention downloads the target voice package data to the target terminal device through the storage path information, and deletes the historical voice package data. Specifically, the preset device type information in the embodiment of the present invention refers to the type information of the network connection mode of the terminal device. Among them, the preset long connection device type means that multiple data packets can be sent continuously on a connection, and during the connection maintenance period, if no data packet is sent, both parties need to send a link detection packet to maintain the connection. Accordingly, when the target terminal device is determined to be a preset long connection device according to the preset device type information, the embodiment of the present invention will be preset subscription data, such as the function switch information stored in the preset Internet of Things platform (such as subscription function information of alarm broadcast, weather broadcast, etc.), The storage path information of the determined target voice package data is sent to the target terminal device. Furthermore, after receiving the storage path information, the target terminal device determines whether the voice package needs to be updated by comparing the current version information, i.e., the local version number information, with the version information (preset version number information) of the target voice package data corresponding to the storage path information. When it is determined that the preset version number information of the target voice package data is newer than the local version number information of the historical voice package data, the target voice package data is downloaded to the target terminal device according to the corresponding storage path information, thereby updating the voice package configuration through the target voice package data. At the same time, the embodiment of the present invention deletes the historical voice package data. It is easy to understand that the embodiment of the present invention dynamically configures the voice package data in the target terminal device by presetting the device type information and version information, and deletes and updates the unnecessary voice package data in the terminal device, thereby alleviating the storage problem of the device terminal while managing the voice package version.
[0082] Reference Figure 5 In some embodiments of the present invention, the target voice package data is sent to the corresponding target terminal device according to the preset device type information, so as to update the configuration of the target terminal device through the target voice package data, and further includes but is not limited to the following steps:
[0083] Step S510: When it is determined that the preset device type information is the preset short connection device type, the preset version number information is sent to the target terminal device according to the preset device reporting information, wherein the preset device reporting information is initiated by the target terminal device.
[0084] Step S520: When it is determined to update the configuration of the target terminal device according to the preset version number information and the local version number information, a data packet download request is initiated to the preset Internet of Things platform through the target terminal device.
[0085] Step S530: When it is determined that the preset IoT platform obtains the data packet download request, the storage path information is sent to the target terminal device.
[0086] Step S540: Download the target voice package data to the target terminal device through the storage path information, and delete the historical voice package data.
[0087] In this specific embodiment, the preset short connection device type refers to a network connection mode in which the communication parties establish a connection only when there is data interaction, and disconnect the link after the data is sent. When the network connection mode of the target terminal device is a preset short connection device type, the embodiment of the present invention sends the preset version number information to the target terminal according to the preset device reporting information, so that the target terminal device determines whether the configuration needs to be updated according to the preset version number information and the local version number information. When it is determined that the configuration of the target terminal device needs to be updated, the embodiment of the present invention initiates a data packet download request to the preset Internet of Things platform through the target terminal device. Correspondingly, after obtaining the data packet download request, the preset Internet of Things platform sends the corresponding storage path information to the target terminal device, and then downloads the target voice package data to the target terminal device through the storage path information, and deletes the historical voice package data. Specifically, when the connection mode of the target terminal device is a preset short connection device, the target terminal device initiates the preset device reporting information to the preset Internet of Things platform to query the function switch and configuration information set by the user or manager to subscribe. Correspondingly, the preset Internet of Things platform sends the preset version number information of the target voice package data to the target terminal device according to the preset device reporting information. Among them, the target voice package data is determined according to the preset subscription data. Furthermore, after receiving the preset version number information issued by the preset Internet of Things platform, the target terminal device determines whether it is necessary to download the corresponding data packet from the preset Internet of Things platform by comparing the preset version number information with the local version number information. For example, when the preset version number information is a newer version than the local version number information, that is, the version of the target voice package data is newer than the version of the current voice package of the target terminal device, or the corresponding historical voice package data does not exist in the target terminal device, that is, the target voice package data does not have a corresponding local voice package in the target terminal device, then the target terminal device initiates a data packet download request to the preset Internet of Things platform to obtain the corresponding storage path information from the preset Internet of Things platform. Then, after receiving the storage path information issued by the preset Internet of Things platform, the target terminal device downloads the target voice package data through the storage path information to configure a new voice package. At the same time, after completing the configuration of the new voice package, the target terminal device deletes the corresponding historical voice package data to alleviate the storage problem of the target terminal device.
[0088] Reference Figure 6 In some embodiments of the present invention, the terminal device voice management method provided by the embodiment of the present invention further includes but is not limited to the following steps:
[0089] Step S610: Acquire user voice setting information, wherein the user voice setting information includes user voice package type information, subscription function information, scene linkage information, and custom voice package information.
[0090] Step S620: Determine corresponding target voice package data according to the user voice setting information.
[0091] Step S630: Send the target voice packet data to the corresponding target terminal device through the IoT interface of the preset IoT platform.
[0092] During the working process of this specific embodiment, the embodiment of the present invention first obtains the user voice setting information to determine the corresponding target voice package data according to the user voice setting information, and then sends the target voice package data to the corresponding target terminal device through the preset Internet of Things interface of the Internet of Things platform. Specifically, the embodiment of the present invention realizes the voice broadcast function by obtaining the corresponding user voice setting information. Among them, the user voice setting information in the embodiment of the present invention includes user voice package type information, subscription function information, scene linkage information and custom voice package information. Correspondingly, the user voice package type information in the embodiment of the present invention refers to the voice package type parameters selected by the user on the client, such as language type (such as Mandarin, Cantonese or English, etc.), timbre (such as Shota sound, girl sound or uncle sound, etc.). When the acquired user voice setting information is the user voice package type information, the preset Internet of Things platform determines the target voice package data selected by the user according to the corresponding user voice setting information, and calls the IOT interface to send the corresponding target voice package data to the target terminal device to complete the voice package configuration and voice broadcast. In addition, the subscription function information in the embodiment of the present invention refers to the functions that the user chooses to subscribe to on the client, such as stranger recognition, regional intrusion, environmental detection, etc. Accordingly, when the preset IoT platform obtains the function subscribed by the user (subscription function information), it selects the corresponding target voice package data and sends it to the target terminal device. When the target terminal device is triggered by the condition, it broadcasts the voice by calling the corresponding voice package.
[0093] Accordingly, the scene linkage information in the embodiment of the present invention refers to the scene automation information set by the user on the client. For example, the user sets the corresponding scene automation through the client, selects the scene and trigger conditions, takes the voice broadcast content as the result, and calls the preset Internet of Things platform's Internet of Things interface for setting. Then, the preset Internet of Things platform sends the corresponding target voice package data to the target terminal device according to the set scene linkage information. When the corresponding trigger condition is reached (such as the temperature exceeds 28 degrees), the target terminal device broadcasts the corresponding voice package (such as the temperature is high today). In addition, the custom voice package information in the embodiment of the present invention refers to the voice package customized by the user on the client, including family members, prompts, etc., such as "Dad", "Go home", etc. Correspondingly, after the preset Internet of Things platform obtains the corresponding custom voice package information, the corresponding user voice setting information is sent to the target client. Then, the target terminal device synthesizes the voice package according to the set function to perform voice broadcast. It should be noted that in the embodiment of the present invention, the user can also set the voice package playback speed on the client by calling the Internet of Things interface. Correspondingly, the user voice package sound speed information refers to the voice package playback speed set by the user on the client. Among them, the preset Internet of Things platform sends corresponding setting information to the target terminal device, so that the target terminal device plays the voice package according to the corresponding sound speed.
[0094] Combination Figure 1 , refer to Figure 7 In some embodiments of the present invention, obtaining preset subscription data to determine target voice package data from a preset Internet of Things platform according to the preset subscription data includes but is not limited to the following steps:
[0095] Step S710: When it is determined that the preset Internet of Things platform stores the first voice package data, the target voice package data is determined from the first voice package data according to the preset subscription data.
[0096] Step S720: When it is determined that the first voice package data is not stored in the preset Internet of Things platform, target voice package data is determined from the default voice package data according to the preset subscription data.
[0097] In this specific embodiment, in the process of determining the target voice package data from the preset Internet of Things platform according to the preset subscription data, it is first determined whether the preset Internet of Things platform stores the first voice package data. When it is determined that the preset Internet of Things platform stores the first voice package data, the embodiment of the present invention determines the target voice package data from the first voice package data according to the preset subscription data. On the contrary, when it is determined that the preset Internet of Things platform does not store the first voice package data, the embodiment of the present invention determines the target voice package data from the default voice package data according to the preset subscription data. Specifically, when the corresponding manufacturer or supplier uploads the corresponding first voice package data to the preset Internet of Things platform through the preset supply platform, the preset Internet of Things platform stores the first voice package data. At this time, the embodiment of the present invention determines the target voice package data from the first voice package data according to the acquired preset subscription data. Alternatively, when the corresponding manufacturer or supplier does not provide the first voice package data, that is, does not upload the corresponding first voice package data to the preset Internet of Things platform, the corresponding first voice package data does not exist in the preset Internet of Things platform. At this time, the embodiment of the present invention determines the target voice package data from the default voice package data in the preset Internet of Things platform according to the preset subscription data, and sends it to the target terminal device. Among them, the default voice package data in the embodiment of the present invention refers to the default voice package of the relevant subscription function. Accordingly, in the embodiment of the present invention, the preset Internet of Things platform stores the address information of each default voice package data in advance according to the corresponding device function, so that when the manufacturer or supplier does not provide the first voice package data, the default voice package data can be sent to the target terminal device to complete the configuration of the voice package, thereby improving the reliability of the terminal device application management.
[0098] The following describes the solution of the embodiment of the present invention in detail in conjunction with a specific terminal device application management scenario:
[0099] For example, refer to Figure 8 , Figure 8: is a schematic diagram of the architecture of the terminal device voice management provided by the embodiment of the present invention. Specifically, in the embodiment of the present invention, the relevant equipment manufacturers first upload the relevant voice packages to the preset supply platform according to the specifications, including text content, format, timbre, dialect, speech speed, corresponding function type, audio size, version number, etc. Then, the preset supply platform submits the corresponding voice package to the preset management platform for review. Among them, the preset management platform reviews the voice package data provided by the equipment manufacturer. When the review is passed, the preset management platform synchronizes the storage address of the voice package and the relevant information to the Internet of Things platform by calling the synchronization interface. Among them, the synchronization interface adopts AES encryption and MD5 signature. On the contrary, when the review is not passed, the corresponding review result is returned to the preset supply platform so that the corresponding equipment manufacturer can modify it and resubmit it for review. Accordingly, the management personnel can set whether to upgrade the version and issue the voice package according to the equipment type and model through the preset management platform, including setting single equipment, multiple equipment, all equipment and scheduled upgrade. Accordingly, in the embodiment of the present invention, the preset Internet of Things platform first stores the default voice package address according to the corresponding equipment function. After the version number information and the storage path information of the voice package are synchronized to the preset Internet of Things platform, the preset Internet of Things platform also stores the voice package addresses (addresses of the first voice package data) provided by these manufacturers according to the corresponding functions. Among them, the embodiment of the present invention stores the corresponding audio storage address and other information in the data table according to the device type. Further, the user subscribes to the corresponding functions, such as welcome words, weather reports, alarm reports, etc., through the client, and turns on the function switch. Then, the preset Internet of Things platform saves the relevant switch configuration value data packet and cache uploaded by the client. Further, the preset Internet of Things platform sends the voice package data to the corresponding device end (target terminal device). Correspondingly, when the manufacturer does not upload the voice package, the preset Internet of Things platform sends the stored default voice package address to the client. On the contrary, when it is determined that the voice package is uploaded by the manufacturer, the preset Internet of Things platform sends the approved voice package address to the client. Among them, when the target terminal device is a long connection device, the preset Internet of Things platform selects the corresponding voice package address and sends it to the client (target terminal device) according to the function switch information (preset subscription data) stored in the platform. Then, the client determines whether to download the voice package according to the local version number and deletes the old voice package. In addition, when the target terminal device is a short connection device, the target terminal device is reported to query the corresponding use function switch and configuration, and then compare the local voice package to determine whether it is necessary to initiate a download application to the platform. When it is detected that the version of the preset Internet of Things platform is a newer version, or there is no corresponding voice package data in the local voice package, a download application is made to the preset Internet of Things platform, so as to obtain the corresponding voice package address from the preset Internet of Things platform, and download the target voice package data to configure the voice package. Accordingly, the embodiment of the present invention can also set and manage the voice broadcast function.For example, a user can customize voice package settings, select voice package type, select voice package speed, link scenes, or set subscription functions through the client.
[0100] It is easy to understand that the embodiment of the present invention performs version management of voice package broadcast and upgrades the voice package version of smart devices through the manufacturer portal (preset supply platform), the administrator portal (preset management platform), and the IOT platform (preset Internet of Things platform). At the same time, according to the user's subscription function on the client, the IOT platform sends the voice package and configuration to the device end. Then, the terminal device downloads the voice package and records the configuration to the local machine. Correspondingly, when the function is triggered, the terminal device can play the corresponding voice package according to the configuration. Among them, the embodiment of the present invention provides a rich application scenario, adds dialect, timbre, sound speed configuration and scene automation linkage, and effectively improves the efficiency and effect of terminal device voice management. For example, after the device upgrades the firmware, the embodiment of the present invention can support a certain function and support voice broadcast, upload the voice package through the manufacturer and the administrator portal for review, and send the voice package version to the smart device with upgraded firmware through the IOT platform, and then send the version according to single, quantity, all, and timing. Alternatively, the embodiment of the present invention can also combine home scene automation with voice broadcast, such as triggering the home scene, voice broadcast "Welcome home", or triggering the temperature and humidity sensor to exceed 28 degrees, voice broadcast "Today's temperature is too high", or setting a timer, voice broadcast "Get up", etc. Correspondingly, in the embodiment of the present invention, the user can set the corresponding dialect, timbre, speed, etc. for the voice played by the smart device. It should be noted that the embodiment of the present invention can configure voice packages according to different device types, models, and functions, and the voice package version upgrade can be managed in a unified manner, and can be selected and upgraded based on device identification, address (such as province, city), model, all devices, etc. Different device manufacturers can provide upgrade configurations for review, and customers on the user side can select voice packages, which alleviates the storage problem of device terminals, can provide users with upgradeable and customizable voice broadcast functions, and realize unified management of terminal device voice package data.
[0101] See also Fig. 9 The embodiment of the present application also provides a terminal device voice management system, which can implement the above-mentioned terminal device voice management method, and the system includes:
[0102] The first module 810 is configured to obtain first voice packet data.
[0103] The second module 820 is used to store the first voice package data in a preset Internet of Things platform.
[0104] The third module 830 is used to obtain preset subscription data to determine target voice package data from a preset Internet of Things platform according to the preset subscription data.
[0105] The fourth module 840 is used to send the target voice package data to the corresponding target terminal device according to the preset device type information, so as to update the configuration of the target terminal device through the target voice package data.
[0106] It can be understood that the contents of the above method embodiments are all applicable to the present system embodiments, the functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0107] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned terminal device voice management method when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.
[0108] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0109] See also Fig.10 , Fig.10 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:
[0110] The processor 910 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0111] The memory 920 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 920 can store an operating system and other applications. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 920, and the processor 910 calls and executes the terminal device voice management method of the embodiment of this application;
[0112] Input / output interface 930, used to implement information input and output;
[0113] Communication interface 940, used to realize communication interaction between the device and other devices, which can be realized through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.);
[0114] bus 950 , which transmits information between the various components of the device (e.g., processor 910 , memory 920 , input / output interface 930 , and communication interface 940 );
[0115] The processor 910 , the memory 920 , the input / output interface 930 , and the communication interface 940 are connected to each other in communication within the device via a bus 950 .
[0116] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned terminal device voice management method is implemented.
[0117] It can be understood that the contents of the above method embodiments are all applicable to the present storage medium embodiments, the functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0118] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. 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 disposed relative to the processor, and these remote memories may be connected to the processor 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.
[0119] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0120] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.
[0121] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0122] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0123] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0124] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0125] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0126] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0127] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0128] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0129] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.
Claims
1. A method for voice management of terminal equipment, characterized in that: The method comprises the following steps: Acquire first voice packet data; The first voice package data is stored in a preset Internet of Things platform; Acquire preset subscription data to determine target voice package data from the preset Internet of Things platform according to the preset subscription data; The target voice package data is sent to the corresponding target terminal device according to the preset device type information, so as to update the configuration of the target terminal device through the target voice package data.
2. The method according to claim 1, characterized in that The obtaining of the first voice packet data includes: Acquire the second voice package data through a preset supply platform; Submitting the second voice package data to a preset management platform for review and obtaining a review result; When it is determined that the audit result is approved, the second voice package data is used as the first voice package data.
3. The method according to claim 1, characterized in that The storing of the first voice package data to a preset Internet of Things platform includes: The preset parameter information corresponding to the first voice package data is synchronized to the preset Internet of Things platform through a preset synchronization interface, so as to store the preset parameter information in a corresponding data table according to the preset device type information; wherein the preset parameter information includes preset version number information and storage path information.
4. The method according to claim 3, characterized in that The step of sending the target voice package data to a corresponding target terminal device according to preset device type information, so as to update the configuration of the target terminal device through the target voice package data, includes: When it is determined that the preset device type information is a preset long connection device type, the storage path information corresponding to the target voice packet data is sent to the target terminal device; When it is determined to update the configuration of the target terminal device according to the local version number information and the preset version number information, the target voice package data is downloaded to the target terminal device through the storage path information, and the historical voice package data is deleted.
5. The method according to claim 4, characterized in that The method of sending the target voice package data to a corresponding target terminal device according to preset device type information, so as to update the configuration of the target terminal device through the target voice package data, further includes: When it is determined that the preset device type information is a preset short connection device type, the preset version number information is sent to the target terminal device according to the preset device reporting information; wherein the preset device reporting information is initiated by the target terminal device; When it is determined according to the preset version number information and the local version number information that the configuration of the target terminal device is to be updated, a data packet download request is initiated to the preset Internet of Things platform through the target terminal device; When it is determined that the preset Internet of Things platform obtains the data packet download request, the storage path information is sent to the target terminal device; The target voice package data is downloaded to the target terminal device through the storage path information, and the historical voice package data is deleted.
6. The method according to claim 1, characterized in that The method further comprises: Acquire user voice setting information; wherein the user voice setting information includes user voice package type information, subscription function information, scene linkage information and custom voice package information; Determine the corresponding target voice package data according to the user voice setting information; The target voice packet data is sent to the corresponding target terminal device through the Internet of Things interface of the preset Internet of Things platform.
7. The method according to claim 1, characterized in that The obtaining of preset subscription data to determine target voice package data from the preset Internet of Things platform according to the preset subscription data includes: When it is determined that the first voice package data is stored in the preset Internet of Things platform, determining the target voice package data from the first voice package data according to the preset subscription data; Alternatively, when it is determined that the first voice package data is not stored in the preset Internet of Things platform, the target voice package data is determined from the default voice package data according to the preset subscription data.
8. A terminal device voice management system, characterized in that: The system comprises: The first module is used to obtain first voice packet data; The second module is used to store the first voice package data into a preset Internet of Things platform; The third module is used to obtain preset subscription data to determine the target voice package data from the preset Internet of Things platform according to the preset subscription data; The fourth module is used to send the target voice package data to the corresponding target terminal device according to the preset device type information, so as to update the configuration of the target terminal device through the target voice package data.
9. An electronic device, characterized in that: include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.