Movatterモバイル変換


[0]ホーム

URL:


CN110660394A - Text editing method and device - Google Patents

Text editing method and device
Download PDF

Info

Publication number
CN110660394A
CN110660394ACN201810609449.6ACN201810609449ACN110660394ACN 110660394 ACN110660394 ACN 110660394ACN 201810609449 ACN201810609449 ACN 201810609449ACN 110660394 ACN110660394 ACN 110660394A
Authority
CN
China
Prior art keywords
text
audio file
dialect
user
voice
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.)
Pending
Application number
CN201810609449.6A
Other languages
Chinese (zh)
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.)
EVOC Intelligent Technology Co Ltd
Original Assignee
EVOC Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by EVOC Intelligent Technology Co LtdfiledCriticalEVOC Intelligent Technology Co Ltd
Priority to CN201810609449.6ApriorityCriticalpatent/CN110660394A/en
Publication of CN110660394ApublicationCriticalpatent/CN110660394A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

The invention provides a text editing method. The method comprises the following steps: collecting a voice signal input by a user, and storing the voice signal input by the user as an audio file; carrying out dialect classification on the audio file through a background database, translating the audio file into a text of a corresponding dialect, and replacing the text of the corresponding dialect with a standard mandarin text; writing the standard Mandarin text into a text file. The invention can improve the text editing efficiency by adding the voice recognition function in the existing text editing tool and recognizing various local dialects by the added voice recognition function.

Description

Text editing method and device
Technical Field
The present invention relates to the field of speech signal processing technologies, and in particular, to a text editing method and apparatus.
Background
With the progress of science and technology, the demand of people is increasing day by day, in the era of big data and the era of artificial intelligence, people pay more attention to the result, so that the complicated processes can be saved, the time and the labor are saved, and the convenience for realizing one target is important.
At present, in the field of text editing, the existing keyboard and handwriting input can not meet the requirement of people for efficiently inputting long texts, and with the development of a speech recognition technology, the input speed of text editing is improved by one level, so that the content which people want to express can be quickly converted into characters at will. The traditional Chinese voice input method has a high recognition rate for standard Mandarin, but the voice recognition efficiency is still low for local dialects, so that the text editing efficiency through voice recognition is low for many users who only can use the local dialects.
Disclosure of Invention
According to the text editing method and device provided by the invention, the voice recognition function is added in the existing text editing tool, and the added voice recognition function can recognize various local dialects, so that the text editing efficiency can be improved.
In a first aspect, the present invention provides a text editing method, including:
collecting a voice signal input by a user, and storing the voice signal input by the user as an audio file;
carrying out dialect classification on the audio file through a background database, translating the audio file into a text of a corresponding dialect, and replacing the text of the corresponding dialect with a standard mandarin text;
writing the standard Mandarin text into a text file.
In a second aspect, the present invention provides a text editing apparatus, comprising:
the voice recording module is used for collecting voice signals input by a user and storing the voice signals input by the user as an audio file;
the background data matching module is used for carrying out dialect classification on the audio file through a background database, translating the audio file into a text of a corresponding dialect and replacing the text of the corresponding dialect with a standard mandarin text;
and the text output module is used for writing the standard mandarin text into a text file.
The text editing method and the text editing device provided by the embodiment of the invention collect the voice signal input by a user and store the voice signal input by the user as an audio file; carrying out dialect classification on the audio file through a background database, translating the audio file into a text of a corresponding dialect, and replacing the text of the corresponding dialect with a standard mandarin text; writing the standard Mandarin text into a text file. Compared with the prior art, the text editing method and the text editing device have the advantages that the voice recognition function is added in the existing text editing tool, and the added voice recognition function can recognize various local dialects, so that the text editing efficiency can be improved.
Drawings
FIG. 1 is a flow chart of a text editing method according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a text editing apparatus according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a background data matching module according to another 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 only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention provides a text editing method, as shown in fig. 1, the method comprises:
and S11, collecting the voice signal input by the user, and saving the voice signal input by the user as an audio file.
S12, dialect classification is carried out on the audio files through a background database, the audio files are translated into texts of corresponding dialects, and the texts of the corresponding dialects are replaced by standard Mandarin texts.
And S13, writing the standard Mandarin text into a text file.
Compared with the prior art, the text editing method provided by the embodiment of the invention has the advantages that the voice recognition function is added in the existing text editing tool, and the added voice recognition function can recognize various local dialects, so that the typing time can be saved, the text entry difficulty is reduced, and the text editing efficiency can be improved.
Optionally, the collecting the voice signal input by the user and saving the voice signal input by the user as an audio file includes:
after the text editing interface detects that a user starts a voice input function, voice signals input by the user are collected according to a sentence-by-sentence input mode or an integral input mode selected by the user, and the collected voice signals are stored into a plurality of audio files in sequence.
Further, after the collecting the voice signal input by the user and saving the voice signal input by the user as an audio file, the dialect classifying the audio file through the background database, translating the audio file into a text of a corresponding dialect, and replacing the text of the corresponding dialect with a standard mandarin text, further includes:
and extracting the characteristics of the audio file to obtain characteristic parameters corresponding to the audio file.
Optionally, the step S12 specifically includes:
carrying out dialect classification on the characteristic parameters corresponding to the audio files by utilizing an acoustic database;
obtaining a text of the corresponding dialect according to the characteristic parameters corresponding to the audio file and by combining a text database;
replacing the text of the corresponding dialect with standard mandarin text.
In order to facilitate better understanding of the present invention, the following text editing process is given by taking support of seven dialects as an example:
1) and carrying out dialect classification on the characteristic parameters corresponding to the audio files by utilizing an acoustic database.
The acoustic database provides voice data of seven dialects (north dialects, wu dialects, xiang dialects, gan dialects, yue dialects, hakk dialects and Min dialects), and specifically performs voice data classification according to voices and grammars of local dialects so as to judge the local dialects category to which the audio file belongs.
2) And obtaining the text of the corresponding dialect according to the characteristic parameters corresponding to the audio file and by combining a text database.
The text database provides text data of various local dialects, and particularly translates the audio file into texts of corresponding dialects according to vocabularies, sentences and grammars of the local dialects.
3) Replacing the text of the corresponding dialect with standard mandarin text.
An embodiment of the present invention further provides a text editing apparatus, as shown in fig. 2, the apparatus includes:
the voice recording module is used for collecting voice signals input by a user and storing the voice signals input by the user as an audio file;
the background data matching module is used for carrying out dialect classification on the audio file through a background database, translating the audio file into a text of a corresponding dialect and replacing the text of the corresponding dialect with a standard mandarin text;
and the text output module is used for writing the standard mandarin text into a text file.
Compared with the prior art, the text editing device provided by the embodiment of the invention has the advantages that the voice recognition function is added in the existing text editing tool, and the added voice recognition function can recognize various local dialects, so that the typing time can be saved, the text entry difficulty is reduced, and the text editing efficiency can be improved.
Optionally, the voice input module is configured to, after detecting that the user starts a voice input function on the text editing interface, acquire a voice signal input by the user according to a sentence-by-sentence input mode or an entire input mode selected by the user, and store the acquired voice signal as a plurality of audio files in sequence.
Further, the apparatus further comprises:
and the characteristic extraction module is used for extracting the characteristics of the audio file to obtain the characteristic parameters corresponding to the audio file.
Optionally, the background data matching module includes, as shown in fig. 3:
the acoustic database is used for carrying out dialect classification on the audio file according to voice data of a plurality of dialects provided in the acoustic database;
a text database for providing text data of a plurality of dialects;
the comparison matching unit is used for obtaining the text of the corresponding dialect according to the characteristic parameters corresponding to the audio file, the type of the dialect and the text data of the dialect;
and the replacing unit is used for replacing the text of the corresponding dialect with standard Mandarin text.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

