CN115037710A - Message transmission method and device - Google Patents

Message transmission method and device Download PDF

Info

Publication number
CN115037710A
CN115037710A CN202210628772.4A CN202210628772A CN115037710A CN 115037710 A CN115037710 A CN 115037710A CN 202210628772 A CN202210628772 A CN 202210628772A CN 115037710 A CN115037710 A CN 115037710A
Authority
CN
China
Prior art keywords
voice message
message
sequence
voice
target client
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
CN202210628772.4A
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202210628772.4A priority Critical patent/CN115037710A/en
Publication of CN115037710A publication Critical patent/CN115037710A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/10Multimedia information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/18Commands or executable codes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention provides a message transmission method and a device, which can be used in the technical field of artificial intelligence, and the method comprises the following steps: carrying out validity judgment on a voice message input by a user; if the voice message is legal, the voice message is sent to the target client side, and the legality of the voice message can be judged, so that the accuracy and the safety of the voice message are improved.

Description

Message transmission method and device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to the field of artificial intelligence technologies, and in particular, to a method and an apparatus for transmitting a message.
Background
Instant Messaging (IM) refers to a service capable of instantly sending and receiving internet messages and the like. With the development of network communication technology, IM is not a simple chat tool, and it has been developed into a comprehensive information platform integrating communication, information, entertainment, search, e-commerce, office collaboration, enterprise customer service, and the like. The current channel coding technology adopted when voice information in instant communication is transmitted in a channel is linear block code, the linear block code cuts a sequence into groups and then carries out coding and decoding in an isolated way, no connection exists between the groups, and from the perspective of information theory, a part of relevant information can be lost, and the more the cutting of the information sequence is, the more the lost information is, and the accuracy and the safety of the voice information can not be ensured.
Disclosure of Invention
An object of the present invention is to provide a message transmission method, which can determine the validity of a voice message, thereby improving the accuracy and security of the voice message. Another object of the present invention is to provide a message transmission apparatus. It is yet another object of the present invention to provide a computer readable medium. It is a further object of the present invention to provide a computer apparatus.
In order to achieve the above object, an aspect of the present invention discloses a message transmission method, including:
carrying out validity judgment on a voice message input by a user;
and if the voice message is legal, sending the voice message to the target client.
Preferably, the legality determination of the voice message input by the user includes:
converting the voice message into a digital signal sequence by an analog-to-digital conversion technology;
performing convolution calculation on the digital signal sequence through a convolution algorithm to obtain a convolution sequence;
carrying out consistency detection on the convolution sequence and a stored legal sequence to obtain a consistency score;
if the consistency score is larger than or equal to a preset score threshold value, the voice message is legal;
if the consistency score is less than the score threshold, the voice message is illegal.
Preferably, the consistency detection of the convolution sequence and the stored legal sequence to obtain the consistency score includes:
comparing the convolution sequence with a legal sequence according to the sequence bits, and counting the bits of different sequence bits;
and obtaining the consistency fraction according to the number of the bits of the different sequence bits by the set consistency detection table, wherein the consistency detection table comprises the number of the bits of the different sequence bits and the corresponding relation between the consistency fractions.
Preferably, the method further comprises:
if the voice message is illegal, a voice sending failure message is generated.
Preferably, the voice transmission failure message includes suspending transmission of the voice message and resending the voice message;
if the voice message is illegal, generating a voice sending failure message, comprising:
if the number of times of inputting the voice message by the user in the designated time is larger than or equal to a preset number threshold, generating a voice message which is suspended to be sent;
and if the times of inputting the voice message by the user in the designated time is less than the time threshold, generating and resending the voice message.
Preferably, the sending the voice message to the target client includes:
if the target client is on line, sending the voice message to the target client;
and if the target client is offline, storing the voice message to the local until the target client is online, and sending the voice message to the target client.
Preferably, after sending the voice message to the target client, the method further includes:
and receiving a receiving confirmation message sent by the target client.
Preferably, the method further comprises:
if the voice message is legal, storing the convolution sequence and the consistency score;
if the voice message is illegal, storing the convolution sequence, the consistency score and the counted times of inputting the voice message by the user in the specified time.
Preferably, the assessment categories include technical and/or non-technical categories;
the invention also discloses a message transmission device, comprising:
the legality judging unit is used for judging the legality of the voice message input by the user;
and the sending unit is used for sending the voice message to the target client if the voice message is legal.
The invention also discloses a computer-readable medium, on which a computer program is stored which, when executed by a processor, implements a method as described above.
The invention also discloses a computer device comprising a memory for storing information comprising program instructions and a processor for controlling the execution of the program instructions, the processor implementing the method as described above when executing the program.
The invention judges the legality of the voice message input by the user; if the voice message is legal, the voice message is sent to the target client side, and the legality of the voice message can be judged, so that the accuracy and the safety of the voice message are improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic view of a message transmission scenario according to an embodiment of the present invention;
fig. 2 is a flowchart of a message transmission method according to an embodiment of the present invention;
FIG. 3 is a logic diagram of a convolution calculation according to an embodiment of the present invention;
fig. 4 is a circuit diagram of a convolutional code encoder in a modulator in a convolutional algorithm according to an embodiment of the present invention;
fig. 5 is a flowchart of sending a voice message according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a message transmission apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the message transmission method and apparatus disclosed in the present application may be used in the technical field of artificial intelligence, and may also be used in any field other than the technical field of artificial intelligence.
In order to facilitate understanding of the technical solutions provided in the present application, the following first describes relevant contents of the technical solutions in the present application. The current channel coding technology adopted when the voice information in instant communication is transmitted in the channel is linear block code, the linear block code has the characteristics of simple coding and decoding, good closure and the like, and the error control coding technology adopted by the linear block code is an effective method for improving the reliability of digital communication, is the current popular error control coding technology, but has the legality and the information accuracy of the voice information. Channel coding is a method for coding the output of a source or a source encoder during channel transmission in order to achieve or approach the theoretical result of the coding theorem. The general channel coding refers only to coding for improving communication reliability, i.e., detecting and correcting errors occurring in transmission. The convolutional code is a non-block code invented by illias, is a channel code with superior performance, and has a relatively simple encoder and decoder structure and strong error correction capability.
The invention provides that a channel convolution algorithm is adopted in the voice message sending process based on an extensible message processing field (XMPP) protocol, a convolution code is a linear non-packet algorithm and can improve the reliability of information transmission, namely, the error rate in the transmission process is reduced, and after the voice message of a user is obtained, the convolution algorithm is adopted in the channel transmission to improve the reliability of the transmission of the voice message in the channel, so that a lower error rate is obtained, and further, the error control coding is optimized. Among them, the XMPP protocol is an XML-based protocol for Instant Messaging (IM) and online presence probing. The XMPP protocol is a protocol based on a subset XML of a standard universal markup language, which inherits flexible developability in an XML environment. Therefore, applications based on the XMPP protocol are extremely scalable. As an alternative, the selected use scenario is a voice message interaction tool based on an IOS version realized by an XMPP protocol.
The following describes an implementation process of the message transmission method provided in the embodiment of the present invention, taking a message transmission apparatus as an execution subject. It can be understood that the executing body of the message transmission method provided by the embodiment of the invention includes, but is not limited to, a message transmission device.
Fig. 1 is a flowchart of a message transmission method according to an embodiment of the present invention, and as shown in fig. 1, the method includes:
step 101, carrying out validity judgment on the voice message input by the user.
And 102, if the voice message is legal, sending the voice message to the target client.
In the technical scheme provided by the embodiment of the invention, the legality judgment is carried out on the voice message input by the user; if the voice message is legal, the voice message is sent to the target client side, and the legality of the voice message can be judged, so that the accuracy and the safety of the voice message are improved.
Fig. 2 is a flowchart of another message transmission method according to an embodiment of the present invention, and as shown in fig. 2, the method includes:
step 201, the user terminal converts the voice message into a digital signal sequence through an analog-to-digital conversion (a/D) technology.
In the embodiment of the invention, a user inputs voice messages through the voice function of a user terminal, a microphone converts voice messages into signal current, the signal transmitted by the current is called an analog signal, and the mode of using the analog signal is called analog communication; the analog signal is converted into a digital signal sequence by an A/D technology, and the digital signal sequence is a coding sequence in binary form.
Further, the digital signal sequence is stored for being used as a basis for subsequently judging the legality of the voice message.
Step 202, the user terminal performs convolution calculation on the digital signal sequence through a convolution algorithm to obtain a convolution sequence.
In the embodiment of the invention, the digital signal sequence is input into a convolution algorithm for convolution calculation, and a convolution sequence is output.
Fig. 3 is a logic schematic diagram of convolution calculation according to an embodiment of the present invention, where, as shown in fig. 3, convolution coding is used as a channel coding mode when a signal is transmitted in a channel, an input of a convolution algorithm is a digital signal sequence C in a binary form, and each bit (bit) in the digital signal sequence C is sequentially input to an input end and passes through a first register b 1 A second register b 2 And a third register b 3 Combining with 3 adders to perform convolution calculation to obtain a first output result c 1 And a second output result c 2 And a third output result c 3 (ii) a The first output result c 1 A second output result c 2 And a third output result c 3 And splicing to obtain a convolution sequence G output by the coding output section. Wherein the first register b 1 A second register b 2 And a third register b 3 Each stores 1bit symbol and the initial values are all 0; the 3 adders have respective inputs and outputs; the output result for each adder is derived from the register and input references corresponding to FIG. 3 added to the computation corresponding to each adder, so that every 1bit of input corresponds to the first output result c 1 A second output result c 2 And a third output result c 3 Thus 3bit output. For example: input 1, output 101, input 0 again, output 100, i.e.: if the digital signal sequence C is 1010, the convolution sequence G after convolution calculation by the convolution algorithm is 101100101100(12 bits).
In the embodiment of the invention, the convolution sequence is a linear non-packet code, namely a convolution code, and has the advantages of high transmission reliability and low error rate in a channel.
Further, the user terminal sends the convolution sequence to the message server.
Step 203, the message server performs consistency detection on the convolution sequence and the stored legal sequence to obtain a consistency score.
In the embodiment of the present invention, step 203 specifically includes:
step 2031, comparing the convolution sequence with the legal sequence according to the sequence bits, and counting the bits of different sequence bits.
In the embodiment of the invention, the legal sequence is a legal voice information sequence pre-stored in a database, one user identification code (ID) corresponds to one legal sequence, and the corresponding legal sequence is matched through the user ID of the voice information.
Specifically, the convolution sequence G and the legal sequence H are compared one by one according to sequence bits, and the bits of different sequence bits are counted. For example: the convolution sequence G is 101100101100 and the legal sequence H is 101100101101, the number of bits of the different sequence bits is 1.
Step 2032, obtaining consistency scores according to the numbers of the different sequence bits by the set consistency detection table, where the consistency detection table includes the corresponding relationship between the numbers of the different sequence bits and the consistency scores.
In the embodiment of the present invention, the consistency detection table may be set according to actual conditions, and the specific standard of the consistency detection table is not limited in the embodiment of the present invention. As an alternative, the consistency check table is shown in table 1:
TABLE 1
Serial number Number of bits of different sequence Consistency score grade
1 0 bit 100
2 1bit 99
3 2 position 97
4 3 position 95
5 4 bit 94
6 5 position 92
7 6 bit 90
8 Not less than 7 bits Under 90 points (setting as required)
Specifically, a consistency score is obtained according to the number of different compared sequence bits, and the consistency score is stored, so as to provide a reliable basis for subsequent validity judgment of the voice message.
Step 204, the message server judges whether the consistency score is greater than or equal to a preset score threshold value, if so, the step 206 is continuously executed; if not, go to step 205.
In the embodiment of the present invention, if the consistency score is greater than or equal to the preset score threshold, it indicates that the voice message is legal, continue to execute step 206; if the consistency score is less than the score threshold, indicating that the voice message is illegal, proceed to step 205.
In the embodiment of the invention, the score threshold is preset according to actual requirements, and considering that the error rate cannot be too high and the number of comparison error bits cannot exceed 6 bits, the range of the consistency score threshold is 90 to 100. As an alternative, the consistency score threshold may be set to 90 points.
Further, if the voice message is legal, storing the convolution sequence and the consistency score; if the voice message is illegal, storing the convolution sequence, the consistency score and the counted times of inputting the voice message by the user in the specified time.
Step 205, the message server generates a voice transmission failure message, and the process is ended.
In the embodiment of the invention, the voice sending failure message comprises the voice message sending suspension and the voice message sending resending.
Specifically, judging whether the number of times of inputting the voice message by the user in the specified time is greater than or equal to a preset number threshold, if so, indicating that the number of times of inputting the voice message by the user is excessive, generating a voice message of suspending sending, and sending the voice message of suspending sending to the user terminal; if not, generating a resending voice message and sending the resending voice message to the user terminal.
It should be noted that the number threshold may be set according to actual situations, and the number threshold is not limited in the embodiment of the present invention. As an alternative, the number threshold is 3.
In the embodiment of the invention, the voice message of pause sending is generated and sent to inform that the voice sending fails and the voice recording times of the user are excessive, the voice message is paused to be sent, and the voice message is sent again after waiting for the specified time. The specified time can be set according to actual conditions, for example: the specified time was 60 seconds.
In the embodiment of the invention, the resending voice message is generated and sent to inform the user that the voice sending fails and the voice needs to be resent.
The flow of convolutional codes is described below with a specific embodiment:
acquiring a voice input electric signal of a user, and converting the voice input electric signal into a digital signal sequence C (10111) through A/D (analog/digital); fig. 4 is a circuit diagram of a convolutional code encoder in a modulator in a convolutional algorithm according to an embodiment of the present invention, as shown in fig. 4, the convolutional code encoder includes two adders, and two output results are c 1,n And c 2,n Is a (2, 1,2) convolutional encoder (2, 1, 2). 10111, starting with 0 in the power of the order, C (x) 1 × x +0 × x 1 +1×x 2 +1×x 3 +1×x 4 Its polynomial expression is C (x) ═ 1+ x 2 +x 3 +x 4 (ii) a According to the connection relation of a convolutional code encoder, an upper adder consists of three inputs, namely a left input, a middle input and a right input, and a sub-generator polynomial: g (1,1) (x) ═ 1+ x 2 The lower adder is composed of three inputs, left and right, and the sub-generator polynomial: g (1,2) (x) ═ 1+ x 2 (ii) a The adder below is composed of three inputs, namely left input and right input, and a sub-generator polynomial: g (1,2) (x) ═ 1+ x 2 (ii) a Writing the sub-generator polynomial into a binary form according to the sub-generator polynomial, namely obtaining sub-generators g (1,1) ═ 111 and g (1,2) ═ 101; generating polynomial matrix g (x) ═ g (1,1) (x), g (1,2) (x)]Namely: g (x) ([ 1+ x) 2 ,1+x 2 ](ii) a The output sequence of the convolutional encoder is output by a code sequence of n 0 Sub-sequence composition, i.e.
Figure BDA0003678982040000071
And c (x) g (x), wherein c (1) (x) c (x) g (1,1) (x) and c (2) (x) c (x) g (1,2) (x), i.e.: c (1) (x) c (x) g (1,1) (x) (1+ x) 2 +x 3 +x 4 )(1+x+x 2 )=1+x+x 4 +x 6 Written in binary form c 1 =1100101;c(2)(x)=C(x)g(1,2)(x)=(1+x 2 +x 3 +x 4 )(1+x 2 )=1+x 3 +x 5 +x 6 Written in binary form c 2 1001011, output the first output result c 1 And a second output result c 2 Splicing to obtain a convolution sequence G, wherein the convolution sequence G is 11100001100111; sending the convolution result to a message server; the message server matches a corresponding legal sequence H which is 11100001011111 according to the user ID of the voice message, and carries out digit comparison on the convolution sequence and the legal sequence, wherein 3 digits are different; and obtaining a consistency score of 95 points and a score threshold of 90 points according to the number of the different sequence bits through the set consistency detection table, so that the voice sequence is legal, and sending a voice qualified message to the user terminal to inform the user that the consistency detection is passed.
Step 206, the message server sends the voice message to the target client.
Fig. 5 is a flowchart of sending a voice message according to an embodiment of the present invention, as shown in fig. 5, after determining that a voice message corresponding to the voice message is legal, the message server determines whether a target client is online currently, and if so, sends the voice message to the target client; and if the client side is offline, the voice message is stored to the local of the message server until the target client side is online, and then the voice message is sent to the target client side.
Step 207, the user terminal receives the confirmation message sent by the message server, where the confirmation message includes the sending confirmation message or the receiving confirmation message of the target client.
In the embodiment of the present invention, as shown in fig. 5, after receiving a voice message sent by a user terminal, a target client sends a reception confirmation message to a message server; the message server sends a target client receiving confirmation message to the user terminal; if the target client is off-line, the message server stores the voice message to the local of the message server, sends a sending confirmation message to the user terminal to inform the user that the voice message is sent successfully, and sends the voice message to the target client after the target client is on-line.
The invention transmits the voice message based on the XMPP protocol, performs convolution coding on the voice message, and adopts the convolution algorithm in the channel transmission after acquiring the voice message so as to improve the reliability of the transmission of the voice message in the channel, obtain lower error rate and further optimize the error control coding. After convolutional coding, the voice message is compared with the legal sequence of the user stored in the database in an error mode, a corresponding consistency score is obtained according to the comparison, and whether the voice message of the user is legal or not is judged through comparison with a score threshold value, so that the aim of accurately verifying the voice under different environmental noises is fulfilled.
In the technical scheme of the message transmission method provided by the embodiment of the invention, the legality judgment is carried out on the voice message input by a user; if the voice message is legal, the voice message is sent to the target client side, and the legality of the voice message can be judged, so that the accuracy and the safety of the voice message are improved.
Fig. 6 is a schematic structural diagram of a message transmission apparatus according to an embodiment of the present invention, where the apparatus is configured to execute the message transmission method, and as shown in fig. 6, the apparatus includes: a validity decision unit 11 and a transmission unit 12.
The legality deciding unit 11 is used for making a legality decision on a voice message input by a user.
The sending unit 12 is configured to send the voice message to the target client if the voice message is legal.
In the embodiment of the present invention, the validity determining unit 11 is specifically configured to convert a voice message into a digital signal sequence through an analog-to-digital conversion technology; performing convolution calculation on the digital signal sequence through a convolution algorithm to obtain a convolution sequence; carrying out consistency detection on the convolution sequence and a stored legal sequence to obtain a consistency score; if the consistency score is larger than or equal to a preset score threshold value, the voice message is legal; if the consistency score is less than the score threshold, the voice message is illegal.
In the embodiment of the present invention, the validity judging unit 11 is specifically configured to compare the convolution sequence with the valid sequence according to the sequence bits, and count the bits of different sequence bits; and obtaining consistency scores according to the digits of different sequence bits by using a set consistency detection table, wherein the consistency detection table comprises the corresponding relation between the digits of the different sequence bits and the consistency scores.
In the embodiment of the present invention, the apparatus further includes: a generating unit 13.
The generating unit 13 is configured to generate a voice transmission failure message if the voice message is illegal.
In the embodiment of the invention, the voice sending failure message comprises a voice message sending pause message and a voice message sending resend message; the generating unit 13 is specifically configured to generate a voice message transmission suspension if the number of times that the user inputs the voice message within the specified time is greater than or equal to a preset number threshold; and if the times of inputting the voice message by the user in the appointed time are less than the time threshold value, generating the voice message to be sent again.
In the embodiment of the present invention, the sending unit 12 is specifically configured to send the voice message to the target client if the target client is online; and if the target client is offline, storing the voice message to the local until the target client is online, and sending the voice message to the target client.
In the embodiment of the present invention, the apparatus further includes: a receiving unit 14.
The receiving unit 14 is specifically configured to receive a reception confirmation message sent by the target client.
In the embodiment of the present invention, the apparatus further includes: and a storage unit 15.
The storage unit 15 is used for storing the convolution sequence and the consistency score if the voice message is legal; if the voice message is illegal, storing the convolution sequence, the consistency score and the counted times of inputting the voice message by the user in the specified time.
In the scheme of the embodiment of the invention, the legality judgment is carried out on the voice message input by the user; if the voice message is legal, the voice message is sent to the target client side, and the legality of the voice message can be judged, so that the accuracy and the safety of the voice message are improved.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer device, which may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
Embodiments of the present invention provide a computer device, including a memory and a processor, where the memory is used to store information including program instructions, and the processor is used to control execution of the program instructions, and the program instructions are loaded by the processor and executed to implement the steps of the above-mentioned embodiments of the message transmission method.
Referring now to FIG. 7, shown is a schematic diagram of a computer device 600 suitable for use in implementing embodiments of the present application.
As shown in fig. 7, the computer apparatus 600 includes a Central Processing Unit (CPU)601 which can perform various appropriate works and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data necessary for the operation of the computer apparatus 600 are also stored. The CPU601, ROM602, and RAM603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a Cathode Ray Tube (CRT), a liquid crystal feedback (LCD), and the like, and a speaker and the like; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. A driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted as necessary on the storage section 608.
In particular, according to an embodiment of the present invention, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the invention include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611.
Computer-readable media, including both permanent and non-permanent, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
According to the technical scheme, the data acquisition, storage, use, processing and the like meet relevant regulations of national laws and regulations.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the system embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for relevant points.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (11)

