CN112039991A - 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
CN112039991A
CN112039991A CN202010904027.9A CN202010904027A CN112039991A CN 112039991 A CN112039991 A CN 112039991A CN 202010904027 A CN202010904027 A CN 202010904027A CN 112039991 A CN112039991 A CN 112039991A
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.)
Granted
Application number
CN202010904027.9A
Other languages
Chinese (zh)
Other versions
CN112039991B (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, apparatus, computer system, and readable storage medium.
Background
The notification reminder is a necessary function of the mobile device, and can inform the user of certain information in time when the application program is not happy any more, such as new message reception, new mail reception, program downloading completion, backlog and the like.
The inventor of the invention discovers in research that the notification voice broadcast realized by the user without starting related applications in an IOS system is realized by a VoIP push (PushKit) technology, the VoIP push technology is a special long connection, so that the application does not need to be kept alive independently, push messages can be awakened to be applied at the background, the advantages of high priority and low delay are achieved, but along with the optimization and upgrade of the system, the push technology cannot be invoked in a non-inductive way, namely, the push of the notification reminder can be realized only by common push, but the push mode cannot awaken the application independently, the voice broadcast can be obtained only by manually starting the application by the user, the operation is complicated, and after a certain application runs at the background for a long time, the system may intelligently close applications, and the user may not receive real-time voice feedback and thus cannot monitor account security in each financial application 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 string 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 string 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, include:
pre-establishing an independent thread for broadcasting based on the target file and 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 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, applied to a user side that receives a push using a message extension framework, including:
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 including a plurality of computer devices, each of the computer devices including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processors of the plurality of computer devices collectively implement the steps of the above 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 including a plurality of storage media, each storage medium having stored thereon a computer program, the computer programs stored in the plurality of storage media collectively realizing the steps of the above notification information processing method when executed by a processor.
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 processing method according to the present invention;
fig. 2 is a flowchart of preprocessing the amount data to obtain a target character string in the 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 embodiment of the notification information processing method according to the present invention;
fig. 5 is a flowchart of voice broadcasting based on the target file in the first embodiment of the notification information processing method according to the present invention;
FIG. 6 is a flowchart of a notification information 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 diagram illustrating program modules of a generation module in a second embodiment of a notification information processing apparatus according to the present 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 and 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 described in further 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 amount data is extracted and processed from the notification information 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 adopted to perform voice broadcasting on the target file and display the information, so that the problems that an application cannot be awakened independently in a common pushing mode in the prior art, a user may not receive real-time voice feedback, and further 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 includes the following steps depending on a message extension frame added to the system:
s100: receiving notification information sent by a push server side, and acquiring money data based on the notification information;
the following should be mentioned: the message extension framework is mainly used for acquiring the notification message in the S100, and is a framework added by the iOS13 and the above systems, and the proposed solution can acquire the push display content before pushing the notification message by ordinary push (remote push), so as to achieve the synchronous implementation of voice broadcast and notification reminder.
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", and 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 the present scheme, the main purpose of the recognition in step S210 is to determine the length, the number of digits, the position of a decimal point, etc. of the amount data, so that it is convenient to add 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 described above is the unit of addition of the amount data, for example, "1234.56", and after processing, the value is "1 thousand 2 hundred 3 ten 4 dots 56".
S230: 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.
In this scheme, 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, taking the amount in S22 as an example, a final result after processing is a character string of "XX (a certain receipt application name) 1 thousand, 2 hundred 3 ten 4 dots 56 yuan receipt".
S300: generating a target file according to the target character string;
the message extension framework 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 encountered, 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 scheme, characters or character strings such as 0-9, ten, hundred, thousand, ten, hundred, receipt, meta and the like, and audio data corresponding to each character or character string are preset in the audio database.
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 character string position, for example, in the process of obtaining the target character string in the above 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 string 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-mentioned character strings can be in various types of 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 converted from analog signals by sampling, quantizing, and encoding. 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 is directly read/written in a specified data format during calling, and an Audio Converter AudioConverterRef is constructed to realize Audio data encoding, and an iOS system generally uses the AudioConverterRef for format conversion, and can convert between various linear PCM Audio formats and between the linear PCM Audio formats 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 to set a cas basedescription 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 to S334 all depend on a frame of the audio toolbox in the bottom layer of the IOS system for processing the sound to complete 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 exteudio filerelease and close the related file, then read the audio clips in the audio file one by one with the exteudio fileread, and write the clips into the target file with the exteudio filewrite, 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 the 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:
pre-establishing an independent thread for broadcasting based on the target file and a management library associated with the independent thread;
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 for voice broadcasting.
Before judging whether there is a sound file which is performing voice broadcast 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 target 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 target files are obtained or at least two message notifications are obtained successively, the incomplete broadcasting condition is reduced, the system method is called to call the communication display at the same time of voice broadcasting, and therefore the corresponding notification display 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 framework is mainly used for acquiring the notification message, the message extension framework is a framework added by the iOS13 and the systems above, the framework can be used for acquiring the push display content before pushing the notification message through ordinary 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 broadcasting 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 smartphones, tablet computers, notebook computers, desktop computers, rack servers, blade servers, tower servers, or rack servers (including independent servers or a server cluster formed by a plurality of servers) which 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 also be an external storage device of the 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), or 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, and the network interface 63 is typically 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 including a plurality of storage media, such as 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, a server, an App application store, etc., on which a computer program is stored, which when executed by a processor 62, implements corresponding functions. The computer-readable storage medium of the present embodiment is used for storing 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 above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

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:
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.
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 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.
3. The notification information processing method according to claim 1, wherein generating a target file from 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 string 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.
4. The method for processing notification information according to claim 3, wherein the obtaining an initial file by sequentially splicing the audio data according to the target character string includes:
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.
5. The notification information processing method according to claim 1, wherein performing voice broadcast based on the target file includes:
pre-establishing an independent thread for broadcasting based on the target file and 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 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.
6. The notification information processing method according to claim 5, 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.
7. 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.
8. 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 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.
9. 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 7 when executing the computer program.
10. 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 7.
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 true CN112039991A (en) 2020-12-04
CN112039991B 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)

