CN117082168A - Short message broadcasting method, device, electronic equipment and storage medium - Google Patents

Short message broadcasting method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117082168A
CN117082168A CN202310939143.8A CN202310939143A CN117082168A CN 117082168 A CN117082168 A CN 117082168A CN 202310939143 A CN202310939143 A CN 202310939143A CN 117082168 A CN117082168 A CN 117082168A
Authority
CN
China
Prior art keywords
short message
voice
determining
broadcasting
text content
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310939143.8A
Other languages
Chinese (zh)
Inventor
庄严
杨汉坤
蒋周良
吕宁
龙晓泉
孙宝寅
尧平
蔡发辉
彭近
黄少媚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Internet Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Internet Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Internet Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202310939143.8A priority Critical patent/CN117082168A/en
Publication of CN117082168A publication Critical patent/CN117082168A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72436User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for text messaging, e.g. short messaging services [SMS] or e-mails
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72433User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for voice messaging, e.g. dictaphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72484User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure provides a short message broadcasting method, a short message broadcasting device, electronic equipment and a storage medium, and relates to the technical field of short message broadcasting. The method comprises the following steps: acquiring text content of a short message currently received in a terminal device through a SIM card in the terminal device, determining a current state of the terminal device according to current device data of the terminal device, determining a voice broadcasting strategy corresponding to the short message according to the current state and an importance level of the short message, determining voice data corresponding to the text content of the short message, determining a voice broadcasting form of the short message according to prestored user voice broadcasting preference data and the importance level, and controlling the terminal device to broadcast the voice data based on the voice broadcasting form and the voice broadcasting strategy. Therefore, the voice broadcasting mode based on the SIM card for realizing the short message is provided, so that the terminal equipment does not need to additionally install an application program, the storage space of the terminal equipment can be saved, and the privacy leakage problem caused by the installation of an unknown application program can be avoided.

Description

