Method, device and equipment for collection and broadcast and storage medium

文档序号:106563 发布日期:2021-10-15 浏览:24次 中文

阅读说明:本技术 一种收款播报的方法、装置、设备及存储介质 (Method, device and equipment for collection and broadcast and storage medium ) 是由 吕海峰 王文兴 尤永圣 姚坤坤 邝泽雨 于 2021-07-07 设计创作,主要内容包括:本发明实施例涉及一种收款播报的方法、装置、设备及存储介质,包括:从收款信息中获取与收款金额相关的金额信息;确定所述金额信息中每个字符对应的单位信息以及文本信息,得到所述金额信息对应的单位信息集合和文本信息集合;针对所述金额信息中所述字符的顺序、所述单位信息集合和所述文本信息集合对所述收款信息进行语音播报。本方案可自主录制播报语音,只需录入几个指定的音频信息就可进行收款播报,成本更低,技术实现起来更方便。(The embodiment of the invention relates to a method, a device, equipment and a storage medium for collecting and broadcasting, wherein the method comprises the following steps: acquiring amount information related to the amount of money to be collected from the collection information; determining unit information and text information corresponding to each character in the amount information to obtain a unit information set and a text information set corresponding to the amount information; and carrying out voice broadcast on the collection information according to the sequence of the characters in the amount information, the unit information set and the text information set. According to the scheme, the broadcasting voice can be recorded independently, collection and broadcasting can be carried out only by recording a plurality of designated audio information, the cost is lower, and the technology is more convenient to realize.)

1. A collection broadcasting method is characterized by comprising the following steps:

acquiring amount information related to the amount of money to be collected from the collection information;

determining unit information and text information corresponding to each character in the amount information to obtain a unit information set and a text information set corresponding to the amount information;

and carrying out voice broadcast on the collection information according to the sequence of the characters in the amount information, the unit information set and the text information set.

2. The method of claim 1, wherein the determining unit information and text information corresponding to each character in the amount information comprises:

determining the character length corresponding to the amount information, and determining the maximum digit corresponding to the amount information according to the character length;

and sequentially determining unit information corresponding to each character from the maximum digit, and converting the Arabic numerals corresponding to the characters into text information, wherein the text information is a Chinese text corresponding to the characters.

3. The method of claim 1, wherein the voice broadcasting the collection information for the sequence of characters in the amount information, the set of unit information, and the set of text information comprises:

determining a first target audio file set corresponding to the text information set from the audio file set;

determining a second target audio file set corresponding to the unit information set from the audio file sets;

combining the first target audio file set and the second target audio file set into a money audio file corresponding to the money information according to the sequence of the characters in the money information;

and carrying out voice broadcast on the collection information based on the amount audio file.

4. The method according to claim 3, wherein the voice broadcasting the collection information based on the amount audio file comprises:

processing the money audio file according to a preset broadcasting rule to obtain a processed money audio file;

and carrying out voice broadcast on the collection information based on the processed money amount audio file.

5. The method of claim 3, wherein the set of audio files comprises:

and the numbers from zero to nine, ten, hundred, thousand, ten and ten are respectively corresponding to the audio files.

6. The method according to claim 4 or 5, wherein before the voice broadcasting of the collection information based on the amount audio file, the method further comprises:

and setting the voice type and the broadcasting speed of the collection information in the broadcasting process.

7. A collection voice broadcasting method device is characterized by comprising the following steps:

the acquisition module is used for acquiring the amount information related to the amount of money to be collected from the collection information;

the determining module is used for determining unit information and text information corresponding to each character in the amount information to obtain a unit information set and a text information set corresponding to the amount information;

and the broadcasting module is used for carrying out voice broadcasting on the collection information according to the sequence of the characters, the unit information set and the text information set in the amount information.

8. The device according to claim 7, wherein the determining module is specifically configured to determine a character length corresponding to the amount information, and determine a maximum digit corresponding to the amount information according to the character length;