1. A method for message transmission, the method comprising:
carrying out validity judgment on a voice message input by a user;
and if the voice message is legal, sending the voice message to a target client.
2. The message transmission method according to claim 1, wherein the making the validity decision on the voice message input by the user comprises:
converting the voice message into a digital signal sequence by an analog-to-digital conversion technology;
carrying out convolution calculation on the digital signal sequence through a convolution algorithm to obtain a convolution sequence;
carrying out consistency detection on the convolution sequence and a stored legal sequence to obtain a consistency score;
if the consistency score is larger than or equal to a preset score threshold value, the voice message is legal;
and if the consistency score is smaller than the score threshold value, the voice message is illegal.
3. The message transmission method according to claim 2, wherein said performing consistency check on the convolved sequence and the stored legal sequence to obtain a consistency score comprises:
comparing the convolution sequence with the legal sequence according to sequence bits, and counting the bits of different sequence bits;
and obtaining the consistency fraction according to the digits of the different sequence bits by a set consistency detection table, wherein the consistency detection table comprises the corresponding relation between the digits of the different sequence bits and the consistency fraction.
4. The message transmission method according to claim 1, wherein the method further comprises:
and if the voice message is illegal, generating a voice sending failure message.
5. The message transmission method according to claim 4, wherein the voice transmission failure message includes suspending transmission of a voice message and resending the voice message;
if the voice message is illegal, generating a voice sending failure message, including:
if the number of times of inputting the voice message by the user in the designated time is larger than or equal to a preset number threshold, generating a voice message which is suspended to be sent;
and if the times of inputting the voice message by the user in the appointed time is less than the time threshold value, generating the voice message to be sent again.
6. The message transmission method according to claim 1, wherein the sending the voice message to a target client comprises:
if the target client is on line, the voice message is sent to the target client;
and if the target client is offline, storing the voice message to the local until the target client is online, and sending the voice message to the target client.
7. The message transmission method according to claim 1, further comprising, after the sending the voice message to the target client:
and receiving a receiving confirmation message sent by the target client.
8. The message transmission method according to claim 2, wherein the method further comprises:
if the voice message is legal, storing the convolution sequence and the consistency score;
and if the voice message is illegal, storing the convolution sequence, the consistency score and the counted times of inputting the voice message by the user in the specified time.
9. A message transmission apparatus, characterized in that the apparatus comprises:
the legality judging unit is used for judging the legality of the voice message input by the user;
and the sending unit is used for sending the voice message to the target client if the voice message is legal.
10. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the message transmission method according to any one of claims 1 to 8.
11. A computer device comprising a memory for storing information including program instructions and a processor for controlling the execution of the program instructions, wherein the program instructions are loaded and executed by the processor to implement the message transmission method of any of claims 1 to 8.
CN202210628772.4A 2022-06-06 2022-06-06 Message transmission method and device Pending CN115037710A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210628772.4A CN115037710A (en) 2022-06-06 2022-06-06 Message transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210628772.4A CN115037710A (en) 2022-06-06 2022-06-06 Message transmission method and device