Short message broadcasting method, device, electronic equipment and storage medium
Technical Field
The disclosure relates to the technical field of short message broadcasting, and in particular relates to a short message broadcasting method, a device, electronic equipment and a storage medium.
Background
With the development of mobile communication technology, broadcasting voice short messages has long become a common function of terminal devices, for example, after text short messages received by a mobile phone terminal of a user, the mobile phone terminal converts the received text short messages into voice for broadcasting, so that the user can know the content of the short messages conveniently when watching a mobile phone screen.
In the related art, a user installs an application program with a short message broadcasting function in a terminal device, and can start the short message broadcasting function in the terminal device in advance, so that the application program has the authority of reading and broadcasting the short message. Correspondingly, after the terminal equipment detects the short message, the application program in the terminal equipment can convert the text content of the short message into voice for automatic broadcasting through a text-to-voice tool. However, in the above manner of implementing voice broadcasting, an application program needs to be installed in a terminal device, the installation of the application program occupies a storage space of the terminal device, and the installation of the application program to perform short message broadcasting has a problem of disclosure of personal privacy.
Disclosure of Invention
The disclosure provides a short message broadcasting method, a short message broadcasting device, electronic equipment and a storage medium.
In a first aspect, the present disclosure provides a method for broadcasting a short message, where the method includes: under the condition that the terminal equipment receives the short message, acquiring text content of the short message; determining the current state of the terminal equipment according to the current equipment data of the terminal equipment; determining the importance level of the short message; determining a voice broadcasting strategy corresponding to the short message according to the current state and the importance level; determining voice data corresponding to text content of the short message; determining a voice broadcasting form of the short message according to prestored user voice broadcasting preference data and the importance level; and controlling the terminal equipment to broadcast the voice data based on the voice broadcasting form and the voice broadcasting strategy.
In one embodiment of the present disclosure, the determining the importance level of the short message includes: matching the text content of the short message with a preset keyword library; under the condition that the text content of the short message is matched with a target keyword in the preset keyword library, determining the category of the short message according to the target keyword; and determining the importance level of the short message according to the category of the short message.
In one embodiment of the present disclosure, in a case where the short message is sent by a target contact in an address book of the terminal device, the determining the importance level of the short message includes: determining the contact group to which the target contact belongs in the address book; and determining the importance level of the short message according to the contact person group.
In one embodiment of the present disclosure, the determining the voice data corresponding to the text content of the short message includes: and converting the text content of the short message according to a preset voice packet to obtain the voice data.
In an embodiment of the present disclosure, the converting, according to a preset voice packet, text content of the short message to obtain the voice data includes: aiming at each word in the text content of the short message, acquiring the voice corresponding to each word from the preset voice packet; and splicing voices corresponding to the characters in the text content according to the position sequence of the characters in the text content so as to obtain the voice data.
In one embodiment of the present disclosure, the method further comprises: and downloading the preset voice packet from a back-end server.
In one embodiment of the present disclosure, the controlling the terminal device to broadcast the voice data based on the voice broadcast form and the voice broadcast policy includes: and sending a voice broadcasting instruction to the terminal equipment, wherein the voice broadcasting instruction is used for indicating the terminal equipment to broadcast the voice data according to the voice broadcasting form and the voice broadcasting strategy.
In one embodiment of the present disclosure, the obtaining text content of the short message when the terminal device receives the short message includes: transmitting a data acquisition instruction to the terminal equipment under the condition that the terminal equipment receives the short message, wherein the data acquisition instruction is used for indicating the terminal equipment to transmit the text content of the short message; and receiving a response instruction returned by the terminal equipment aiming at the data acquisition instruction, wherein the response instruction comprises the text content of the short message. In a second aspect, the present disclosure provides a short message broadcasting device, where the device is applied to a subscriber identity module SIM card of a terminal device, and the device includes: the acquisition module is used for acquiring text content of the short message under the condition that the terminal equipment receives the short message; a first determining module, configured to determine a current state of the terminal device according to current device data of the terminal device; the second determining module is used for determining the importance level of the short message; the third determining module is used for determining a voice broadcasting strategy corresponding to the short message according to the current state and the importance level; a fourth determining module, configured to determine voice data corresponding to text content of the short message; a fifth determining module, configured to determine a voice broadcast form of the short message according to pre-stored user voice broadcast preference data and the importance level; and the control module is used for controlling the terminal equipment to broadcast the voice data based on the voice broadcast form and the voice broadcast strategy.
In a third aspect, the present disclosure provides an electronic device comprising: a processor, and a memory communicatively coupled to the processor; the memory stores computer-executable instructions; and the processor executes the computer execution instructions stored in the memory to realize the short message broadcasting method disclosed by the embodiment of the disclosure.
In a fourth aspect, the present disclosure provides a computer-readable storage medium having stored therein computer-executable instructions that, when executed by a processor, are configured to implement a method for broadcasting a short message disclosed in an embodiment of the present disclosure.
In a fifth aspect, the present disclosure provides a computer program product comprising a computer program which, when executed by a processor, implements the short message broadcasting method disclosed in the embodiments of the present disclosure.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
acquiring text content of a short message currently received in a terminal device through a SIM card in the terminal device, determining a current state of the terminal device according to current device data of the terminal device, determining a voice broadcasting strategy corresponding to the short message according to the current state and an importance level of the short message, determining voice data corresponding to the text content of the short message, determining a voice broadcasting form of the short message according to prestored user voice broadcasting preference data and the importance level, and controlling the terminal device to broadcast the voice data based on the voice broadcasting form and the voice broadcasting strategy. Therefore, the voice broadcasting mode based on the SIM card for realizing the short message is provided, so that the terminal equipment does not need to additionally install an application program, the storage space of the terminal equipment can be saved, and the privacy leakage problem caused by the installation of an unknown application program can be avoided.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart of a method of messaging according to an exemplary embodiment;
fig. 2 is a flow chart of a method of messaging according to another exemplary embodiment;
fig. 3 is a schematic structural diagram of a short message broadcasting device according to another exemplary embodiment;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure.
Specific embodiments of the present disclosure have been shown by way of the above drawings and will be described in more detail below. These drawings and the written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the disclosed concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
The following describes the technical solutions of the present disclosure and how the technical solutions of the present disclosure solve the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present disclosure will be described below with reference to the accompanying drawings.
First, with reference to fig. 1, an exemplary description is given of a method for broadcasting a short message provided in an embodiment of the present disclosure.
Fig. 1 is a flow chart illustrating a method of messaging according to an exemplary embodiment.
It should be noted that, the method for broadcasting the short message provided in the embodiment of the present disclosure may be executed by a short message broadcasting device, where the short message broadcasting device may be implemented by software and/or hardware. The short message broadcasting device may be an electronic device or may be configured in an electronic device, where the electronic device may be configured in a user identification SIM (Subscriber Identity Module) card in a terminal device. In this embodiment, the execution body of the short message broadcasting method is taken as an SIM card as an example.
The terminal device in the embodiment of the present disclosure is any device capable of mounting a SIM card, for example, the terminal device may be a smart phone capable of mounting a SIM card. In this example, a SIM card is taken as a super SIM card as an example. The super SIM card is provided with an operating system, application programs and an operating environment thereof. Wherein communication between the super SIM card and the terminal device is possible, for example, communication between the super SIM card and the terminal device is possible based on the application protocol data unit APDU (Application Protocol Data Unit). It should be noted that, the terminal device in this embodiment further includes a card receiving device that may correspond to the super SIM card, where the card receiving device is configured to provide power to the SIM card and may communicate with the super SIM card.
As shown in fig. 1, the short message broadcasting method includes the following steps:
step 101, under the condition that the terminal equipment receives the short message, acquiring text content of the short message.
In this example, when it is detected that the terminal device receives a short message, the SIM card may obtain text content of the received short message from the terminal device.
In the embodiment of the disclosure, when the terminal device receives the short message, the SIM card may send a data acquisition instruction to the terminal device, where the data acquisition instruction is used to instruct the terminal device to send text content of the short message, and receive a response instruction returned by the terminal device for the data acquisition instruction, where the response instruction includes the text content of the short message. That is, when the terminal device receives the short message, the SIM card may obtain the text content of the short message from the terminal device by actively sending a command.
Correspondingly, after receiving a data acquisition instruction sent by the SIM card, the terminal equipment analyzes the short message just received by the terminal equipment to obtain text content of the short message, and sends a response instruction carrying the text content of the short message to the SIM card. Correspondingly, the SIM card analyzes the response instruction to obtain the text content of the short message from the response instruction.
Step 102, determining the current state of the terminal equipment according to the current equipment data of the terminal equipment.
In this example, the SIM card may obtain current device data of the terminal device, and analyze the current device data to obtain a current state of the terminal device.
The current state of the terminal device may include, but is not limited to, a call state, a screen state, a broadcast state, a frequent operation state, an idle state, and a do-not-disturb state. The call state refers to the state that the terminal equipment is in answering or dialing; the screen state refers to that the screen of the terminal equipment is in a bright state, such as watching video; the broadcasting state means that the terminal equipment is in an audio broadcasting state, for example, the terminal equipment is broadcasting music and the like; the frequent operation state refers to a state in which the user is frequently operating the terminal device, such as frequently clicking a screen to play a game or the like; the idle state refers to a state in which the user does not use the terminal device; the do-not-disturb state means that the terminal device is set to a do-not-disturb mode, for example, when the user is in a meeting, sleeping, and the user can set the terminal device to the do-not-disturb mode.
In one embodiment of the present disclosure, when it is determined that the terminal device has a screen idle state event occurring according to the current device data, it may be determined that the screen of the terminal device is currently idle, and at this time, the current state of the terminal device is the idle state.
In one embodiment of the present disclosure, in a case where it is determined that the bright screen time of the screen of the terminal device exceeds a preset bright screen time threshold according to the current device data, it is determined that the current state of the terminal device is a bright screen state.
The preset bright screen time threshold is a bright screen time preset according to requirements, for example, the preset bright screen time is 5 seconds, 10 seconds, etc., and the preset bright screen time threshold is not particularly limited in this embodiment.
In one embodiment of the present disclosure, whether the terminal device has an incoming call event, an outgoing call event, or a call hang-up event may be determined according to the current device data, and whether the terminal device is in a call state may be determined according to the determination result.
In one embodiment of the present disclosure, in the case where it is determined that the terminal device is set to the do-not-disturb mode according to the current device data, it is determined that the terminal device is in the do-not-disturb state.
In one embodiment of the present disclosure, in a case where it is determined that the terminal device has an audio broadcast event according to the current device data, it may be determined that the terminal device is in a broadcast state.
In one embodiment of the present disclosure, an operation frequency at which a screen of the terminal device is operated within a recent preset time period may be determined according to current device data, and in case the determined operation frequency exceeds a preset operation frequency threshold, it is determined that the terminal device is in a frequent operation state.
The preset duration is preset, for example, the preset duration may be 3 seconds, or 4 seconds, etc., and the value of the preset duration may be set according to the actual requirement, which is not limited in particular in this embodiment.
The preset operation frequency threshold is a preset operation frequency critical value, and may be preset according to actual requirements, and the preset operation frequency threshold is not specifically limited in this embodiment.
And step 103, determining the importance level of the short message.
It can be understood that, in different application scenarios, the manner of determining the importance level of the short message is different, and the following is exemplified:
in one embodiment of the present disclosure, text content of a short message may be matched with a preset keyword library; under the condition that the text content of the short message is matched with a target keyword in a preset keyword library, determining the category of the short message according to the target keyword; and determining the importance level of the short message according to the category of the short message.
In the embodiment of the disclosure, the short message category corresponding to the target keyword can be obtained according to the corresponding relation between the preset keyword and the short message category, and the short message category corresponding to the target keyword is used as the category of the short message.
In this example, the importance level of the short message may be determined based on the category of the short message according to a preset correspondence between the category of the short message and the importance level.
It can be understood that the correspondence between the short message category and the importance level may be set by the user according to the requirement, for example, the user may set the importance level of the emergency short message (for example, the short message used for earthquake early warning, fraud early warning and government early warning belongs to the emergency short message) as high level, and the importance level of the conventional notification short message is medium level; the importance level of the business type short message is low.
For example, according to the text of the short message, matching is performed in a preset keyword library, if the matching is to "earthquake", the earthquake is early-warned, the emergency message is emergent, and the importance level is high.
For example, according to the text of the short message, matching is performed in a preset keyword library, if the keyword library is matched with "fraud and fraud prevention", the keyword library is a fraud early warning message, and the keyword library is an emergency message, and the importance level is high.
In one embodiment of the disclosure, under the condition that the short message is sent by a target contact in an address book of the terminal equipment, determining a contact group to which the target contact belongs in the address book; and determining the importance level of the short message according to the contact person group.
In this example, the importance level of the short message may be determined according to the importance level of the contact group, for example, the importance level of the contact group "parent group" is set to be high in advance, and if the short message sent by the sender from the parent group is received, the importance level of the short message is high.
And 104, determining a voice broadcasting strategy corresponding to the short message according to the current state and the importance level.
The voice broadcasting strategy is used for broadcasting the short message.
The voice broadcasting strategy can comprise a direct broadcasting strategy, a delay broadcasting strategy and a repeated broadcasting strategy.
In one embodiment of the present disclosure, messages with a "high" importance level are broadcast directly, except that the current state is a do-not-disturb state. And when the current state is the idle state, the short messages of all grades are directly broadcasted.
In one embodiment of the present disclosure, when the current state is a do not disturb state, and the short message importance level is "high", the delay broadcast is performed; when the current state is other states (non-idle state), the short message importance level is 'medium and low', and the short message is a delay play. The delay broadcasting strategy is to broadcast instantly when the user state is separated from the current state.
In one embodiment of the present disclosure, short messages with an importance level of "high" are in a repeated broadcasting policy, when it is determined that the user does not react within a preset time, the repeated broadcasting is required to remind the user, the repeated times may be preset times, for example, 3 times, or the repeated times may be stopped according to the user operation reaction, for example, after broadcasting 2 times, the user picks up the mobile phone to perform screen operation, and when the SIM card side monitors the user screen operation, the repeated broadcasting is stopped.
Step 105, determining the voice data corresponding to the text content of the short message.
It can be understood that, in different application scenarios, the implementation manner of determining the voice data corresponding to the text content of the short message is different, and the exemplary description is as follows:
as an example, the SIM card may communicate with the backend server to obtain voice data corresponding to the text of the sms.
In one possible implementation manner, the SIM card may send a voice acquisition request to the backend server, where the voice acquisition request includes text content of the short message, and receive a response result returned by the backend server, where the response result includes voice data corresponding to the text content.
The back-end server can convert the text content of the short message according to the voice packet corresponding to the SIM card to obtain voice data corresponding to the text content, or can convert the text content of the short message according to a voice conversion model to obtain voice data corresponding to the text content.
In another example, the SIM card may convert the text content of the short message through a voice conversion model to obtain voice data corresponding to the text content of the short message.
In another example, the SIM card may convert text content of the sms according to a preset voice packet to obtain voice data.
And 106, determining the voice broadcasting form of the short message according to the prestored user voice broadcasting preference data and the importance level.
The user voice broadcast preference data may include: and broadcasting voice speed preference and broadcasting volume preference of the user during voice broadcasting.
The voice broadcasting form of the short message can comprise broadcasting voice speed, broadcasting volume and the like corresponding to the voice broadcasting of the short message.
In the embodiment of the disclosure, the voice broadcasting form of the short message can be determined by combining the voice broadcasting preference data of the user and the importance level of the short message, for example, different voice broadcasting forms can be set for the short message with different importance levels by combining the voice broadcasting preference data of the user.
In one embodiment of the present disclosure, when the importance level of the short message is high, the SIM card determines a voice broadcast form of the short message according to pre-stored user voice broadcast preference data.
In some embodiments, the SIM card may use the broadcasting speech speed preferred in the pre-stored user voice broadcasting preference data as the broadcasting speech speed when the short message is voice-broadcast, and may use the broadcasting volume preferred in the pre-stored user voice broadcasting preference data as the broadcasting volume when the short message is voice-broadcast.
In other embodiments, the SIM card may use a preset multiple of the broadcasting speech speed preferred in the pre-stored user voice broadcasting preference data as the broadcasting speech speed of the short message, and may use a preset multiple of the broadcasting volume preferred in the pre-stored user voice broadcasting preference data as the broadcasting volume of the short message.
In this example, the short message with high importance level may be played, and the speech speed and the sound volume preferred by the user are adopted or the preset multiple, for example, 1.2 times, is accelerated or increased for better drawing the attention of the user.
The preset multiple is preset according to the requirement, for example, the preset multiple may be 1.2 times, or 1.4 times, or the like, which is not particularly limited in this embodiment.
In another embodiment of the present disclosure, when the importance level of the short message is middle or low, the SIM card may not adjust the voice broadcasting form, so that the generated voice data may be directly broadcasted. That is, when the importance level of the short message is medium or low, the SIM card may use the voice speed of the voice data as the broadcasting speed of the short message, and use the voice volume of the voice data as the broadcasting volume of the short message, that is, when the voice data is broadcast, the SIM card broadcasts at the voice speed and the voice volume of the voice data.
And step 107, the control terminal equipment broadcasts the voice data based on the voice broadcasting form and the voice broadcasting strategy.
According to the short message broadcasting method provided by the embodiment of the disclosure, text content of a short message currently received in terminal equipment is obtained through a SIM card in the terminal equipment, and the current state of the terminal equipment is determined according to current equipment data of the terminal equipment; determining the importance level of the short message; determining a voice broadcasting strategy corresponding to the short message according to the current state and the importance level; determining voice data corresponding to text content of the short message; determining a voice broadcasting form of the short message according to prestored user voice broadcasting preference data and importance levels; and the control terminal equipment broadcasts the voice data based on the voice broadcasting form and the voice broadcasting strategy. Therefore, the voice broadcasting mode based on the SIM card for realizing the short message is provided, so that the terminal equipment does not need to additionally install an application program, the storage space of the terminal equipment can be saved, and the privacy leakage problem caused by the installation of an unknown application program can be avoided.
Fig. 2 is a flowchart illustrating a method of broadcasting a short message according to another exemplary embodiment. In this embodiment, the foregoing embodiments are further refined.
As shown in fig. 2, the method may include:
step 201, under the condition that the terminal equipment receives the short message, acquiring text content of the short message.
Step 202, determining the current state of the terminal equipment according to the current equipment data of the terminal equipment.
And 203, determining the importance level of the short message.
And 204, determining a voice broadcasting strategy corresponding to the short message according to the current state and the importance level.
It should be noted that, regarding the specific implementation manner of the steps 201 to 204, reference may be made to the related description of the embodiments of the present disclosure, which is not repeated here.
Step 205, converting the text content of the short message according to the preset voice packet to obtain voice data.
In the embodiment of the present disclosure, text content of a short message may be converted according to a preset voice packet, so as to obtain a possible implementation manner of voice data, where the possible implementation manner is as follows: aiming at each word in the text content of the short message, acquiring the voice corresponding to each word from a preset voice packet; and splicing the voices corresponding to the characters in the text content according to the position sequence of the characters in the text content so as to obtain voice data. Therefore, the voice data corresponding to the text content of the short message is accurately obtained based on the preset voice packet in the SIM card.
It can be understood that, because the SIM card can directly generate the voice data corresponding to the text content of the short message based on the preset voice packet, the SIM card can generate the voice data corresponding to the text content of the short message without interaction with other devices, so that the problem that privacy is revealed in the interaction process can be avoided, and the security of the data is further improved.
In some embodiments, in order to improve the broadcasting effect of the voice data, in this embodiment, an audio pause corresponding to a punctuation mark in the text content may be further added to the voice data according to the punctuation mark.
The preset voice packet in the embodiment of the present disclosure may be preconfigured in the SIM card, or may also be downloaded from a back-end server by the SIM card, or may also be sent by the terminal device to the SIM card, which is not limited in particular.
In one embodiment of the present disclosure, in order to enable a preset voice packet in the SIM card to meet a tone preference of a user, correspondingly, the SIM card downloads, from a back-end server, a voice packet corresponding to the tone preference of the user corresponding to the terminal device, and takes the downloaded voice packet as the preset voice packet. Wherein, the downloaded voice packet comprises: pronunciation of individual common words matching the user's timbre preferences.
In one embodiment of the present disclosure, one possible way for the backend server to determine the preset voice packet is: acquiring user portrait data of the terminal equipment, acquiring a plurality of candidate voice packets with different voice information matched with the user portrait data, providing the plurality of candidate voice packets for the terminal equipment, acquiring a voice packet selection result returned by the terminal for the plurality of candidate voice packets, and taking a target voice packet in the voice packet selection result as the preset voice packet, wherein the target voice packet is one voice packet in the plurality of candidate voice packets.
Wherein it is understood that the content of the plurality of candidate speech packets is the same, but the tone information is different.
In this example, after receiving the plurality of candidate voice packets sent by the back-end server, the terminal device may display the plurality of candidate voice packets, determine a target voice packet from the plurality of candidate voice packets according to a voice packet selection operation, generate a voice packet selection result including the target voice packet, and send the voice packet selection result to the back-end server, so that the back-end server determines a preset voice packet based on the voice packet selection result.
And 206, determining the voice broadcasting form of the short message according to the prestored user voice broadcasting preference data and the importance level.
It should be noted that, regarding the specific implementation manner of step 206, reference may be made to the related description in the embodiments of the present disclosure, which is not repeated here.
Step 207, a voice broadcasting instruction is sent to the terminal device, where the voice broadcasting instruction is used to instruct the terminal device to broadcast voice data according to a voice broadcasting form and a voice broadcasting strategy.
In this example, after receiving a voice broadcast instruction sent by the SIM card, the terminal device may broadcast the number of voices according to a voice broadcast format and a voice broadcast policy. Specifically, the terminal device may invoke to broadcast the voice data through the earphone, the receiver or other devices according to the voice broadcast form and the voice broadcast policy.
In the disclosed embodiment, voice broadcasting of the short message is realized based on the SIM card, so that the terminal equipment does not need to additionally install an application program, the storage space of the terminal equipment can be saved, and the privacy disclosure problem caused by the unknown application program is also avoided. In addition, it can be understood that because the user voice broadcast preference data and the voice packet are stored in the SIM card, after the user changes the terminal equipment, when the user installs the SIM card on the changed terminal equipment, the voice broadcast of the short message can be continuously and directly realized based on the SIM card, thereby reducing the trouble of the user for carrying out personalized configuration in the changed terminal equipment according to the application program and improving the user experience.
Fig. 3 is a schematic structural diagram of a short message broadcasting device according to an exemplary embodiment. The device is applied to a Subscriber Identity Module (SIM) card of the terminal equipment.
As shown in fig. 3, the short message broadcasting device 300 includes: an acquisition module 301, a first determination module 302, a second determination module 303, a third determination module 304, a fourth determination module 305, a fifth determination module 306, and a control module 307, wherein:
the obtaining module 301 is configured to obtain text content of a short message when it is detected that the terminal device receives the short message.
A first determining module 302, configured to determine a current state of the terminal device according to current device data of the terminal device.
A second determining module 303, configured to determine an importance level of the short message.
And a third determining module 304, configured to determine a voice broadcast policy corresponding to the short message according to the current state and the importance level.
A fourth determining module 305 is configured to determine voice data corresponding to text content of the short message.
And a fifth determining module 306, configured to determine a voice broadcasting form of the short message according to the prestored user voice broadcasting preference data and the importance level.
The control module 307 is configured to control the terminal device to broadcast the voice data based on the voice broadcast form and the voice broadcast policy.
In one embodiment of the present disclosure, the second determining module 303 is specifically configured to: matching text content of the short message with a preset keyword library; under the condition that the text content of the short message is matched with a target keyword in a preset keyword library, determining the category of the short message according to the target keyword; and determining the importance level of the short message according to the category of the short message.
In one embodiment of the present disclosure, in the case that the short message is sent by the target contact in the address book of the terminal device, the second determining module 303 is specifically configured to: determining the contact group to which the target contact belongs in the address book; and determining the importance level of the short message according to the contact person group.
In one embodiment of the present disclosure, the fourth determining module is specifically configured to: and converting text content of the short message according to the preset voice packet to obtain voice data.
In one embodiment of the present disclosure, the fourth determining module is specifically configured to: aiming at each word in the text content of the short message, acquiring the voice corresponding to each word from a preset voice packet; and splicing the voices corresponding to the characters in the text content according to the position sequence of the characters in the text content so as to obtain voice data.
In one embodiment of the present disclosure, the apparatus further comprises: and the communication module is used for downloading a preset voice packet from the back-end server.
In one embodiment of the present disclosure, the control module 307 is specifically configured to: and sending a voice broadcasting instruction to the terminal equipment, wherein the voice broadcasting instruction is used for indicating the terminal equipment to broadcast voice data according to the voice broadcasting form and the voice broadcasting strategy.
In one embodiment of the present disclosure, the obtaining module 301 is specifically configured to: under the condition that the terminal equipment receives the short message, sending a data acquisition instruction to the terminal equipment, wherein the data acquisition instruction is used for indicating the terminal equipment to send text content of the short message; and receiving a response instruction returned by the terminal equipment aiming at the data acquisition instruction, wherein the response instruction comprises the text content of the short message.
It should be noted that, the foregoing description of the embodiment of the method for broadcasting a short message is also applicable to the short message broadcasting device of this embodiment, and is not repeated herein.
According to the short message broadcasting device provided by the embodiment of the disclosure, text content of a short message currently received in a terminal device is obtained through a SIM card in the terminal device, a current state of the terminal device is determined according to current device data of the terminal device, a voice broadcasting strategy corresponding to the short message is determined according to the current state and an important grade of the short message, voice data corresponding to the text content of the short message is determined, a voice broadcasting form of the short message is determined according to prestored user voice broadcasting preference data and the important grade, and the terminal device is controlled to broadcast the voice data based on the voice broadcasting form and the voice broadcasting strategy. Therefore, the voice broadcasting mode based on the SIM card for realizing the short message is provided, so that the terminal equipment does not need to additionally install an application program, the storage space of the terminal equipment can be saved, and the privacy leakage problem caused by the installation of an unknown application program can be avoided.
There is also provided, in accordance with an embodiment of the present disclosure, an electronic device including: a processor; a memory for storing processor-executable instructions, wherein the processor is configured to: the short message broadcasting method disclosed by the embodiment of the disclosure is realized.
In order to implement the above embodiments, the embodiments of the present disclosure also propose a storage medium.
Wherein, when the instructions in the storage medium are executed by the processor, the processor is enabled to execute the short message broadcasting method disclosed in the embodiment of the disclosure.
To achieve the above embodiments, the present disclosure embodiment also provides a computer program product.
The computer program product, when executed by a processor of the electronic device, enables the electronic device to execute the short message broadcasting method disclosed by the embodiment of the disclosure.
Fig. 4 is a block diagram of an electronic device, according to an example embodiment. The electronic device shown in fig. 4 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 4, the electronic device 1000 includes a processor 111 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 112 or a program loaded from a Memory 116 into a random access Memory (RAM, random Access Memory) 113. In the RAM 113, various programs and data required for the operation of the electronic apparatus 1000 are also stored. The processor 111, the ROM 112, and the RAM 113 are connected to each other through a bus 114. An Input/Output (I/O) interface 115 is also connected to bus 114.
The following components are connected to the I/O interface 115: a memory 116 including a hard disk and the like; and a communication section 117 including a network interface card such as a local area network (Local Area Network, LAN) card, a modem, or the like, the communication section 117 performing communication processing via a network such as the internet; the drive 118 is also connected to the I/O interface 115 as needed.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program embodied on a computer readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from the network through the communication section 117. The above-described functions defined in the methods of the present disclosure are performed when the computer program is executed by the processor 111.
In an exemplary embodiment, a storage medium is also provided, such as a memory, comprising instructions executable by the processor 111 of the electronic device 1000 to perform the above-described method. Alternatively, the storage medium may be a non-transitory computer readable storage medium, for example, a ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (11)