and sequentially determining unit information corresponding to each character from the maximum digit, and converting the Arabic numerals corresponding to the characters into text information, wherein the text information is a Chinese text corresponding to the characters.

9. An apparatus, comprising: a processor and a memory, the processor being configured to execute a control program stored in the memory to implement the control method of the apparatus of any one of claims 1 to 6.

10. A storage medium storing one or more programs executable by one or more processors to implement a method of controlling an apparatus according to any one of claims 1 to 6.

Technical Field

The embodiment of the invention relates to the field of collection broadcasting, in particular to a collection broadcasting method, device, equipment and storage medium.

Background

The existing collection voice broadcasting mode generally receives text information of collection amount through a mobile phone, converts an input text into a voice file for broadcasting by using a frame synthesized by a TTS technology, and can realize the broadcasting by self-defined tone through a TTS system written by the user.

The TTS conversion system not only needs to apply the digital signal processing technology, but also needs to be supported by a large amount of linguistic knowledge, needs more complex technical means and higher manufacturing cost, and has low cost performance.

Disclosure of Invention

In view of this, in order to solve the technical problems of high manufacturing cost and complex technical means of the existing voice broadcast, embodiments of the present invention provide a method and an apparatus for controlling a device, and a storage medium.

In a first aspect, an embodiment of the present invention provides a collection broadcasting method, including:

acquiring amount information related to the amount of money to be collected from the collection information;

determining unit information and text information corresponding to each character in the amount information to obtain a unit information set and a text information set corresponding to the amount information;

and carrying out voice broadcast on the collection information according to the sequence of the characters in the amount information, the unit information set and the text information set.

In one possible embodiment, the determining unit information and text information corresponding to each character in the amount information includes:

determining the character length corresponding to the amount information, and determining the maximum digit corresponding to the amount information according to the character length;

and sequentially determining unit information corresponding to each character from the maximum digit, and converting the Arabic numerals corresponding to the characters into text information, wherein the text information is a Chinese text corresponding to the characters.

In one possible embodiment, the voice broadcasting the collection information according to the sequence of the characters in the amount information, the unit information set, and the text information set includes:

determining a first target audio file set corresponding to the text information set from the audio file set;

determining a second target audio file set corresponding to the unit information set from the audio file sets;

combining the first target audio file set and the second target audio file set into a money audio file corresponding to the money information according to the sequence of the characters in the money information;

and carrying out voice broadcast on the collection information based on the amount audio file.

In a possible implementation manner, the voice broadcasting the collection information based on the amount audio file includes:

processing the money audio file according to a preset broadcasting rule to obtain a processed money audio file;

and carrying out voice broadcast on the collection information based on the processed money amount audio file.

In one possible embodiment, the set of audio files comprises:

and the numbers from zero to nine, ten, hundred, thousand, ten and ten are respectively corresponding to the audio files.

In one possible embodiment, before the voice broadcasting the collection information based on the money amount audio file, the method further includes:

and setting the voice type and the broadcasting speed of the collection information in the broadcasting process.

In a second aspect, an embodiment of the present invention provides a device for collecting fee and broadcasting the fee in voice, including:

the acquisition module is used for acquiring the amount information related to the amount of money to be collected from the collection information;

the determining module is used for determining unit information and text information corresponding to each character in the amount information to obtain a unit information set and a text information set corresponding to the amount information;

and the broadcasting module is used for carrying out voice broadcasting on the collection information according to the sequence of the characters, the unit information set and the text information set in the amount information.

In a possible implementation manner, the determining module is specifically configured to determine a character length corresponding to the amount information, and determine a maximum digit corresponding to the amount information according to the character length;

and sequentially determining unit information corresponding to each character from the maximum digit, and converting the Arabic numerals corresponding to the characters into text information, wherein the text information is a Chinese text corresponding to the characters.

