[go: up one dir, main page]

CN104239323B - The method and device of data output - Google Patents

The method and device of data output Download PDF

Info

Publication number
CN104239323B
CN104239323B CN201310239379.7A CN201310239379A CN104239323B CN 104239323 B CN104239323 B CN 104239323B CN 201310239379 A CN201310239379 A CN 201310239379A CN 104239323 B CN104239323 B CN 104239323B
Authority
CN
China
Prior art keywords
character set
audio
entry
chinese
converted
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
CN201310239379.7A
Other languages
Chinese (zh)
Other versions
CN104239323A (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.)
Tencent Technology Shenzhen Co Ltd
Tencent Cloud Computing Beijing Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310239379.7A priority Critical patent/CN104239323B/en
Publication of CN104239323A publication Critical patent/CN104239323A/en
Application granted granted Critical
Publication of CN104239323B publication Critical patent/CN104239323B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90344Query processing by using string matching techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/40Processing or translation of natural language
    • G06F40/53Processing of non-Latin text
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B5/00Electrically-operated educational appliances
    • G09B5/04Electrically-operated educational appliances with audible presentation of the material to be studied

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Educational Technology (AREA)
  • Business, Economics & Management (AREA)
  • Data Mining & Analysis (AREA)
  • Educational Administration (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Document Processing Apparatus (AREA)
  • Electrically Operated Instructional Devices (AREA)

Abstract

The invention discloses a kind of method and devices of data output, are related to terminal applies field, and user obtains the problem of entry information inconvenience caused by being able to solve because of eye fatigue or light reason.The described method includes: generating the first character set and the second character set according to the category of language in current entry, language in first character set is first language, language in second character set is second language, and second character set is for explaining first character set;By first from text to pronunciation (TTS) engine first character set is converted into the first audio and is played out, first audio be first character set audio format;Second character set is converted into the second audio by the second tts engine and is played out, second audio is the audio format of second character set.Present invention is mainly applied to during mobile device use.

Description

The method and device of data output
Technical field
The present invention relates to the method and devices that terminal applies field more particularly to a kind of data export.
Background technique
With the continuous development for applying (Application, also known as APP) in mobile device, user is more and more selected APP software in mobile device recites word.
Existing reciting words software is shown entry by screen, so that user recites.Some are more high The back word software of grade, provides the playing function of word pronunciation.Concrete implementation mode are as follows: toy trumpet button when the user clicks When, mobile device broadcasts the pronunciation of English word by English TTS (Text To Speech, from text to pronunciation) engine It puts.
During stating data output in realization, at least there are the following problems in the prior art: entry for inventor's discovery Information all shown by screen, often because of eye fatigue or light when the entry information that user shows in reading screen Line reason can not see screen clearly, bring inconvenience to obtain entry information to user.
Summary of the invention
The method and device of a kind of data output provided by the invention, caused by being able to solve because of eye fatigue or light reason User obtain entry information inconvenience problem.
On the one hand, the present invention provides a kind of methods of data output, comprising:
The first character set and the second character set are generated according to the category of language in current entry, in first character set Language is first language, and the language in second character set is second language, and second character set is for explaining described the One character set;
By first from text to pronunciation (TTS) engine first character set is converted into the first audio and is broadcast It puts, first audio is the audio format of first character set;
Second character set is converted into the second audio by the second tts engine and is played out, second audio For the audio format of second character set.
On the other hand, the present invention also provides a kind of devices of data output, comprising:
Generation unit, for generating the first character set and the second character set according to current entry, in first character set Language be first language, the language in second character set is second language, and second character set is described for explaining First character set;
First converting unit, for passing through the first institute that (TTS) engine generates the generation unit from text to pronunciation It states the first character set and is converted to the first audio, first audio is the audio format of first character set;
First broadcast unit, for playing first audio;
Second converting unit, for second character set to be converted to the second audio by the second tts engine, described Two audios are the audio format of second character set;
Second broadcast unit, for playing second audio.
The method and device of data output provided by the invention can generate entry according to first language and second language First character set and the second character set convert the first character set by the first tts engine, pass through the second tts engine pair Second character set is converted.In the prior art, a kind of tts engine can only carry out voice conversion to a kind of language, such as word Pronunciation cannot achieve the full content in entry being all converted to audio format, so that the output of entry can not be detached from screen. In the present invention, according to the difference of category of language in entry, generates and correspond to macaronic two character set, the first tts engine First language can be carried out being converted to the first audio, the second tts engine can carry out second language to be converted to second Audio, and then reach and different language information in entry is carried out being converted to corresponding audio data, by the first sound Frequency and the second audio play out, and can be avoided and show entry by screen, and then reach through the mode other than screen, by word The effect that the full content of item is exported.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the flow chart of the method for first data output in the embodiment of the present invention;
Fig. 2 is the flow chart of the method for second data output in the embodiment of the present invention;
Fig. 3 is the flow chart of the method for third data output in the embodiment of the present invention;
Fig. 4 is the flow chart of the method for fourth data output in the embodiment of the present invention;
Fig. 5 is the structural schematic diagram of the device of data output in the embodiment of the present invention;
Fig. 6 is the structural schematic diagram of the device of another data output in the embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
The embodiment of the invention provides a kind of data output method, the method be applied to mobile device (smart phone, Tablet computer etc.) on, as shown in Figure 1, which comprises
Step 101 generates the first character set and the second character set, the first character set according to the category of language in current entry In language be first language, the language in the second character set is second language, and the second character set is for explaining the first character set.
Entry is stored in vocabulary, if first language is English, second language is Chinese, the composition of vocabulary such as table Shown in 1, the corresponding entry of every record, every entry has following fields: serial number, word, spelling, part of speech, meaning.By word " word " field in item is determined as the first character set;By in entry other than " word " field field (" spelling, part of speech, Meaning ") it is determined as the second character set, the part of speech in entry may use english abbreviation, need at this time true by the part of speech table of comparisons Determine the Chinese representation of part of speech, the part of speech table of comparisons is as shown in table 2.
Wherein, word is the word of English, and part of speech can be converted to Chinese by the part of speech table of comparisons, be spelled as English words Mother, meaning are the Chinese explanation for word.
The part of speech field (vt.) in table 1 in first record can be converted to Chinese part of speech according to table 2, and (and object is dynamic Word).It is " abandon " according to the first character set that first record (entry) generates in table 1, the second character set of generation is " a, b, a, n, d, o, n, transitive verb abandon, abandon, abandon ".
Table 1
Table 2
Serial number Part of speech-English Part of speech-Chinese
1 vt. Transitive verb
2 n. Noun
m prep. Preposition
Step 102, by first from text to pronunciation (TTS) engine the first character set is converted into the first audio and is carried out It plays, the first audio is the audio format of the first character set.
Second character set is converted to the second audio by the second tts engine and played out by step 103, the second audio For the audio format of the second character set.
Tts engine, which has, identifies English or Chinese, the function of being converted to audio text and play.Existing TTS Engine can identify English and simplified form of Chinese Character.For that can identify the tts engine of simplified form of Chinese Character, while there is identification English alphabet Function, but can not identify English word.
When the first character set or the second character set are converted, if being stored with real voice packet, the true man Audio corresponding with the first character set or the second character set is searched in voice packet.If not stored real voice packet, according to TTS Word or letter-sound as defined in engine convert the first character set or the second character set.
The method of data output provided in an embodiment of the present invention can generate entry according to first language and second language First character set and the second character set convert the first character set by the first tts engine, pass through the second tts engine pair Second character set is converted.In the prior art, a kind of tts engine can only carry out voice conversion to a kind of language, such as word Pronunciation cannot achieve the full content in entry being all converted to audio format, so that the output of entry can not be detached from screen. In the present invention, according to the difference of category of language in entry, generates and correspond to macaronic two character set, the first tts engine First language can be carried out being converted to the first audio, the second tts engine can carry out second language to be converted to second Audio, and then reach and different language information in entry is carried out being converted to corresponding audio data, by the first sound Frequency and the second audio play out, and can be avoided and show entry by screen, and then reach through the mode other than screen, by word The effect that the full content of item is exported.
It should be noted that the embodiment of the present invention to the function of tts engine without limiting, if tts engine can be real When now conversion between the language in addition to Chinese-English, the present invention can be realized the function of other language vocabularies output.Such as Sino-Japan, It is Sino-Korean, Sino-Russian etc..
The embodiment of the invention also provides a kind of methods of data output, illustrate as to method shown in Fig. 1, such as Shown in Fig. 2, when first tts engine is used to be converted to English English Phonetics, second tts engine is used to turn Chinese When being changed to Chinese speech, step 102 can be implemented by following manner:
Step 201 obtains word from current entry, and word is determined as the first character set.
Combination is determined as the second character by step 202, the combination that following at least one information are obtained from current entry Collection, information include: the spelling of part of speech, Chinese meaning, word.
Further, after step 202, the method also includes:
Step 203, from current entry, acquisition includes the English sentence or phrase of word, by English sentence or phrase It is determined as third character set.
Step 204, from current entry, obtain Chinese sentence corresponding with English sentence or phrase or phrase meaning, general Chinese sentence or phrase are determined as the 4th character set.
After step 103, the method also includes:
The third character set is converted into third audio by the first tts engine and is played out, the third audio For the audio format of the third character set;
The 4th character set is converted into the 4th audio by the second tts engine and is played out, the 4th audio For the audio format of the 4th character set.
Some vocabularies are other than including field shown in table 1, as shown in table 3, further includes: example sentence, example sentence translation Field.According to the entry of serial number 1 in table 3, the first character set of generation is " abandon ", and third character set is " I will Not abandon my pursuit of anything. ", the second character set are that " a, b, a, n, d, o, n, transitive verb are lost It abandons;Abandon, abandon ", the 4th character set is " I will not abandon the anything that I is pursued.".When playing according to the first character The sequence of collection, the second character set, third character set and the 4th character set plays out.
In addition, the example sentence field of table 3 is also possible to as phrase, word is " give ", and example sentence field contents are " give up ", The content of the field of example sentence translation at this time is " to abandon;It surrenders;... it gives;It gives up ".
Table 3
The method of data provided in an embodiment of the present invention output, can be generated according to the entry in Ying-Chinese vocabulary for The first audio and third audio of first tts engine identification, and the second audio and the 4th sound for the identification of the second tts engine Frequently, it can be realized and the content in entry is passed through into sound by playing the first audio, the second audio, third audio and the 4th audio The form of frequency is supplied to user, avoids exporting using screen, guarantees that user is still available under the not good enough environment of light and arrives The content of entry.
The embodiment of the invention also provides a kind of methods of data output, illustrate as to method shown in Fig. 1, such as Shown in Fig. 3, when first tts engine is used to be converted to Chinese Chinese speech, second tts engine is used to turn English When being changed to English Phonetics, the step of category of language in the current entry of basis generates the first character set and the second character set, It can be implemented by following manner:
Step 301 obtains Chinese character or word from current entry, and Chinese character or word are determined as the first character set.
Combination is determined as the second character by step 302, the combination that following at least one information are obtained from current entry Collection, information include: part of speech, English meaning, Chinese character phonetic.
Further, after step 302, the method also includes:
Step 303, from current entry, acquisition includes the Chinese sentence of Chinese character or word, and Chinese sentence is determined as Third character set.
Step 304, from current entry, obtain English meaning corresponding with Chinese sentence, English meaning be determined as the Four character set.
After step 103, the method also includes:
The third character set is converted into third audio by the first tts engine and is played out, the third audio For the audio format of the third character set;
The 4th character set is converted into the 4th audio by the second tts engine and is played out, the 4th audio For the audio format of the 4th character set.
The method of output provided in an embodiment of the present invention, it may also be used for output Han-English vocabulary, as shown in table 4.According to table The entry of serial number 1 in 4, the first character set of generation are " discarding ", and third character set is " I will not abandon times that I is pursued What.", the second character set is that " diu, qi, vt., abandon ", the 4th character set are " I will not abandon my pursuit of anything.".When playing according to the first character set, the second character set, third character set and the 4th character The sequence of collection plays out.
Table 4
The method of data provided in an embodiment of the present invention output, can be generated according to the entry in Han-English vocabulary for The first audio and third audio of first tts engine identification, and the second audio and the 4th sound for the identification of the second tts engine Frequently, it can be realized and the content in entry is passed through into sound by playing the first audio, the second audio, third audio and the 4th audio The form of frequency is supplied to user, avoids exporting using screen, guarantees that user is still available under the not good enough environment of light and arrives The content of entry.
The embodiment of the invention also provides a kind of methods of data output, as the further explanation to method shown in Fig. 1, Before step 101, the method also includes:
Entry set is determined from entry database, and an entry is sequentially read from the entry set as current word Item, the entry set are made of at least one entry;
Alternatively, obtaining an entry from the entry database as current entry.
In order to facilitate user to recite word, a certain number of words only are provided for user every time and are recited, it can also It is known as the plan of reciting.It is technically presented as, the entry of preset quantity or preset ratio is chosen from entry database as word Item set.When choosing entry, can in sequence, backward or the mode randomly selected chosen.For in entry set Each entry sequence execute Fig. 1 shown in method.The entry database can be primary school's vocabulary, university's vocabulary, College English Level Four vocabulary etc..
The embodiment of the invention also provides a kind of methods of data output, as the further explanation to method shown in Fig. 1, As shown in figure 4, the method also includes:
Step 401, the stopping instruction for receiving user's triggering, the stopping instruction is for stopping the first currently playing audio Or second audio.
Step 402, after first audio or the second audio finish, record the position of current entry.
Step 403, the broadcasting instruction for receiving user's triggering continue to play entry according to the position of preservation, or Entry is played from initial position, the broadcasting instruction plays entry for continuing.
If in the playing process of the first audio or the second audio or third audio or the 4th audio, the stopping of user's triggering Instruction, then after above-mentioned audio finishes, record the position of current entry.When user triggers broadcast button again, root Continue to play entry according to the position of the entry of storage, comprising: if the last stopping of 1, reception indicates, be playing the 4th Audio then plays next entry.If 2, receiving the last sound when stopping instruction, being playing other than the 4th audio Frequently, then next audio is played.3, next entry is directly played.4, it is played since first entry.
Further, it when playing aforementioned four audio, can be repeated playing according to preset times (2 times).It is broadcasting After discharging current entry, determine that whether there are also the entries not played in entry set, do not play if there is then continuing to play Entry, if without or receive user triggering stopping indicate, stop playing.Playing instruction and stopping instruction can leading to The button crossed on screen sets out to realize, i.e., when not playing, shows " broadcasting " on button, and clicking if user should be somebody's turn to do if " broadcasting " Button shows " pause ", and when " suspending " when the user clicks, which shows " broadcasting " again.
The method of data output provided in an embodiment of the present invention can play the audio being converted to according to preset times, Determine whether to continue to play according to the broadcasting situation of entry simultaneously, reduces number of operations when user's control replays.According to The stopping instruction and broadcasting of user's triggering indicate the broadcasting for enabling user's control to control entry.
The embodiment of the invention also provides a kind of devices 51 of data output, as shown in figure 5, the device of data output 51 include:
Generation unit 511, for generating the first character set and the second character set, institute according to the category of language in current entry Stating the language in the first character set is first language, and the language in second character set is second language, second character Collection is for explaining first character set.
First converting unit 512, for by first from text to pronunciation (TTS) engine the generation unit 511 is raw At first character set be converted to the first audio, first audio is the audio format of first character set.
First broadcast unit 513, for playing first audio.
Second converting unit 514, for second character set to be converted to the second audio, institute by the second tts engine State the audio format that the second audio is second character set.
Second broadcast unit 515, for playing second audio.
Further, first tts engine is used to English being converted to English Phonetics, and second tts engine is used for Chinese is converted into Chinese speech, the generation unit 511 includes that the first acquisition subelement 5111 and second obtain subelement 5112。
The word is determined as by the first acquisition subelement 5111 for obtaining word from the current entry First character set.
Described second obtains subelement 5112, for obtaining the group of following at least one information from the current entry It closes, the combination is determined as the second character set, the information includes: the spelling of part of speech, Chinese meaning, the word.
Further, as the further explanation to Fig. 5 shown device, as shown in fig. 6, the generation unit 511 includes:
Third obtains subelement 5113, for from the current entry, acquisition to include the English sentence of the word Or phrase, the English sentence or phrase are determined as third character set.
4th obtains subelement 5114, corresponding with the English sentence or phrase for obtaining from the current entry Chinese sentence or phrase meaning, the Chinese sentence or phrase meaning are determined as the 4th character set.
The device 51 of the data output further include: third broadcast unit 516 and the 4th broadcast unit 517.
First converting unit 512 is also used to, and the third character set is converted to third sound by the first tts engine Frequently, the third audio is the audio format of the third character set.
The third broadcast unit 516 is also used to play the third audio.
Second converting unit 514 is also used to, and the 4th character set is converted to the 4th sound by the second tts engine Frequently, the 4th audio is the audio format of the 4th character set.
4th broadcast unit 517 is also used to play the 4th audio.
Further, first tts engine is used to Chinese being converted to Chinese speech, and second tts engine is used for English is converted into English Phonetics,
The first acquisition subelement 5111 is also used to, and Chinese character or word is obtained from the current entry, by the Chinese Word or word are determined as the first character set;
The second acquisition subelement 5112 is also used to, and the group of following at least one information is obtained from the current entry Close, the combination be determined as the second character set, the information include: part of speech, English meaning, the Chinese character phonetic.
Further, the generation unit 511 includes:
The third obtains subelement 5113 and is also used to, and from the current entry, acquisition includes the Chinese character or word The Chinese sentence is determined as third character set by the Chinese sentence of language;
4th acquisition subelement 5114 is also used to, and from the current entry, obtains English corresponding with the Chinese sentence The English meaning is determined as the 4th character set by literary meaning;
First converting unit 512 is also used to, and the third character set is converted to third sound by the first tts engine Frequently, the third audio is the audio format of the third character set.
The third broadcast unit 516 is also used to play the third audio.
Second converting unit 514 is also used to, and the 4th character set is converted to the 4th sound by the second tts engine Frequently, the 4th audio is the audio format of the 4th character set.
4th broadcast unit 517 is also used to play the 4th audio.
Further, the device 51 of the data output further include:
Determination unit 518 sequentially reads one from the entry set for determining entry set from entry database As current entry, the entry set is made of at least one entry for entry.
The determination unit 518 is also used to obtain an entry from the entry database as current entry.
Further, the device 51 of the data output further include:
Receiving unit 519, for receiving the stopping instruction of user's triggering, the stopping instruction is currently playing for stopping First audio or the second audio;
Storage unit 5110, for storing the position of current entry after first audio or the second audio finish It sets;
The receiving unit 519 is also used to receive the broadcasting instruction of user's triggering, and the broadcasting instruction is for after continued broadcasting Put entry;
First broadcast unit 513 is also used to be continued according to the position of preservation to play entry, or from start bit Set broadcasting entry.
The device of data output provided in an embodiment of the present invention can generate entry according to first language and second language First character set and the second character set convert the first character set by the first tts engine, pass through the second tts engine pair Second character set is converted.In the prior art, a kind of tts engine can only carry out voice conversion to a kind of language, such as word Pronunciation cannot achieve the full content in entry being all converted to audio format, so that the output of entry can not be detached from screen. In the present invention, according to the difference of category of language in entry, generates and correspond to macaronic two character set, the first tts engine First language can be carried out being converted to the first audio, the second tts engine can carry out second language to be converted to second Audio, and then reach and different language information in entry is carried out being converted to corresponding audio data, by the first sound Frequency and the second audio play out, and can be avoided and show entry by screen, and then reach through the mode other than screen, by word The effect that the full content of item is exported.Draw furthermore it is possible to be generated according to the entry in Ying-Chinese vocabulary for the first TTS The first audio and third audio of identification are held up, and for the second audio and the 4th audio of the identification of the second tts engine, by broadcasting Putting the first audio, the second audio, third audio and the 4th audio can be realized the content in entry by way of audio It is supplied to user, avoids exporting using screen, guarantees that user is still available under the not good enough environment of light and arrives in entry Hold.The first audio and third audio identified for the first tts engine can also be generated according to the entry in Han-English vocabulary, And the second audio and the 4th audio for the identification of the second tts engine, by playing the first audio, the second audio, third sound Frequency and the 4th audio can be realized the content in entry being supplied to user by way of audio, avoid defeated using screen Out, guarantee user's still available content to entry under the not good enough environment of light.
It is apparent to those skilled in the art that for convenience and simplicity of description, only with above-mentioned each function The division progress of module can according to need and for example, in practical application by above-mentioned function distribution by different function moulds Block is completed, i.e., the internal structure of device is divided into different functional modules, to complete all or part of function described above Energy.The specific work process of the system, apparatus, and unit of foregoing description, can be with reference to corresponding in preceding method embodiment Journey, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the module or The division of unit, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units Or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, institute Display or the mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, device or unit Indirect coupling or communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the present invention The all or part of the steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk Etc. the various media that can store program code.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (6)

1. a kind of method of data output characterized by comprising
The first character set and the second character set are generated according to the category of language in current entry, the language in first character set For first language, the language in second character set is second language, and second character set is for explaining first word Symbol collection;
By first from text to pronunciation (TTS) engine first character set is converted into the first audio and is played out, institute State the audio format that the first audio is first character set;
Second character set is converted into the second audio by the second tts engine and is played out, second audio is institute State the audio format of the second character set;
Wherein, first tts engine is used to be converted to English English Phonetics, and second tts engine is used to turn Chinese It is changed to Chinese speech, the step of category of language in the current entry of basis generates the first character set and the second character set, packet It includes: obtaining word from the current entry, the word is determined as the first character set;Under being obtained in the current entry The combination is determined as the second character set by the combination for stating at least one information, and the information includes: part of speech, Chinese meaning, institute State the spelling of word;Described from the current entry, the combination of following at least one information is obtained, the combination is determined After the step of for the second character set, the method also includes: from the current entry, acquisition includes the English of the word The English sentence or phrase are determined as third character set by literary sentence or phrase;From the current entry, obtain with it is described English sentence or the corresponding Chinese sentence of phrase or phrase meaning, are determined as the 4th character set for the Chinese sentence or phrase; It second character set is converted into the second audio and plays out in second tts engine that passes through, second audio is After the step of audio format of second character set, the method also includes: by the first tts engine by the third word Symbol collection is converted to third audio and plays out, and the third audio is the audio format of the third character set;Pass through second 4th character set is converted to the 4th audio and played out by tts engine, and the 4th audio is the 4th character set Audio format;Or
First tts engine is used to be converted to Chinese Chinese speech, and second tts engine is used to English being converted to English The step of language voice, the category of language in the current entry of basis generates the first character set and the second character set, comprising: from institute It states and obtains Chinese character or word in current entry, the Chinese character or word are determined as the first character set;From the current entry The combination is determined as the second character set by the combination for obtaining following at least one information, and the information includes: part of speech, English The phonetic of meaning, the Chinese character;Described from the current entry, the combination of following at least one information is obtained, it will be described After the step of combination is determined as the second character set, the method also includes: from the current entry, acquisition includes described The Chinese sentence is determined as third character set by the Chinese sentence of Chinese character or word;From the current entry, acquisition and institute The corresponding English meaning of Chinese sentence is stated, the English meaning is determined as the 4th character set;Pass through the second tts engine described Second character set is converted into the second audio and is played out, second audio is the audio lattice of second character set After the step of formula, the method also includes: the third character set is converted to by third audio by the first tts engine and is gone forward side by side Row plays, and the third audio is the audio format of the third character set;By the second tts engine by the 4th character set It is converted to the 4th audio and plays out, the 4th audio is the audio format of the 4th character set.
2. the method according to claim 1, wherein generating the first character set and the second word according to current entry Before the step of symbol collection, the method also includes:
Entry set is determined from entry database, an entry is sequentially read from the entry set as current entry, The entry set is made of at least one entry;
Alternatively, obtaining an entry from the entry database as current entry.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
The stopping instruction of user's triggering is received, the stopping instruction is for stopping currently playing the first audio or the second audio;
After first audio or the second audio finish, the position of current entry is recorded;
The broadcasting instruction for receiving user's triggering, continues to play entry according to the position of preservation, or broadcast from initial position Entry is put, the broadcasting instruction plays entry for continuing.
4. a kind of device of data output characterized by comprising
Generation unit, for generating the first character set and the second character set according to the category of language in current entry, described first Language in character set is first language, and the language in second character set is second language, and second character set is used for Explain first character set;
First converting unit, for (TTS) engine to generate the generation unit from text to pronunciation described the by first One character set is converted to the first audio, and first audio is the audio format of first character set;
First broadcast unit, for playing first audio;
Second converting unit, for second character set to be converted to the second audio, second sound by the second tts engine Frequency is the audio format of second character set;
Second broadcast unit, for playing second audio;
Wherein, first tts engine is used to be converted to English English Phonetics, and second tts engine is used to turn Chinese It is changed to Chinese speech, the generation unit includes that the first acquisition subelement and second obtain subelement;Described first obtains son list The word is determined as the first character set for obtaining word from the current entry by member;Described second obtains son list The combination is determined as the second character set for obtaining the combination of following at least one information from the current entry by member, The information includes: the spelling of part of speech, Chinese meaning, the word;Wherein, the generation unit includes: that third obtains son list Member is used for from the current entry, and acquisition includes the English sentence or phrase of the word, by the English sentence or word Group is determined as third character set;4th obtains subelement, for from the current entry, obtaining and the English sentence or word The Chinese sentence or phrase meaning are determined as the 4th character set by the corresponding Chinese sentence of group or phrase meaning;Described device Further include: third broadcast unit and the 4th broadcast unit;First converting unit is also used to, by the first tts engine by institute It states third character set and is converted to third audio, the third audio is the audio format of the third character set;The third is broadcast It puts unit and is also used to play the third audio;Second converting unit is also used to, by the second tts engine by the described 4th Character set is converted to the 4th audio, and the 4th audio is the audio format of the 4th character set;4th broadcast unit It is also used to play the 4th audio;Or
First tts engine is used to be converted to Chinese Chinese speech, and second tts engine is used to English being converted to English Language voice, the generation unit include that the first acquisition subelement and second obtain subelement;The first acquisition subelement is used for, Chinese character or word are obtained from the current entry, and the Chinese character or word are determined as the first character set;Described second obtains Subelement is used for, and the combination of following at least one information is obtained from the current entry, and the combination is determined as the second word Symbol collection, the information include: part of speech, English meaning, the Chinese character phonetic;Wherein, the generation unit includes: that third obtains Subelement is used for from the current entry, and acquisition includes the Chinese sentence of the Chinese character or word, by the Chinese sentence It is determined as third character set;4th obtains subelement, for obtaining corresponding with the Chinese sentence from the current entry The English meaning is determined as the 4th character set by English meaning;Described device further include: third broadcast unit and the 4th plays Unit;First converting unit is also used to, and the third character set is converted to third audio, institute by the first tts engine State the audio format that third audio is the third character set;The third broadcast unit is also used to play the third audio; Second converting unit is also used to, and the 4th character set is converted to the 4th audio by the second tts engine, and the described 4th Audio is the audio format of the 4th character set;4th broadcast unit is also used to play the 4th audio.
5. device according to claim 4, which is characterized in that described device further include:
Determination unit sequentially reads an entry for determining entry set from entry database from the entry set As current entry, the entry set is made of at least one entry;
The determination unit is also used to obtain an entry from the entry database as current entry.
6. device according to claim 5, which is characterized in that described device further include:
Receiving unit, for receiving the stopping instruction of user's triggering, the stopping instruction is for stopping the first currently playing sound Frequency or the second audio;
Storage unit, for storing the position of current entry after first audio or the second audio finish;
The receiving unit is also used to receive the broadcasting instruction of user's triggering, and the broadcasting instruction plays entry for continuing;
First broadcast unit is also used to continue according to the position of preservation to play entry, or plays word from initial position Item.
CN201310239379.7A 2013-06-17 2013-06-17 The method and device of data output Active CN104239323B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310239379.7A CN104239323B (en) 2013-06-17 2013-06-17 The method and device of data output

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310239379.7A CN104239323B (en) 2013-06-17 2013-06-17 The method and device of data output

Publications (2)

Publication Number Publication Date
CN104239323A CN104239323A (en) 2014-12-24
CN104239323B true CN104239323B (en) 2019-03-26

Family

ID=52227413

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310239379.7A Active CN104239323B (en) 2013-06-17 2013-06-17 The method and device of data output

Country Status (1)

Country Link
CN (1) CN104239323B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106228972B (en) * 2016-07-08 2019-09-27 北京光年无限科技有限公司 Method and system are read aloud in multi-language text mixing towards intelligent robot system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101944092A (en) * 2009-07-06 2011-01-12 英业达股份有限公司 Word pronunciation system and method thereof
CN102324995A (en) * 2011-04-20 2012-01-18 铁道部运输局 Speech broadcasting method and system
CN102881192A (en) * 2012-09-04 2013-01-16 广东群兴玩具股份有限公司 Chinese character writing learning system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2836159B2 (en) * 1990-01-30 1998-12-14 株式会社日立製作所 Speech recognition system for simultaneous interpretation and its speech recognition method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101944092A (en) * 2009-07-06 2011-01-12 英业达股份有限公司 Word pronunciation system and method thereof
CN102324995A (en) * 2011-04-20 2012-01-18 铁道部运输局 Speech broadcasting method and system
CN102881192A (en) * 2012-09-04 2013-01-16 广东群兴玩具股份有限公司 Chinese character writing learning system

Also Published As

Publication number Publication date
CN104239323A (en) 2014-12-24

Similar Documents

Publication Publication Date Title
CN107423363B (en) Artificial intelligence based word generation method, device, equipment and storage medium
CN108288468B (en) Audio recognition method and device
JP6535349B2 (en) Contextual Interpretation in Natural Language Processing Using Previous Dialogue Acts
US9047868B1 (en) Language model data collection
US9589563B2 (en) Speech recognition of partial proper names by natural language processing
CN105869446B (en) A kind of electronic reading device and voice reading loading method
US20160019816A1 (en) Language Learning Tool
US8909525B2 (en) Interactive voice recognition electronic device and method
CN108133632B (en) The training method and system of English Listening Comprehension
US20160071510A1 (en) Voice generation with predetermined emotion type
CN107680581A (en) System and method for title pronunciation
JP2001503175A (en) Method and apparatus for automatic language translation
JP5620349B2 (en) Dialogue device, dialogue method and dialogue program
CN108564944B (en) Intelligent control method, system, equipment and storage medium
WO2006106415A1 (en) Method, device, and computer program product for multi-lingual speech recognition
CN105760356B (en) Automatic generation method and system for English word dictation question alternative options
CN110175242B (en) Human-computer interaction association method, device and medium based on knowledge graph
CN105825730A (en) Bilingual broadcasting system for foreign language learning
JP2019185737A (en) Search method and electronic device using the same
CN104679733B (en) A kind of voice dialogue interpretation method, apparatus and system
CN104239323B (en) The method and device of data output
CN112837675B (en) Voice recognition method, device, related system and equipment
CN105404694A (en) Automatic generation method, generation device and equipment of English learning reading materials
CN111968646A (en) Voice recognition method and device
Varga et al. Similarity based language model construction for voice activated open-domain question answering

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20240104

Address after: 518000 Tencent Building, No. 1 High-tech Zone, Nanshan District, Shenzhen City, Guangdong Province, 35 Floors

Patentee after: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.

Patentee after: TENCENT CLOUD COMPUTING (BEIJING) Co.,Ltd.

Address before: 2, 518000, East 403 room, SEG science and Technology Park, Zhenxing Road, Shenzhen, Guangdong, Futian District

Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.

TR01 Transfer of patent right