1. The method is characterized by being applied to a Subscriber Identity Module (SIM) card of terminal equipment, and comprises the following steps:
under the condition that the terminal equipment receives the short message, acquiring text content of the short message;
determining the current state of the terminal equipment according to the current equipment data of the terminal equipment;
determining the importance level of the short message;
determining a voice broadcasting strategy corresponding to the short message according to the current state and the importance level;
determining voice data corresponding to text content of the short message;
determining a voice broadcasting form of the short message according to prestored user voice broadcasting preference data and the importance level;
and controlling the terminal equipment to broadcast the voice data based on the voice broadcasting form and the voice broadcasting strategy.
2. The method of claim 1, wherein the determining the importance level of the sms includes:
matching the text content of the short message with a preset keyword library;
under the condition that the text content of the short message is matched with a target keyword in the preset keyword library, determining the category of the short message according to the target keyword;
and determining the importance level of the short message according to the category of the short message.
3. The method of claim 1, wherein the determining the importance level of the short message in the case that the short message is sent by the target contact in the address book of the terminal device comprises:
determining the contact group to which the target contact belongs in the address book;
and determining the importance level of the short message according to the contact person group.
4. The method of claim 1, wherein the determining the voice data corresponding to the text content of the sms includes:
and converting the text content of the short message according to a preset voice packet to obtain the voice data.
5. The method of claim 4, wherein converting text content of the sms according to a preset voice packet to obtain the voice data comprises:
aiming at each word in the text content of the short message, acquiring the voice corresponding to each word from the preset voice packet;
and splicing voices corresponding to the characters in the text content according to the position sequence of the characters in the text content so as to obtain the voice data.
6. The method of claim 4, wherein the method further comprises:
and downloading the preset voice packet from a back-end server.
7. The method of claim 1, wherein the controlling the terminal device to broadcast the voice data based on the voice broadcast form and the voice broadcast policy comprises:
and sending a voice broadcasting instruction to the terminal equipment, wherein the voice broadcasting instruction is used for indicating the terminal equipment to broadcast the voice data according to the voice broadcasting form and the voice broadcasting strategy.
8. The method according to any one of claims 1-7, wherein, in the case that the terminal device is detected to receive a short message, obtaining text content of the short message includes:
transmitting a data acquisition instruction to the terminal equipment under the condition that the terminal equipment receives the short message, wherein the data acquisition instruction is used for indicating the terminal equipment to transmit the text content of the short message;
and receiving a response instruction returned by the terminal equipment aiming at the data acquisition instruction, wherein the response instruction comprises the text content of the short message.
9. A short message broadcasting device, characterized in that the device is applied in a subscriber identity module SIM card of a terminal device, the device comprising:
the acquisition module is used for acquiring text content of the short message under the condition that the terminal equipment receives the short message;
a first determining module, configured to determine a current state of the terminal device according to current device data of the terminal device;
the second determining module is used for determining the importance level of the short message;
the third determining module is used for determining a voice broadcasting strategy corresponding to the short message according to the current state and the importance level;
a fourth determining module, configured to determine voice data corresponding to text content of the short message;
a fifth determining module, configured to determine a voice broadcast form of the short message according to pre-stored user voice broadcast preference data and the importance level;
and the control module is used for controlling the terminal equipment to broadcast the voice data based on the voice broadcast form and the voice broadcast strategy.
10. An electronic device, comprising:
memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1-8 when executing the computer program.
11. A computer readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the method according to any of claims 1-8.
CN202310939143.8A 2023-07-27 2023-07-27 Short message broadcasting method, device, electronic equipment and storage medium Pending CN117082168A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310939143.8A CN117082168A (en) 2023-07-27 2023-07-27 Short message broadcasting method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310939143.8A CN117082168A (en) 2023-07-27 2023-07-27 Short message broadcasting method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117082168A true CN117082168A (en) 2023-11-17