In a third aspect, an embodiment of the present invention provides an apparatus, including: a processor and a memory, the processor being configured to execute a control program stored in the memory to implement the control method of the apparatus of any of the first aspects described above.

In a fourth aspect, an embodiment of the present invention provides a storage medium, where one or more programs are stored, and the one or more programs are executable by one or more processors to implement the method for controlling an apparatus according to any one of the first aspects.

According to the scheme of collection and broadcasting provided by the embodiment of the invention, the amount information in the collection information is obtained, the corresponding text information and the unit information are determined based on each character in the amount information, the audio files corresponding to the text information and the unit information are determined in the audio set, the audio files form the audio file set, and the audio file set is broadcasted according to the preset broadcasting sequence. The corresponding audio file is found by splitting the collection information, and the audio file is broadcasted according to the rule, so that collection information is broadcasted through voice, the situation that a text is converted into voice through a complex technical means is avoided, the convenience of a collection broadcasting method is improved, and the manufacturing cost of a collection broadcasting device is reduced.

Drawings

Fig. 1 is a schematic flow chart of a collection broadcasting method according to an embodiment of the present invention;

fig. 2 is a schematic flow chart of another collection broadcasting method according to an embodiment of the present invention;

FIG. 3 is a diagram illustrating a conversion of money amount information into a corresponding collection audio file according to an embodiment of the present invention;

fig. 4 is a schematic structural diagram of a collection broadcasting device according to an embodiment of the present invention;

fig. 5 is a schematic structural diagram of a collection broadcasting device according to an embodiment of the present invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present 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.

For the convenience of understanding of the embodiments of the present invention, the following description will be further explained with reference to specific embodiments, which are not to be construed as limiting the embodiments of the present invention.

Fig. 1 is a schematic flow chart of a collection broadcasting method according to an embodiment of the present invention, and as shown in fig. 1, the method specifically includes:

and S11, obtaining the money information related to the collection money from the collection information.

The collection broadcasting method provided by the embodiment of the invention is applied to the intelligent equipment with the loudspeaker, and the equipment has a collection function and can be as follows: the mobile phone, the computer, the pos machine and the like realize collection broadcasting by analyzing collection information, wherein the collection information comprises collection amount information.

In this embodiment, after receiving the collection information, the collection device analyzes and identifies the collection information, where the identified collection information includes payer information, payment method information, time information, amount information, and the like, and obtains amount information from the collection information, where the amount information is an amount corresponding to the collection, specifically a series of consecutive numbers, and two digits are reserved after the decimal point in the number (for example, 123.40 is obtained from the collection information).

S12, determining unit information and text information corresponding to each character in the money information to obtain a unit information set and a text information set corresponding to the money information.

In the embodiment of the present invention, unit information and text information corresponding to each character in the amount to be collected are preset, the unit information may be understood as a digit corresponding to the character, and the text information may be understood as a Chinese text corresponding to the amount to be collected, for example, the amount to be collected is: 0.1, the unit information corresponding to 0 is "one", and the corresponding text information is "zero".

Further, after the amount information in the collection information is obtained, the amount information is split into single characters from left to right, each number/decimal point corresponds to one character, unit information and text information corresponding to each character are determined in sequence, and then a unit information set and a text information set corresponding to the amount information are obtained, wherein the unit information set refers to unit information corresponding to all characters, and the text information combination refers to text information corresponding to all characters.

And S13, carrying out voice broadcast on the collection information according to the sequence of the characters in the money information, the unit information set and the text information set.

In the embodiment of the invention, the sequence of the characters refers to the position sequence of each character in the money information from left to right, the sequence of the text information in the text information set is consistent with the sequence of the corresponding characters, and the sequence of the unit information in the unit information set is consistent with the sequence of the corresponding text information. And adding the unit information to the back of the corresponding text information in sequence to obtain an information set consistent with the character sequence, determining an audio file corresponding to each information in the information set, and combining the audio files to obtain the money information audio. And the money information audio and other information audio are added to obtain the collection information audio, and the collection information audio corresponding to the collection information is broadcasted in the sequence from left to right.