Cited By (5)

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

Citations (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
US20120307148A1 (en) * 2011-06-03 2012-12-06 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
CN109086026A (en) * 2018-07-17 2018-12-25 阿里巴巴集团控股有限公司 Broadcast the determination method, apparatus and equipment of voice
CN109584859A (en) * 2018-11-07 2019-04-05 上海指旺信息科技有限公司 Phoneme synthesizing method and device
CN110503960A (en) * 2019-09-26 2019-11-26 大众问问(北京)信息科技有限公司 Uploaded in real time method, apparatus, equipment and the storage medium of speech recognition result
US20190392829A1 (en) * 2018-06-21 2019-12-26 Baidu Online Network Technology (Beijing) Co., Ltd. Method and apparatus for interacting information

Patent Citations (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
US20120307148A1 (en) * 2011-06-03 2012-12-06 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
US20190392829A1 (en) * 2018-06-21 2019-12-26 Baidu Online Network Technology (Beijing) Co., Ltd. Method and apparatus for interacting information
CN109086026A (en) * 2018-07-17 2018-12-25 阿里巴巴集团控股有限公司 Broadcast the determination method, apparatus and equipment of voice
CN109584859A (en) * 2018-11-07 2019-04-05 上海指旺信息科技有限公司 Phoneme synthesizing method and device
CN110503960A (en) * 2019-09-26 2019-11-26 大众问问(北京)信息科技有限公司 Uploaded in real time method, apparatus, equipment and the storage medium of speech recognition result

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112615869A (en) * 2020-12-22 2021-04-06 平安银行股份有限公司 Audio data processing method, device, equipment and storage medium
CN112615869B (en) * 2020-12-22 2022-08-26 平安银行股份有限公司 Audio data processing method, device, equipment and storage medium
CN113055277A (en) * 2021-03-10 2021-06-29 维沃移动通信有限公司 Message notification method, device and storage medium
CN115086888A (en) * 2021-03-10 2022-09-20 Oppo广东移动通信有限公司 Message notification method and device and electronic equipment
CN113055277B (en) * 2021-03-10 2023-04-25 维沃移动通信有限公司 Message notification method, device and storage medium
CN115086888B (en) * 2021-03-10 2023-10-31 Oppo广东移动通信有限公司 Message notification method and device and electronic equipment
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

Also Published As

Publication number Publication date
CN112039991B (en) 2023-02-07

Similar Documents

Publication Publication Date Title
CN112039991B (en) Notification information processing method, device, computer system and readable storage medium
EP3451328A1 (en) Method and apparatus for verifying information
US11758088B2 (en) Method and apparatus for aligning paragraph and video
US11775776B2 (en) Method and apparatus for processing information
US20200349974A1 (en) Systems and methods for editing a video
CN111276123B (en) Method and device for voice broadcasting message, computer equipment and storage medium
CN111343162B (en) System secure login method, device, medium and electronic equipment
CN107516534A (en) A kind of comparison method of voice messaging, device and terminal device
CN110532107B (en) Interface calling method, device, computer equipment and storage medium
CN112445596B (en) Data importing method, system and storage medium based on multithreading
CN112860662B (en) Automatic production data blood relationship establishment method, device, computer equipment and storage medium
CN111429282B (en) Transaction money back-flushing method and device based on money back-flushing model migration
US11488603B2 (en) Method and apparatus for processing speech
CN112131382B (en) Method and device for identifying high-rise areas of civil problems and electronic equipment
CN112992151B (en) Speech recognition method, system, device and readable storage medium
CN112306560B (en) Method and apparatus for waking up an electronic device
CN115312032A (en) Method and device for generating speech recognition training set
CN113744712A (en) Intelligent outbound voice splicing method, device, equipment, medium and program product
CN112712793A (en) ASR (error correction) method based on pre-training model under voice interaction and related equipment
CN113111234A (en) Regular expression-based alarm condition category determination method and device
CN112615869B (en) Audio data processing method, device, equipment and storage medium
CN114218441B (en) Method for calling and displaying UOF document
CN111832317B (en) Intelligent information flow guiding method and device, computer equipment and readable storage medium
CN112614480B (en) Voice broadcasting method, device, equipment and storage medium
CN117395008A (en) Certificate monitoring method, system, computer equipment and storage medium

Legal Events

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