Family

ID=88703347

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310939143.8A Pending CN117082168A (en) 2023-07-27 2023-07-27 Short message broadcasting method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117082168A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106357877A (en) * 2015-07-16 2017-01-25 宇龙计算机通信科技(深圳)有限公司 Information prompting method, device and terminal
CN108632437A (en) * 2017-03-17 2018-10-09 北京搜狗科技发展有限公司 A kind of information processing method and device, a kind of device for information processing
CN111385423A (en) * 2020-03-12 2020-07-07 北京小米移动软件有限公司 Voice broadcasting method, voice broadcasting device and computer storage medium
CN113727287A (en) * 2021-08-27 2021-11-30 展讯通信(天津)有限公司 Short message notification method and electronic terminal equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106357877A (en) * 2015-07-16 2017-01-25 宇龙计算机通信科技(深圳)有限公司 Information prompting method, device and terminal
CN108632437A (en) * 2017-03-17 2018-10-09 北京搜狗科技发展有限公司 A kind of information processing method and device, a kind of device for information processing
CN111385423A (en) * 2020-03-12 2020-07-07 北京小米移动软件有限公司 Voice broadcasting method, voice broadcasting device and computer storage medium
CN113727287A (en) * 2021-08-27 2021-11-30 展讯通信(天津)有限公司 Short message notification method and electronic terminal equipment