For example, the amount information is 123.45, the amount information is divided into characters of "1, 2, 3,.," 4, 5 ", text information corresponding to the characters is" one, two, three, point, four, five ", unit information corresponding to the character position is" hundred, ten, ", information sets obtained in sequence are" one hundred, two, ten, three, point, four, "five,", amount information audio frequency is "one hundred twenty three points four five points", and collection information audio frequency is "collection amount one hundred twenty three points four five points".

According to the money receiving broadcasting method provided by the embodiment of the invention, the unit information and the text information corresponding to each character are determined by acquiring the amount information in the money receiving information, and the money receiving information is broadcasted in voice according to the sequence of the characters, the set of the unit information and the set of the text information in the amount information. The collection information is split into the characters, the file sets corresponding to the characters are determined, the file sets are broadcast in sequence, and the collection information is broadcast in a voice mode.

Fig. 2 is a schematic flow chart of another collection broadcasting method according to an embodiment of the present invention, and as shown in fig. 2, the method specifically includes:

and S21, determining the character length corresponding to the money information, and determining the maximum digit corresponding to the money information according to the character length.

In the embodiment of the present invention, the character length represents the number of characters in the amount information, the digit refers to unit information corresponding to each character, the maximum digit refers to the digit corresponding to the first character from the left of the amount information, the system presets the corresponding relationship between the maximum digit and the character length, specifically, when the character length is 5, 6, 7, 8, 9, 10, 11, the corresponding maximum digit is ten, one hundred, one thousand, ten thousand, one hundred, one thousand, and the character length is less than 4.

For example, 123.45 has a number of characters of 6, a corresponding character length of 6, and a corresponding maximum number of digits of hundred.

And S22, sequentially determining unit information corresponding to each character from the maximum digit, and converting the Arabic numerals corresponding to the characters into text information, wherein the text information is a Chinese text corresponding to the characters.

In the embodiment of the present invention, a correspondence relationship between a character position and unit information is stored in advance, the unit information of each character corresponds to a position of each character in the amount information, specifically, the unit information does not correspond to the unit information from the first character on the right to the fourth character, and the unit information corresponding to the fifth character to the eleventh character sequentially is: ten, hundred, thousand, ten, hundred and thousand (the collection information in life is generally 11 characters at most). And determining the position of the maximum digit, finding the unit information corresponding to the maximum digit in the corresponding relation based on the position, and sequentially finding the unit information corresponding to each character from the maximum digit to the right.

For example, in the amount information 1234.56, the maximum digit position is the seventh digit, so that the unit information corresponding to the character 1 is thousand, the unit information corresponding to the character 2 is hundred, the unit information corresponding to the character 3 is ten, and the unit information corresponding to the character 4.56 does not correspond to the unit information.

In the embodiment of the invention, the corresponding relation between the characters and the text information is stored in advance, the characters are obtained by splitting a string of Arabic numerals in the amount information, each Arabic numeral/decimal point corresponds to one character, each character is converted into corresponding text information according to the corresponding relation between the characters and the text information, the text information is a Chinese text corresponding to the Arabic numerals/decimal points, and specifically, 0-9 respectively correspond to zero, one, two, three, four, five, six, seven, eight and nine, and the corresponding text information is a point.

S23, determining a first target audio file set corresponding to the text information set from the audio file sets.

In an alternative scheme of the embodiment of the present invention, an audio file set is preset, where the audio file set includes all audio files corresponding to text information and unit information that may possibly occur.

The text information set is composed of text information corresponding to all characters in the money information, and text audios corresponding to all the text information are found from the audio file set to form a first target audio file set. The text audio includes: and zero, one, two, three, four, five, six, seven, eight, nine and corresponding audio files.

And S24, determining a second target audio file set corresponding to the unit information set from the audio file sets.

