Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with this specification.On the contrary, they are only and such as institute
The example of the consistent device and method of some aspects be described in detail in attached claims, this specification.
It is only to be not intended to be limiting this explanation merely for for the purpose of describing particular embodiments in the term that this specification uses
Book.The "an" of used singular, " described " and "the" are also intended to packet in this specification and in the appended claims
Most forms are included, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein is
Refer to and includes that one or more associated any or all of project listed may combine.
It will be appreciated that though various information may be described using term first, second, third, etc. in this specification, but
These information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not taking off
In the case where this specification range, the first information can also be referred to as the second information, and similarly, the second information can also be claimed
For the first information.Depending on context, word as used in this " if " can be construed to " ... when " or
" when ... " or " in response to determination ".
Under many scenes, information can be informed to user by way of voice plays, for example, in payment class product
In, payment information can be notified into trade company or user by playing voice after the completion of payment.But play back can for some words
Malice can be included.For example, 250 be considered as term of swearing at people in many areas, and wrap left-handed word and play in public
It will lead to user's embarrassment out, influence user experience.
In view of the above problems, this specification embodiment provides a kind of speech playing method, and a kind of for executing the party
The voice playing device of method is below described in detail the speech playing method that the present embodiment is related to, shown in Figure 1, should
Method may comprise steps of:
S101 obtains voice content to be played, is matched, is determined whether described in hit in preset voice policy library
Voice content to be played, wherein include different sensitive contents and corresponding broadcast strategy in voice policy library;
The form of voice content to be played may have very much, for example, the merchant client of the transaction softwares such as Alipay
It after completion of transactions, can voice broadcasting transaction specifying information;Navigation software can play specific voice when carrying out Voice Navigation
Information;The sound reading of e-book reading software, meeting voice play the particular content, etc. of e-book.
In the present embodiment, voice broadcasting content to be played can exist in the form of voice document, can not also be with voice text
Part form exists.For example, voice content to be played can be stored as to the form of text file to be made when needing voice to play
Voice content is converted by text file with TTS technology to play out.
Voice policy library includes different sensitive contents and corresponding broadcast strategy, and the sensitive content in voice policy library can be
Be not suitable for the content played, for example, same word in different areas, different field meanings may be different, such as " spoon
Son " is neuter under normal circumstances, but includes malice in this word of certain areas, then can set it to and be not suitable for broadcasting
Sensitive content.
Further, sensitive content can also be non-malicious content in voice policy library, but according to user interest or network
The orientation broadcasting content of the settings such as hot spot, for example, voice content " lovely " is set as sensitive content, and by its corresponding broadcasting
Strategy is set as voice content " blocking her ".
Specifically, when voice content to be played is stored as the form of text file, voice policy library can also be according to text
Content-broadcast strategy form is stored.Wherein, broadcast strategy changes original broadcast mode, can be there are many scheme, example
Such as, voice content is subjected to noise reduction, voice content reduction/elevated volume is played, the voice content of script is replaced with another
Kind customized content broadcasting, etc..
S102 is obtained corresponding in voice policy library if the voice content to be played can be hit in voice policy library
The broadcast strategy of the voice content to be played plays voice content to be played according to the broadcast strategy.
This specification embodiment also provides a kind of more specifically speech playing method, shown in Figure 2, and this method can be with
The following steps are included:
S201 obtains voice content to be played and plays the voice preference information of end subscriber;
S202, carries out voice content to be played according to the voice preference information in corresponding voice policy library
Match, wherein include different sensitive contents and corresponding broadcast strategy in voice policy library;
Specifically, voice policy library can be divided, such as sets different voice policy library point libraries, or by voice strategy
Library according to different label subregions, for example:
A) it is divided according to geographic area, is such as divided according to provinces and cities, set according to the different language culture of different regions
Corresponding voice policy library, formulates the broadcast mode for being directed to different regions sensitivity broadcasting content;
B) it is divided according to interest attribute, such as marks off network buzzword subregion, ancient customs subregion etc., by the voice of script
Content replaces with network buzzword or ancient customs word of customization etc..
It is appreciated that the above is only citings, this specification is not constituted and limited, the mode for dividing subregion can be according to reality
Situation is set.
Wherein, the voice preference information for playing end subscriber can be by broadcasting end subscriber sets itself, e.g., and playing end subscriber will be certainly
The interest tags of body are set as popular, then by voice content to be played in " prevalence " corresponding voice strategy library partition progress
Match;Or, the voice preference information for playing end subscriber is set by system detection, e.g., detect that client location is Liaoning Province, then
Voice content to be played is matched in region " Liaoning " corresponding voice policy library.
S203, can judgement hit the voice content to be played in voice policy library, if ordering in voice policy library
Described in voice content to be played, S204 is thened follow the steps, if without hitting in the voice to be played in voice policy library
Hold, thens follow the steps S205;
S204 obtains the broadcast strategy that the voice content to be played is corresponded in voice policy library, according to the broadcasting plan
Slightly play voice content to be played;
S205 directly plays the voice content to be played.
Voice policy library, which can reside in, plays end, can also exist on server.Wherein the one of this specification
In kind embodiment, the content creating and content update of the voice policy library can be completed by user, be this specification with reference to Fig. 3
The voice that embodiment provides plays the update method in library:
S301, server receive the broadcasting plan for playing the customized voice content of end subscriber and the corresponding voice content
Slightly;
For example, the sensitive text that end subscriber needs to formulate customized broadcast strategy in the input of self defined interface 1 is played,
The broadcast strategy of the corresponding sensitivity text is inputted in self defined interface 2.Broadcast strategy can choose noise reduction, change broadcast sound volume,
Or replace with customization broadcasting content etc..Wherein, customization broadcasting content can by user input replacement content of text e.g. will be to certain
The disagreeableness text " spoon " in area replaces with text " soupspoon ", and then when use TTS text-to-speech broadcasting, can be by voice
" spoon " replaces with voice " soupspoon ".Or, customization broadcasting content can be inputted replacement voice content by user, by user's recorded speech
And voice policy library is uploaded to by self defined interface.
S302 determines the preference information for playing end subscriber, the customized letter of end subscriber will be played according to the preference information
Breath is added to corresponding voice policy library.
Wherein, the voice preference information for playing end subscriber can be by broadcasting end subscriber sets itself, e.g., and playing end subscriber will be certainly
The interest tags of body are set as popular, then the custom content of user are added to " prevalence " corresponding voice strategy library partition;
Or, the voice preference information for playing end subscriber is set by system detection, e.g., detects that client location is Liaoning Province, then will
The custom content of user is added to " Liaoning " corresponding voice strategy library partition.
Corresponding to above method embodiment, this specification embodiment also provides a kind of voice playing device, referring to fig. 4 institute
Show, the apparatus may include: voice match module 410, voice playing module 420.
Voice match module 410: for obtaining voice content to be played, being matched in preset voice policy library,
It determines whether to hit the voice content to be played, wherein include different sensitive contents and corresponding broadcasting in voice policy library
Strategy;
Voice playing module 420: after hitting the voice content to be played in voice policy library, voice plan is obtained
The broadcast strategy that the voice content to be played is slightly corresponded in library, plays voice content to be played according to the broadcast strategy.
In a kind of embodiment that this specification provides, it whether there is language to be played in the determination voice policy library
After sound content, further includes:
If voice content to be played is not present in the voice policy library, the voice content to be played is directly played.
In a kind of embodiment that this specification provides, the broadcast strategy in the voice policy library, which includes at least to treat, to be broadcast
It puts voice content and makes noise reduction processing, volume change processing is made to voice content to be played, voice content to be played is replaced
For customized sound.
In a kind of embodiment that this specification provides, predicate sound matching module is specifically used for:
It obtains and plays the preset voice preference information of end subscriber, according to the voice preference information in corresponding voice strategy
It is matched in library.
In a kind of embodiment that this specification provides, the voice match module is specifically used for:
The regional information for playing end subscriber is obtained, is carried out in corresponding voice policy library according to the regional information
Match.
In a kind of embodiment that this specification provides, the update mode of the voice policy library, comprising:
Server receives the broadcast strategy for playing the customized voice content of end subscriber and the corresponding voice content;
It determines the preference information for playing end subscriber, is added the self-defined information for playing end subscriber according to the preference information
To corresponding voice policy library.
This specification embodiment also provides a kind of computer equipment, includes at least memory, processor and is stored in
On reservoir and the computer program that can run on a processor, wherein realize that aforementioned voice is broadcast when processor executes described program
Method is put, the method includes at least:
Voice content to be played is obtained, is matched in preset voice policy library, determines whether that hit is described wait broadcast
Put voice content, wherein include different sensitive contents and corresponding broadcast strategy in voice policy library;
If the voice content to be played can be hit in voice policy library, obtain in voice policy library it is corresponding it is described to
The broadcast strategy for playing voice content plays voice content to be played according to the broadcast strategy.
Fig. 5 shows one kind provided by this specification embodiment and more specifically calculates device hardware structural schematic diagram,
The equipment may include: processor 1010, memory 1020, input/output interface 1030, communication interface 1040 and bus
1050.Wherein processor 1010, memory 1020, input/output interface 1030 and communication interface 1040 are real by bus 1050
The now communication connection inside equipment each other.
Processor 1010 can use general CPU (Central Processing Unit, central processing unit), micro- place
Reason device, application specific integrated circuit (Application Specific Integrated Circuit, ASIC) or one
Or the modes such as multiple integrated circuits are realized, for executing relative program, to realize technical side provided by this specification embodiment
Case.
Memory 1020 can use ROM (Read Only Memory, read-only memory), RAM (Random Access
Memory, random access memory), static storage device, the forms such as dynamic memory realize.Memory 1020 can store
Operating system and other applications are realizing technical solution provided by this specification embodiment by software or firmware
When, relevant program code is stored in memory 1020, and execution is called by processor 1010.
Input/output interface 1030 is for connecting input/output module, to realize information input and output.Input and output/
Module can be used as component Configuration (not shown) in a device, can also be external in equipment to provide corresponding function.Wherein
Input equipment may include keyboard, mouse, touch screen, microphone, various kinds of sensors etc., output equipment may include display,
Loudspeaker, vibrator, indicator light etc..
Communication interface 1040 is used for connection communication module (not shown), to realize the communication of this equipment and other equipment
Interaction.Wherein communication module can be realized by wired mode (such as USB, cable etc.) and be communicated, can also be wirelessly
(such as mobile network, WIFI, bluetooth etc.) realizes communication.
Bus 1050 include an access, equipment various components (such as processor 1010, memory 1020, input/it is defeated
Outgoing interface 1030 and communication interface 1040) between transmit information.
It should be noted that although above equipment illustrates only processor 1010, memory 1020, input/output interface
1030, communication interface 1040 and bus 1050, but in the specific implementation process, which can also include realizing normal fortune
Other assemblies necessary to row.In addition, it will be appreciated by those skilled in the art that, it can also be only comprising real in above equipment
Component necessary to existing this specification example scheme, without including all components shown in figure.
This specification embodiment also provides a kind of computer readable storage medium, is stored thereon with computer program, the journey
Speech playing method above-mentioned is realized when sequence is executed by processor ,=the method includes at least:
Voice content to be played is obtained, is matched in preset voice policy library, determines whether that hit is described wait broadcast
Put voice content, wherein include different sensitive contents and corresponding broadcast strategy in voice policy library;
If the voice content to be played can be hit in voice policy library, obtain in voice policy library it is corresponding it is described to
The broadcast strategy for playing voice content plays voice content to be played according to the broadcast strategy.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit
The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with
It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual
The purpose for needing to select some or all of the modules therein to realize this specification scheme.Those of ordinary skill in the art are not
In the case where making the creative labor, it can understand and implement.
As seen through the above description of the embodiments, those skilled in the art can be understood that this specification
Embodiment can be realized by means of software and necessary general hardware platform.Based on this understanding, this specification is implemented
Substantially the part that contributes to existing technology can be embodied in the form of software products the technical solution of example in other words,
The computer software product can store in storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are to make
It is each to obtain computer equipment (can be personal computer, server or the network equipment etc.) execution this specification embodiment
Method described in certain parts of a embodiment or embodiment.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.A kind of typically to realize that equipment is computer, the concrete form of computer can
To be personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
In device, navigation equipment, E-mail receiver/send equipment, game console, tablet computer, wearable device or these equipment
The combination of any several equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device reality
For applying example, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to embodiment of the method
Part explanation.The apparatus embodiments described above are merely exemplary, wherein described be used as separate part description
Module may or may not be physically separated, can be each module when implementing this specification example scheme
Function realize in the same or multiple software and or hardware.Can also select according to the actual needs part therein or
Person's whole module achieves the purpose of the solution of this embodiment.Those of ordinary skill in the art are not the case where making the creative labor
Under, it can it understands and implements.
The above is only the specific embodiment of this specification embodiment, it is noted that for the general of the art
For logical technical staff, under the premise of not departing from this specification embodiment principle, several improvements and modifications can also be made, this
A little improvements and modifications also should be regarded as the protection scope of this specification embodiment.