Publications (1)

Publication Number Publication Date
CN115037710A true CN115037710A (en) 2022-09-09

Family

ID=83123500

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210628772.4A Pending CN115037710A (en) 2022-06-06 2022-06-06 Message transmission method and device

Country Status (1)

Country Link
CN (1) CN115037710A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546992A (en) * 2011-12-12 2012-07-04 华为技术有限公司 Junk voice message filtering method, filtering device and filtering system
CN104660810A (en) * 2015-02-06 2015-05-27 中国科学院数据与通信保护研究教育中心 Telephone answering control method
CN104835497A (en) * 2015-04-14 2015-08-12 时代亿宝(北京)科技有限公司 Voiceprint card swiping system and method based on dynamic password
CN111986670A (en) * 2020-08-25 2020-11-24 Oppo广东移动通信有限公司 Voice control method, device, electronic equipment and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546992A (en) * 2011-12-12 2012-07-04 华为技术有限公司 Junk voice message filtering method, filtering device and filtering system
CN104660810A (en) * 2015-02-06 2015-05-27 中国科学院数据与通信保护研究教育中心 Telephone answering control method
CN104835497A (en) * 2015-04-14 2015-08-12 时代亿宝(北京)科技有限公司 Voiceprint card swiping system and method based on dynamic password
CN111986670A (en) * 2020-08-25 2020-11-24 Oppo广东移动通信有限公司 Voice control method, device, electronic equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN112184367B (en) Order processing method and device
CN101695013A (en) Soft information scaling for interactive decoding
CN111343162B (en) System secure login method, device, medium and electronic equipment
JP7177122B2 (en) Vehicle information verification method, device, equipment and medium
KR20220085049A (en) Device for multi-level encoding
CN111768790B (en) Method and device for transmitting voice data
TW201214982A (en) SISO decoder of (n, k) block code
US20240048157A1 (en) Encoding method, decoding method, electronic device and storage medium
CN115037710A (en) Message transmission method and device
CN111464267B (en) Communication data checking method and device, computer equipment and storage medium
US20170207799A1 (en) Method and apparatus for identification and compensation for inversion of input bit stream in ldpc decoding
US9621189B2 (en) Method and apparatus for identification and compensation for inversion of input bit stream in Ldpc decoding
CN109698706B (en) Polarization code incoherent iterative detection method and device based on decision feedback
CN103873068A (en) Low-density-parity-check decoding method and electronic device
CN109194446B (en) Polarization code blind detection method and device based on neural network
CN113794479B (en) Method for generating polarization adjustment convolutional code and related equipment
US11489623B2 (en) Error correction in network packets
WO2017076301A1 (en) Methods, systems and computer-readable media for error correction
CN114844511A (en) Polar code decoding method and device, storage medium and electronic equipment
CN110365445B (en) Sequence determination method, device and encoder
CN116192166B (en) Iterative decoding method, iterative decoding device, storage medium and electronic equipment
CN110504976B (en) Polar code decoding method and device
CN112994842B (en) Soft bit quantization method, device, demodulator and computer storage medium
CN113850988B (en) Key value correction method, device, equipment and computer readable medium
CN114785605B (en) Determination method, device, equipment and storage medium of network anomaly detection model

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