In an alternative of the embodiment of the present invention, the unit information set is composed of unit information corresponding to each character position, and the unit audio corresponding to each unit information is found from the audio file set to form the second target audio file set. The unit audio includes: ten, one hundred, one thousand and ten thousand corresponding audio files.

S25, processing the money audio file according to a preset broadcasting rule to obtain a processed money audio file; and carrying out voice broadcast on the collection information based on the processed money amount audio file.

In the embodiment of the invention, broadcast rules corresponding to different amount of money information are stored in advance, and the audio files are processed based on the different broadcast rules, wherein the broadcast rules refer to that the text audio corresponding to one or more characters can be omitted from being broadcast according to the text information and the position corresponding to each character, or the unit audio corresponding to one or more digits can be omitted from being broadcast.

Specifically, the order of the text audio is consistent with the order of the characters in the money information, and the unit audio is respectively added behind the corresponding text audio. Omitting to broadcast the unit audio includes: the corresponding positions of the characters are the text audios of the first to the fourth bits without adding unit audio. Except for the eighth character, when other text audios are zero, only the text audio corresponding to zero is broadcasted without adding unit audio after zero (for example, the audio file corresponding to 100001.00 is zero in one-half million zeros and one-dot zeros).

Omitting to broadcast the text audio includes: in addition to the eighth character, when there are several continuous zeros in the text audio set and the several continuous zeros are not temporary with the decimal point, the corresponding text audio of the zeros is broadcasted only once (for example, 1001.00, the corresponding audio file is: one thousand zero and one zero), and when one bit before or several bits before the decimal point is zero, the corresponding text audio of the zeros is not broadcasted (for example, 100.10, the corresponding audio file is: one hundred zero).

When the eighth character is zero, only the unit audio frequency corresponding to the eighth character is broadcast (for example, 200020.00 twenty-one million zero and twenty-one zero).

Based on report the rule more than and make up the sequencing to audio file, obtain the amount of money audio frequency after handling, in order to report that the content is more clear still to add fixed audio information at both ends around the amount of money audio frequency after handling, amount of money audio file after the voice broadcast handles, and in an example, amount of money audio file is zero for one hundred, and amount of money audio file after handling is: the amount of money collected is one hundred zero.

In an alternative of the embodiment of the present invention, a voice type and a broadcasting speed of the collection information during the broadcasting process are set.

Further, the voice type refers to the tone, tone and audio frequency of the broadcast sound, and the broadcast speed refers to the speed of the voice broadcast. For example, the voice type is set to be female voice, the broadcasting speed is slow, the voice pause position can be set in a user-defined mode according to personal preferences, and the user can also input own voice so as to improve the user experience in the money collection process.

Fig. 3 is a schematic diagram illustrating conversion of money amount information into a corresponding collection audio file according to an embodiment of the present invention.

The following will be referred to as payment information: the payer XX, the payer micro X, the amount 10023.40 and the time 2021.6.3019: 31 are used as examples to describe the charge broadcasting method in the above embodiment:

amount information: 10023.40, respectively;

splitting the amount information into single characters: 1.0, 2, 3, ·, 4, 0;

the text information set composed of the text information corresponding to each character is as follows: one, zero, two, three, point, four, zero,

the unit information set formed by the unit information corresponding to each character is as follows: ten, or more;

determining a first target audio file set corresponding to the text information from the audio file set as follows: one, zero, two, three, point, four, zero,

determining a second target audio file set corresponding to the unit information from the audio file set: ten thousands, hundreds and ten;

the sum audio file formed by combining the first target audio file set and the second target audio file set is as follows: ten thousand zero, one hundred twenty three-point four zero;

processing the amount of money audio file according to a preset broadcasting rule, wherein the amount of money audio file after processing is: twenty-three and four zeros of ten thousand;

the sum audio file after processing and the fixed audio file to obtain the collection information audio is as follows: micro X collects twenty-three-point four-zero elements of one thousand;

