CN106648097B - Voice input method and device - Google Patents

Voice input method and device Download PDF

Info

Publication number
CN106648097B
CN106648097B CN201611200101.9A CN201611200101A CN106648097B CN 106648097 B CN106648097 B CN 106648097B CN 201611200101 A CN201611200101 A CN 201611200101A CN 106648097 B CN106648097 B CN 106648097B
Authority
CN
China
Prior art keywords
input method
standard input
information
standard
message
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
CN201611200101.9A
Other languages
Chinese (zh)
Other versions
CN106648097A (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.)
Unisound Intelligent Technology Co Ltd
Original Assignee
Beijing Yunzhisheng Information 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 Beijing Yunzhisheng Information Technology Co Ltd filed Critical Beijing Yunzhisheng Information Technology Co Ltd
Priority to CN201611200101.9A priority Critical patent/CN106648097B/en
Publication of CN106648097A publication Critical patent/CN106648097A/en
Application granted granted Critical
Publication of CN106648097B publication Critical patent/CN106648097B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/545Interprogram communication where tasks reside in different layers, e.g. user- and kernel-space
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Multimedia (AREA)
  • Acoustics & Sound (AREA)
  • Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • Telephonic Communication Services (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention relates to a voice input method and a device, wherein the method comprises the following steps: receiving voice information input by a user through a voice input method process; recognizing the voice information to obtain character information corresponding to the voice information; sharing the text information to a standard input method process; and filling the text information into a target edit box associated with the standard input method through the standard input method process. Through the technical scheme, the function of voice recognition result transcription is realized by using a standard input method as a middle bridge, and the trouble of different codes of various editors can be avoided.

Description

Voice input method and device
Technical Field
The present invention relates to the field of speech processing technologies, and in particular, to a speech input method and apparatus.
Background
In the related art, when characters are input by using a phonetic input method, since codes are different depending on editors, it is necessary to switch between different codes when character transcription is performed.
Disclosure of Invention
The embodiment of the invention provides a voice input method and a voice input device, which are used for avoiding the troubles of different codes of various editors.
According to a first aspect of embodiments of the present invention, there is provided a voice input method, including:
receiving voice information input by a user through a voice input method process;
recognizing the voice information to obtain character information corresponding to the voice information;
sharing the text information to a standard input method process;
and filling the text information into a target edit box associated with the standard input method through the standard input method process.
In the embodiment, the function of transferring the voice recognition result is realized by using the standard input method as an intermediate bridge, so that the trouble of different codes of various editors can be avoided.
In one embodiment, the sharing the text information to a standard input method process includes:
and sharing the text message to the standard input method process through an interprocess communication mechanism.
In this embodiment, the text message may be shared to the standard input method process through an inter-process communication mechanism, i.e., data is shared between the phonetic input method process and the standard input method process through a WM _ COPYDATA message.
In one embodiment, the filling out the text information into a target edit box associated with the standard input method through the standard input method process includes:
receiving and storing the text information through the standard input method process, and constructing an input method message corresponding to the standard input method according to the text information;
and sending an information calling request to an operating system so that the operating system calls the input method message according to the information calling request and fills the text information corresponding to the input method message into a target edit box associated with the standard input method.
In one embodiment, the constructing an input method message corresponding to the standard input method according to the text information includes:
and filling a preset structure body object corresponding to the standard input method according to the character information to obtain an input method message corresponding to the standard input method.
In one embodiment, the filling content of the preset structure object of the standard input method includes the content, length and storage position of the text message. And filling is carried out in the preset structure body, so that the operating system can conveniently and quickly acquire the character information according to the filling content, namely the length, the storage position and the like of the character information.
In the embodiment, when the standard input method process constructs the input method message, after receiving the data transmitted by the voice input method process, the structure L PCOMPOSITIONNSTRING object specified by the standard input method is filled, and finally the data is written into the target edit box through the path of the standard input method through message transmission.
In the implementation process, a member variable BOO L isprocess needs to be added to a structural body L PINPUTTEXT provided by the system, the structural body is assigned to TRUE, the operating system is told to call an ImeToAsciiEx interface function, the construction of an input method message is realized in the interface through a custom function MyGenerateMessage, data is locked in an IMC cache, and finally the data is sent to an edit box associated with the current input method through the interface function ImGenerateMessage.
According to a second aspect of the embodiments of the present invention, there is provided a voice input apparatus including:
the receiving module is used for receiving voice information input by a user through a voice input method process;
the recognition module is used for recognizing the voice information to obtain character information corresponding to the voice information;
the sharing module is used for sharing the text information to a standard input method process;
and the filling module is used for filling the text information into a target edit box associated with the standard input method through the standard input method process.
In one embodiment, the sharing module is to:
and sharing the text message to the standard input method process through an interprocess communication mechanism.
In one embodiment, the filling module includes:
the construction submodule is used for receiving and storing the character information through the standard input method process and constructing the input method message corresponding to the standard input method according to the character information;
and the sending submodule is used for sending an information calling request to an operating system so that the operating system calls the input method message according to the information calling request and fills the text information corresponding to the input method message into a target edit box associated with the standard input method.
In one embodiment, the construction submodule is configured to:
and filling a preset structure body object corresponding to the standard input method according to the character information to obtain an input method message corresponding to the standard input method.
In one embodiment, the filling content of the preset structure object of the standard input method includes the content, length and storage position of the text message.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow chart illustrating a method of speech input according to an exemplary embodiment.
FIG. 2 is a flow chart illustrating another method of speech input according to an exemplary embodiment.
FIG. 3 is a flow chart illustrating another method of speech input according to an example embodiment.
FIG. 4 is a block diagram illustrating a voice input device according to an exemplary embodiment.
FIG. 5 is a block diagram illustrating a voice input device according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
FIG. 1 is a flow chart illustrating a method of speech input according to an exemplary embodiment. The voice input method is applied to terminal equipment which can be any equipment with a voice control function, such as a mobile phone, a computer, a digital broadcast terminal, a message transceiver, a game console, a tablet equipment, a medical equipment, a body-building equipment, a personal digital assistant and the like. As shown in fig. 1, the method comprises steps S101-S104:
in step S101, receiving voice information input by a user through a voice input method process;
in step S102, voice information is identified to obtain character information corresponding to the voice information;
in step S103, sharing the text information to the standard input method process;
in step S104, text information is filled in a target edit box associated with the standard input method through the standard input method process.
In the embodiment, the function of transferring the voice recognition result is realized by using the standard input method as an intermediate bridge, so that the trouble of different codes of various editors can be avoided.
FIG. 2 is a flow chart illustrating another method of speech input according to an exemplary embodiment.
As shown in fig. 2, in one embodiment, the step S103 includes the step S201:
in step S201, the text message is shared to the standard input method process through the inter-process communication mechanism.
In this embodiment, text messages may be shared to the standard input method process through an inter-process communication mechanism, i.e., data is shared between the phonetic input method process and the standard input method process through a WM _ COPYDATA message.
FIG. 3 is a flow chart illustrating another method of speech input according to an example embodiment.
As shown in FIG. 3, in one embodiment, the step S104 includes steps S301-S302:
in step S301, receiving and storing text information through a standard input method process, and constructing an input method message corresponding to a standard input method according to the text information;
the method for constructing the input method message corresponding to the standard input method according to the text information comprises the following steps:
and filling the preset structural body object corresponding to the standard input method according to the character information to obtain the input method message corresponding to the standard input method.
In step S302, an information call request is sent to the operating system, so that the operating system calls the input method message according to the information call request, and fills the text information corresponding to the input method message into the target edit box associated with the standard input method.
In one embodiment, the filling content of the preset structure object of the standard input method comprises the content, the length and the storage position of the character information. And filling is carried out in the preset structure body, so that the operating system can conveniently and quickly acquire the character information according to the filling content, namely the length, the storage position and the like of the character information.
In the embodiment, when the standard input method process constructs the input method message, after receiving the data transmitted by the voice input method process, the structure L PCOMPOSITIONNSTRING object specified by the standard input method is filled, and finally the data is written into the target edit box through the path of the standard input method through message transmission.
In the implementation process, a member variable BOO L isprocess needs to be added to a structural body L PINPUTTEXT provided by the system, the structural body is assigned to TRUE, the operating system is told to call an ImeToAsciiEx interface function, the construction of an input method message is realized in the interface through a custom function MyGenerateMessage, data is locked in an IMC cache, and finally the data is sent to an edit box associated with the current input method through the interface function ImGenerateMessage.
The following are embodiments of the apparatus of the present invention that may be used to perform embodiments of the method of the present invention.
Fig. 4 is a block diagram illustrating a voice input apparatus, which may be implemented as part or all of a terminal device through software, hardware, or a combination of both, according to an example embodiment. As shown in fig. 4, the speech processing apparatus includes:
a receiving module 41, configured to receive voice information input by a user through a voice input method process;
the recognition module 42 is configured to recognize the voice information to obtain text information corresponding to the voice information;
a sharing module 43, configured to share the text information to a standard input method process;
a filling module 44, configured to fill the text information into a target edit box associated with the standard input method through the standard input method process.
In the embodiment, the function of transferring the voice recognition result is realized by using the standard input method as an intermediate bridge, so that the trouble of different codes of various editors can be avoided.
In one embodiment, the sharing module 43 is configured to:
and sharing the text message to the standard input method process through an interprocess communication mechanism.
In this embodiment, the text message may be shared to the standard input method process through an inter-process communication mechanism, i.e., data is shared between the phonetic input method process and the standard input method process through a WM _ COPYDATA message.
FIG. 5 is a block diagram illustrating a voice input device according to an exemplary embodiment.
As shown in fig. 5, in one embodiment, the filling module 44 includes:
the construction submodule 51 is used for receiving and storing the text information through the standard input method process, and constructing the input method message corresponding to the standard input method according to the text information;
the sending submodule 52 is configured to send an information call request to an operating system, so that the operating system calls the input method message according to the information call request, and fills the text information corresponding to the input method message in a target edit box associated with the standard input method.
In one embodiment, the construction submodule 51 is configured to:
and filling a preset structure body object corresponding to the standard input method according to the character information to obtain an input method message corresponding to the standard input method.
In one embodiment, the filling content of the preset structure object of the standard input method includes the content, length and storage position of the text message. And filling is carried out in the preset structure body, so that the operating system can conveniently and quickly acquire the character information according to the filling content, namely the length, the storage position and the like of the character information.
In the embodiment, when the standard input method process constructs the input method message, after receiving the data transmitted by the voice input method process, the structure L PCOMPOSITIONNSTRING object specified by the standard input method is filled, and finally the data is written into the target edit box through the path of the standard input method through message transmission.
In the implementation process, a member variable BOO L isprocess needs to be added to a structural body L PINPUTTEXT provided by the system, the structural body is assigned to TRUE, the operating system is told to call an ImeToAsciiEx interface function, the construction of an input method message is realized in the interface through a custom function MyGenerateMessage, data is locked in an IMC cache, and finally the data is sent to an edit box associated with the current input method through the interface function ImGenerateMessage.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (6)

1. A speech input method, comprising:
receiving voice information input by a user through a voice input method process;
recognizing the voice information to obtain character information corresponding to the voice information;
sharing the text information to a standard input method process;
filling the text information into a target edit box associated with the standard input method through the standard input method process;
the filling the text information into a target edit box associated with the standard input method through the standard input method process comprises:
receiving and storing the text information through the standard input method process, and constructing an input method message corresponding to the standard input method according to the text information;
sending an information calling request to an operating system so that the operating system calls the input method message according to the information calling request and fills the text information corresponding to the input method message into a target edit box associated with the standard input method;
the constructing of the input method message corresponding to the standard input method according to the text information comprises:
and filling a preset structure body object corresponding to the standard input method according to the character information to obtain an input method message corresponding to the standard input method.
2. The method of claim 1, wherein said sharing said textual information to a standard input method process comprises:
and sharing the text information to the standard input method process through an interprocess communication mechanism.
3. The method according to claim 1, wherein the filling content of the preset structure object of the standard input method comprises the content, length and storage position of the text message.
4. A speech input device, comprising:
the receiving module is used for receiving voice information input by a user through a voice input method process;
the recognition module is used for recognizing the voice information to obtain character information corresponding to the voice information;
the sharing module is used for sharing the text information to a standard input method process;
the filling module is used for filling the text information into a target edit box associated with the standard input method through the standard input method process;
the filling module comprises:
the construction submodule is used for receiving and storing the character information through the standard input method process and constructing the input method message corresponding to the standard input method according to the character information;
the sending submodule is used for sending an information calling request to an operating system so that the operating system calls the input method message according to the information calling request and fills the text information corresponding to the input method message into a target edit box associated with the standard input method;
the construction submodule is used for:
and filling a preset structure body object corresponding to the standard input method according to the character information to obtain an input method message corresponding to the standard input method.
5. The apparatus of claim 4, wherein the sharing module is configured to:
and sharing the text information to the standard input method process through an interprocess communication mechanism.
6. The apparatus of claim 4, wherein the filling content of the preset structure object of the standard input method comprises the content, length and storage location of the text message.
CN201611200101.9A 2016-12-22 2016-12-22 Voice input method and device Active CN106648097B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611200101.9A CN106648097B (en) 2016-12-22 2016-12-22 Voice input method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611200101.9A CN106648097B (en) 2016-12-22 2016-12-22 Voice input method and device

Publications (2)

Publication Number Publication Date
CN106648097A CN106648097A (en) 2017-05-10
CN106648097B true CN106648097B (en) 2020-07-28

Family

ID=58826391

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611200101.9A Active CN106648097B (en) 2016-12-22 2016-12-22 Voice input method and device

Country Status (1)

Country Link
CN (1) CN106648097B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008150923A1 (en) * 2007-05-29 2008-12-11 Livescribe, Inc. Customer authoring tools for creating user-generated content for smart pen applications
CN101876887A (en) * 2010-07-26 2010-11-03 刘彤 Voice input method and device
CN103440253A (en) * 2013-07-25 2013-12-11 清华大学 Speech retrieval method and system
CN105988581A (en) * 2015-06-16 2016-10-05 乐卡汽车智能科技(北京)有限公司 Voice input method and apparatus
CN106126157A (en) * 2016-06-13 2016-11-16 北京云知声信息技术有限公司 Pronunciation inputting method based on hospital information system and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150011879A (en) * 2013-07-23 2015-02-03 삼성전자주식회사 Method and apparatus for registering schedule on mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008150923A1 (en) * 2007-05-29 2008-12-11 Livescribe, Inc. Customer authoring tools for creating user-generated content for smart pen applications
CN101876887A (en) * 2010-07-26 2010-11-03 刘彤 Voice input method and device
CN103440253A (en) * 2013-07-25 2013-12-11 清华大学 Speech retrieval method and system
CN105988581A (en) * 2015-06-16 2016-10-05 乐卡汽车智能科技(北京)有限公司 Voice input method and apparatus
CN106126157A (en) * 2016-06-13 2016-11-16 北京云知声信息技术有限公司 Pronunciation inputting method based on hospital information system and device

Also Published As

Publication number Publication date
CN106648097A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN103299361B (en) Interpretive language
CN104754536A (en) Method and system for realizing communication between different languages
CN106157027B (en) Payment method, device and system
US11457479B2 (en) Method and apparatus for configuring random access occasion, method and apparatus for random access
CN105808305B (en) Static resource loading method and device
CN111930288B (en) Interactive service processing method and system
CN105279259A (en) Search result determination method and apparatus
CN106991106A (en) Reduce as the delay caused by switching input mode
CN104936282A (en) Method and device for registering converged communication service
CN111444679B (en) Poem generation method and device, electronic equipment and storage medium
CN116048724A (en) Mirror image creation method and device, electronic equipment and storage medium
CN114500421B (en) Message processing method and system
CN106648097B (en) Voice input method and device
KR20150047150A (en) Chatting service apparatus and method for converting voice to text, and chatting service system
CN112530435B (en) Data transmission method, device and system, readable storage medium and electronic equipment
CN115086295A (en) File transmission method, file transmission device, server and storage medium
CN111221512B (en) Function module mixed use method, electronic device and storage medium
CN112035127B (en) Method and device for installing application, vehicle, storage medium and electronic equipment
CN113885753A (en) Information input method and device, terminal equipment and storage medium
CN112198972A (en) Input method, device, equipment and storage medium
CN109413284B (en) Call switching method and device
KR102290383B1 (en) Method and system for keeping phone number of user terminal based on call forwarding
CN101087445B (en) A method and terminal device for triggering SMS sending based on called number
CN114443161B (en) Application docking method, device, equipment and storage medium
EP4207714A1 (en) Page display method and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: Room 101, 1st floor, building 1, Xisanqi building materials City, Haidian District, Beijing 100096

Patentee after: Yunzhisheng Intelligent Technology Co.,Ltd.

Address before: 100191 a503, 5th floor, Mudan science and technology building, No.2 Huayuan Road, Haidian District, Beijing

Patentee before: BEIJING UNISOUND INFORMATION TECHNOLOGY Co.,Ltd.

CP03 Change of name, title or address