CN112039991B - Notification information processing method, device, computer system and readable storage medium - Google Patents

Notification information processing method, device, computer system and readable storage medium Download PDF

Info

Publication number
CN112039991B
CN112039991B CN202010904027.9A CN202010904027A CN112039991B CN 112039991 B CN112039991 B CN 112039991B CN 202010904027 A CN202010904027 A CN 202010904027A CN 112039991 B CN112039991 B CN 112039991B
Authority
CN
China
Prior art keywords
file
notification information
target
character string
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010904027.9A
Other languages
Chinese (zh)
Other versions
CN112039991A (en
Inventor
温哲
李振民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Pingan Payment Technology Service Co Ltd
Original Assignee
Pingan Payment Technology Service 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 Pingan Payment Technology Service Co Ltd filed Critical Pingan Payment Technology Service Co Ltd
Priority to CN202010904027.9A priority Critical patent/CN112039991B/en
Publication of CN112039991A publication Critical patent/CN112039991A/en
Application granted granted Critical
Publication of CN112039991B publication Critical patent/CN112039991B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/63Querying
    • G06F16/638Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/68Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/683Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • G06F16/685Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using automatically derived transcript of audio data, e.g. lyrics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90344Query processing by using string matching techniques
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L13/00Speech synthesis; Text to speech systems
    • G10L13/08Text analysis or generation of parameters for speech synthesis out of text, e.g. grapheme to phoneme translation, prosody generation or stress or intonation determination
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/0018Speech coding using phonetic or linguistical decoding of the source; Reconstruction using text-to-speech synthesis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Databases & Information Systems (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Library & Information Science (AREA)
  • Acoustics & Sound (AREA)
  • General Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a method and a device for processing notification information, a computer system and a readable storage medium, which relate to the technical field of information processing and are applied to a user side for receiving and pushing by adopting a message extension framework, and the method comprises the following steps: receiving notification information sent by a push server side, and acquiring money data based on the notification information; preprocessing the amount data to obtain a target character string; generating a target file according to the target character string; performing voice broadcasting based on the target file, and simultaneously displaying the notification information; by receiving the notification information of the server, carrying out money data extraction and processing on the notification information to obtain a target character string, and directly generating a target file for voice broadcasting through a system bottom tool according to the target character string, the problems that in the prior art, an application cannot be automatically awakened in a common pushing mode, a user needs to independently open the application when receiving real-time voice feedback, the operation is complicated, and the account safety in each application cannot be monitored in real time are solved.

Description

Notification information processing method, device, computer system and readable storage medium
Technical Field
The present invention relates to the field of information processing technologies, and in particular, to a notification information processing method and apparatus, a computer system, and a readable storage medium.
Background
The notification reminder is a necessary function of the mobile device, can inform the user of certain information in time when the application program is no longer happy, such as new message reception, new mail reception, program downloading completion, backlog and the like, is particularly important for financial applications, and can solve the problems that the user is inconvenient to check, confirm expenses or get accounts in frequent transactions.
The inventor of the invention discovers in research that in an IOS system, a user can realize notification voice broadcast on the premise of not starting related applications by using a VoIP push (PushKit) technology, the VoIP push technology is a special long connection, so that the applications do not need to be maintained in a keep-alive mode independently, push messages can be awakened to be applied at the background, the system has the advantages of high priority and low delay, the push technology cannot be invoked in a non-inductive mode along with system optimization and upgrading, namely, the push of the notification reminder can be realized only by using common push, but the push mode cannot awaken the applications independently, the voice broadcast can be obtained only by manually starting the applications by the user, the operation is complicated, and the system can be closed intelligently due to the fact that a certain application runs at the background for a long time, the user cannot receive real-time voice feedback, and further cannot monitor the account safety in various financial applications in real time.
Disclosure of Invention
The invention aims to provide a notification information processing method, a notification information processing device, a computer system and a readable storage medium, which are used for solving the problems that in the prior art, because system upgrading can only use a common push mode, a user needs to manually start an application to obtain voice broadcast, the operation is complicated, the operation of the user is complicated, the account safety in each application cannot be monitored in real time, and the risk is high.
In order to achieve the above object, the present invention provides a notification information processing method based on big data, which is applied to a user side that receives and pushes by using a message extension framework, and includes the following steps:
receiving notification information sent by a push server side, and acquiring money data based on the notification information;
preprocessing the amount data to obtain a target character string;
generating a target file according to the target character string;
and carrying out voice broadcasting based on the target file, and simultaneously displaying the notification information.
Further, preprocessing the amount data to obtain a target character string, further comprising:
identifying the amount data to obtain an identification result;
adding unit characters to the amount data based on the recognition result to obtain first processing data;
and matching preset character strings from a database based on the notification message, and adding the preset character strings to the head of the first processing data to obtain target character strings.
Further, generating a target file according to the target character string includes:
providing a preset audio database, wherein the audio database comprises a plurality of characters or character strings, and each character or character string is associated with one audio data;
segmenting the target character string according to preset conditions, and sequentially obtaining at least one character or character string;
acquiring audio data matched with each character or character string from the audio database;
sequentially splicing the audio data according to the target character strings to obtain an initial file;
configuring the initial file to obtain a target file;
and uploading the initial file and the target file to a block chain.
Further, sequentially splicing the audio data according to the target character strings to obtain an initial file, including:
establishing blank files, and judging whether each audio data type is a PCM file one by one;
if so, reading/writing by adopting a preset data format, coding the audio data by adopting an audio converter and then writing into the blank file;
if not, the audio data is coded by adopting an acoustic wave stream coder and then written into the blank file;
and writing all audio data into the blank file to obtain an initial file.
Further, based on the target file carries out voice broadcast, including:
an independent thread for broadcasting based on the target file and a management library associated with the independent thread are established in advance;
judging whether a sound file which is executing voice broadcasting exists in the thread;
if not, replacing the system sound file with the target file to perform voice broadcast;
if yes, time data corresponding to the sound files which are performing voice broadcasting are obtained from the management group, broadcasting time points corresponding to the target files are calculated, and the target files are adopted to replace the system sound files after the broadcasting time points are reached for voice broadcasting.
Further, the determining whether the thread has a sound file that is performing a voice broadcast includes:
and calculating duration data corresponding to the target file, and generating a sound file corresponding to the target file and the duration data and recording the sound file in the management library.
Further, before preprocessing the money data, the following steps are included:
providing a local database, and inquiring whether a target file matched with the amount data exists in the local database based on the amount data;
if yes, obtaining a target file;
if not, preprocessing the amount data, and correspondingly storing the amount data and the target file in the local database after obtaining the target file.
In order to achieve the above object, the present invention further provides a notification information processing apparatus, which is applied to a user side that receives push by using a message extension framework, and includes the following components:
the acquisition module is used for receiving notification information sent by the push server and acquiring the amount data based on the notification information;
the preprocessing module is used for preprocessing the money data to obtain a target character string;
the generating module is used for generating a target file according to the target character string;
and the broadcasting module is used for carrying out voice broadcasting based on the target file and displaying the notification information at the same time.
In order to achieve the above object, the present invention further provides a computer system, which comprises a plurality of computer devices, each computer device comprising a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processors of the plurality of computer devices jointly implement the steps of the notification information processing method when executing the computer program.
In order to achieve the above object, the present invention further provides a computer-readable storage medium comprising a plurality of storage media, each storage medium having a computer program stored thereon, wherein the computer programs stored in the storage media, when executed by a processor, collectively implement the steps of the above notification information processing method.
According to the notification information processing method, the notification information processing device, the computer system and the readable storage medium, the notification information of the server is received, the amount data of the notification information is extracted and processed to obtain the target character string, and the target file for voice broadcasting is directly generated through a system bottom tool according to the target character string, so that the problems that in the prior art, an application cannot be automatically awakened in a common pushing mode, the user needs to independently open the application after receiving real-time voice feedback, the operation is complicated, and the account safety in each application cannot be monitored in real time are solved.
Drawings
Fig. 1 is a flowchart of a first embodiment of a notification information processing method according to the present invention;
fig. 2 is a flowchart of preprocessing the money data to obtain a target character string in a first embodiment of the notification information processing method according to the present invention;
FIG. 3 is a flowchart of a first method for processing notification information according to the present invention, wherein the first method generates a target file according to a target string;
fig. 4 is a flowchart of sequentially splicing the audio data according to the target character string to obtain an initial file in the first notification information processing method according to the embodiment of the present invention;
fig. 5 is a flowchart of a voice broadcast based on the target file in a first embodiment of the notification information processing method according to the present invention;
FIG. 6 is a flowchart of a notification processing method according to a first embodiment of the present invention, before preprocessing the amount data;
FIG. 7 is a diagram illustrating program modules of a second notification processing apparatus according to a second embodiment of the present invention;
FIG. 8 is a block diagram illustrating program modules of a generating module in a second embodiment of a notification information processing apparatus according to the invention;
fig. 9 is a schematic view of program modules of a broadcast module in a second embodiment of a notification information processing apparatus according to the present invention;
fig. 10 is a schematic diagram of a hardware structure of a computer device in the third embodiment of the computer system according to the present invention.
Reference numerals:
5. notification information processing device 51, acquisition module 52, and preprocessing module
53. Generating module 531, segmentation unit 532 and matching unit
533. Execution unit 534, configuration unit 54 and broadcast module
541. Judging unit 542, first execution unit 543, second execution unit
544. Processing module 6, computer device 61, memory
62. Processor 63, network interface
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. 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.
The invention provides a notification information processing method, a notification information processing device, a computer system and a readable storage medium, relates to the technical field of information processing, and aims to provide a notification information processing method based on an acquisition module, a preprocessing module, a generation module and a broadcast module. According to the method, the notification information is obtained through the obtaining module, the amount data is extracted from the notification information, the preprocessing module is used for extracting and processing the amount data from the notification information to obtain the target character string, the target file for voice broadcasting is directly generated through a system bottom tool according to the target character string based on the generating module, and finally the broadcasting module is used for voice broadcasting the target file and displaying the information, so that the problems that in the prior art, the application cannot be automatically awakened in a common pushing mode, a user may not receive real-time voice feedback, and further the account safety in each financial application cannot be monitored in real time are solved; simultaneously, adopt system audio frequency processing tool to generate the target file that is used for voice broadcast in the module processing process that generates in this scheme, compare in current synthetic audio frequency at the server end, need not to reintroduce other third party storehouse again, promoted system operating efficiency, reduce system's burden.
Example one
Referring to fig. 1, a notification information processing method of the present embodiment is applied to mobile terminals of iOS13 and above systems, and depends on a message extension frame added to the system, and includes the following steps:
s100: receiving notification information sent by a push server side, and acquiring money data based on the notification information;
the following needs are: the message extension framework is mainly used for acquiring the notification message in the S100, and is a framework newly added by the iOS13 or above system, and the proposed scheme can acquire the push display content to process and realize the synchronous realization of voice broadcast and notification reminder before pushing the notification message through ordinary push (remote push).
In this embodiment, the notification message includes a transaction application name, a transaction status, and a transaction amount, for example: "XX (APP name) income 1234.56 yuan" or "XX (APP name) expenditure 1234.56 yuan" or "XX (APP name) transaction failure" or the like.
S200: preprocessing the amount data to obtain a target character string;
specifically, preprocessing the amount data to obtain a target character string, referring to fig. 2, further includes:
s210: identifying the amount data to obtain an identification result;
in this solution, the main purpose of the recognition in step S210 is to determine the length, the number of digits, the position of a decimal point, and the like of the amount data, so as to facilitate adding unit characters in step S220, and the specific recognition mode may be implemented by a preset rule or a pre-trained model.
S220: adding unit characters to the amount data based on the recognition result to obtain first processing data;
by way of example, the identification of the amount data in S210 is used as the unit of adding the amount data, for example, "1234.56", and the processed amount data is "1 thousand 2 hundred 3 ten 4 dots 56".
S230: and matching a preset character string from a database based on the notification message, and adding the preset character string to the head of the first processing data to obtain a target character string.
In this solution, the preset character string may be used to identify an individual transaction state, specifically, expressions of the transaction state such as "receipt", "payment", "transaction failure", and the like, and may also be used to identify an application name and a transaction state, where as an example of the amount in S22, a final result after processing is a character string of "XX (a certain receipt application name) receiving 1 thousand, 2 hundred 3 ten 4 dots and 56 yuan".
S300: generating a target file according to the target character string;
the message extension frame relied on in the scheme can not use the methods of AVAssetExportSession voice synthesis and AVSpeechSynthesizer broadcast in the system. When the related problem that the voice synthesis cannot be carried out in the expansion process is met, an attempt to access a voice synthesis library of a third party is made, and the problems of slow data transmission, large calculation burden of a server and the like exist in the online voice synthesis; another off-line speech synthesis has a problem of high cost, and thus the following synthesis scheme is adopted. Specifically, generating a target file (i.e. voice data) according to the target character string, with reference to fig. 3, includes the following steps:
providing a preset audio database, wherein the audio database comprises a plurality of characters or character strings, and each character or character string is associated with one audio data;
in the present embodiment of the present invention, characters or character strings such as '0-9', 'ten', 'one hundred', 'thousand', 'ten' and 'billion', 'money collection' and 'element' are preset in the audio database, and audio data corresponding to each character or character string.
S310: segmenting the target character string according to preset conditions, and sequentially obtaining at least one character or character string;
in the above embodiment, the preset condition may be a character string type, a character string position, or a preset fixed character string, for example, the preset condition may be divided according to the character string type, the character type may be divided into a plurality of character strings according to each character, and the number type may be divided into a plurality of character strings according to each number; or marking position information on each added character according to the position of the character string, for example, in the process of obtaining the target character string in the step S2, and segmenting one by one according to the position information; or, a preset fixed character string may be set, for example, a fixed character string such as "transaction success" or "payment collection" may be set, and when a character string in the target character string is consistent with the preset fixed character string, one character string may be obtained by direct division.
S320: acquiring audio data matched with each character or character string from the audio database;
s330: sequentially splicing the audio data according to the target character strings to obtain an initial file;
in this scheme, after dividing a target character string into a plurality of character strings, matching audio data corresponding to each character string from an audio database, and splicing each audio data one by one to obtain complete audio data corresponding to the target character string, but the audio data needs to be processed in splicing, rather than simply combined, so referring to fig. 4, the step S330 specifically includes the following steps:
s331: establishing blank files, and judging whether each audio data type is a PCM file one by one;
the audio data corresponding to the above character strings can be in various data formats, including but not limited to PCM, ACC, ARM, WAV, AAC, OGG, and the like.
PCM (Pulse Code Modulation), also known as Pulse Code Modulation, is a bare stream of uncompressed audio samples, which is standard digital audio data that is sampled, quantized, and encoded from an analog signal. The mobile terminal performs real-time acquisition and coding transmission on audio, and generally sets acquired audio data into PCM format data, and then codes the PCM into AAC format data for subsequent transmission.
S332: if so, reading/writing by adopting a preset data format, coding the audio data by adopting an audio converter and then writing into the blank file;
specifically, the PCM file processing is to directly read/write in a specified data format during calling, construct an Audio Converter audioconverter ref to implement Audio data encoding, and an iOS system generally uses the audioconverter to perform format conversion, which may be performed between various linear PCM Audio formats, or between a linear PCM format and other compression formats.
S333: if not, the audio data is coded by adopting an acoustic wave stream coder and then written into the blank file;
specifically, the processing of the non-PCM data format file is realized by setting a casream basicdescription sound stream to encode or decode the non-PCM data format file.
S334: and writing all audio data into the blank file to obtain an initial file.
The above steps S331-S334 all depend on the framework of the audio toolbox specially processing sound in the bottom layer of the IOS system to complete the encoding and writing of each type of audio data, sequentially traverse the audio files corresponding to all the character strings, process the audio file object with the exteudiofilerelease and close the related files, then read the audio clips in the audio file one by one with the exteudiofileread, and write the clips into the target file with the exteudiofilewrite, so that the single audio clip is successively written into the blank file to obtain the initial file, so as to achieve the effect of synthesizing audio.
S340: and configuring the initial file to obtain a target file.
In the present scheme, the configuration includes setting an audio format of the target file, specifically including attributes that DNA is not limited to sampling rate (sampling frequency: which refers to the number of times a sound sample is obtained per second), sample data types PCM, ACC, etc., byte number, frame number, channel number (mono or stereo), and bit number (i.e., sampling value or sampling value (i.e., amplitude of sampling sample)) and the like, and may open a source audio file according to a preset path to obtain the audio format of the source file, and set the audio format of the target file with reference to the source file, or directly set according to a preset template.
In the above steps S310 to S340, some processes related to the status and failure condition need to be paid attention to during the execution process, and the overall process of obtaining the target file is controlled by managing the thread and performing status monitoring.
This scheme direct system audio frequency processing tool generates the target file that is used for voice broadcast, compares in current synthetic audio frequency at the server end, and data transmission is slow, and server operation burden is big, needs extra storage space's problem, need not to reintroduce other third party storehouse simultaneously, has promoted system operation efficiency.
In the above scheme, the initial file and the target file can be uploaded to a block chain, the security and the fair transparency to the user can be ensured, the user equipment can download the abstract information from the block chain so as to check whether the priority list is tampered, and subsequently download the voice file with corresponding amount data from the block chain for voice broadcast, so that the generation process is not needed, and the voice processing efficiency is effectively improved.
The block chain referred by the application is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
S400: and carrying out voice broadcasting based on the target file, and simultaneously displaying the notification information.
Specifically, the voice broadcasting based on the target file, referring to fig. 5, includes the following steps:
an independent thread for broadcasting based on the target file and a management library associated with the independent thread are established in advance;
s410: judging whether a sound file which is executing voice broadcasting exists in the thread;
providing a management library associated with the thread, wherein the management library comprises a plurality of sound files, and each sound file corresponds to time data;
according to the scheme, the message extension logic is not in the main thread in the IOS system, when the broadcast notification is received in a short time, the problem that the subsequent notification overlaps with the previous notification broadcast and the broadcast is incomplete is solved, so that an independent thread is established, all the received notifications and the target files are added into the same queue, the voice generation process is locked to avoid the problem of multithreading, other voice files which are being broadcast are not interrupted or overlapped with other voice files when the voice broadcast of the target files is carried out, and each generated target file can be completely broadcast.
S420: if not, replacing the system sound file with the target file to perform voice broadcast;
in the above steps, the sound attribute unorganization sound in the notification body is replaced in the message extension frame and designated as the synthesized audio file, and the step is mainly to replace the system prompt tone with the generated target file to realize the voice broadcast of the target file.
S430: if yes, time data corresponding to the sound files which are performing voice broadcasting are obtained from the management group, broadcasting time points corresponding to the target files are calculated, and the target files are adopted to replace the system sound files after the broadcasting time points are reached to perform voice broadcasting.
Before judging whether a sound file which is performing voice broadcasting exists in the thread, the method comprises the following steps:
s410-1: and calculating duration data corresponding to the target file, and generating a sound file corresponding to the target file and the duration data and recording the sound file in the management library.
By calculating the time length data corresponding to the object files and recording the time length data in the management library, the broadcasting time length corresponding to each sound file can be obtained from the management library, the broadcasting sequence of each sound file can be reasonably arranged according to the broadcasting time length, the broadcasting sequence of each sound file can be well controlled after a plurality of object files are obtained or at least two message notifications are obtained successively, the incomplete broadcasting condition is reduced, the system method is called for prompting the presentation at the same time of voice broadcasting, and therefore the corresponding notification presentation can be carried out at the same time of voice broadcasting.
In addition to the above-mentioned manner of processing and generating the target file for voice broadcast according to the amount data in S100 to S400, the generated target file may be stored, and when the same message notification is encountered again, the target file may be directly obtained for voice broadcast, so that the processing efficiency is improved, so before preprocessing the amount data, referring to fig. 6, the following steps may be further included:
s200-1: providing a local database, and inquiring whether a target file matched with the amount data exists in the local database based on the amount data;
s200-2: if yes, obtaining a target file;
s200-3: if not, preprocessing the amount data, and correspondingly storing the amount data and the target file in the local database after obtaining the target file.
Through the steps S200-1 to S200-3, the target file generated each time can be stored in the local database, and the same notification information only needs to be processed once, so that the voice processing efficiency is effectively improved, and the system operation burden is reduced.
According to the scheme, the notification information of the server is received, the amount data of the notification information is extracted and processed to obtain the target character string, and the target file for voice broadcasting is directly generated through a system bottom tool (steps S310-S340) according to the target character string, so that the problems that in the prior art, an ordinary pushing mode cannot automatically wake up application, a user may not receive real-time voice feedback, and further account safety in various financial applications cannot be monitored in real time are solved, the voice broadcasting function can be realized on the premise that a main application is not opened, and inconvenience to the user and unnecessary data loading caused by the fact that the application needs to be opened in each voice broadcasting are reduced.
Example two:
referring to fig. 7, a notification information processing apparatus 5 of the present embodiment, applied to a client that receives a push by using a message extension framework, includes the following:
an obtaining module 51, configured to receive notification information sent by a push server, and obtain money data based on the notification information;
in the scheme, the message extension frame is mainly used for acquiring the notification message, the message extension frame is a frame added by the iOS13 system or the systems, the frame can be used for acquiring the push display content before pushing the notification message through common push (remote push), so that the synchronous implementation of voice broadcast and notification reminding is realized, and the notification message comprises the transaction application name, the transaction state and the transaction amount.
The preprocessing module 52 is configured to preprocess the amount data to obtain a target character string;
specifically, the preprocessing module is mainly used for determining the length, the number of digits, the position of a decimal point and the like of the money data, adding unit characters and adding preset character strings.
A generating module 53, configured to generate a target file according to the target character string;
preferably, referring to fig. 8, the generating module 53 further includes the following:
the segmentation unit 531 is configured to segment the target character string according to a preset condition, and sequentially obtain at least one character or character string;
the preset condition may be a character string type, a character string position or a preset fixed character string, or may be a mode such as a preset fixed character string according to the character string position.
A matching unit 532 for obtaining audio data matching with each character or character string from the audio database;
the executing unit 533 is configured to sequentially splice the audio data according to the target character string to obtain an initial file;
and the execution unit adopts an audio converter or a sound wave stream coder to encode according to the type of the audio data in the execution process.
The configuration unit 534 is configured to configure the initial file to obtain a target file.
The configuration in the configuration unit includes setting an audio format of the target file, specifically, the configuration includes attributes that DNA is not limited to sampling rate, sampling data types PCM, ACC, etc., byte number, frame number, channel number, bit number, etc., and a source audio file may be opened according to a preset path to obtain an audio format of the source file, and the audio format of the target file is set with reference to the source file, or directly set according to a preset template.
The broadcasting module 54 is configured to perform voice broadcasting based on the target file and display the notification information at the same time;
preferably, the announcement module 54 further includes the following:
a judging unit 541, configured to judge whether a sound file that is performing voice broadcast exists in the thread;
according to the scheme, the message extension logic is not in the main thread in the IOS system, when the broadcast notification is received in a short time, the problem that the subsequent notification overlaps with the previous notification broadcast and the broadcast is incomplete is solved, so that an independent thread is established, all the received notifications and the target files are added into the same queue, and each target file can be completely broadcast.
The first executing unit 542 is configured to, when the judging unit judges that the system sound file is the target file, replace the system sound file with the target file, and perform voice broadcast;
the second execution unit 543, configured to, if the determination result given by the determination unit is negative, obtain time data corresponding to a sound file that is performing voice broadcast from the management group, calculate a broadcast time point corresponding to the target file, and replace a system sound file with the target file after the broadcast time point is reached, so as to perform voice broadcast;
preferably, referring to fig. 9, the broadcast module 54 further includes:
the processing module 544 is configured to calculate time length data corresponding to the target file, and generate a sound file by corresponding the target file and the time length data, and record the sound file in the management library.
By calculating the time length data corresponding to the target file and recording the time length data in the management library, the broadcast time length corresponding to each prestored sound file can be obtained from the management library, and the broadcast sequence of each sound file can be reasonably arranged according to the broadcast time length.
According to the technical scheme, based on function optimization of the pedestal operation and maintenance, the notification information is obtained through the obtaining module, the amount data is extracted from the notification information, the amount data is extracted and processed through the preprocessing module to obtain the target character string, the target file for voice broadcasting is directly generated through a system bottom tool according to the target character string based on the generating module, and finally the broadcasting module is used for voice broadcasting and displaying the target file, so that the problems that in the prior art, due to the fact that system upgrading can only use a common pushing mode, a user can obtain voice broadcasting only by manually starting an application, operation is complex, the user cannot receive real-time voice feedback, and safety risk is high are solved.
According to the scheme, the generation module firstly splits the target character string according to preset conditions through the splitting unit in the processing process, then audio data matching is carried out through the matching unit based on output data of the splitting unit, finally the execution unit is adopted to encode through the audio converter or the sound wave stream encoder according to the type of the audio data to realize splicing of the plurality of audio data, a system audio processing tool is directly adopted to generate a target file for voice broadcasting, and compared with the existing problems that data transmission is slow in the process of synthesizing audio at a server end, the operation burden of the server is large, and extra storage space is needed, other third-party libraries do not need to be introduced, and the system operation efficiency is improved.
In order to overcome the problem that the short-time reception of more information leads to incomplete broadcast of part of target files, an independent thread is established for voice broadcast, the length of time for broadcasting the target files corresponding to each message is recorded by a processing module, whether the voice files which are being broadcasted are executed in the thread is judged by a judging unit in a broadcasting module, it is ensured that the target files are broadcasted after the previous voice files in the current thread are broadcasted, the overlapping of the following notification and the previous notification and broadcasting is reduced, the completeness of voice broadcast received by a user is improved, and the safety of the money data in the change process is further ensured.
Example three:
in order to achieve the above object, the present invention further provides a computer system, which includes a plurality of computer devices 6, and the components of the notification information processing apparatus 5 according to the second embodiment can be distributed in different computer devices, and the computer devices can be a smart phone, a tablet computer, a notebook computer, a desktop computer, a rack server, a blade server, a tower server, or a cabinet server (including an independent server, or a server cluster formed by a plurality of servers) that execute programs, and the like. The computer device of the embodiment at least includes but is not limited to: a memory 61, a processor 62, which may be communicatively coupled to each other via a system bus, as shown in FIG. 10. It should be noted that fig. 10 only shows a computer device with components, but it should be understood that not all of the shown components are required to be implemented, and more or fewer components may be implemented instead.
In the present embodiment, the memory 61 (i.e., a readable storage medium) includes a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the memory 61 may be an internal storage unit of the computer device, such as a hard disk or a memory of the computer device. In other embodiments, the memory 61 may be an external storage device of a computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the computer device. Of course, the memory 61 may also include both internal and external storage devices of the computer device. In this embodiment, the memory 61 is generally used for storing an operating system and various types of application software installed in the computer device, such as a program code of the notification information processing apparatus of the second embodiment. Further, the memory 51 may also be used to temporarily store various types of data that have been output or are to be output.
Processor 62 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 62 is typically used to control the overall operation of the computer device. In this embodiment, the processor 62 is configured to run the program code stored in the memory 61 or process data, for example, run the notification information processing apparatus, so as to implement the notification information processing method of the first embodiment.
The network interface 63 may comprise a wireless network interface or a wired network interface, the network interface 63 typically being used to establish a communication connection between the computer device 6 and other computer devices 6. For example, the network interface 63 is used to connect the computer device 6 to an external terminal via a network, establish a data transmission channel and a communication connection between the computer device 6 and the external terminal, and the like. The network may be a wireless or wired network such as an Intranet (Intranet), the Internet (Internet), a Global System of Mobile communication (GSM), wideband Code Division Multiple Access (WCDMA), a 4G network, a 5G network, bluetooth (Bluetooth), wi-Fi, and the like.
It is noted that fig. 10 only shows the computer device 6 with components 61-63, but it is to be understood that not all shown components are required to be implemented, and that more or less components may be implemented instead.
In this embodiment, the notification information processing apparatus 5 stored in the memory 61 may also be divided into one or more program modules, which are stored in the memory 61 and executed by one or more processors (in this embodiment, the processor 62) to complete the present invention.
Example four:
to achieve the above objects, the present invention also provides a computer readable storage system comprising a plurality of storage media such as flash memory, hard disk, multimedia card, card type memory (e.g., SD or DX memory, etc.), random Access Memory (RAM), static Random Access Memory (SRAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), programmable Read Only Memory (PROM), magnetic memory, magnetic disk, optical disk, server, app application store, etc., on which computer programs are stored, which when executed by a processor 62 implement corresponding functions. The computer-readable storage medium of the present embodiment is used to store a notification information processing apparatus, and when executed by the processor 62, implements the notification information processing method of the first embodiment.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all equivalent structures or equivalent processes performed by the present invention or directly or indirectly applied to other related technical fields are also included in the scope of the present invention.

Claims (9)

1. A method for processing notification information is applied to a user side which adopts a message extension framework to receive push, and comprises the following steps:
establishing an independent thread for broadcasting based on a target file in advance;
receiving notification information sent by a push server side, and acquiring money data based on the notification information;
preprocessing the amount data to obtain a target character string;
generating a target file according to the target character string;
carrying out voice broadcasting based on the target file under the independent thread, and simultaneously displaying the notification information;
the generating the target file comprises:
providing a preset audio database, wherein the audio database comprises a plurality of characters or character strings, and each character or character string is associated with one audio data;
segmenting the target character string according to preset conditions, and sequentially obtaining at least one character or character string;
acquiring audio data matched with each character or character string from the audio database;
sequentially splicing the audio data according to the target character strings;
establishing blank files, and judging whether each audio data type is a PCM file one by one;
if so, reading/writing by adopting a preset data format, coding the audio data by adopting an audio converter and then writing into the blank file;
if not, the audio data is coded by adopting an acoustic wave stream coder and then written into the blank file;
writing all audio data into the blank file to obtain an initial file;
and carrying out audio format configuration on the initial file to obtain a target file.
2. The notification information processing method according to claim 1, wherein the preprocessing is performed on the amount data to obtain a target character string, further comprising:
identifying the amount data to obtain an identification result;
adding unit characters to the money data based on the recognition result to obtain first processing data;
and matching a preset character string from a database based on the notification information, and adding the preset character string to the head of the first processing data to obtain a target character string.
3. The notification information processing method according to claim 1, comprising:
and uploading the initial file and the target file to a block chain.
4. The notification information processing method according to claim 1, wherein performing voice broadcast based on the target file includes:
pre-establishing a management library associated with the independent thread;
judging whether a sound file which is executing voice broadcasting exists in the thread;
if not, replacing the system sound file with the target file to perform voice broadcast;
if yes, time data corresponding to the sound file which is executing the voice broadcasting is obtained from the management library, the broadcasting time point corresponding to the target file is calculated, and the target file is adopted to replace the system sound file after the broadcasting time point is reached to perform the voice broadcasting.
5. The notification information processing method according to claim 4, wherein determining whether or not a sound file that is performing a voice broadcast exists in the thread, comprises:
and calculating duration data corresponding to the target file, and generating a sound file corresponding to the target file and the duration data and recording the sound file in the management library.
6. The notification information processing method according to claim 1, further comprising, before preprocessing the money amount data, the following:
providing a local database, and inquiring whether a target file matched with the amount data exists in the local database based on the amount data;
if yes, obtaining a target file;
if not, preprocessing the amount data, and correspondingly storing the amount data and the target file in the local database after obtaining the target file.
7. A notification information processing apparatus, applied to a client that receives a push using a message extension framework, comprising:
the acquisition module is used for receiving notification information sent by the push server and acquiring the amount data based on the notification information;
the preprocessing module is used for preprocessing the amount data to obtain a target character string;
the generating module is used for generating a target file according to the target character string; the generating the target file comprises: providing a preset audio database, wherein the audio database comprises a plurality of characters or character strings, and each character or character string is associated with one piece of audio data; segmenting the target character string according to preset conditions, and sequentially obtaining at least one character or character string; acquiring audio data matched with each character or character string from the audio database; sequentially splicing the audio data according to the target character strings; establishing blank files, and judging whether each audio data type is a PCM file one by one; if so, reading/writing by adopting a preset data format, coding the audio data by adopting an audio converter and then writing into the blank file; if not, adopting an acoustic wave stream encoder to encode the audio data and then writing the audio data into the blank file; writing all audio data into the blank file to obtain an initial file; carrying out audio format configuration on the initial file to obtain a target file;
the broadcasting module is used for pre-establishing an independent thread for broadcasting based on the target file; and carrying out voice broadcasting based on the target file under the independent thread, and simultaneously displaying the notification information.
8. A computer system comprising a plurality of computer devices, each computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processors of the plurality of computer devices collectively implement the steps of the notification information processing method of any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium comprising a plurality of storage media each storing thereon a computer program, wherein the computer programs stored in the plurality of storage media, when executed by a processor, collectively implement the steps of the notification information processing method according to any one of claims 1 to 6.
CN202010904027.9A 2020-09-01 2020-09-01 Notification information processing method, device, computer system and readable storage medium Active CN112039991B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010904027.9A CN112039991B (en) 2020-09-01 2020-09-01 Notification information processing method, device, computer system and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010904027.9A CN112039991B (en) 2020-09-01 2020-09-01 Notification information processing method, device, computer system and readable storage medium

Publications (2)

Publication Number Publication Date
CN112039991A CN112039991A (en) 2020-12-04
CN112039991B true CN112039991B (en) 2023-02-07

Family

ID=73592197

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010904027.9A Active CN112039991B (en) 2020-09-01 2020-09-01 Notification information processing method, device, computer system and readable storage medium

Country Status (1)

Country Link
CN (1) CN112039991B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112615869B (en) * 2020-12-22 2022-08-26 平安银行股份有限公司 Audio data processing method, device, equipment and storage medium
CN115086888B (en) * 2021-03-10 2023-10-31 Oppo广东移动通信有限公司 Message notification method and device and electronic equipment
CN113055277B (en) * 2021-03-10 2023-04-25 维沃移动通信有限公司 Message notification method, device and storage medium
CN113542486A (en) * 2021-06-24 2021-10-22 北京天九云电子商务有限公司 Method and device for voice broadcast notification, storage medium and electronic equipment
CN113506558A (en) * 2021-07-07 2021-10-15 深圳汇商通盈科技有限公司 Method, device and equipment for collection and broadcast and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656548A (en) * 2009-08-04 2010-02-24 中兴通讯股份有限公司 Wireless terminal and method for implementing voice broadcasting function for short-range communication
EP2530948A1 (en) * 2011-06-03 2012-12-05 Samsung Electronics Co., Ltd. Method and device for demultiplexing audio & video data of multimedia file
CN103093753A (en) * 2012-12-14 2013-05-08 沈阳美行科技有限公司 Navigation system user voice custom method
CN108901056B (en) * 2018-06-21 2020-09-08 百度在线网络技术(北京)有限公司 Method and device for information interaction
CN109086026B (en) * 2018-07-17 2020-07-03 阿里巴巴集团控股有限公司 Broadcast voice determination method, device and equipment
CN109584859A (en) * 2018-11-07 2019-04-05 上海指旺信息科技有限公司 Phoneme synthesizing method and device
CN110503960B (en) * 2019-09-26 2022-02-11 大众问问(北京)信息科技有限公司 Real-time uploading method, device and equipment of voice recognition result and storage medium

Also Published As

Publication number Publication date
CN112039991A (en) 2020-12-04

Similar Documents

Publication Publication Date Title
CN112039991B (en) Notification information processing method, device, computer system and readable storage medium
US11758088B2 (en) Method and apparatus for aligning paragraph and video
US20200349974A1 (en) Systems and methods for editing a video
US11775776B2 (en) Method and apparatus for processing information
CN109087667B (en) Voice fluency recognition method and device, computer equipment and readable storage medium
CN107516534A (en) Voice information comparison method and device and terminal equipment
CN110532107B (en) Interface calling method, device, computer equipment and storage medium
CN110798578A (en) Incoming call transaction management method and device and related equipment
CN112131382B (en) Method and device for identifying high-rise areas of civil problems and electronic equipment
CN113095202A (en) Data segmentation method and device in double-record data quality inspection
CN111429282B (en) Transaction money back-flushing method and device based on money back-flushing model migration
US11488603B2 (en) Method and apparatus for processing speech
CN113903363A (en) Violation detection method, device, equipment and medium based on artificial intelligence
CN112669850A (en) Voice quality detection method and device, computer equipment and storage medium
CN112712793A (en) ASR (error correction) method based on pre-training model under voice interaction and related equipment
US20240233708A1 (en) Method and device for generating speech recognition training set
CN112992151B (en) Speech recognition method, system, device and readable storage medium
CN114999442A (en) Self-adaptive character-to-speech method based on meta learning and related equipment thereof
CN113111230B (en) Regular expression-based alarm receiving text home address extraction method and device
CN112306560B (en) Method and apparatus for waking up an electronic device
CN113409792A (en) Voice recognition method and related equipment thereof
CN112615869B (en) Audio data processing method, device, equipment and storage medium
CN113111238B (en) Regular expression-based extreme behavior recognition method, device, equipment and medium
CN113111236B (en) Regular expression-based group identification method, regular expression-based group identification device, regular expression-based group identification equipment and regular expression-based group identification medium
CN113111237B (en) Regular expression-based tissue identification method, device, equipment and 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
GR01 Patent grant
GR01 Patent grant