voice broadcast collection information audio: the micro X collects twenty-three points and four zero elements.

According to the money collection broadcasting method provided by the embodiment of the invention, the money amount information is divided into characters, the corresponding unit information and the corresponding text information are determined, the corresponding audio file set is determined from the audio files, and the audio files are combined and sequenced through the preset broadcasting rule to obtain the finally broadcasted money amount audio files. The characters are split to match with the audio files, so that flexible broadcasting of collection information is achieved, the situation that characters are converted into voice through complex technical means is avoided, and collection broadcasting cost is reduced.

Fig. 4 is a schematic structural view of a collection broadcasting device according to an embodiment of the present invention, and as shown in fig. 4, the device specifically includes:

an obtaining module 41, configured to obtain amount information related to a received amount from the receiving information;

a determining module 42, configured to determine unit information and text information corresponding to each character in the amount information, to obtain a unit information set and a text information set corresponding to the amount information;

and the broadcasting module 43 is configured to perform voice broadcasting on the collection information according to the sequence of the characters in the amount information, the unit information set, and the text information set.

In a possible embodiment, the determining module 42 is configured to determine a character length corresponding to the amount information, and determine a maximum digit corresponding to the amount information according to the character length;

the determining module 42 is configured to sequentially determine unit information corresponding to each character from the maximum digit, and convert the arabic numbers corresponding to the characters into text information, where the text information is a chinese text corresponding to the characters.

In a possible implementation, the determining module 42 is configured to determine a first target set of audio files corresponding to the set of text information from the set of audio files;

in a possible implementation, the determining module 42 is configured to determine a second target set of audio files corresponding to the unit information set from the set of audio files;

the determining module 42 is configured to combine the first target audio file set and the second target audio file set into a money audio file corresponding to the money information according to the sequence of the characters in the money information; the set of audio files comprises: and the numbers from zero to nine, ten, hundred, thousand, ten and ten are respectively corresponding to the audio files.

In a possible implementation manner, the broadcasting module 43 is configured to perform voice broadcasting on the collection information based on the amount audio file.

In a possible implementation manner, the determining module 42 is configured to process the money audio file according to a preset broadcast rule, so as to obtain a processed money audio file;

in a possible implementation manner, the broadcasting module 43 is configured to perform voice broadcasting on the collection information based on the processed amount audio file.

The device control apparatus provided in this embodiment may be the apparatus shown in fig. 4, and may perform all the steps of the control method of the device shown in fig. 1, so as to achieve the technical effect of the control method of the device shown in fig. 1.

Fig. 5 is a schematic structural diagram of an apparatus according to an embodiment of the present invention, where the electronic apparatus 500 shown in fig. 5 includes: at least one processor 501, memory 502, at least one network interface 504, and other user interfaces 503. The various components in the electronic device 500 are coupled together by a bus system 505. It is understood that the bus system 505 is used to enable connection communications between these components. The bus system 505 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 505 in FIG. 5.

The user interface 503 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, trackball, touch pad, or touch screen, among others.

It is to be understood that the memory 502 in embodiments of the present invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic random access memory (ddr Data Rate SDRAM, ddr SDRAM), Enhanced Synchronous SDRAM (ESDRAM), synchlronous SDRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 502 described herein is intended to comprise, without being limited to, these and any other suitable types of memory.

In some embodiments, memory 502 stores elements, executable units or data structures, or a subset thereof, or an expanded set thereof as follows: an operating system 5021 and application programs 5022.

The operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application 5022 includes various applications, such as a Media Player (Media Player), a Browser (Browser), and the like, for implementing various application services. The program for implementing the method according to the embodiment of the present invention may be included in the application program 5022.

In the embodiment of the present invention, by calling a program or an instruction stored in the memory 502, specifically, a program or an instruction stored in the application 5022, the processor 501 is configured to execute the method steps provided by the method embodiments, for example, including:

acquiring amount information related to the amount of money to be collected from the collection information;

determining unit information and text information corresponding to each character in the amount information to obtain a unit information set and a text information set corresponding to the amount information;

and carrying out voice broadcast on the collection information according to the sequence of the characters in the amount information, the unit information set and the text information set.

In one possible implementation mode, determining a character length corresponding to the amount information, and determining a maximum digit corresponding to the amount information according to the character length;

and sequentially determining unit information corresponding to each character from the maximum digit, and converting the Arabic numerals corresponding to the characters into text information, wherein the text information is a Chinese text corresponding to the characters.

In one possible implementation, a first set of target audio files corresponding to the set of text information is determined from a set of audio files;

determining a second target audio file set corresponding to the unit information set from the audio file sets;

combining the first target audio file set and the second audio file set into a money audio file corresponding to the money information according to the sequence of the characters in the money information;

and carrying out voice broadcast on the collection information based on the amount audio file.

In a possible implementation manner, the money audio file is processed according to a preset broadcasting rule to obtain a processed money audio file;

and carrying out voice broadcast on the collection information based on the processed money amount audio file.

In one possible embodiment, the set of audio files comprises:

and the numbers from zero to nine, ten, hundred, thousand, ten and ten are respectively corresponding to the audio files.

In one possible implementation mode, the voice type and the broadcasting speed of the collection information in the broadcasting process are set.

The method disclosed by the above-mentioned embodiments of the present invention may be applied to the processor 501, or implemented by the processor 501. The processor 501 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 501. The Processor 501 may be a general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software elements in the decoding processor. The software elements may be located in ram, flash, rom, prom, or eprom, registers, among other storage media that are well known in the art. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502 and completes the steps of the method in combination with the hardware.

It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.

For a software implementation, the techniques described herein may be implemented by means of units performing the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.

The device provided in this embodiment may be the device shown in fig. 5, and may perform all the steps of the control method of the device shown in fig. 1, so as to achieve the technical effect of the control method of the device shown in fig. 1.

The embodiment of the invention also provides a storage medium (computer readable storage medium). The storage medium herein stores one or more programs. Among others, the storage medium may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the memory may also comprise a combination of memories of the kind described above.

When one or more programs in the storage medium are executable by one or more processors, the control method of the device executed on the device side described above is realized.

The processor is configured to execute the control program stored in the memory to implement the following steps of the control method of the device executed on the device side:

acquiring amount information related to the amount of money to be collected from the collection information;

determining unit information and text information corresponding to each character in the amount information to obtain a unit information set and a text information set corresponding to the amount information;

and carrying out voice broadcast on the collection information according to the sequence of the characters in the amount information, the unit information set and the text information set.

In one possible implementation mode, determining a character length corresponding to the amount information, and determining a maximum digit corresponding to the amount information according to the character length;

and sequentially determining unit information corresponding to each character from the maximum digit, and converting the Arabic numerals corresponding to the characters into text information, wherein the text information is a Chinese text corresponding to the characters.

In one possible implementation, a first set of target audio files corresponding to the set of text information is determined from a set of audio files;

determining a second target audio file set corresponding to the unit information set from the audio file sets;

combining the first target audio file set and the second target audio file set into a money audio file corresponding to the money information according to the sequence of the characters in the money information;

and carrying out voice broadcast on the collection information based on the amount audio file.

In a possible implementation manner, the money audio file is processed according to a preset broadcasting rule to obtain a processed money audio file;

and carrying out voice broadcast on the collection information based on the processed money amount audio file.

In one possible embodiment, the set of audio files comprises:

and the numbers from zero to nine, ten, hundred, thousand, ten and ten are respectively corresponding to the audio files.

In one possible implementation mode, the voice type and the broadcasting speed of the collection information in the broadcasting process are set.

Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.

The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, a software module executed by a processor, or a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种根据越南语书写文本生成发音词典的方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!