Similar Documents

Publication Publication Date Title
EP2747389B1 (en) Mobile terminal having auto answering function and auto answering method for use in the mobile terminal
US8588849B2 (en) System and method for resuming media
CN107995360B (en) Call processing method and related product
CN108769431A (en) Audio play control method, device, storage medium and mobile terminal
CN108449493B (en) Voice call data processing method and device, storage medium and mobile terminal
US20070288898A1 (en) Methods, electronic devices, and computer program products for setting a feature of an electronic device based on at least one user characteristic
CN112154640B (en) Message playing method and terminal
CN111200776B (en) Audio playing control method and sound box equipment
CN108449506B (en) Voice call data processing method and device, storage medium and mobile terminal
CN111277697B (en) Audio processing method and device, storage medium and electronic equipment
EP1841242A2 (en) Apparatus and method for storing/calling telephone number in mobile terminal
CN110418181B (en) Service processing method and device for smart television, smart device and storage medium
CN112866488A (en) Video color ring back tone playing method, server and terminal
CN112040057B (en) Device control method, device, electronic device, control system and storage medium
CN109348048B (en) Call message leaving method, terminal and device with storage function
CN115150501A (en) Voice interaction method and electronic equipment
CN108039169A (en) Audio signal processing method, communicating terminal and the computer-readable storage medium that group is exhaled
CN117082168A (en) Short message broadcasting method, device, electronic equipment and storage medium
CN108449498B (en) Voice call data processing method and device, storage medium and mobile terminal
CN110493461A (en) Message playback method and device, electronic equipment, storage medium
CN114390144A (en) Intelligent processing method, device and control system for voice incoming call
CN113271491B (en) Electronic device and play control method
CN108831475B (en) Text message extraction method and system
US20070027691A1 (en) Spatialized audio enhanced text communication and methods
CN111324331A (en) Interactive message prompting method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination