[go: up one dir, main page]

CN115312025B - Voice broadcast method and device, electronic device, and storage medium - Google Patents

Voice broadcast method and device, electronic device, and storage medium

Info

Publication number
CN115312025B
CN115312025B CN202210910027.9A CN202210910027A CN115312025B CN 115312025 B CN115312025 B CN 115312025B CN 202210910027 A CN202210910027 A CN 202210910027A CN 115312025 B CN115312025 B CN 115312025B
Authority
CN
China
Prior art keywords
information
code value
sequence
serial number
value
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
CN202210910027.9A
Other languages
Chinese (zh)
Other versions
CN115312025A (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.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology 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 Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202210910027.9A priority Critical patent/CN115312025B/en
Publication of CN115312025A publication Critical patent/CN115312025A/en
Application granted granted Critical
Publication of CN115312025B publication Critical patent/CN115312025B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/02Methods for producing synthetic speech; Speech synthesisers
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/48Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use
    • G10L25/51Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use for comparison or discrimination

Landscapes

  • Engineering & Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本发明提供了一种语音播报方法及装置、电子设备、存储介质,该方法包括:获取目标信息集合,其中,所述目标信息集合中含有多个信息,所述多个信息中含有待播报信息;通过对所述目标信息集合中的每个信息进行编码,得到每个信息对应的编码值,以形成编码序列,其中,所述编码序列中的每个编码值对应一个序号;从所述编码序列中查找出编码值相同且存在序号连续性的子序列;将所述子序列中包含的待播报信息进行合成,得到合成信息;对所述合成信息进行语音播报。通过本发明,解决了相关技术中现有的语音播报方式较为繁琐,存在用户体验差的问题。

The present invention provides a voice broadcast method and device, an electronic device, and a storage medium. The method comprises: obtaining a target information set, wherein the target information set contains multiple information, and the multiple information contains information to be broadcast; encoding each information in the target information set to obtain a code value corresponding to each information to form a code sequence, wherein each code value in the code sequence corresponds to a sequence number; finding a subsequence from the code sequence with the same code value and continuous sequence number; synthesizing the information to be broadcast contained in the subsequence to obtain synthesized information; and voice broadcasting the synthesized information. The present invention solves the problem that the existing voice broadcast method in the related art is relatively cumbersome and has a poor user experience.

Description

Voice broadcasting method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of voice control, in particular to a voice broadcasting method and device, electronic equipment and a storage medium.
Background
In the related art, the playing mode of the event to be broadcasted is generally experienced by the user. For example, taking an alarm clock as an example, assuming that an alarm clock is set at a moment of monday, tuesday, wednesday, friday and friday, the system cannot analyze the particularity of the item to be broadcasted when performing the voice broadcasting, and the alarm clock is mechanically and directly broadcasted at a moment of monday, friday and friday, and is not very friendly in experience.
That is, the existing voice broadcasting mode is complicated, and the problem of poor user experience exists.
Disclosure of Invention
In view of the above problems, the present invention provides a method and apparatus for voice broadcasting, an electronic device, and a storage medium, so as to at least solve the technical problem that the existing voice broadcasting method in the related art is complicated and has poor user experience.
In a first aspect, a voice broadcasting method is provided, including:
Acquiring a target information set, wherein the target information set contains a plurality of pieces of information, and the plurality of pieces of information contain information to be broadcasted;
Coding each piece of information in the target information set to obtain a coding value corresponding to each piece of information so as to form a coding sequence, wherein each coding value in the coding sequence corresponds to a serial number;
searching subsequences with the same coding value and serial number continuity from the coding sequence;
Synthesizing the information to be broadcasted contained in the subsequence to obtain synthesized information;
and carrying out voice broadcasting on the synthesized information.
Optionally, each piece of information in the target information set is encoded to obtain an encoded value corresponding to each piece of information, so as to form an encoded sequence, which includes:
Counting the total quantity of all information in the target information set;
sorting each piece of information in the target information set based on the total number to obtain a sorting set, wherein each piece of information in the sorting set corresponds to a sequence number;
And encoding information corresponding to each serial number in the sequencing set to obtain the encoding sequence.
Optionally, the encoding the information corresponding to each sequence number in the ordered set to obtain the encoded sequence includes:
And encoding the information to be broadcasted in the sorting set into a first encoding value by adopting a binarization encoding mode, and encoding the information except the information to be broadcasted in the plurality of pieces of information in the sorting set into a second encoding value, wherein the first encoding value and the second encoding value are different values.
Optionally, the searching the subsequence with the same coding value and serial number continuity from the coding sequence includes:
Comparing each code value in the code sequence with a preset code value in sequence, wherein the preset code value is used for indicating information to be broadcasted;
when the first coded value in the coded sequence is detected to be the same as the preset coded value for the first time, recording the serial number corresponding to the first coded value as the first serial number, and continuing to compare the next coded value with the preset coded value;
recording a sequence number corresponding to a third code value before the second code value as a last sequence number until the second code value in the code sequence is detected to be different from the preset code value;
and taking a first sequence consisting of the first code value, the code value between the first bit sequence number and the last bit sequence number and the third code value as the subsequence.
Optionally, the subsequence is plural, and after detecting that the second code value in the code sequence is different from the preset code value, the method further includes:
continuously comparing a fourth code value with the preset code value, wherein the sequence number of the fourth code value is arranged behind the second code value in the code sequence;
If the fourth code value is the same as the preset code value, recording that the serial number corresponding to the fourth code value is a second first serial number;
When the fifth code value in the code sequence is detected to be different from the preset code value, the serial number corresponding to the sixth code value before the fifth code value is recorded as the second last serial number;
And forming a second sequence by the fourth code value, the code value between the second first bit sequence number and the second last bit sequence number and the sixth code value so as to identify a plurality of subsequences in the code sequence.
Optionally, the subsequence includes a plurality of information to be broadcasted, and the synthesizing the information to be broadcasted included in the subsequence to obtain synthesized information includes:
analyzing semantic features of each piece of information to be broadcasted;
And according to semantic features and serial number continuity of each piece of information to be broadcasted, carrying out semantic combination on the plurality of pieces of information to be broadcasted to obtain the synthesized information.
Optionally, the number of the subsequences is multiple, the information to be broadcasted contained in the subsequences is synthesized, and after the synthesis information is obtained, the method further includes:
sequencing and combining a plurality of pieces of synthesis information corresponding to the plurality of subsequences to obtain combined information;
And carrying out voice broadcasting on the combined information.
In a second aspect, there is provided a voice broadcasting apparatus, including:
The system comprises an acquisition module, a broadcasting module and a broadcasting module, wherein the acquisition module is used for acquiring a target information set, wherein the target information set contains a plurality of pieces of information, and the plurality of pieces of information contain information to be broadcasted;
The coding module is used for obtaining a coding value corresponding to each piece of information by coding each piece of information in the target information set so as to form a coding sequence, wherein each coding value in the coding sequence corresponds to a sequence number;
the searching module is used for searching subsequences with the same coding value and serial number continuity from the coding sequence;
The synthesis module is used for synthesizing the information to be broadcasted contained in the subsequence to obtain synthesis information;
And the first broadcasting module is used for carrying out voice broadcasting on the synthesized information.
Optionally, the encoding module includes:
A statistics unit, configured to count the total number of all information in the target information set;
the sorting unit is used for sorting each piece of information in the target information set based on the total quantity to obtain a sorting set, wherein each piece of information in the sorting set corresponds to a sequence number;
And the coding unit is used for coding the information corresponding to each serial number in the sequencing set to obtain the coding sequence.
Optionally, the encoding unit is configured to encode information to be broadcasted in the sorting set into a first encoded value by adopting a binarization encoding manner, and encode information except for the information to be broadcasted in the plurality of pieces of information in the sorting set into a second encoded value, where the first encoded value and the second encoded value are different values.
Optionally, the search module includes:
The first comparison unit is used for sequentially comparing each code value in the code sequence with a preset code value, wherein the preset code value is used for indicating information to be broadcasted;
The first recording unit is used for recording the serial number corresponding to the first code value as the first serial number and continuously comparing the next code value with the preset code value when the first code value in the code sequence is detected to be the same as the preset code value for the first time;
The second recording unit is used for recording that the sequence number corresponding to the third code value before the second code value is the last sequence number until the second code value in the code sequence is detected to be different from the preset code value;
And the first determining unit is used for taking a first sequence formed by the first code value, the code value between the first bit sequence number and the last bit sequence number and the third code value as the subsequence.
Optionally, the number of the subsequences is plural, and after detecting that the second code value in the code sequence is different from the preset code value, the apparatus further includes:
The second comparison unit is used for continuously comparing a fourth code value with the preset code value, wherein the sequence number of the fourth code value is arranged behind the second code value in the code sequence;
The third recording unit is used for recording that the serial number corresponding to the fourth coding value is a second first-bit serial number when the fourth coding value is the same as the preset coding value;
A fourth recording unit, configured to record, until it is detected that a fifth encoded value in the encoded sequence is different from the preset encoded value, a sequence number corresponding to a sixth encoded value before the fifth encoded value as a second last sequence number;
And the second determining unit is used for forming a second sequence from the fourth code value, the code value between the second first bit sequence number and the second last bit sequence number and the sixth code value so as to identify a plurality of subsequences in the code sequence.
Optionally, the subsequence includes a plurality of information to be broadcasted, and the synthesizing module includes:
the analysis unit is used for analyzing semantic features of each piece of information to be broadcasted;
and the combination unit is used for semantically combining the plurality of information to be broadcasted according to the semantic features and serial number continuity of each information to be broadcasted to obtain the synthesized information.
Optionally, the number of the subsequences is multiple, the information to be broadcasted contained in the subsequences is synthesized, and after the synthesized information is obtained, the device further includes:
the combination module is used for sequencing and combining a plurality of pieces of synthesis information corresponding to the plurality of subsequences to obtain combination information;
and the second broadcasting module is used for carrying out voice broadcasting on the combined information.
In a third aspect, there is also provided an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of the above-described method embodiments.
In a fourth aspect, there is also provided a storage medium having stored therein a computer program, wherein the computer program is arranged to perform the steps of the above-described apparatus embodiments when run.
The voice broadcasting method comprises the steps of firstly, obtaining a target information set containing information to be broadcasted, then, encoding each piece of information in the target information set to obtain a coding sequence, wherein each coding value in the coding sequence corresponds to a serial number, then, searching sub-sequences which are identical in coding value and have serial number continuity from the coding sequence, synthesizing the information to be broadcasted and contained in the sub-sequences to obtain synthesized information, analyzing the data continuity of the information to be broadcasted, synthesizing the information to be broadcasted, finally, performing voice broadcasting on the synthesized information, simplifying the information to be broadcasted, and performing voice broadcasting on the simplified information, so that the problem that an existing voice broadcasting mode in related technology is complex is solved, and the effect of improving user experience is achieved.
Drawings
In order to more clearly illustrate the technical solution of the embodiments of the present invention, the drawings that are required to be used in the description of the embodiments of the present invention will be briefly described below.
Fig. 1 is a flowchart of a voice broadcasting method according to an embodiment of the present invention;
fig. 2 is a flowchart of an optimization scheme of voice broadcasting according to an embodiment of the present invention;
fig. 3 is a specific flowchart of an example of voice broadcasting according to an embodiment of the present invention;
Fig. 4 is a schematic flow chart of a voice broadcasting scheme according to an embodiment of the present invention;
Fig. 5 is a block diagram of a voice broadcasting device according to an embodiment of the present invention;
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that such use is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "include" and variations thereof are to be interpreted as open-ended terms that mean "include, but are not limited to.
In order to solve the technical problems in the related art, a voice broadcasting method is provided in this embodiment. The following describes the technical scheme of the present invention and how the technical scheme of the present invention solves the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.
The method provided by the embodiment of the invention can be applied to any needed electronic equipment, for example, the method can be used for electronic equipment such as a server, a terminal and the like, is not particularly limited, and is convenient to describe and is called as the electronic equipment hereinafter.
Fig. 1 is a flowchart of a voice broadcasting method according to an embodiment of the present invention, as shown in fig. 1, the flowchart includes the following steps:
Step S102, a target information set is obtained, wherein the target information set contains a plurality of pieces of information, and the plurality of pieces of information contain information to be broadcasted;
The information to be broadcasted in this embodiment may be a matter to be broadcasted, or data to be broadcasted, and the target information set may be a set of the matter to be broadcasted or the data to be broadcasted;
step S104, each piece of information in the target information set is encoded to obtain an encoded value corresponding to each piece of information so as to form an encoded sequence, wherein each encoded value in the encoded sequence corresponds to a serial number;
Step S106, finding out the subsequence with the same code value and serial number continuity from the code sequence;
step S108, synthesizing the information to be broadcasted contained in the subsequence to obtain synthesized information;
Step S110, voice broadcasting is carried out on the synthesized information.
In an alternative embodiment of the present disclosure, fig. 2 is a flowchart of an optimization scheme of voice broadcast, as shown in fig. 2, where system data is acquired, then information is extracted from the system data, the extracted information is processed to analyze data features of the extracted information, and then a data structure is synthesized according to the features of the data, so as to simplify complex system data, obtain a synthesis result, output the synthesis result and perform voice broadcast, and in a specific scene range, the system data is sequentially played from sequential play to sequential recognition, thereby bringing more visual experience and saving time on the premise of not losing information. Thereby realizing the beneficial effect of intelligently broadcasting the system data.
The voice broadcasting method comprises the steps of firstly, obtaining a target information set containing information to be broadcasted, then, encoding each piece of information in the target information set to obtain a coding sequence, wherein each coding value in the coding sequence corresponds to a serial number, then, searching sub-sequences which are identical in coding value and have serial number continuity from the coding sequence, synthesizing the information to be broadcasted and contained in the sub-sequences to obtain synthesized information, analyzing the data continuity of the information to be broadcasted, synthesizing the information to be broadcasted, finally, performing voice broadcasting on the synthesized information, simplifying the information to be broadcasted, and performing voice broadcasting on the simplified information, so that the problem that an existing voice broadcasting mode in related technology is complex is solved, and the effect of improving user experience is achieved.
The embodiment of the invention provides a possible implementation manner, wherein the step S104 comprises the steps of counting the total number of all information in the target information set, sorting each information in the target information set based on the total number to obtain a sorting set, wherein each information in the sorting set corresponds to a serial number, and encoding the information corresponding to each serial number in the sorting set to obtain a coding sequence.
Taking a mobile phone alarm clock as an example, 7 days are provided every week, when the alarm clock from Monday to Wednesday is set, namely 3 days are the alarm clocks to be broadcasted, and 4 days are the alarm clocks without broadcasting, the system algorithm firstly counts the total number of system data, namely 7, then sets a serial number according to the total number of the alarm clocks to order each alarm clock, and then codes each alarm clock after ordering to obtain the coding sequence. Further, a binarization coding mode is adopted, information to be broadcasted in the sorting set is coded into a first coding value, and information except the information to be broadcasted in the plurality of pieces of information in the sorting set is coded into a second coding value, wherein the first coding value and the second coding value are different values.
According to the above embodiment, a binarization encoding strategy is adopted to encode each alarm clock after sorting, i.e. the alarm clock is set on monday, friday, and for the information to be broadcasted, an encoding value 1 (i.e. the first encoding value) is adopted to encode, the alarm clock is not needed on the friday, the friday and the friday, and the broadcasting is not needed, the code value 0 (i.e. the second code value described above) is used for the encoding, the ordered and encoded coding sequence is obtained, i.e., [1, 0], wherein the sequence numbers are [1,2,3,4,5,6,7] in sequence.
Therefore, the data value processing of the event to be broadcasted is realized, and the data characteristics and the specificity of the system data can be more intuitively analyzed.
In specific implementation, the step S108 includes comparing each code value in the code sequence with a preset code value in turn, wherein the preset code value is used for indicating information to be broadcasted, recording a sequence number corresponding to the first code value as a first sequence number when the first code value in the code sequence is detected to be the same as the preset code value for the first time, continuing to compare the next code value with the preset code value, recording a sequence number corresponding to a third code value before the second code value as a last sequence number until the second code value in the code sequence is detected to be different from the preset code value, and taking the code value among the first code value, the first sequence number, the last sequence number and the third code value as a sub-sequence.
Taking a mobile phone alarm clock as an example, fig. 3 is a specific flowchart of a voice broadcasting example provided according to an embodiment of the present invention, as shown in fig. 3, for seven days per week, when setting an alarm clock from monday to wednesday, the system algorithm firstly counts the total amount of system data to obtain a coded sequence after sorting and coding, i.e., [1, 0], wherein the serial numbers are [1,2,3,4,5,6,7] in sequence, then, by analyzing the data characteristics of the system data, the first 3 elements in the coded sequence are 1, i.e., 1,2,3 are found to be continuous 1, and then, the corresponding alarm clock from monday to wednesday is synthesized to obtain monday, so as to find the subsequence to be broadcasted from the coded sequence. If the system data are broadcast by adopting the existing voice broadcasting mode, the system algorithm broadcasts that the alarm clock is available at a certain moment of Monday and Tuesday when inquiring the alarm clock, and the user experience is poor.
Further, the number of the subsequences is multiple, after the fact that the second code value in the code sequence is different from the preset code value is detected, the fourth code value, the sequence numbers of which are arranged after the second code value, in the code sequence are continuously compared with the preset code value, if the fourth code value is identical to the preset code value, the sequence number corresponding to the fourth code value is recorded as a second first bit sequence number, when the fact that the fifth code value in the code sequence is different from the preset code value is detected, the sequence number corresponding to the sixth code value before the fifth code value is recorded as a second last bit sequence number, and the code value among the fourth code value, the second first bit sequence number, the second last bit sequence number and the sixth code value are formed into the second sequence, so that multiple subsequences in the code sequence can be identified.
In this embodiment, especially when applied to similar scenes and processing more big data, the beneficial effects of the embodiment of the invention are obviously reflected, for example, 70 number broadcasts are selected from 100 numbers, and the searched subsequences have [1-30] [40-45] [60-74] [75-96], namely, a plurality of subsequences are searched by the method, so that the method of broadcasting the plurality of subsequences is simplified, and the experience and broadcasting time of the scheme can be well optimized.
Further, the subsequence comprises a plurality of pieces of information to be broadcasted, semantic characteristics of each piece of information to be broadcasted are analyzed, and the plurality of pieces of information to be broadcasted are subjected to semantic combination according to the semantic characteristics and serial number continuity of each piece of information to be broadcasted, so that composite information is obtained.
Taking 30 number broadcasting as an example of 100 numbers, according to a traditional broadcasting mode, the system broadcasts 30 times and sequentially broadcasts 30 numbers, and according to the embodiment of the invention, if the sequence with continuous serial numbers in the 30 numbers is analyzed, namely [1-30], the 30 numbers can be broadcasted by broadcasting 1 time, and the broadcasting result is optimally output under the condition that the information quantity is ensured to be finished.
Optionally, the number of the subsequences is multiple, the multiple synthesized information corresponding to the subsequences is sequenced and combined to obtain combined information, and voice broadcasting is carried out on the combined information.
Taking the example that 70 numbers are selected from 100 numbers for broadcasting, if a plurality of sequences with continuous serial numbers exist in the 70 numbers, namely [1-30] [40-45] [60-74] [75-96], the 70 numbers can be broadcasted through 4 times of broadcasting, and the output broadcasting is optimized under the condition that the information quantity is ensured to be finished.
According to the embodiment of the invention, the output result is optimized under the condition that the information quantity is complete by analyzing the data characteristics, the broadcasting system is optimized by utilizing the formulated rule, the continuous date is broadcasted by using a more concise language assembled under the condition that the information is not lost by taking a mobile phone as an example, the user experience is good, and the benefit brought in time is obvious under the condition that other data quantities are large.
The following describes the scheme provided by the embodiment of the present invention with reference to a specific embodiment:
Fig. 4 is a schematic flow chart of a voice broadcasting scheme according to an embodiment of the present invention, as shown in fig. 4, the system will broadcast a total number of 15 people, wherein the number of selected people is 8, and if broadcasting is performed in a conventional manner, the broadcasting is performed one by one in a manner of No. 1, no. 2, no. 3, no. 8. After optimization according to the system, broadcasting is performed according to the modes from No. 1 to No. 3, from No. 8 to No. 10, and from No. 14 to No. 15.
The specific implementation process is as follows:
Firstly, counting the total number of the data sets to be 15, creating an initial data set with the size of 15, setting the selected data set to be 1, obtaining a data set consisting of 0 and 1 at the moment, then marking the serial number 1-15 of each data, marking the serial number with the first bit of 1 at the moment to obtain the coding sequence, judging the data after the coding sequence until the data is in an unselected state (i.e. the information which is not broadcasted), and recording the serial number of the first serial number to be 1-3. And detecting the data by using the same method, finally obtaining the data of [1-3] [8-10] [14-15], and finally synthesizing the data and broadcasting.
The method is only used as a simple example, under the condition that the larger the total number of data is, the more data is continuously selected, the more the system is optimized to output, the more obvious the improvement effect is brought on experience and time, meanwhile, the output information is not lost, and the specific continuous rule can be set according to specific scenes.
Through the implementation steps, the embodiment of the invention can obviously improve the experience and time of receiving the system broadcasting, and in a specific scene range, the method is improved from sequential broadcasting to continuous sequential identification, and more visual experience and time saving are brought on the premise of not losing information quantity.
Based on the voice broadcasting method provided in each embodiment, based on the same inventive concept, a voice broadcasting device is further provided in this embodiment, and the device is used to implement the foregoing embodiments and preferred embodiments, which have been described and are not repeated. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 5 is a block diagram of a voice broadcasting device according to an embodiment of the present invention, and as shown in fig. 5, the device includes:
the acquiring module 50 is configured to acquire a target information set, where the target information set contains a plurality of pieces of information, and the plurality of pieces of information contains information to be broadcasted;
The encoding module 52 is connected to the obtaining module 50, and is configured to obtain an encoded value corresponding to each piece of information by encoding each piece of information in the target information set, so as to form an encoded sequence, where each encoded value in the encoded sequence corresponds to a sequence number;
the searching module 54 is connected to the encoding module 52, and is configured to search the subsequences with the same encoding value and serial number continuity from the encoding sequence;
The synthesizing module 56 is connected to the searching module 54, and is configured to synthesize information to be broadcasted, which is included in the subsequence, to obtain synthesized information;
The first broadcasting module 58 is connected to the synthesizing module 56, and is configured to perform voice broadcasting on the synthesized information.
Optionally, the encoding module 52 includes:
the statistics unit is used for counting the total quantity of all information in the target information set;
The ordering unit is used for ordering each piece of information in the target information set based on the total quantity to obtain an ordering set, wherein each piece of information in the ordering set corresponds to one sequence number;
and the coding unit is used for coding the information corresponding to each serial number in the sequencing set to obtain a coding sequence.
Optionally, the encoding unit is configured to encode information to be broadcasted in the sorting set into a first encoded value by adopting a binarization encoding manner, and encode information except for the information to be broadcasted in the plurality of pieces of information in the sorting set into a second encoded value, where the first encoded value and the second encoded value are different values.
Optionally, the lookup module 54 includes:
The first comparison unit is used for comparing each code value in the code sequence with a preset code value in sequence, wherein the preset code value is used for indicating information to be broadcasted;
the first recording unit is used for recording the serial number corresponding to the first code value as the first serial number when the first code value in the code sequence is detected to be the same as the preset code value for the first time, and continuing to compare the next code value with the preset code value;
The second recording unit is used for recording that the sequence number corresponding to the third code value before the second code value is the last sequence number until the second code value in the code sequence is detected to be different from the preset code value;
the first determining unit is configured to use a first sequence composed of the first code value, the code value between the first bit sequence number and the last bit sequence number, and the third code value as a subsequence.
Optionally, the number of sub-sequences is plural, and after detecting that the second code value in the code sequence is different from the preset code value, the apparatus further includes:
The second comparison unit is used for continuously comparing a fourth code value with a preset code value, wherein the sequence number of the fourth code value is arranged behind the second code value in the code sequence;
the third recording unit is used for recording that the serial number corresponding to the fourth code value is the second first serial number when the fourth code value is the same as the preset code value;
a fourth recording unit, configured to record, until it is detected that the fifth encoded value in the encoded sequence is different from the preset encoded value, that the sequence number corresponding to the sixth encoded value before the fifth encoded value is the second last sequence number;
and the second determining unit is used for forming a second sequence from the fourth code value, the code value between the second first bit sequence number and the second last bit sequence number and the sixth code value so as to identify a plurality of subsequences in the code sequence.
Optionally, the subsequence contains a plurality of information to be broadcasted, and the synthesizing module 56 includes:
the analysis unit is used for analyzing semantic features of each piece of information to be broadcasted;
And the combining unit is used for semantically combining the plurality of information to be broadcasted according to the semantic features and serial number continuity of each information to be broadcasted to obtain the synthesized information.
Optionally, the number of sub-sequences is multiple, the information to be broadcasted contained in the sub-sequences is synthesized, and after the synthesized information is obtained, the device further includes:
the combination module is used for sequencing and combining a plurality of pieces of synthesis information corresponding to the plurality of subsequences to obtain combination information;
and the second broadcasting module is used for carrying out voice broadcasting on the combined information.
It should be noted that each of the above modules may be implemented by software or hardware, and the latter may be implemented by, but not limited to, the above modules all being located in the same processor, or each of the above modules being located in different processors in any combination.
An embodiment of the invention also provides a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
S1, acquiring a target information set, wherein the target information set contains a plurality of pieces of information, and the plurality of pieces of information contain information to be broadcasted;
s2, coding each piece of information in the target information set to obtain a coding value corresponding to each piece of information so as to form a coding sequence, wherein each coding value in the coding sequence corresponds to a sequence number;
S3, finding out subsequences with the same coding value and serial number continuity from the coding sequence;
s4, synthesizing the information to be broadcasted contained in the subsequence to obtain synthesized information;
And S5, carrying out voice broadcasting on the synthesized information.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to, a USB flash disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, etc. various media in which a computer program may be stored.
Based on the above embodiment of the method shown in fig. 1 and the device shown in fig. 5, in order to achieve the above object, an embodiment of the present invention further provides an electronic device, as shown in fig. 6, including a memory 52 and a processor 51, where the memory 52 and the processor 51 are both disposed on a bus 53, and the memory 52 stores a computer program, and the processor 51 implements the voice broadcasting method shown in fig. 1 when executing the computer program.
Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which may be stored in a memory (may be a CD-ROM, a usb disk, a mobile hard disk, etc.), and includes several instructions for causing an electronic device (may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective implementation scenario of the present invention.
Optionally, the device may also be connected to a user interface, a network interface, a camera, radio Frequency (RF) circuitry, sensors, audio circuitry, WI-FI modules, etc. The user interface may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (e.g., bluetooth interface, WI-FI interface), etc.
It will be appreciated by those skilled in the art that the structure of an electronic device provided in this embodiment is not limited to the physical device, and may include more or fewer components, or may combine certain components, or may be arranged in different components.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments and optional implementations, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a memory device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A method of voice broadcasting, the method comprising:
Acquiring a target information set, wherein the target information set contains a plurality of pieces of information, and the plurality of pieces of information contain information to be broadcasted;
Coding each piece of information in the target information set to obtain a coding value corresponding to each piece of information so as to form a coding sequence, wherein each coding value in the coding sequence corresponds to a serial number;
searching subsequences with the same coding value and serial number continuity from the coding sequence;
Synthesizing the information to be broadcasted contained in the subsequence to obtain synthesized information;
performing voice broadcasting on the synthesized information;
The method comprises the steps of counting the total number of all information in a target information set, sorting each information in the target information set based on the total number to obtain a sorting set, wherein each information in the sorting set corresponds to a serial number, and encoding the information corresponding to each serial number in the sorting set to obtain a coding sequence;
The method comprises the steps of searching a subsequence with the same code value and serial number continuity from the code sequence, comparing each code value in the code sequence with a preset code value in sequence, wherein the preset code value is used for indicating information to be broadcasted, recording a serial number corresponding to the first code value as a first serial number when the first code value in the code sequence is detected to be the same as the preset code value for the first time, continuing to compare a next code value with the preset code value, recording a serial number corresponding to a third code value before the second code value as a last serial number until the second code value in the code sequence is detected to be different from the preset code value, and recording the first sequence consisting of the first code value, the code value between the first serial number and the last serial number and the third code value as the subsequence.
2. The method of claim 1, wherein the encoding the information corresponding to each sequence number in the ordered set to obtain the encoded sequence comprises:
and encoding the information to be broadcasted in the sorting set into a first encoding value by adopting a binarization encoding mode, and encoding the information except the information to be broadcasted in the plurality of pieces of information in the sorting set into a second encoding value, wherein the first encoding value and the second encoding value are different values.
3. The method of claim 1, wherein the sub-sequence is a plurality, and wherein after detecting that the second code value in the code sequence is different from the preset code value, the method further comprises:
continuously comparing a fourth code value with the preset code value, wherein the sequence number of the fourth code value is arranged behind the second code value in the code sequence;
If the fourth code value is the same as the preset code value, recording that the serial number corresponding to the fourth code value is a second first serial number;
When the fifth code value in the code sequence is detected to be different from the preset code value, the serial number corresponding to the sixth code value before the fifth code value is recorded as the second last serial number;
And forming a second sequence by the fourth code value, the code value between the second first bit sequence number and the second last bit sequence number and the sixth code value so as to identify a plurality of subsequences in the code sequence.
4. The method according to claim 1, wherein the sub-sequence includes a plurality of information to be broadcasted, and the synthesizing the information to be broadcasted included in the sub-sequence includes:
analyzing semantic features of each piece of information to be broadcasted;
And according to semantic features and serial number continuity of each piece of information to be broadcasted, carrying out semantic combination on the plurality of pieces of information to be broadcasted to obtain the synthesized information.
5. The method according to claim 4, wherein the sub-sequence is a plurality of sub-sequences, and the method further comprises, after synthesizing the information to be broadcasted included in the sub-sequence to obtain the synthesized information:
sequencing and combining a plurality of pieces of synthesis information corresponding to the plurality of subsequences to obtain combined information;
And carrying out voice broadcasting on the combined information.
6. A voice broadcast device, the device comprising:
The system comprises an acquisition module, a broadcasting module and a broadcasting module, wherein the acquisition module is used for acquiring a target information set, wherein the target information set contains a plurality of pieces of information, and the plurality of pieces of information contain information to be broadcasted;
The coding module is used for obtaining a coding value corresponding to each piece of information by coding each piece of information in the target information set so as to form a coding sequence, wherein each coding value in the coding sequence corresponds to a sequence number;
the searching module is used for searching subsequences with the same coding value and serial number continuity from the coding sequence;
The synthesis module is used for synthesizing the information to be broadcasted contained in the subsequence to obtain synthesis information;
the first broadcasting module is used for carrying out voice broadcasting on the synthesized information;
The method comprises the steps of counting the total number of all information in a target information set, sorting each information in the target information set based on the total number to obtain a sorting set, wherein each information in the sorting set corresponds to a serial number, and encoding the information corresponding to each serial number in the sorting set to obtain a coding sequence;
The method comprises the steps of searching a subsequence with the same code value and serial number continuity from the code sequence, comparing each code value in the code sequence with a preset code value in sequence, wherein the preset code value is used for indicating information to be broadcasted, recording a serial number corresponding to the first code value as a first serial number when the first code value in the code sequence is detected to be the same as the preset code value for the first time, continuing to compare a next code value with the preset code value, recording a serial number corresponding to a third code value before the second code value as a last serial number until the second code value in the code sequence is detected to be different from the preset code value, and recording the first sequence consisting of the first code value, the code value between the first serial number and the last serial number and the third code value as the subsequence.
7. An electronic device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 5 when the computer program is executed.
8. A storage medium having stored thereon a computer program, which when executed by a processor, implements the steps of the method of any of claims 1 to 5.
CN202210910027.9A 2022-07-29 2022-07-29 Voice broadcast method and device, electronic device, and storage medium Active CN115312025B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210910027.9A CN115312025B (en) 2022-07-29 2022-07-29 Voice broadcast method and device, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210910027.9A CN115312025B (en) 2022-07-29 2022-07-29 Voice broadcast method and device, electronic device, and storage medium

Publications (2)

Publication Number Publication Date
CN115312025A CN115312025A (en) 2022-11-08
CN115312025B true CN115312025B (en) 2025-08-08

Family

ID=83858217

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210910027.9A Active CN115312025B (en) 2022-07-29 2022-07-29 Voice broadcast method and device, electronic device, and storage medium

Country Status (1)

Country Link
CN (1) CN115312025B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113012679A (en) * 2021-02-20 2021-06-22 北京百度网讯科技有限公司 Method, apparatus and medium for broadcasting message by voice
CN113449141A (en) * 2021-06-08 2021-09-28 阿波罗智联(北京)科技有限公司 Voice broadcasting method and device, electronic equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108600526A (en) * 2018-04-04 2018-09-28 Oppo广东移动通信有限公司 Alarm clock control method and related product
CN110378259A (en) * 2019-07-05 2019-10-25 桂林电子科技大学 A kind of multiple target Activity recognition method and system towards monitor video
CN111369990B (en) * 2020-02-13 2024-07-12 北京达佳互联信息技术有限公司 Audio playing method, device, terminal, server and storage medium
CN111538851B (en) * 2020-04-16 2023-09-12 北京捷通华声科技股份有限公司 Method, system, equipment and storage medium for automatically generating demonstration video
CN113542486A (en) * 2021-06-24 2021-10-22 北京天九云电子商务有限公司 Method and device for voice broadcast notification, storage medium and electronic equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113012679A (en) * 2021-02-20 2021-06-22 北京百度网讯科技有限公司 Method, apparatus and medium for broadcasting message by voice
CN113449141A (en) * 2021-06-08 2021-09-28 阿波罗智联(北京)科技有限公司 Voice broadcasting method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN115312025A (en) 2022-11-08

Similar Documents

Publication Publication Date Title
US9430472B2 (en) Method and system for automatic detection of content
US6744922B1 (en) Signal processing method and video/voice processing device
CN102222103B (en) Method and device for processing matching relationship of video content
CN104822074B (en) A kind of recommendation method and device of TV programme
US8886635B2 (en) Apparatus and method for recognizing content using audio signal
CN110246472B (en) Music style conversion method and device and terminal equipment
US9613605B2 (en) Method, device and system for automatically adjusting a duration of a song
CN109511015B (en) Multimedia resource recommendation method, device, storage medium and equipment
CN103218385A (en) Server apparatus, information terminal, and program
US9549162B2 (en) Image processing apparatus, image processing method, and program
CN110335625A (en) The prompt and recognition methods of background music, device, equipment and medium
CN110650374A (en) Clipping method, electronic device, and computer-readable storage medium
US9300997B2 (en) Consumption likelihood of linear content streams
CN118175365A (en) Generating video presentations for accompanying audio
CN105872717A (en) Video processing method and system, video player and cloud server
CN101452477A (en) Information processing apparatus, information processing method, and program
CN109740530B (en) Video segment extraction method, device, equipment and computer-readable storage medium
US20140086496A1 (en) Image processing device, image processing method and program
CN112104909A (en) Interactive video playing method and device, computer equipment and readable storage medium
US20230139416A1 (en) Search content matching method, and electronic device and storage medium
US8340475B2 (en) Database production method, database production program, database production apparatus and image content recording apparatus
CN113486209A (en) Audio track identification method and device and readable storage medium
CN114329063B (en) Video clip detection method, device and equipment
CN115312025B (en) Voice broadcast method and device, electronic device, and storage medium
CN109359203B (en) Method and device for processing motion trail video

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