CN201810609449.6A2018-06-132018-06-13Text editing method and devicePendingCN110660394A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201810609449.6ACN110660394A (en)2018-06-132018-06-13Text editing method and device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201810609449.6ACN110660394A (en)2018-06-132018-06-13Text editing method and device

Publications (1)

Publication NumberPublication Date
CN110660394Atrue CN110660394A (en)2020-01-07

Family

ID=69026197

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201810609449.6APendingCN110660394A (en)2018-06-132018-06-13Text editing method and device

Country Status (1)

CountryLink
CN (1)CN110660394A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN112908296A (en)*2021-02-182021-06-04上海工程技术大学Dialect identification method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN112908296A (en)*2021-02-182021-06-04上海工程技术大学Dialect identification method

Similar Documents

PublicationPublication DateTitle
CN105931644B (en)Voice recognition method and mobile terminal
CN110444198B (en)Retrieval method, retrieval device, computer equipment and storage medium
CN111128223B (en)Text information-based auxiliary speaker separation method and related device
CN107305541B (en)Method and device for segmenting speech recognition text
CN111341305B (en)Audio data labeling method, device and system
CN106782607B (en)Determining hotword suitability
CN103021412B (en)Voice recognition method and system
JP5098613B2 (en) Speech recognition apparatus and computer program
CN103137129A (en)Voice recognition method and electronic device
WO2020024620A1 (en)Voice information processing method and device, apparatus, and storage medium
CN101636732A (en)Method and apparatus for language independent voice indexing and searching
CN109033060B (en)Information alignment method, device, equipment and readable storage medium
CN112818680B (en)Corpus processing method and device, electronic equipment and computer readable storage medium
TW201339862A (en)System and method for eliminating language ambiguity
US20130173251A1 (en)Electronic device and natural language analysis method thereof
CN106713111B (en)Processing method for adding friends, terminal and server
CN111209367A (en)Information searching method, information searching device, electronic equipment and storage medium
CN112259083A (en)Audio processing method and device
CN114120985B (en) Soothing interaction method, system, device and storage medium for intelligent voice terminal
CN106782517A (en)A kind of speech audio keyword filter method and device
CN113782026A (en) An information processing method, apparatus, medium and equipment
CN108899016B (en)Voice text normalization method, device and equipment and readable storage medium
WrayClassification of closely related sub-dialects of Arabic using support-vector machines
CN114707515A (en)Method and device for judging dialect, electronic equipment and storage medium
CN110660394A (en)Text editing method and device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
WD01Invention patent application deemed withdrawn after publication

Application publication date:20200107

WD01Invention patent application deemed withdrawn after publication

[8]ページ先頭

©2009-2025 Movatter.jp